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

Posted by Marcus Schwarz on 05/03/07 01:46

Geevaa schrieb:

> In the web browser,Everything works good and
> I am not getting the error or die message.
[...]
> But i am receiving this error in terminal.

php supports different config-files for different executables. if you
receive this error in terminal you are starting the cli version of php
which uses, by default 'php-cli.ini' configuration file, while the
php-exe running in your browser uses 'php.ini' (eg)

so have a look if you are using different configuration files.
mysql-support seems to be disabled in you php-cli.ini

you also should have a closer look at
http://de.php.net/manual/en/configuration.php
"If php-SAPI.ini exists (where SAPI is used SAPI, so the filename is
e.g. php-cli.ini or php-apache.ini), it's used instead of php.ini. SAPI
name can be determined by php_sapi_name()."

m*
--
"Wer mit dem Strom schwimmt, erreicht die Quelle nie."
Peter Tille

 

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

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