|
11/23 |
2004/9/3-5 [Computer/SW/Languages/Web] UID:33342 Activity:high 50%like:33058 |
9/3 Can anyone recommend a good introductory PHP book? \_ The API on http://php.net is superb if you know perl. \_ On a related note, do people really like embedding code in HTML via PHP? It seems incredibly hackish and error-prone to me. \_ I worked at a place during .ASP. It become a nightmare when \_ I worked at a place doing .ASP. It become a nightmare when trying to do site updates because of the fuzzy line between code and content. We wanted content updates to be fast and easy but code updates to be heavily QA'd but when your code and content blur lines like this, yes it does become incredibly hackish, error-prone, and hard to deal with in a professional software shop. \_ How is it more error prone that using non-embedded code? Yes, some people like emdedding code in HTML as ASP, PHP, mod_perl/Masson, and similar technologies are extremely popular on the web. \_ With code fragments here and there, I see the potential for (1) reuse via copy and paste and (2) "losing" the flow of the code in the html (3) if some page elements are conditional, it has the potential to be very confusing. \_ HTML sucks too! Use all text/plain. \_ My non-trivial HTML experience was with Perl and MySQL, using a template library for rendering the HTML. I liked the separation of code and content. \_ What is your point? \_ My only non-trivial HTML experience was with Perl and MySQL, using a template library for rendering the HTML. I liked the separation of code and content. PHP looks like a mess by comparison. \_ These are process issues, not language issues. When I write PHP, I put all of the code possible in functions that go in (usually auto-)included lib files. Then all my web-accessible PHP (HTML) files have in them are ifs, foreachs, etc. (All the same stuff you'd use in any templating language; why use another language?) --dbushong \_ ORA's new "Web Database Applications with PHP and MySQL" just came out a few months ago. It covers PHP 5 and whichever MySQL version was current at the time of publishing. Yes, you might learn it on the web too, though, I still prefer reading books myself.. |
php.net -> www.php.net/ PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the 11 introductory tutorial. After that, check out the online 12 manual, and the example archive sites and some of the other resources available in the 13 links section. This mostly bug fix release improves PHP 5's stability and irons out some of the remaining issues before PHP 5 can be deemed release quality. Note that it is still not recommended for mission-critical use but people are encouraged to start playing with it and report any problems. This includes SQLite, SOAP, Reflection API, Ming and others. For backwards compatibility, re-implementing regular methods with the wrong prototype will only result in an E_STRICT warning. For changes since Release Candidate 1, please consult the 37 ChangeLog. This is is a bug fix release whose primary goal is to address two bugs which may result in crashes in PHP builds with thread-safety enabled. All users of PHP in a threaded environment (Windows) are strongly encouraged to upgrade to this release. Instead of receiving the problems and composing your solutions offline, it all takes place online and within a specific timeframe. The Marathon is kindly sponsored by Zend Technologies and will now feature a problem on PHP 5. The move from Beta stage to RC stage means that PHP 5 is now feature complete, and is quite stable - stable enough for everyone to start playing with. Note that it is still not recommended for mission-critical use. Some of the key features of PHP 5 include: * The 44 Zend Engine II with a new object model and dozens of new features. This new extension includes an object-oriented interface in addition to a traditional interface; For more information on SQLite, please visit 46 their website. It can also interface with the DOM extension and vice-versa. For changes since Beta 4, please consult the 47 ChangeLog. If you would like to subscribe to the list, you can do it via our 48 mailing lists page. The Conference features 32 sessions and two power workshops. It will happen again at 53 the RAI Conference Centre, Amsterdam. Open Source PHP projects can present themselves, like in the last years, for free on the Conference at the exhibition area between the commercial exhibitors. Take your chance and contact 54 Frank Stepan from Software & Support. The conference features 20 sessions over 2 days, in English and French. Students and Small Businesses are eligible for reduced prices. Buy your tickets early to get rebates and discount with the DVD! We are offering Weekend tickets (Saturday 21st and Sunday 22nd only) as well as Conference tickets (Friday 20th - Tuesday 24th) for the entire length of the event. Additionally, we also have Daily tickets available for each day of the conference. Tickets will also be available on the door for those that simply want to drop in. For ticket and accommodation Prices, look over our 62 pricing guide for more information. Call for Papers Reminder: O'Reilly Open Source Convention 03-Feb-2004 The 64 2004 O'Reilly Open Source Convention will be in Portland OR, July 26-30. |