p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

beginning_php thread: PHP installation


Message #1 by "Armin" <actekk@h...> on Tue, 15 Oct 2002 21:04:55
I installed the PHP as instructed by the Beginning PHP book. However, the 
PHP is not executing at all. I tripple-checked everything, copied the 
required *.ini and *.dll files, but it still seems to be stuck 
somewhere...   I reinstalled the IIS and was still getting the same 
problem...  it happened to be that I had to reformat the drive,  so I 
installed PHP (from www.php4win.de) again, but it was still not intact. I 
am obviously doing something wrong, but what?  If anyone knows a different 
approach to install PHP than as described in the book, I would be very 
thankfull for any replies. Thanx !!!
Message #2 by "Duncan Hutty" <duncanh@h...> on Thu, 17 Oct 2002 10:39:05 -0400
Use the download from www.php.net

Duncan Hutty
Systems Administrator
duncanh@h...
xxx-xxx-xxxx

Holiday Travel International
Commonwealth Travel Center
12239 US Route 30
North Huntingdon, PA 15642

-----Original Message-----
From: Armin [mailto:actekk@h...]
Sent: Tuesday, October 15, 2002 9:05 PM
To: beginning php
Subject: [beginning_php] PHP installation


I installed the PHP as instructed by the Beginning PHP book. However, the
PHP is not executing at all. I tripple-checked everything, copied the
required *.ini and *.dll files, but it still seems to be stuck
somewhere...   I reinstalled the IIS and was still getting the same
problem...  it happened to be that I had to reformat the drive,  so I
installed PHP (from www.php4win.de) again, but it was still not intact. I
am obviously doing something wrong, but what?  If anyone knows a different
approach to install PHP than as described in the book, I would be very
thankfull for any replies. Thanx !!!


Message #3 by tekronx@a... on Thu, 17 Oct 2002 20:13:29
Ok here is what to do go to 
http://www.php.net/get_download.php?df=php-4.2.3-installer.exe

When you run the installer make sure you click advanced so it will set up 
IIS for you also.

Download this then run the installer it will install php for you but no 
extensions.  Go to the zip.version that you d/l and get the dll's and put 
them in the system 32 folder.  Then go to your php.ini and look for the 
extensions and look for this ;extension=php_gd.dll take the semicoln away 
so it looks like this extension=php_gd.dll.

next look for a line that says regiter_globals = off
set it to this register_globals = on

(the reason for this is so you can do the examples when you take info 
from a html document form. B/c it give a variable to php and so you can 
find it you need to do that unless you want to give the variable a longer 
name lol. like HTTP_GET_VARS["Sample"] instead of $Sample)

Finally this is important for security issues

Find this section in the php.ini

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Change this
 ;E_ERROR           - fatal run-time errors

to
 E_ERROR           - fatal run-time errors

and set this
display_errors = on

to
display_errors = off

(if you leave display errors on it will cause your server directories to 
be displayed on the web page when an error occurs and by seting E_Error
It only will tell you when fatal error occure :) )

That should ger you set up





> I installed the PHP as instructed by the Beginning PHP book. However, 
the 
P> HP is not executing at all. I tripple-checked everything, copied the 
r> equired *.ini and *.dll files, but it still seems to be stuck 
s> omewhere...   I reinstalled the IIS and was still getting the same 
p> roblem...  it happened to be that I had to reformat the drive,  so I 
i> nstalled PHP (from www.php4win.de) again, but it was still not intact. 
I 
a> m obviously doing something wrong, but what?  If anyone knows a 
different 
a> pproach to install PHP than as described in the book, I would be very 
t> hankfull for any replies. Thanx !!!

  Return to Index