SOLVED..Re: [LIP] Newbie: Error with PHP: undefined function: mysql_connect()
Sanjay Arora <[email protected]>
| Newsgroups | gmane.user-groups.linux.india.programmers |
|---|---|
| Organization | Transcontinental Impex Pvt. Ltd. |
| Message-ID | <[email protected]> |
On Fri, 2005-11-25 at 11:24 +0530, Rohan R. Almeida wrote: > On 11/25/05, Sanjay Arora <[email protected]> wrote: > > Please help. Newbie running Centos 4.2 with mySQL & PHP (binary RPM > > install, php shows it was compiled with --with-mysql=shared) as per versions given below. > > Maybe you should check your php.ini file and also > the /etc/php.d directory. For newbies like myself...searching the archives. Solved the issue. Redhat & compatible distros including Centos compile Apache with support for various softwares. However, actual support is provided through plugin .so modules which are to be installed separately. In my case it was php-mysql rpm, which I had not installed, so checking php, I find that support is there & checking mysql I find that it is working perfectly, but I could not connect them as the supporting .so module was missing which was installed using the php-mysql rpm. Same solution will apply in many cases of interoperability of various modules with PHP. BTW, I find that mysql_connect has been depreciated for mysql_real_connect from version 5 or so. Ciao. Sanjay. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click