Jump to content

PHP Error log format


tidal

Recommended Posts

Hi All,

I use Sun one web Server 6.1 SP6 as my web server and run as FastCGI mode (Web Server error log and PHP error log separates under FCGI Mode). In php.ini, I set the location of php error log file to:

error_log = "/i03_01/SUNWeb/https-www/logs/errors_php"

The following is my error logs (I use symbolic link to link the web content, therefore, the path of error file show as relative path):

[19-Dec-2006 18:07:19] PHP Warning:  mysql_connect(): Can't connect to MySQL server on 'hkpu42' (145) in ../connections/connect_hotnews.inc on line 2
[19-Dec-2006 18:07:19] PHP Warning:  mysql_query(): supplied argument is not a valid MySQL-Link resource in ./inc/get_all_data_e.inc on line 7
[19-Dec-2006 18:07:19] PHP Warning:  mysql_fetch_array(): supplied argument is not a valid MySQL result resource in ./inc/get_all_data_e.inc on line 8

Can i change the relative path to [b]absolute path?[/b]

The following is my desired error logs:

[19-Dec-2006 18:07:19] PHP Warning:  mysql_connect(): Can't connect to MySQL server on 'hkpu42' (145) in [b]/usr/web/connections/connect_hotnews.inc[/b] on line 2
[19-Dec-2006 18:07:19] PHP Warning:  mysql_query(): supplied argument is not a valid MySQL-Link resource in [b]/usr/web/inc/get_all_data_e.inc[/b] on line 7
[19-Dec-2006 18:07:19] PHP Warning:  mysql_fetch_array(): supplied argument is not a valid MySQL result resource in [b]/usr/web/inc/get_all_data_e.inc[/b] on line 8

Thanks.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.