Hello,
I'm a PHP beginner, pretty good with html and Flash actionscript and want to get stuck in to backend stuff. I have designed this website http://www.laceytheatrecompany.com and want to use it as a first project to try out some backend stuff.
The NEWS and TOUR sections are to be updated by a client (a single user, given access by myself). The NEWS and TOUR pages contain the entire list of entries. On the HOME page, the NEWS and TOUR boxes display only the latest 2/3 entries. The NEWS page will also have an anchored menu at the top to each news entry.
I am very keen to become a good PHPer. If anyone could take a quick look at the site and then point me in the right direction to get started, templates/tutorials/any words of advice it would be much appreciated.
Cheers
Where do I start?
Moderator: General Moderators
Welcome to the world of server scripting. Your knowledge of HTML will be of great value. You probably want to check into CMS (Content Management Systems), which is a whole world of its own (and one I'm not well acquainted with).
As for basic PHP, where you should start depends largely on your individual learning style. For many people, finding a good book on basic PHP would be the place to start--there are so many books on PHP that I wouldn't try to recommend one or two "best" ones. My advice is to look at the Table of Contents to see the scope, then at a chapter or two to see how the presentation comes across to you. For others, online tutorials can get you started quickly. One of my favorites is http://www.w3schools.com/php/default.asp, another is http://us.php.net/tut.php. Lots more can be found by googling for php tutorial.
When you have specific questions or problems, this DevNetwork Forums is a good resource.
As for basic PHP, where you should start depends largely on your individual learning style. For many people, finding a good book on basic PHP would be the place to start--there are so many books on PHP that I wouldn't try to recommend one or two "best" ones. My advice is to look at the Table of Contents to see the scope, then at a chapter or two to see how the presentation comes across to you. For others, online tutorials can get you started quickly. One of my favorites is http://www.w3schools.com/php/default.asp, another is http://us.php.net/tut.php. Lots more can be found by googling for php tutorial.
When you have specific questions or problems, this DevNetwork Forums is a good resource.
There are quite a few content management systems out there that have the features you need and more. I guess a full blown CMS is a bit more than you require for this project and it will probably take some time to theme the CMS to make it look like the current design. But once it's done you have very powerful platform to continue develop the site on. http://www.opensourcecms.com/.
Your second option is to use bits and pieces of existing php code to piece together a light weight CMS to fit your site. You need some kind of authentication system (maybe a simple htaccess/htpasswd solution would suffice). Then you need a browser-based wysiwyg editor for the news and tour info, or you may settle for a simple form with plain text fields. Last but not least you need somewhere to store the data. MySQL or PostgreSQL is two popular choices, but for a simple site with few edits a flat text file would also work.
Your third option would be to write all of the above from scratch. This obviously requires more work, but can be very educational. I guess time is the deciding factor here (as always).
/josa
Your second option is to use bits and pieces of existing php code to piece together a light weight CMS to fit your site. You need some kind of authentication system (maybe a simple htaccess/htpasswd solution would suffice). Then you need a browser-based wysiwyg editor for the news and tour info, or you may settle for a simple form with plain text fields. Last but not least you need somewhere to store the data. MySQL or PostgreSQL is two popular choices, but for a simple site with few edits a flat text file would also work.
Your third option would be to write all of the above from scratch. This obviously requires more work, but can be very educational. I guess time is the deciding factor here (as always).
/josa