Hiya Guys
I need to build a simple website using css and php. The site will only have 8 pages, with a header and footer that remain constant. Can soneone tell me how the structure of a php site works? i know css pretty well
many thanks
lennon123
Then decide what specific PHP functionality that you need - remembering that most of your page will be simple HTML anyway.
Then come back with any specific PHP queries and we will try to answer them.
___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?' Drive a Steam Roller Steam Engine Prints
What exactly do you need from PHP? Is there going to be a database to connect to for instance, or do you need tome dynamic content management.
PHP would help you there, but the construction of a website, remains HTML and CSS. Its not the website structure but what the website will do that requires PHP.
So until you can tell us what it is you want to have PHP do for you in the website I would agree with johnwm.
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
Ok thanks, Im pretty new to php - What I would like to be able to do is have all my text loaded in externally from a text file. Is this possible with php? Also how do I format the text file so that it displays correctly when/if it is loaded in
thanks
Your text file would need to be formatted, like HTML, only lacking the <html><head><body> tags. Basically it should look like a bunch of text with whichever html tags you need to give it format. such as DIVS and Spans, etc...
Then you would have PHP read the file and display it.
Then its just a matter of putting the contents of the file into a variable, and echoing it out wherever it is you want to show it.
There plenty of examples in the entries for those functions in the php.net online manual.
Click the function name to go to the php.net online manual entry for it.
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.