Wrox Programmer Forums
|
BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5
This is the forum to discuss the Wrox book Beginning PHP4 by Wankyu Choi, Allan Kent, Chris Lea, Ganesh Prasad, Chris Ullman; ISBN: 9780764543647
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 8th, 2004, 07:32 PM
Authorized User
 
Join Date: Jul 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Chudz
Default www.php4win.de

I have just got my self this and I am trying to install PHP4! but the website that the book says to go on to download the PHP4 zip file is not online. It say that the PHP4 files here www.php.net are to basic for what the we need! can somebody help me, i need to know where to get this file im new to PHP.

http://www.uggle.com
http://www.leap2.co.uk
webmaster@leap2.co.uk
andrewjones702@hotmail.com
 
Old July 8th, 2004, 07:53 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

The authors of the book, for some strange reason, decided to either put together their own website with their own distribution of PHP, or were sending traffic to friends, or something along those lines. I think to take advantage of the traffic generated by book sales (just speculation). I think the argument in the book says something to the effect of "PHP doesn't come with certain extensions enabled".. and this download from http://www.php4win.de was supposed to include all this extra stuff. However this isn't true. At http://www.php.net, there are two downloads for PHP for Windows. One is the idiot-proof Windows installer, which installs and configures everything automagically. The other is a .zip package that includes popular extensions and a distribution of PHP which must be installed manually. Being a beginner, I suggest downloading both packages. Run the installer first, then if you need extensions you can move those from the .zip archive to the PHP folder created by the installer. I recommend moving these to C:\PHP\extensions or where ever PHP is installed. Then installing an extension only requires modifying a line or two in the php.ini file. Although I can't remember off hand if this book even made use of any extra extensions. If it does they aren't difficult to install. The php.ini file is located at C:\Windows\php.ini, or what ever drive letter Windows is installed to. Open the .ini file with a regular text editor.

The first line is the location of the extension directory:


; Directory in which the loadable extensions (modules) reside.
extension_dir = "C:\PHP\extensions"


Add the location of the extensions directory here.

The second line is to uncomment the extension you want to use:

[code]
;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
;
;extension=php_bz2.dll
;extension=php_cpdf.dll
;extension=php_crack.dll
;extension=php_curl.dll
;extension=php_db.dll
;extension=php_dba.dll
;extension=php_dbase.dll
[snip]


There are far more than I've included here. Remove the semicolon from in front of the line referencing the .dll and whaalah. The extension is now active. You can verify this by running a phpinfo() script.


<?php
    phpinfo();
?>

More often than not a new heading appears with information specific to the extension.

As far as the book, I recommend getting a hold of the new Beginning PHP, Apache, MySQL Web Development (Wrox), as Beginning PHP4 is a little outdated.

HTH!

Regards,
Rich

::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::
 
Old July 8th, 2004, 08:13 PM
Authorized User
 
Join Date: Jul 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Chudz
Default

ok Thank you very much :) i'll try that now!

http://www.uggle.com
http://www.leap2.co.uk
webmaster@leap2.co.uk
andrewjones702@hotmail.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
No more php4win.de pgg01855 Beginning PHP 1 March 29th, 2008 11:45 AM
Conectar textbox a campo de base de datos Access aya_hbkenshin04 ASP.NET Espanol 0 May 4th, 2006 01:26 PM
why de sql compiler do not parse de following? deniscuba SQL Language 2 February 4th, 2005 04:04 PM
PHP4win.de is down stefan_andrei BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 3 July 16th, 2003 02:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.