php and apache

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Guy
Forum Commoner
Posts: 53
Joined: Sun Jan 12, 2003 3:34 am

php and apache

Post by Guy »

I use redhat 8 with apache 2 and php4.2.2 that were installed with the Linux.
when I try to use mysql_connect() I get
Call to undefined function: mysql_connect()
although in php info in the configure command I have "with-mysql"
and mysql appears in dbx under supported databases
so why it's not working?
Thanks
Guy
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

you probably need to install a php_mysql-package from your distribution-cd
User avatar
Guy
Forum Commoner
Posts: 53
Joined: Sun Jan 12, 2003 3:34 am

im new to linux -

Post by Guy »

can you explain in more details?
how to add a package ?
Guy
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

don't know much about readhat but most likely http://www.redhat.com/docs/manuals/linu ... l-rpm.html is what you're looking for.
The php_mysql-package probably hides somewhere in a network, development or web section (or a completly different location ;) )
User avatar
Guy
Forum Commoner
Posts: 53
Joined: Sun Jan 12, 2003 3:34 am

thanks so far, so...

Post by Guy »

i've downloaded the rpm from
http://rpmfind.net/linux/RPM/redhat/8.0 ... .i386.html
and installed it.
i got a warning (btw - how am i suppose to use the md5?)
and it seemed to complete the instalation,
but no mysql.so was generated.
any ideas?
Thanks
Guy
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

the warning-message was? Did you test the installation?
But as mentioned: I don't know much about readhat
Post Reply