Page 1 of 1

Running PHP with and without php.ini

Posted: Mon Dec 08, 2003 2:26 pm
by xgeng
Hi

I have compiled and intalled PHP4.3.4 on a Linux box with configuration options for XML parsing and tree building. Without using php.ini file my codes are working fine. When I use php.ini, I could not get my XML output at all. I have compared the phpinfo outputs for both with php.ini and without php.ini scenarios. There are some differences between the php info outputs. However, I still can not ping point what is wrong with using php.ini.

Thank you for your help!

Sincerely

Posted: Tue Dec 09, 2003 2:19 am
by twigletmac
What are the differences? Have you configured the php.ini to account for those differences?

Mac

Posted: Tue Dec 09, 2003 5:15 am
by Pyrite
Just curious, how can you not use php.ini ?

Posted: Tue Dec 09, 2003 5:58 am
by xgeng
twigletmac wrote:What are the differences? Have you configured the php.ini to account for those differences?

Mac
I have tried as much as I can to match up the differences. Some phpinfo information are not straight due to the php.ini. This issue is quite tricky now.

Thanks

Posted: Tue Dec 09, 2003 6:02 am
by xgeng
Pyrite wrote:Just curious, how can you not use php.ini ?
If you run PHP as CGI application and without php.ini in its searching directory, the PHP will use default information partially from the compilation.

Thanks!

Posted: Tue Dec 09, 2003 6:29 am
by twigletmac
What are the differences that you have not been able to correct in the php.ini?

Mac

Posted: Tue Dec 09, 2003 8:11 am
by xgeng
twigletmac wrote:What are the differences that you have not been able to correct in the php.ini?

Mac
Hi I turned on the PHP error display key (display_errors = on) in the php.ini file to debug what was really wrong. It seems that the source of the problem is from a missing PEAR.php in the include directory.

Thanks!

Xiaoyuan