I can't get preview to work using my local server. I can get it to work if I use an ftp server and put my files online, but as I do programming for a multitude of sites, that's really cumbersome.
How do I determine my server name/location. I have IIS server and php installed. I need to troubleshoot this and make it work.
Thanks.
Deteriming server name/location
Moderator: kfury77
Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
Please try to follow these guidelines. This will help to receive faster and more accurate response.
- Check the Support section of the corresponding product first. Chances are you will find your answer there;
- Do not create new topics for already reported problems. Add your comments to the existing topics instead;
- Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
- Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
- Include the version number of the software you are using;
- This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Fixed, but preview produces errors.
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.
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
Yeah, I was pretty sure that was the issue. I'd just hoped someone else had run into something similar and could point me somewhere for answers.
Interestingly enough, the includes work, but variables aren't being transmitted or recognized. Subsequent testing proves I get the same issue in the browser.
Thanks.
HeadElf
Interestingly enough, the includes work, but variables aren't being transmitted or recognized. Subsequent testing proves I get the same issue in the browser.
Thanks.
HeadElf
HeadElf
Nope. The problem has got to be the php setup. I get the error whether I'm testing to see if the variable exists or if I'm attemtping to send a variable (variable never gets set). The programming works perfectly online, just not locally. It's got to be a php setting, I just don't know which.
HeadElf
HeadElf
HeadElf