What I could do is hard link a file using this command to input the data:
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1" # Get the script location: UNIX / or Windows /
($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1" # Get the script location: Windows \
And that file will have commands like:
$PageTitle="Welcome to my webpage!";
What will then happen is the data from the whatever.file will be plugged into the displayme.cgi file and display the html on the browser... Follow so far?
No what I want to do is not use a hard coded file in the "require" section... I want to be able to have the file required be determined by the command line, like so:
The only problem with using a Case Switch is it's still hard coded... You're saying that the variable thats going to be used refers to a certian page. Is that a way to just have the Script read in the filename typed and just include that into the script?
That sounds more like what I'm trying to do . Now can PHP import information from another file and display it in given fields of one php page?
I read the Webmonkey thing, didn't seem like what I wanted to do... They were using headers inside every file to define what the content was in the page. I read through the CF information... Now that's nice, and more along the lines of what I want, but it's like $1000 for a license.