Wampserver - Page Is Displaying Differently Depending On How I Visit It?
To get used to using server software (and to make it easier to test PHP scripts), I thought I'd host a website myself. I successfully installed Wampserver, and I can visit the page
Solution 1:
If you use file:///C:
you won't be running in the server environment. This means any server side code won't work (such as PHP code). You want to use 127.0.0.1/site
or localhost/site
.
When you use file:///C:
all of your html and javascript will be displayed properly, because that's done client side. Anything that is supposed to run server side, such as php won't execute.
Post a Comment for "Wampserver - Page Is Displaying Differently Depending On How I Visit It?"