First you may need to look the phpinfo whether its enabled or not . Is it enabled ? Hari K T http://harikt.com/ --- On Thu, 30/4/09, sourav <sghosh246@xxxxxxxxx> wrote: From: sourav <sghosh246@xxxxxxxxx> Subject: Call to undefined function: mysql_connect() during execution in PHP command line To: php-objects@xxxxxxxxxxxxxxx Date: Thursday, 30 April, 2009, 12:07 PM Hi All, Can someone help me out in fixing the issue. While I am running a php script through browser, it runs smoothly withourt error and giving desired result. But when I run the script from unix console, it throws error "Call to undefined function: mysql_connect( ) .. .." and doesn't give the desired result. Thanking You, Regards, Sourav [Non-text portions of this message have been removed] Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! Edition http://downloads.yahoo.com/in/firefox/ [Non-text portions of this message have been removed]