PHP, ASP, or CGI Question... Please help!

BowDown

Banned
Jun 2, 2000
2,197
0
0
When you create a CGI file you can link other files into it by using the following:

eval {
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX / or Windows /
($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows \

require "whatever.file";
};

Now how do you create a variable header so you could include a file via the address bar?

Like:

http://www.whatever.com/index.cgi?information.file

Please let me know... I want to make a CGI Template and use different data files on the same template.

Thanks...


I'm now open for suggestions via PHP or ASP.

My included file was going to contain CGI commands like:

$title="Title of Page";
$image=qq(<img src=&quot;&quot;>);
$body_1=&quot;Blah, blah...&quot;;

Stuff like that that would be put into a template. I'm open for any language, as I'm not that far into it to revert.

LMK... thanks!