Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    151

    Default PHP fopen() fails

    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:
    Thanks,
    Mark Waugh

  2. #2
    Member Jemshi's Avatar
    Join Date
    Sep 2003
    Location
    India
    Posts
    217

    Default

    nobody has got write permission at the other end ?

    cPanel.net Support Ticket Number:
    Jemshad O K
    Sys Admin
    Bobcares.com
    http://www.poornam.com
    Winners don't do different things. They do things differently

  3. #3
    Member
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    151

    Default

    Jemshi,

    Thank you for the help.

    nobody has read permission and i don't understand what do u mean by other end ? can you please elaborate so that it will be very helpful for me and i can explan my clients. where do i check. i don't have any idea about it.

    Thank u once again.

    cPanel.net Support Ticket Number:
    Thanks,
    Mark Waugh

Similar Threads & Tags
Similar threads

  1. PHP 5.2.10 - fopen() fails
    By handsonhosting in forum cPanel and WHM Discussions
    Replies: 24
    Last Post: 07-15-2009, 07:30 PM
  2. security php fopen chmod 777
    By skyshine in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-13-2005, 11:19 AM
  3. Does php fopen(url) use caching proxy?
    By RS-190737 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-05-2005, 06:59 AM
  4. how do i compile php with fopen()
    By Haloweb in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-18-2005, 01:15 AM
  5. PHP 4.3.2 & fopen()
    By ukhost in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 10-13-2003, 07:45 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube