Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Jan 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    HELP! failed to open stream: Permission denied in

    problem solved thanks all that tryed to help
    Last edited by Greg748; 01-20-2008 at 12:13 PM. Reason: problem solved

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by Greg748 View Post
    hi im trying to set up a simple text counter found here
    Code:
    http://www.hotscripts.com/Detailed/68981.html
    i have it all set up and all then i get this error
    Code:
    Warning: fopen(visits.txt) [function.fopen]: failed to open stream: Permission denied in C:\Inetpub\vhosts\mortalracing.com.au\httpdocs\counter.php on line 10
    
    Warning: fwrite(): supplied argument is not a valid stream resource in C:\Inetpub\vhosts\mortalracing.com.au\httpdocs\counter.php on line 11
    
    Warning: fclose(): supplied argument is not a valid stream resource in C:\Inetpub\vhosts\mortalracing.com.au\httpdocs\counter.php on line 12
    can anybody help? i am hosted with
    Code:
    http://www.netlogistics.com.au/
    thanks in advance
    php is in safe mode, you can use fopen, fwrite and fclose.

    best regards

  • Users who have thanked oesxyl for this post:

    Greg748 (01-20-2008)

  • #3
    New to the CF scene
    Join Date
    Jan 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    php is in safe mode, you can use fopen, fwrite and fclose.

    best regards

    how can i turn off safe mode?
    Last edited by Greg748; 01-20-2008 at 10:48 AM. Reason: bad spelling

  • #4
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by Greg748 View Post
    how can i turn off safe mode?
    from php.ini, but the problem is that you probably can't( you have no access to php.ini), your host can, but won't do it for security reason.
    sorry, you must change the script, I guess.

    PS: I'm wrong or you pay $400 /mo, for this service? whoooow

    best regards
    Last edited by oesxyl; 01-20-2008 at 11:17 AM.

  • #5
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,864
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Quote Originally Posted by Greg748 View Post
    Code:
    Warning: fopen(visits.txt) [function.fopen]: failed to open stream: Permission denied in C:\Inetpub\vhosts\domain.com.au\httpdocs\counter.php on line 10
    
    Warning: fwrite(): supplied argument is not a valid stream resource in C:\Inetpub\vhosts\domain.com.au\httpdocs\counter.php on line 11
    
    Warning: fclose(): supplied argument is not a valid stream resource in C:\Inetpub\vhosts\domain.com.au\httpdocs\counter.php on line 12
    [CODE]
    What are the permission bits (chmod) of visits.txt file?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #6
    New to the CF scene
    Join Date
    Jan 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    no no i dont pay $400 a month im not using a dedicated server im using one of his shared servers

    anyway i opend a support ticket and he done it for me

  • #7
    New to the CF scene
    Join Date
    Jan 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Code:
    What are the permission bits (chmod) of visits.txt file?

    they were all set right it was just safe mode was enabled on my host i talked to my admin and he fixed it up for me


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •