I just moved everything over from Apache to IIS, and now I'm getting this error message suddenly...
Notice: Undefined index: SCRIPT_FILENAME
The code causing this is...
if (realpath(__FILE__) == realpath($_SERVER['SCRIPT_FILENAME'])) exit;
I've used this plenty of times in IIS, and I'm pretty sure I kept my old php.ini - any ideas of what could be going on?
Undefined index: SCRIPT_FILENAME
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Check the output of
check and see what's being set, maybe you need to use another element.
Mac
Code: Select all
echo '<pre>';
print_r($_SERVER);
echo '</pre>';Mac
you're on M$IIS now.
as a friend uses for his motto: "linux, because i actually want to GET there."
he's been using that since M$ came out with "where do you want to go today?"
remember M$ thinks it's above standards and only conforms to them when forced to. look at what it gives, there may be an equivalent.
personally i think the world should unassimilate and get off winblows and use the flavor of posix that they each like best.....every one's different, but they're all compatible
as a friend uses for his motto: "linux, because i actually want to GET there."
he's been using that since M$ came out with "where do you want to go today?"
remember M$ thinks it's above standards and only conforms to them when forced to. look at what it gives, there may be an equivalent.
personally i think the world should unassimilate and get off winblows and use the flavor of posix that they each like best.....every one's different, but they're all compatible
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK