by HeadElf » Sat Oct 29, 2005 4:49 am
Got it! I managed to find the magic combination of items that makes the local server bit work. Interestingly enough, though, the php stuff doesn't work completely. I got the following errors for pages that work perfectly on the online website:
Opening page error: Notice: Undefined variable: inc in D:\ActiveWebfiles\Axwood Website\SecretSantaFiles\index.php on line 27
Interestingly enough, inc is the variable that contains the code for which page is included. It's the absense of $inc which causes the homepage to be included, which it is.
First error, linked page: Notice: Use of undefined constant thisfile - assumed 'thisfile' in D:\ActiveWebfiles\Axwood Website\SecretSantaFiles\Admin.php on line 3
Actually, the session variable 'thisfile' is defined in the parent document. Does the internal browser not track session variables? I'll try it with my own browser and see.
Second error: Notice: Undefined variable: PHP_SELF in D:\ActiveWebfiles\Axwood Website\SecretSantaFiles\Admin.php on line 3
The is very much the same type error as the first. In php, the file you're on is always $PHP_SELF, yet it's not recognized by the browser.
Third and final error: Warning: Cannot modify header information - headers already sent by (output started at D:\ActiveWebfiles\Axwood Website\SecretSantaFiles\Admin.php:3) in D:\ActiveWebfiles\Axwood Website\SecretSantaFiles\Admin.php on line 6
What can I say? Works perfectly online. Doesn't work locally. I'm pretty sure it's still tied to the same stuff. Same line of code producing the barf.
Any thoughts on why variables aren't working? This is pretty weird.
HeadElf