I am looking for some help getting up and running. the setup went a little rocky but I finally go the database set up and the web page set up. When I went to test it I get the following message:
"Fatal error: Call to undefined function: mysql_connect() in /home/ipm/functions.php on line 2516"
Any idea what i've done wrong?
Thanks in advance,
Dan Wells
MHTN Architects, Inc.
Salt Lake City, UT.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Don't know if you ever got an answer, but that error message looks like PHP was not compiled with MySQL support. You will have to re-compile and make sure you specify the command line option to make to enable MySQL support.
Are you running on Linux or Windows? If Linux, what distribution?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First, thanks for getting back to me! I'm running RH 7.2. I had guessed that it had something to do with my PHP configration. PHP was installed using RPM (php4.0.6-7 and php-mysql4.0.6-7). I know there are updates to php, but there are so many dependancies that I may be better off uninstalling the RPM packages and getting the source and compiling it. Are there problems with the RPM installs of later versions?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a machine with the latest RPM updates installed and so far it's been ok. If you have the PHP RPMs from RH7.2 then you should already have the MySQL support...hmm...have you played with the php.ini at all?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm not sure where to begin with the "php.ini," I'll go looking around and see what I can find. Is there anything in particular I need to be looking for in the ini file?
I may also try getting updates for RH 7.2.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am looking for some help getting up and running. the setup went a little rocky but I finally go the database set up and the web page set up. When I went to test it I get the following message:
"Fatal error: Call to undefined function: mysql_connect() in /home/ipm/functions.php on line 2516"
Any idea what i've done wrong?
Thanks in advance,
Dan Wells
MHTN Architects, Inc.
Salt Lake City, UT.
Don't know if you ever got an answer, but that error message looks like PHP was not compiled with MySQL support. You will have to re-compile and make sure you specify the command line option to make to enable MySQL support.
Are you running on Linux or Windows? If Linux, what distribution?
First, thanks for getting back to me! I'm running RH 7.2. I had guessed that it had something to do with my PHP configration. PHP was installed using RPM (php4.0.6-7 and php-mysql4.0.6-7). I know there are updates to php, but there are so many dependancies that I may be better off uninstalling the RPM packages and getting the source and compiling it. Are there problems with the RPM installs of later versions?
I have a machine with the latest RPM updates installed and so far it's been ok. If you have the PHP RPMs from RH7.2 then you should already have the MySQL support...hmm...have you played with the php.ini at all?
Thanks for you insight and help! I'm finally getting back to this. I checked through my "php.ini" file and found these entries:
"; Enable the PHP scripting language engine under Apache.
engine = On"
and
"
; Directory in which the loadable extensions (modules) reside.
extension_dir = /usr/lib/php4"
and under the "Dynamic Extension"
extension=mysql.so
I wasn't sure how or where to find "phpinfo()"
If anyone coould help point me in the proper direction, I would appreciate it.
All it took was restarting the web server (httpd). It appears to be working like a champ now. Thanks so much for everyons help!
I'm not sure where to begin with the "php.ini," I'll go looking around and see what I can find. Is there anything in particular I need to be looking for in the ini file?
I may also try getting updates for RH 7.2.
Try looking at the phpinfo() report. There must be something like --with-mysql=[a dir] in it to work properly.
PM