Jump to content

newbie needs help please??


rikiki

Recommended Posts

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

Link to comment
Share on other sites

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 by jlhaslip
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...