$file = "";
//the above is defined from the url
It could be what I was typing in the url bar.
Hmm, so you define $file in your url as "foobar.inc" and then, in the
page itself you take change $file to be "".
At least, that's how I'd read it. I'd suggest, it's not an overly good
idea to include a file like this as someone else has already mentioned.
In any event, your fix would have to be something like this:
If (!isset($file) || empty($file))
$file = "some file";
Include "$file" ;
That way you're only going to over-write the contents of $file if it's
already either unset or empty.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php