Help - Search - Members - Calendar
Full Version: why cant upload
HTMLHelp Forums > Programming > Web Server Configuration
slayerdeath666
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
pandy
Maybe they disallow certain file types. Not unusual and understandable for a free host.
slayerdeath666
do you know a webhost where i can upload my dating scripts to test them?
pandy
If you pay for hosting, just about anyone. Free I don't know. I don't keep tracks.
slayerdeath666
what if i pay about anyone?
pandy
What I said above. Just about any paid host.
slayerdeath666
so only if i pay i can upload that script?
pandy
NO! But I don't know what free hosts allow rar.

Unpack the thing and there shouldn't be a problem. What are you going to do with the rar on the server anyway? It's not like you can run the scrips(s) from in there.
Cookie Creative
You might also be using to much 'server time' allotted to your free account.
Redoubtably their will will be tight restrictions in place on a free account.

Flycakes
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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.