Hello
I have written my own logging mechanism that allows me to send debug messages to a local file.
That worked fine on Windows.
I am now moving my application to a Linux environment and would like to know how can I write my code so that it will work seamlessly on both operating system.
Each operating system defines its file structure differently.
Can I check on what operating system I am running and refer the debug message to the appropriate log file?
Or maybe there is a known (not to me) logging system in PHP that I could utilize. That system would generate log files regardless of the operating system it is used on.
regards
David