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:
return system(qq|perl /path/to/script.pl|);
}
..or for a PHP script:
return system(qq|php /path/to/script.php|);
}
..or possibly you may need the full path to PHP's libs:
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!
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!