Jump to content

kobel4k3r5

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Posts posted by kobel4k3r5

  1. How would I go to make a directory login? Let's say I am making an admin panel at http://www.mysite.com/adminpanel

    Instead of having each file check for sessions, is it possible to make that entire directory to check for session before displaying the page regardless of what page they are trying to access if that page is in the /adminpanel directory.
  2. Well, yea. I'm just using is_uploaded_file() to check if the file has been uploaded to the temp dir first but it always fail to do so it. If i use move_uploaded_file(), it would return true since the file is not uploaded into the temp folder yet to even move the file to any location.
  3. hi, im trying to make a file upload script but it doesn't seem to be work. here's what i got. The test messages is only outputting a failed one.

    -----------------------------------------
    [u]php.ini setup[/u]
    upload_tmp_dir = /var/www/tmp

    -----------------------------------------
    [u]upload form[/u]
        <form method="post" action="upload.php" enctype="multipart/form-data">
        <input type="hidden" name="MAX_FILE_SIZE" value="30000" />
        Choose: <input type="file" name="userfile" />
        <input type="submit" value="Upload" />
        </form>
    -----------------------------------------
    [u]upload.php[/u]
    [code=php:0]
    <?

    $file_name=$_FILES['userfile']['name'];
    $temp_name=$_FILES['userfile']['tmp_name'];

    if(is_uploaded_file($temp_name)) {
      echo "tmp uploaded"; //testing msg
    }
    else { echo "tmp not uploaded"; } //test msg


    ?>
    [/code]
  4. how would i go making a friends list? i have somewhat of a way in mind but I'm not sure if this way will be efficient. it would use each row as a user, and each row will have lots of columns and some of the columns will be buddyid1, id2, etc..
  5. Does register_globals catches $_POSTS?

    example: i have a login form

    username: [            ]
    password: [            ]

    [submit] [reset]

    and the user and pass is sent as $_POST['username'] and $_POST['password']. would users be able to login by just submitting those values within the URL?
  6. Hi, I'm new here but anyways, I need some help. I'm not sure how register_globals work exactly.

    If I'm correct, when register_globals is on, passing a variable in the URL will default it to that example:

    http://www.mywebsite.com/?id=4 will make the $id set to 4. But does can users input $_POST variables or $_SESSION variables through the URL also? Because I have a website that is like http://www.mywebsite.com/profile.php?id=65 and changing the id to another number goes to their profile.php page, and if they would do the same just for the login page, would $_POST datas be catched? like...

    http://www.mywebsite.com/login.php?username=billy&password=bob
×
×
  • 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.