Can anyone give me a link for guide/site that teaches how to make a basic upload? With password protected.
I just want to have:
Person Uploads By web>ftp server =P
Printable View
Can anyone give me a link for guide/site that teaches how to make a basic upload? With password protected.
I just want to have:
Person Uploads By web>ftp server =P
I think would be nice to have php>ftp script.
if need, got a very primitive upload, for saving files directly to the www dirs.
uploader.html
uploader.php:PHP Code:<form enctype='multipart/form-data' action="uploader.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000000" />
Choose a file to upload:
<input type=file name=uploadedfile /><br />
<input type=submit name=press value=Upload />
</form>
subdir uploads/ must exist.PHP Code:<?php
$target_path = "uploads/";
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded";
** else{
echo "There was an error uploading the file, please try again!";
**
?>
it's quite primitive. I had seen a lot scrips on the net for managing files, but the source was to hard to understand for me ;)
damn, forgot about myWebFTP. very nice php script for FTP site manilpulation/file managing/etc. it's shareware, but I got retail if needed ;)
Thanks man, so helpful. Ill try now.
(Its just for me and Rish and a few other people)
Ill try the script, then try that shareware. ;)
edit: script wont work... giving error about line 8.
ill try the other one then try the script again.
Make sure to replace the **'s with closing brackets "**" - for some reason Ragezone filters all closing brackets..
Anyway, why not simply install an FTP server? Just as easy... :)
Otherwise there are plenty of FTP PHP upload forms available if you google for them.
I have an ftp server, cept the b*****s only allow 1 login...Quote:
Originally Posted by FragFrog
So i just want to let a few people upload to it ;)
Get G6FTP / BulletProof FTP and crack it :D
Mr.X use this easy php script.
http://www.hotscripts.com/Detailed/53829.html
Hope it works
that's not for ftp.
Mr.X, is that script working for you that I have sent yesterday?
No, I think its my fault.
There is too many problems with this host, im going to get the money back thing.
edit:
ok, now it works fine :)
Ill try that script again, thank you so much for everyone's help!
edit2:
Lexx, that script works 100%. ThankYouSoMuch!