How can I make sure that this path:
new Zend_Log_Writer_Stream(APPLICATION_PATH . 'logsapp.log')
works both on linux and on windows?
In Linux, the path separator is /. In Windows, it is either or /. So just use forward slashes and you will be fine.
/
APPLICATION_PATH . '/logs/app.log'
1.4m articles
1.4m replys
5 comments
57.0k users