|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
Help me, Please!
Hello guys/gals,
I am a novice at this Php, Mysql and Apache stuff and have recently been thrown to the sharks and told to make it work. I’ve installed PHP 5.0.2, Mysql 4.0.21 and Apache 2.0.52 (running as localhost) on my Windows XP operating system. I’m able to run PHP script, my Apache seems to be working and I can logon to Mysql via mysql monitor through the command prompt. My problem is that I cannot connect to Mysql using PHP. I know that PHP five is no longer packaged with the mysql lib.dll, and I tried performing the necessary amendments to php.ini and httpd conf, but nothing seems to work. The queerest thing is that when I add a prefix to the file name (such as php.inix, so that my system cannot see it and validate that I am amending the right file) I am still able to pull up PHP script in my browser. Please help I had no sleep, no food and I’m running out of hair to pull ever since I started this endeavor. Here is a list of some of the amendments I’ve made: · Changed the window path to point to my php5 doc · Amended http config with the following three scripts #LoadFile C:/PHP5/libmysql.dll LoadModule php5_module C:/PHP5/php5apache2.dll #PHP.IniDir "C:/php5" · In my php_ini I uncommented php_mysql extention, pointed doc root to my apache htdoc and changed the extention_dir to point to my “C · In my phpino() it shows that php is looking for php.ini in C:window. I checked this directory and didn’t have the file there. P.S. I noticed that my IE browser is running kind of sluggish and there are times that I try to pull up the phpinfo() and it doesn’t come up. Can this mean that I am having a port issue and if so how can I check for and possible amend it. Thanks, New kid on the block |
|
#2
|
||||
|
||||
|
RE: Help me, Please!
go to your php.ini.recommended file in your php directory (forget the windows folder for now). that is the php.ini that you need to change and save as php.ini in the same place. restart your server and now see what the phpinfo page says - it should now be pointing to the correct php.ini in your php directory.
|
|
#3
|
|||
|
|||
|
RE: Help me, Please!
Hello,
Thanks for the advice, I tried renaming the file in my php5 directory but it still gave me the same problem even after I rebooted. When I try to go to myconnect it spits back "Fatal error: Call to undefined function mysql_connect() in .... If life was a game measured by this php stuff, I would be getting my butt wooped! Thanks for the effort BSL |
|
#4
|
||||
|
||||
|
RE: Help me, Please!
go to your phpinfo page and see if the php.ini files is still suppost to be in C:WINDOWS (I doubt it). anyway - wherever it tells you the php.ini should be - edit that file to include your mysql extension.
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > Help me, Please! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|