Before you start reading this post make sure that you have installed Apache web server , PHP and Mysql.If you have also configured web server for PHP then we can start to configure PHP for mysql if not then view the post to configure web server for PHP. Basically PHP comes with support for lots and lots of extension. To make use of the extensions in php edit the php.ini file as follows to point to /ext/ folder inside installed php5.2.6 folder
------------------------------------------------------
;ORIGINAL
;extension_dir = "./"
;EDITED
extension_dir = "C:\Program Files\Apache Software Foundation\Apache2.2\php-5.2.6-Win32\ext\"
------------------------------------------------------
Now having set the php.ini file to point to the php extension directory we are going to make the
extension for mysql available. Edit the php.ini file as follows
------------------------------------------------------
;ORIGINAL
;extension=php_mysql.dll
;EDITED
extension=php_mysql.dll
------------------------------------------------------
NOTE : if this is not done then you will get the error 'Fatal error: Call to undefined function mysql_connect()---'
To make use of the session make the following changes in the php.ini file
------------------------------------------------------
session.save_path = "C:\WINDOWS\Temp"
------------------------------------------------------
Set the save_path for session to any directory that exist.
NOTE : php.ini is the file copied to %SYSTEMROOT% folder during installation of PHP.
For information on how to install PHP visit previous post
Friday, November 21, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment