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
If you are building .php pages (i.e index.php, more2.php, etc) ... then you should just be able to use you're PHP code "as-is" ...i.e;

<?php include("/usr/etc/etc/path_to_document/adsence") ?>

If you want to make a global, for dynamic scripts (i.e search.cgi, add.cgi, etc)... then you could try a global like so;

Code:
sub {
my $url = $_[0];
use LWP::Simple;
my $got = get($url);
return $got;
}

... and call with;

<%global_name('http://www.page-to-grab.com/page.php')%>

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 6874 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