The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> why cant upload
slayerdeath666
post Apr 29 2009, 01:45 PM
Post #1


Advanced Member
****

Group: Members
Posts: 100
Joined: 14-December 08
Member No.: 7,337



he....why i cant upload my rar file to 000webhost.coM? it say max size is 5mb im uploading 2.7mb and after 5 min says too big file
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
Flycakes
post Mar 26 2010, 04:45 AM
Post #2





Group: Members
Posts: 6
Joined: 25-March 10
Member No.: 11,492



try this. http://www.wampserver.com/en/ and run your server free from home.

http://www.youtube.com/watch?v=-rKDhZJignU

*************
file upload code
*************
<HTML>
<b>File Upload</b>
<form enctype="multipart/form-data" action="upload.php" method="POST">
<input name="uploaded" type="file" /><br />
<input type="submit" value="Upload" />
</HTML>

******
.php
******
<?php
$target = "upload/";
$target = $target . basename( $_FILES['uploaded']['name']) ;
$ok=1;
if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target))
{
echo "The file ". basename( $_FILES['uploaded']['name']). " has been uploaded";
}
else {
echo "Sorry, there was a problem uploading your file.";
}
?>

this assumes theres a folder in your webserver called upload and will place a browse button and upload button on your site and upload it into upload folder

hope this helps someone
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 24th April 2024 - 08:39 AM