Gossamer Forum
Home : Products : Gossamer Links : PHP Front End :

Re: [ukseo] Dynamic php in static pages

Quote Reply
Re: [ukseo] Dynamic php in static pages In reply to
In that case, just set your build_extension to .php, and put your PHP calls in the templates. For dynamic pages, you should be able to use;

Code:
sub {
my $cmd = $_[0]
my $got = system($cmd);
return $got;
}
,... and call with;

<%global_name('/usr/bin/php /full/path/to/php/script.php')%>

.. and then in script.php, put something like;

Code:
<?
echo date ("m/d/Y", 0);
?>

Hope that helps :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Dynamic php in static pages ukseo 7000 Nov 2, 2004, 2:49 AM
Post Re: [ukseo] Dynamic php in static pages
Andy 6873 Nov 2, 2004, 4:01 AM
Thread Re: [ukseo] Dynamic php in static pages
ukseo 6877 Nov 3, 2004, 2:43 AM
Post Re: [ukseo] Dynamic php in static pages
Andy 6869 Nov 3, 2004, 3:03 AM