Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [babybrands] Adding either perl or php into templates

Quote Reply
Re: [babybrands] Adding either perl or php into templates In reply to
BTW, just had a look and saw you made a post in the Gossamer Links forum. I'm guessing therefore you are using GLinks =)

The first step - is how do they tell you to invoke the PHP or Perl codes?

At its simplest, this kind of global should work:

Code:
sub {
return system(qq|perl /path/to/script.pl|);
}

..or for a PHP script:

Code:
sub {
return system(qq|php /path/to/script.php|);
}

..or possibly you may need the full path to PHP's libs:

Code:
sub {
return system(qq|/usr/bin/php /path/to/script.php|);
}

As I said though, it depends more on what you are trying to call (i.e if its a "chunk" of code, instead of just a system command).

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 Adding either perl or php into templates babybrands 8884 Jul 30, 2007, 4:36 AM
Post Re: [babybrands] Adding either perl or php into templates
Andy 8702 Jul 30, 2007, 7:07 AM
Thread Re: [babybrands] Adding either perl or php into templates
Andy 8726 Jul 30, 2007, 7:10 AM
Thread Re: [Andy] Adding either perl or php into templates
babybrands 8718 Jul 30, 2007, 8:06 AM
Thread Re: [babybrands] Adding either perl or php into templates
Andy 8718 Jul 30, 2007, 8:09 AM
Thread Re: [Andy] Adding either perl or php into templates
babybrands 8735 Jul 30, 2007, 8:23 AM
Post Re: [babybrands] Adding either perl or php into templates
Andy 8711 Jul 30, 2007, 8:31 AM
Thread Re: [babybrands] Adding either perl or php into templates
Andy 8774 Jul 30, 2007, 8:42 AM
Thread Re: [Andy] Adding either perl or php into templates
babybrands 8775 Jul 30, 2007, 9:09 AM
Post Re: [babybrands] Adding either perl or php into templates
Andy 8675 Jul 30, 2007, 9:15 AM
Thread Re: [babybrands] Adding either perl or php into templates
Andy 8715 Jul 30, 2007, 9:48 AM
Thread Re: [Andy] Adding either perl or php into templates
babybrands 8691 Jul 30, 2007, 10:15 AM
Post Post deleted by PerlFlunkie
PerlFlunkie 8702 Jul 30, 2007, 7:06 PM