Results 1 to 5 of 5
December 28th, 2007, 02:47 AM #1Possible to put php in dyse templates?
I use <!--#include virtual="/filename.php"--> to include results of some php files
But what I'd really love to do is put some php code in the header and body.
December 28th, 2007, 03:33 AM #2
You can't use SSI and PHP on the same document, so you need to choose one or the other. Definitely best to stick with PHP. In which case the syntax is:
<?php include('filename.php'); ?>Hatred stirs up strife, But love covers all transgressions.
December 28th, 2007, 08:13 AM #3
This is going in a template that is run by a perl script. I don't think php includes work with it...which is probably going to be the answer...php won't work.
But since I'm totally unfamiliar with perl, other than following install instructions, I'm hoping there may be some way around this. What happens after the script generates the html? No chance for apache to run php on it? I can get the php code into the page by using the virtual include command and to include the code from a text file. But it is not parsed and shows up in the source code.
December 28th, 2007, 08:27 AM #4
I'd like to find out the answer to this, too.
I've used one or two of the DYSE templates, and it THINK I was able to modify the templates using PHP includes. But it's been awhile, so I don't recall exactly what I did.
I don't think the perl functions would have anything to do with whether you can modify the templates though, really. The templates are basic HTML, with the perl variables included. So I don't think modifying the HTML with PHP includes will affect the perl functions, as long as you don't remove or modify the perl functions.
But I know pretty much NOTHING about perl, so anyone else would be more helpful. Just all speculation on my part.
Generate more fake news.
December 28th, 2007, 09:00 AM #5
By teezone in forum Programming / Datafeeds / ToolsReplies: 8Last Post: September 4th, 2009, 03:54 PM
By reaper in forum Cusimano.com ScriptsReplies: 5Last Post: February 6th, 2006, 11:26 PM
By peter02 in forum Cusimano.com ScriptsReplies: 3Last Post: August 26th, 2005, 12:08 PM
By aprillougheed in forum WebMerge (Fourthworld.com)Replies: 4Last Post: February 16th, 2004, 07:34 AM