Running PHP with and without php.ini

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
xgeng
Forum Newbie
Posts: 4
Joined: Mon Dec 08, 2003 2:26 pm

Running PHP with and without php.ini

Post 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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

What are the differences? Have you configured the php.ini to account for those differences?

Mac
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

Just curious, how can you not use php.ini ?
xgeng
Forum Newbie
Posts: 4
Joined: Mon Dec 08, 2003 2:26 pm

Post 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
xgeng
Forum Newbie
Posts: 4
Joined: Mon Dec 08, 2003 2:26 pm

Post 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!
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

What are the differences that you have not been able to correct in the php.ini?

Mac
xgeng
Forum Newbie
Posts: 4
Joined: Mon Dec 08, 2003 2:26 pm

Post 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
Post Reply