[quote]I have looked around on the internet for many ways of doing this and have been unlocky so far, the script that I have used most recently is:
echo openlog('PHP_Err: ', LOG_CONS | LOG_NDELAY | LOG_PID, LOG_USER)
or die (‘Syslog could not be opened’);
syslog ( LOG_INFO , “GO ON PRINT SOMETHING!!” );
…and thats not going to work. First of all you overlooked the fact that this logs messages using the system logger - this is a special operating system service - and those log files are not available to regular users.
It might be wise to read the PHP documentation. The function you want to use is actually:
error_log — Send an error message somewhere
You can either use 0 to have the message sent to STDERR (and appear in ~/logs/domain/http/error.log) or specify a file of your own.
Customer since 2000 openvein.org