"undefined mysql_Connect()" While using Eclipse on Mac OS X [message #62708] |
Wed, 12 December 2007 09:20 |
Eclipse User |
|
|
|
Originally posted by: sneha98.hotmail.com
Hi,
I am using OS X and have the following installed: MAMP, Eclipse (Europa).
I wrote a PHP program to use "mysql_connect()" and ran it under MAMP and
it seems to work fine. But however when I use the same program under
Eclipse, it fails with error "Call to undefined function mysql_connect()".
1) The phpinfo() below shows its compiled with "--without-mysql" option.
Is that the cause of the problem?
2) Which PHP is being used: under MAMP or PHP plugin under Eclipse?
3) I can't seem to find the php.ini file indicated here under
/usr/local/lib because there is no such dir. Which PHP.ini is being used
here?
4) There is no mysql.so file in the system. Do I need this file?
phpinfo() which gives:
PHP Version => 5.2.2
Build Date => Sep 2 2007 11:59:16
Configure Command => './configure' '--enable-memory-limit'
'--without-mysql'...
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File =>
/private/tmp/zend_debug/session24635.tmp/php.ini
PHP API => 20041225
PHP Extension => 20060613
Zend Extension => 220060519
...
extension_dir =>
/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non- zts-20050922
|
|
|
Re: "undefined mysql_Connect()" While using Eclipse on Mac OS X [message #63057 is a reply to message #62708] |
Thu, 13 December 2007 12:27 |
Eclipse User |
|
|
|
Originally posted by: dserodio.gmail.com
smantena wrote:
> Hi,
> I am using OS X and have the following installed: MAMP, Eclipse
> (Europa). I wrote a PHP program to use "mysql_connect()" and ran it
> under MAMP and it seems to work fine. But however when I use the same
> program under Eclipse, it fails with error "Call to undefined function
> mysql_connect()".
> 1) The phpinfo() below shows its compiled with "--without-mysql" option.
> Is that the cause of the problem? 2) Which PHP is being used: under MAMP
> or PHP plugin under Eclipse?
You can check it under Window > Preferences > PHP > PHP Executables
HTH,
Daniel Serodio
|
|
|
Powered by
FUDForum. Page generated in 0.03743 seconds