Hello guys,
I have a problem in php fopen()
fopen() fails. It doesn't open the file for writing. The error shown follows:
Warning: fopen(test.enc): failed to open stream: Permission denied in /home/mark/public_html/mmmm/ssss.php on line 27
Another script (in another dir) also doesn't work.
using the page http://something.com/mmmm/something.html I am trying to save encrypted text to a file which I will decrypt and use on another script.
out of several (about 20 to 30 times) tries, it created the file (test.enc) only once. I thought it creates only if the destination file exists, but its not the case. (i am calling fopen() in "w" mode, so it should create the file if it doesn't exist)
but in any case the file is not created as the fopen() fails. (i wonder how it created at that time)
how to test PHP is not fully configured and/or tested? any ideas would be higly appreciated.
cPanel.net Support Ticket Number:



LinkBack URL
About LinkBacks
Reply With Quote








