Forums

PHP

This topic is locked

UltraDev and Phakt

Posted 09 Nov 2001 23:07:44
1
has voted
09 Nov 2001 23:07:44 Larry Cooperman posted:
I installed the PHakT UD extension and everything was going well. The mySQL database was recognized on my Linux/Apache box. However, in my first attempt, I got this error message on my remote server:

Fatal error: Call to undefined function: mysql_pconnect() in /home/users/admin/web/adodb/adodb-mysql.inc.php on line 114

What do you think? Why isn't mysql_pconnect() recognized as a defined function?

Thanks for any help you can give.



Replies

Replied 09 Nov 2001 23:42:23
09 Nov 2001 23:42:23 Keith Slater replied:
Im not positive but I think this will fix it:

Find the line:

error_reporting = E_ALL; display all errors, warnings and notices

and put a semi-colon in front of it.

Find the line:

;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR

(it's just above the previous line) and remove the semi-colon.

Now find the line:

magic_quotes_gpc = Off

and change it to:

magic_quotes_gpc = On

Then Save the file and it should work.



Keith Slater
Replied 10 Nov 2001 18:44:46
10 Nov 2001 18:44:46 Bruno Mairlot replied:
Keith,

you forgot to mention that Larry should edit the PHP.ini file, and not his file.

--- Better to die trying, than never try at all ---
Replied 11 Nov 2001 10:00:29
11 Nov 2001 10:00:29 chief monkey replied:
try running phpinfo()
and see if MySQL support is compiled in/activated.

George



Everybody has got to be somewhere
Replied 11 Nov 2001 22:58:35
11 Nov 2001 22:58:35 Larry Cooperman replied:
In the configure commands, 'with-mysql=shared' is listed. Is there something else I should look for? You can see the phpinfo() listing at 206.110.2.20/~admin/phpinfo.php

Thanks.

Larry
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
try running phpinfo()
and see if MySQL support is compiled in/activated.

George



Everybody has got to be somewhere
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Replied 12 Nov 2001 06:34:44
12 Nov 2001 06:34:44 Larry Cooperman replied:
Unfortunately, this didn't work either. What about the argc and argv variables? Should these be on, despite the performance hit?

Thanks in advance.

Larry

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Im not positive but I think this will fix it:

Find the line:

error_reporting = E_ALL; display all errors, warnings and notices

and put a semi-colon in front of it.

Find the line:

;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR

(it's just above the previous line) and remove the semi-colon.

Now find the line:

magic_quotes_gpc = Off

and change it to:

magic_quotes_gpc = On

Then Save the file and it should work.



Keith Slater

<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Replied 12 Nov 2001 13:04:58
12 Nov 2001 13:04:58 chief monkey replied:
Larry,

You don't seem to have MySQL installed or configured.
In your phpinfo() you should see a MySQL section not just in the configure commands.
Have you tried installing MySQL again.
Couple of suggestions in the meantime
1. Upgrade to PHP 4.0.6
2. Take down your phpinfo() page as it gives out more information than you may wish to share.

George

Everybody has got to be somewhere

Edited by - chiefmonkey on 11/12/2001 13:18:00
Replied 13 Nov 2001 01:45:19
13 Nov 2001 01:45:19 Larry Cooperman replied:
George,

I took down the phpinfo page from my site as you suggested. I also finally found the problem. In the php.ini file, the mysql dynamic extension was commented out.

Now phpinfo reveals the mysql section and my PHakT UltraDev extension works. Thanks for your help.

Larry
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Larry,

You don't seem to have MySQL installed or configured.
In your phpinfo() you should see a MySQL section not just in the configure commands.
Have you tried installing MySQL again.
Couple of suggestions in the meantime
1. Upgrade to PHP 4.0.6
2. Take down your phpinfo() page as it gives out more information than you may wish to share.

George

Everybody has got to be somewhere

Edited by - chiefmonkey on 11/12/2001 13:18:00
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Reply to this topic