I want to create a file failure-log.log in a specific directory and write to it. Already got the directory path from database. The path is like this:
D:/folder-one/folder-two/
And my PHP code is executing in another directory like this:
C:/apache24/crawler/admin/startService.php
How can I create the file and write to it?