I didn't know template() existed! I just did a search for it in the manual and it doesn't exist aparently.
PHP is a combination of programmign theory and web design. I learned both at a pretty young age and had lots of time playign around with different code.
So...a good book for people like me that understand the grammar and theory of programming either needs a nice big reference book or the existing manual translated into Joe's English with disections and further talk 🙂
I've learnt first hand how rubbish SAMS Teach Yourself books are! Just try picking up thier Javascript book. It starts throwing programs at you before it's even told u what javascript actually IS. It then proceeds to explain how programs use loops before explaining variables o_O
But then I sposed it's down to the individual author.
Does anybody know a good book based on what I think is a good book explained above?
I have found a O'Rielly book ISBN 0-596-00402-8 I'll write further details in a moment with EDITs.
EDIT: So that book you guys keep plugging. I',m guessing some people on here wrote it? Michael K Glass? Nice one...I'm member of the same forum as a pro 😃
Anyway talking about books that we would recommend... I found this one by Oreilly.
PHP Pocket Reference, 2nd Edition
By Rasmus Lerdorf
2nd Edition November 2002
Series: Pocket References
ISBN: 0-596-00402-8
138 pages, $9.95 US, $14.95 CA (roughly £7)
About that Cookbook by Oreilly
I was just looking at a PDF chapter preview of chapter 8 and the first thing I notice which is extremely helpful is the layout.
using headers: problem solution discussion, it starts by stating the problem scenario that we may come accross. Then it lists the ways in which we can tackle it followed by the description of how it is done. One example:
Problem
You want to set a cookie
Solution
Use [font=courier new]setcookie('flavor','chocolate chip');[/font]
Discussion
Cookies are sent with the HTTP headwer [...]
Has anybody seen anything of that reference pocket guide by Oreilly I mentioned up there? Sounds good. Anybody knwo of an extended version of the manual that I also mention up there^ ?