PDA

View Full Version : Creating an HTML/CSS/PHP template.



andriusain
October 16th, 2009, 07:59 AM
Hello all, I am now ready to start learning php and I am looking for some direction, resources etc... that will help me do the following:

I want to create a CSS/HTML/PHP template in order to use it for many project pages that will have the same structure. For that I guess I would need to create several folders that contain each the content of each page (photos etc...) and possibly a text file with the text to go there. I guess then that when a certain project is clicked on the web page then php will pass some variables to say where and what is the content to load-in.

I have already some programming experience with other languages so hopefully it won't be too long until i feel comfortable with php.

I would really appreciate your help here.

Many thanks,

Andres.

Stubbs
October 25th, 2009, 09:42 PM
I'm trying to do the same thing. These are the two of the first sources I used:


http://php.about.com/od/tutorials/ht/template_site.htm
http://www.alistapart.com/articles/phpcms/

The first is really easy, but the second is pretty helpful.

utsav
October 26th, 2009, 01:35 AM
Instead of creating all the text files and saving them. Use database MySQL and store your texts in one of the columns of the tables and when showin them just call from the database. And ya u could create new folder for pictures, videos etc

andriusain
October 26th, 2009, 01:27 PM
Thank you very much for this guys, always very helpful to use this forum!