tidal Posted December 19, 2006 Share Posted December 19, 2006 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 8Can 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 8Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.