Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Web Server Configuration _ why cant upload

Posted by: slayerdeath666 Apr 29 2009, 01:45 PM

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

Posted by: pandy Apr 29 2009, 02:17 PM

Maybe they disallow certain file types. Not unusual and understandable for a free host.

Posted by: slayerdeath666 Apr 29 2009, 02:22 PM

do you know a webhost where i can upload my dating scripts to test them?

Posted by: pandy Apr 29 2009, 02:41 PM

If you pay for hosting, just about anyone. Free I don't know. I don't keep tracks.

Posted by: slayerdeath666 Apr 29 2009, 02:42 PM

what if i pay about anyone?

Posted by: pandy Apr 29 2009, 03:19 PM

What I said above. Just about any paid host.

Posted by: slayerdeath666 Apr 30 2009, 01:18 PM

so only if i pay i can upload that script?

Posted by: pandy Apr 30 2009, 01:22 PM

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.

Posted by: Cookie Creative Aug 17 2009, 05:30 AM

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.


Posted by: Flycakes Mar 26 2010, 04:45 AM

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

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)