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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Apr 2005
    Posts
    388
    Thanks
    0
    Thanked 0 Times in 0 Posts

    problems with fopen

    howdy,
    I am having a problem opening/creating a file for write, using
    Code:
    $connectfile = "connect".$db_name;
    $connectfile .= ".php";
    if (!$fp = fopen($connectfile, 'w')) {
             echo "Cannot open file ($connectfile)";
             exit;
       }
    I have the permissions set to 777 to make sure that isn't the problem, anybody see a problem here that I am missing?

    tia.

  • #2
    Regular Coder
    Join Date
    Apr 2005
    Posts
    388
    Thanks
    0
    Thanked 0 Times in 0 Posts
    nevermind, it was a path problem.


  •  

    Posting Permissions

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