Hier klicken Sale Salew Salem Hier klicken Jetzt informieren Cloud Drive Photos Learn More Learn more Hier klicken Mehr dazu Mehr dazu Shop Kindle AmazonMusicUnlimited longss17
Profil für jb4mt > Rezensionen

Persönliches Profil

Beiträge von jb4mt
Top-Rezensenten Rang: 6.912.752
Hilfreiche Bewertungen: 0

Richtlinien: Erfahren Sie mehr über die Regeln für "Meine Seite@Amazon.de".

Rezensionen verfasst von
"jb4mt"

Anzeigen:  
Seite: 1
pixel
Sams Teach Yourself Php4 in 24 Hours: Complete Starter Kit (Sams Teach Yourself in 24 Hours)
Sams Teach Yourself Php4 in 24 Hours: Complete Starter Kit (Sams Teach Yourself in 24 Hours)
von Matt Zandstra
  Taschenbuch

3.0 von 5 Sternen Does what it says, 30. Juli 2000
This book is typical of the Sams Teach Yourself in 24 Hours series. It does a good job of giving developers new to PHP enough familiarity with the syntax to be productive fairly quickly, including somewhat more advanced topics such as database integration and object orientation, which apparently is supported much better in PHP4 than in version 3.
In fact, one of the strong points of the book is to point out what's new and improved over PHP3. I was also able to use the provided file upload utility "out of the box", unlike the one in OReilly's just released CGI Programming with Perl, 2d edition. This in itself has convinced me to do a lot of my future web programming with PHP.
However, I have a couple of issues with the file upload utility. For one, I suspect it was in large measure influenced by "Core PHP Programming"; see pp 76-78 of that tome and compare it with pp 152-155 of "Teach Yourself PHP4". Plus I question the use of a hidden field for setting the maximum file size. After all, it's just going to get turned into a PHP variable anyway, so if you want to stop anyone from viewing source and seeing what you've set the maximum field size to, just set a variable or even constant right in the script.
Other similar questionable programming practices are recommended. For instance, the author dissuades the reader from using "break" and/or "continue" when constructing loops because they can be buggy. Hogwash! For instance, it is standard practice to use "break" to exit a loop if you were looping over values just to find one -- you "break" when you've found the desired value.
If you put these concerns aside, though, the book is good both for beginners, and for the more experienced who want an idea of what's new in PHP4.


CGI Programming with Perl (Classique Us)
CGI Programming with Perl (Classique Us)
von Shishir Gundavaram
  Taschenbuch
Preis: EUR 30,78

1.0 von 5 Sternen Rush job and it shows, 26. Juli 2000
This book is full of typos, which is forgivable if the code examples don't have typos, but they do. For instance, in the code for upload.cgi on pg 99, the following declaration is made:
use constant UPLOAD_DIR => "/usr/local/apache/data/uploads";
Note this does NOT end with a slash. Later, though, a loop is initialized as follows:
until (sysopen OUTPUT, UPLOAD_DIR . $filename, O_CREAT | O_EXCL)
$filename is taken from user form input, but unless the user was omniscient and put a slash at the beginning of the name he assigned, then the expression "UPLOAD_DIR" . $filename would evaluate to something like:
/usr/local/apache/data/uploadsbleedin_file_name
instead of the correct: ".../uploads/bleedin_file_name". Oh, and speaking of putting a slash at the beginning of the file name....there is code that is supposed to prevent such, as evidenced by the line:
error($q, "Invalid file name; files must start with a letter or number.");
I don't know about slashes, but it didn't prevent me from sending a file name through that begin with a tilde.
Yes the book covers some things you won't find anywhere else, but a lot of the stuff it covers is better covered elsewhere: OReilly's "Webmaster in a NutShell" has better coverage of HTTP. It (Webmaster) also discusses using the use statement to reference a library in a path where you might have had to manually install it in your virtual hosting directory if for instance you couldn't convince your ISP to upgrade to the latest version of CGI.pm. This wasn't covered in the CGI book, which is supposed to be solely about CGI, whereas the Webmaster book not only covers CGI/Perl, but also JavaScript, PHP, etc.
Don't waste your money....I'm sorry I did


Seite: 1