I really need to use ob_start with PHP in my code. So I have this:
ob_start("function123");
So inside function "function123" I have this:
file_put_contents("aaa.txt","xxxx");
However I cant find this file anywhere. The PHP script has 777 permission and file_put_contents is working just fine cause when I use it oustide of "function123" it works perfectly and the file appears right in the same path as the PHP script.
HOWEVER if I do this
file_put_contents("/main/folder/aaa.txt","xxxx");
It works. So does ob_start uses a different scope/path to create files? The strange thing is that if I use file_get_contents with relative paths it works exactly as exepected: the path is relative from the current PHP script path.