Hi all,
I am facing a very strange problem which I myself cannot sort out. Let’s hope anyone in this forum can come up with a solution.
My platform is Linux and I am working on a project in PHP 4.3.4 with MySql 4.0.16 as the backend and Apache/2.0.48. I want to retrieve some email addresses from the backend and create a text file with the addresses.
To accomplish the above, I am using the PHP function fopen() to open the file, fwrite() to write in the file and fclose() to finally close the file.
However, when I am executing the page, the following warning crops up as a result of which the text file is not being created:
Warning: fwrite(): supplied argument is not a valid stream resource
Warning: fclose(): supplied argument is not a valid stream resource
However, please note that when I am executing the same page in Windows platform, it is working as expected without any problems and giving the desired output.
My study of the problem is that any file operations are not being permitted on the Linux server.
Can anyone please suggest any outcome?
Any help in this context will be highly appreciated.
Thanxs.