You are here: Re: Strange fatal error in terminal « PHP SQL « IT news, forums, messages
Re: Strange fatal error in terminal

Posted by ZeldorBlat on 05/04/07 15:48

On May 2, 10:02 am, Geevaa <govivasa...@gmail.com> wrote:
> Hi group,
>
> My program is
>
> <?php
> mysql_connect('ns1','tdphp8','tdphp8')or die('connection error');
> print'hai';
> ?>
> ===========================================================
> my output is
>
> [tdphpadmin@conws60 ~/public_html/demo]$ php sql.php
> PHP Fatal error: Call to undefined function mysql_connect() in /
> home/
> tdphpadmin/public_html/demo/sql.php on line 2
> X-Powered-By: PHP/5.2.0
> Content-type: text/html
> ===========================================================
>
> In the web browser,Everything works good and
> I am not getting the error or die message.
> The string hai is displayed in the browser.
> Actually database connection is established and data,insertion data
> retrieval are successful
> But i am receiving this error in terminal.
>
> please help

Run php -i from the terminal and confirm the location of php.ini.
Make sure it's the same php.ini that's being used by the webserver.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация