Jump to content
xisto Community
Sign in to follow this  
SoCalAztec

Php File Upload Uploaded PHP URL?

Recommended Posts

Depends on where you put the file. If you put it in the public_html folder or the www folder it would be coocoocheezy.trap17.com/filename.php It is the same for an html file just you type php at the end instead of html.

Share this post


Link to post
Share on other sites

Yeasr ago I found example of upload php script and change it.
Now its my own php script,
which store uploaded files from any users.

<?$dir = "up/";echo ("$userfile_name");if(!empty($userfile)){if (is_uploaded_file($_FILES["userfile"]["tmp_name"])) {$res = move_uploaded_file($_FILES["userfile"]["tmp_name"], $dir.$_FILES["userfile"]["name"]);if ($res){ echo ("OK");}else{ echo ("OOPS");}}} else {echo ("<form action=edit.php method=post enctype=multipart/form-data><input type=hidden name=act value=upload>Select file: <input type=file name=userfile> <input type=submit value=\"UPLOAD\"></form>");}?>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.