Click here to Skip to main content
12,890,114 members (43,900 online)
Click here to Skip to main content
Add your own
alternative version


8 bookmarked
Posted 9 Apr 2012

PHP SimpleSix Uploader

, 9 Apr 2012 CPOL
Rate this:
Please Sign up or sign in to vote.
A simple file uploader written in PHP.


PHP SimpleSix Uploader is a simple file uploader written in PHP, can be used in different modules and it can be designed according to your needs.

Using the code

Here is some of the PHP code:


    $file = $_FILES['file'];
    $name = $_POST['name'];
    $path = $_POST['path'];
    $upload = $_POST['upload'];



                if(strlen($path) > 5){

                    move_uploaded_file($file['tmp_name'], $path.$name);
                    echo "<font color=green>File successfully uploaded!</font>";
                } else 
                    echo "<li> Please enter the path!";
            } else 
                echo "<li> Please put the file name!"; 

        } else 
            echo "<li> No file to upload";

        echo "<br /><hr />";



This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Agon Avdimetaj
CEO Graphsix Studio
Albania Albania
CEO / Web & App Developer @ Graphsix Studio.
Studying Computer Engineering @ Faculty of Electrical and Computer Engineering, UP.

You may also be interested in...

Comments and Discussions

AnswerManuel Pin
Member 114252273-Feb-15 18:39
memberMember 114252273-Feb-15 18:39 
Questionmake more simpler Pin
mukunda panchal14-Nov-12 7:45
membermukunda panchal14-Nov-12 7:45 
It works when you put some HTML code with the script. Sniff | :^) If any newbie comes to this post, then this article is 100% helpful to that newbie. Smile | :) Your contribution is really appreciable.Thumbs Up | :thumbsup: Good work. Buddy. And Keep it up. Smile | :)
GeneralMy vote of 5 Pin
noli kollqaku22-May-12 2:47
membernoli kollqaku22-May-12 2:47 
GeneralMy vote of 2 Pin
semaphore16-May-12 22:37
membersemaphore16-May-12 22:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170424.1 | Last Updated 9 Apr 2012
Article Copyright 2012 by Agon Avdimetaj
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid