PDA

View Full Version : My Php Upload Script Dont Work



gungrave
04-06-2004, 02:38 AM
this is what im using. link (http://www.zymic.com/main.php?v4=php/upload.php)

EDIT:
i get this error:

Warning: copy(Upload/av-56928.gif): failed to open stream: No such file or directory in D:\gungrave\doc\upload.php on line 4
Cannot upload files.

B)

Ariel_001
04-06-2004, 02:54 AM
In your server you have to set permission of the folder Upload to 777

You may not have to that with your server but make sure you have a Upload folder were the script is.

try it out... *REMOVED* My schools admin will be pissed at me if you guys make me go over my limit. Sorry.

I will put somewere else.

gungrave
04-06-2004, 03:06 AM
Originally posted by Ariel_001@6 April 2004 - 02:54
In your server you have to set permission of the folder Upload to 777

You may not have to that with your server but make sure you have a Upload folder were the script is.

try it out... (link edited out)
thanks it works now :)
just made a folder called upload.
:D

Ariel_001
04-06-2004, 03:10 AM
good. Did you upload a pic bender 3.jpg?. post/pm me a link when your done. i wanna to see.

gungrave
04-06-2004, 03:50 AM
Originally posted by Ariel_001@6 April 2004 - 03:10
good. Did you upload a pic bender 3.jpg?. post/pm me a link when your done. i wanna to see.
yea a did lol.

muchspl2
04-06-2004, 04:48 AM
check this out
http://celerondude.com/index.php?a=s&id=1

gungrave
04-06-2004, 05:26 AM
Originally posted by muchspl2@6 April 2004 - 04:48
check this out
http://celerondude.com/index.php?a=s&id=1
:) nice but ill stick with my and do some work to it.

ill post a screen shot of it done when its up and working :)

shn
04-06-2004, 05:48 AM
Why not give them their own file manager (http://www.invisionfilemanager.com/) while your at it. :lol:

gungrave
04-06-2004, 10:19 AM
Originally posted by shn@6 April 2004 - 05:48
Why not give them their own file manager (http://www.invisionfilemanager.com/) while your at it. :lol:
:wacko:

gungrave
04-06-2004, 10:20 AM
<body bgcolor="#000000"><form action="upload.php" method="post" enctype="multipart/form-data">



<input type="hidden" name="MAX_FILE_SIZE" value="1000000">
<font color="#FFFFFF">Select your file&#39;s

</font>
<input type="file" name="userfile">


<input type="file" name="userfile">


<input type="file" name="userfile">


<input type="file" name="userfile">


<input type="file" name="userfile">


<input type="file" name="userfile">


<input type="file" name="userfile">


<input type="submit" value="Upload&#33;">



they all dont upload :(

h1
04-07-2004, 02:10 AM
Because they&#39;re all being passed as &#036;_FILE[&#39;userfile&#39;]. ;)

And you should use the maximum post variable in php.ini, not a hidden input. :)