Jump to content

HuggieBear

Members
  • Posts

    1,899
  • Joined

  • Last visited

Posts posted by HuggieBear

  1. OK, I have access to my Windows box now.  I've just tested your code on a directory with spaces and it works fine.

     

    Your error indicates a permissions problem.  Check the permissions first, if that doesn't work, use MMC to check that the file handle isn't still open.

     

    Regards

    Huggie

  2. Ober,

     

    Do you need to escape your backslashes in the str_replace() if they're in single quotes?  Personally, I'd replace them with forward slashes.

     

    Are you getting any errors output?  This should be simple to fix, but I don't have my windows server running at the moment to test.

     

    Regards

    Huggie

  3. if ($row['Key1'] == "NO") {
       header ("Location: Welcome.php?AdminID=$AdminID&msg=Sorry, you do not have access to that page.");
    }

     

    BTW. The above code will never be invoked as your initial query only returns rows where Key1 = 'YES'.

     

    Edit: In fact, $row['Key1'] is never even set as it's not in the columns requested.

  4. <?php
    
    // $_GET is an array that contains everything passed in via the querystring
    print_r($_GET);
    
    /*
       The above code is here for debugging purposes
       So you can see what you're being passed in each
       time.  Once you're confident, remove it.
    */
    
    // Logic goes here.  I have an if inside the foreach, you can have a case if you prefer.
    foreach ($_GET as $key => $value){
       if ($key = 'username'){
          // username code
       }
       elseif ($key = 'email'){
          // email code
       }
    }
    ?>

  5. OK, I think we're getting somewhere.

     

    How do you access files on the data server.  Does the webserver have access to the data server on the network.  Is the data server an FTP server/web server?

     

  6. The server can't see anything on the client regardless of the OS.

     

    Are you saying that from php (server) you want to be able to see the contents of a users c:\temp directory (client) for example?

     

    If so then it can't be done with PHP.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.