mysql5 with php4



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
.



Relevant Pages

  • Re: Speed of PHP5, making PHP faster in general
    ... There were NO database queries or anything of the sort ... It took almost exactly TWICE as long to perform the the above loop ... We used the latest php5 beta for this ... >php4 - this really makes it unusable for us. ...
    (comp.lang.php)
  • Re: RHEL high percentage of processor time from system?
    ... > CPU states: cpu user nice system irq softirq iowait ... If the RHEL box is idling, ... So the database fills all the cache RAM with its stuff, ... IO, the BOINC stuff runs, poisoning the cache memories, and when the ...
    (comp.os.linux.misc)
  • Re: how to access oracle from php4
    ... with php4 already installed. ... Anyone with an advic on how to use oracle with php. ... You do not have to recompile PHP. ...
    (comp.lang.php)
  • Re: Speed of PHP5, making PHP faster in general
    ... PHP4 code that makes use of a lot of references ... Avoid putting data from the database if you can. ... > number of objects were created and and members were accessed, and php ... what tricks can I do to make either PHP faster? ...
    (comp.lang.php)
  • Re: Followup: USB cable, Xilinx XUP, EDK/ISE 7.1, Fedora Core 3
    ... only RHEL is officially supported. ... > Just making sure you have seen Xilinx solution records 18612 and 20762. ... > Note that you certainly have to recompile the drivers as described for ... whole drivers and tried even the jungo 7.0 version. ...
    (comp.arch.fpga)