Why should I rely on PHPJabbers.com for all my PHP scripting needs? What do you offer me when buying some script?
  • Top quality scripts
  • Full demo before buying
  • Best pricing
  • Script customization
  • 7 days a week support
  • Installation support
  • Secure buying
  • File uploading with PHP

    posted on 2006-05-20 00:21:23
    Comments
    Roland posted on 2007-03-19 12:31:03
    Thanks. Nice Script!!!

    Zoran posted on 2007-03-02 18:09:40
    How can I specify which extensions can be uploaded? I want to allow only .gif and .jpg for example.

    Regards, Zoran

    stillhustlin posted on 2007-02-24 23:45:07
    can i just pay to get this done for me any takes just email me info@rugeninc.com thanks

    rahul posted on 2007-02-11 22:19:20
    this is really great Tutorial
    please tell me how can i upload using GET method..
    --------------------
    Veselin: you cannot upload files using GET method because via get you can only get filename and not its content. Also, when you specify the enctype for your uploading form it applies TO the POST data only.

    nirz posted on 2006-12-06 02:37:25
    This is great! Thanks guys.
    Can this script also replace or overwrite an existing file on the server/folder? Eg. If i have a file named "notes.txt" and i need to change the contents of this everyday, will the above script replace the "notes.txt" file in the folder every time i upload a new file by th same name, "notes.txt?"
    Thank you.
    ----------------------------
    Veselin: yes it will change the file. You may need to set the file permissions to 777 after the first upload so next time you upload the file it can overwrite the existing one.

    matteo24 posted on 2006-11-17 08:31:36
    hi ,really ineteresting...
    how can use the script please to create a page where users upload their photo and publish it in a page? ordered in lines for ex.
    waiting for answer..thank u!
    matteo 24
    -------------------------------
    PHPJabbers: unfortunately, we cannot provide free help besides the free examples that we have published on our web site. If you want something custom done please let us know and we will do it for reasonable fee.

    Karl Letcher posted on 2006-11-15 23:08:40
    Is there any way to strip spaces out of a file name or replace spaces in a file name with underscores before it is uploaded?
    ----------------------
    Veselin: you can use this
    $filename = preg_replace("/s/e" , "_" , strtolower($filename));

    Eddie posted on 2006-10-11 11:00:40
    Can I have the same email you sent to Daryl? I would like to get the image veri... going too.

    Thanks
    Eddie

    Daryl Isaacs posted on 2006-10-06 01:36:54
    This form I'm filling out now is exactly the type I'm after... I tried to add your image verification to my existing php form but I could'nt get it to work. Is it possible to get a copy of this form... obviously with the imagr verification

    regards
    Daryl

    -------------------------------
    PHPjabbers: we've sent you an email about it

    Eddie posted on 2006-09-16 15:45:48
    Thanks for the tutorial. does this script limit the file size it uploads?
    -------------------------------
    Veselin: you can use $HTTP_POST_FILES['filename']['size'] to find out file size.

    For example
    if ($HTTP_POST_FILES['filename']['tmp_name']>1000) {
       echo "File is larger than 1000 bytes and cannot be uploaded.";
    } else {
       upload......
    };

    Pages:   1 2 3
       
    If you have any additions, suggestions or modifications for this example please contact us or use the form below.
       
    Your name:
    Your email: (email address will not be posted on the web site)
    Comment:
    Verification