You are here: mysql5 with php4 « All PHP « IT news, forums, messages
mysql5 with php4

Posted by Eric on 07/13/06 16:14

I want to upgrade my database to 5.0 while using php4
we have been using php4 provided by RHEL, which i don't want to
recompile myself right now, because i'll have to do it everytime there
is an update.

What i did was instal mysql's devel compat and client packages.
Then got the source rpm from rhel.

cd /usr/src/redhat/BUILD/php-4.3.2/ext/mysql/
phpize
../configure --with-mysql=/usr
make
cp ../modules/mysql.so /usr/lib/php4/

i wrote a test script, and get the following.
[13-Jul-2006 12:06:23] PHP Fatal error: Call to undefined function:
mysql_connect() in /root/my5/phpmytest.php on line 2

[13-Jul-2006 12:07:44] PHP Warning: Unknown(): Unable to load dynamic
library '/usr/lib/php4/mysql.so' - /usr/lib/php4/mysql.so: undefined
symbol: php_sprintf in Unknown on line 0

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация