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

passing an argument in includes

Quote Reply
passing an argument in includes
As I continue to write my mods...

I want to write an include mod something like this:

<%virtual /path/to/script/php/or/perl/%> (read my previous post and you'll see why)

My goal is to get the script to print the script being included...



I came across a problem. I'm not sure how to bring in an argument.

<%virtual whatever_variable%>

In globals.txt I have something like this...

'php' => 'sub {
#Execute a perl or php file...
my $php, $path;
$path = whatever_variable;
the rest of the code yada yada dada....
return $php;
}',

My argument in this case will be the path to the php or perl file...

Any suggestions or help is appreciated,

- Jonathan

Last edited by:

jdgamble: Jul 29, 2004, 8:14 PM
Subject Author Views Date
Thread passing an argument in includes jdgamble 3560 Jul 29, 2004, 8:10 PM
Thread Re: [jdgamble] passing an argument in includes
Andy 3435 Jul 30, 2004, 12:52 AM
Thread Re: [Andy] passing an argument in includes
jdgamble 3454 Jul 30, 2004, 3:13 AM
Thread Re: [jdgamble] passing an argument in includes
Andy 3479 Jul 30, 2004, 6:01 AM
Thread Re: [Andy] passing an argument in includes
jdgamble 3444 Jul 30, 2004, 12:52 PM
Post Re: [jdgamble] passing an argument in includes
jdgamble 3404 Aug 5, 2004, 10:30 AM
Post Re: [jdgamble] passing an argument in includes
Suomi 3336 Nov 28, 2004, 6:23 AM