rikiki Posted January 27, 2009 Report Share Posted January 27, 2009 hi all, I have built a page in HTML and have attached a CSS to it and have been able to preview it in different browsers and it looks just the way i wanted but when I tried to run it locally so I can test it (through XAMPP) the result is not even remotely similar. my background images don't appear, nothing is centered as it should be and basically all of my CSS formatting is just gone. can anyone please explain to me what I need to do in order to run an HTML page with some CSS formatting through a PHP server? I've been told I only need to change the extension from .html to .php but that's not working. i'm new to PHP so I could really use some help thanks a bunch Quote Link to comment Share on other sites More sharing options...
jlhaslip Posted January 27, 2009 Report Share Posted January 27, 2009 (edited) First of all, there is no need to run the html file through the php parser UNLESS there is some php in the file. Secondly, XAMPP provides a folder named htdocs which is where the file needs to be located in order to have the file parsed via php. Thirdly, you access the file from your browser using http://localhost/folder/filename.php as the URL for the file to be parsed. The file needs to be in the htdocs folder. Four: make sure the Apache Server is started. Edited January 27, 2009 by jlhaslip Quote Link to comment Share on other sites More sharing options...
falkencreative Posted January 27, 2009 Report Share Posted January 27, 2009 ...and, just in case... make sure that the CSS file is in the correct location. Based on your comments, it sounds like the HTML/PHP page can't find the CSS file. Quote Link to comment Share on other sites More sharing options...
rikiki Posted January 27, 2009 Author Report Share Posted January 27, 2009 it worked thanks a lot Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.