|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Programming Programmers can seek advice or just show off their creations inside this forum. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
The latest stable version of php is PHP 5.3.0: PHP: Downloads
The publication date of PHP 6 is coming closer: PHP Sources Snapshots and the following book PHP 6.0 book will Publish Sept 2009 "PHP 6 for Absolute Beginners" by Jason Lengstor: Note that PHP is a loosely type language with its pro and cons. Exercise: Predict the outcome of this listing03.07.php PHP Code:
listing03.10.php PHP Code:
PHP Code:
http://www.kjellbleivik.com/Books/PH...sting03.07.php Source: APRESS.COM : PHP 5 Objects, Patterns, and Practice : 9781590593806 For those that want to develop their own CMS or shopping chart from scratch, I draw your attention to those two books: Build Your Own Database Driven Web Site Using PHP & MySQL, 4th edition by Kevin Yank (Exercise for the student. Rewrite the code examples using PHP patterns and classes if that is possible) and Simply SQL by Rudy Limeback KW search: class type php class type Related: Class type hints (Note this is security related.) "Although PHP remains a loosely typed language, which means you do not need to specify what types a variable is when it is declared or passed to a function, PHP 5 introduced class type hints, which allow you to specify what kind of class should be passed into a function. These are not required, and are also not checked until the script is actually run, so they aren't strict by any means. Furthermore, they only work for classes right now - you can't specify, for example, that a parameter should be an integer or a string. Having said that, I suspect future versions may introduce the ability to request that arrays are passed in - that's pure speculation, though! (Edit: this was subsequently added in PHP 5.1 - hurrah!)" and "But after a while, most programmers realize that this means that a program is equipped with a safety net: many errors that programmers make when they construct programs are caught by this net before they lead to unpleasant effects. An example: A very expensive American space rocket crashed on its way to Venus a few years ago, because of an extremely trivial error in a FORTRAN program. A comma had be written as a point, and, as a consequence of that, the start of a special kind of repeat imperative was mistakenly read as an assignment imperative assigning a value to an undeclared variable. Had it been required to declare every variable in FORTRAN programs, the compiler would have discovered that the variable was undeclared and the error would have been caught much earlier than in the Atlantic Ocean." Professor Bjørn Kirkerud (1989): "Object Oriented Programming With Simula". Addison Wesley Publishing Company ISBN 0 201 17574 6. Page 31-32. Related php.net links: gettype isset
__________________
Mini Network:: Financial information at your fingertips Learn object oriented programming where it started Last edited by kgun; 07-30-2009 at 11:37 AM. |
|
|||
|
I got this: Fatal error: Class 'ShopProduct' not found in /usr/home/web/wno134614/Books/PHP5Obj/03/listing03.07.php on line 13
__________________
free ebooks |
|
||||
|
Very late response (one reason that I may stop these posts), but as far as I remember it is correct that you shall get that error. Note there is output before the error occurs.
__________________
Mini Network:: Financial information at your fingertips Learn object oriented programming where it started Last edited by kgun; 09-23-2009 at 04:57 PM. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New site: Coast Radar | ibarnes | Submit Your Site For Review | 2 | 05-19-2009 07:31 PM |
| Getting On The Google Radar | ronmauldin | Google Discussion Forum | 14 | 06-06-2005 08:40 PM |
| Bangalore appears on terror radar | WPW_Feedbot | IT Discussion Forum | 0 | 03-07-2005 01:30 PM |
| Zafi.D upgraded to Radar Level 2 | WPW_Feedbot | IT Discussion Forum | 0 | 12-14-2004 11:50 AM |
| Radar Detectors / Auto site | reppy | Marketing Strategies Discussion Forum | 0 | 10-27-2004 02:33 AM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |