|mysql_connect undefined when running script from Eclipse [message #777083]
||Mon, 09 January 2012 15:11
| Francisco Marzoa
Registered: January 2012
I am getting an error of mysql_connect function undefined when running a command line script for Eclipse, both on debugging or run mode (I have substituted the full path by ...):
PHP Fatal error: Call to undefined function mysql_connect() in .../mysql.inc.php on line 8
Executed directly from command line, the script works without this problem.
This is on an Ubuntu 11.10 box.
I have set on Preferences/PHP/PHP Executables the following parameters:
Executable path: /usr/bin/php
PHP ini file: /etc/php5/cli/php.ini
At first I did not included the ini file, but then I did to check if it solves the error without success.
Thanks a lot in advance,
Powered by FUDForum
. Page generated in 0.02313 seconds