Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » "undefined mysql_Connect()" While using Eclipse on Mac OS X
"undefined mysql_Connect()" While using Eclipse on Mac OS X [message #62708] Wed, 12 December 2007 09:20 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Aptana, PDT and WampServer
Next Topic:Open .php in Eclipse/PDT
Goto Forum:
  


Current Time: Fri Apr 26 06:06:12 GMT 2024

Powered by FUDForum. Page generated in 0.02724 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top