PDA

View Full Version : File Upload


Mike
02-15-2006, 07:33 AM
I created a page in php to upload files to my hosting account... the script works on my testing server but doesn't on bluehost... is there something that I need to add to my hosting package or what do I need to do to get this script to work...any help appreciated...Mike.

petcampbell
02-15-2006, 12:55 PM
Its always helpful to have a bit more detail.
Likely if you uploaded the file, check that your permissions are set , the file is showing the extension .php
If that isnt it,tell us what kind of script it is..

vegasgwm
02-16-2006, 03:22 AM
Yes, more detail would be helpfull, like error messages? or showing (portions) of the script. Permissions is also my first guess, but also, is your test server setup like the one on bluehost(file structure etc)?

bobdog
02-16-2006, 05:59 PM
I have a few sites hosted by bluehost where I use a php form upload.

You have to call bluehost tech support, tell them what you are doing, and they will set the permissions and file upload maximum size. Some files get pretty big, like .tif and such, so make sure it can handle a good chunk of upload.

danMcC
03-20-2006, 12:36 PM
Is there a standard limit that is imposed: I have a php script for uploading, it gets an error :
PHP Warning: upload_max_filesize of 2097152 bytes exceeded -

So is this the limit we are referring to and that support can raise ?

bobdog
03-21-2006, 10:20 AM
Yes, bluehost has to set the upload max to a higher number.

Canon
03-28-2006, 03:53 PM
you can set the upload max yourself through a phpini file.

I made a text file and named it to 'php.ini' and put it in my root directory.
Contents of file:

max_execution_time = 2400
post_max_size = 128M
upload_max_filesize = 128M

Hopefully that should raise it!

zodiac
03-29-2006, 10:46 AM
you need to put the php.ini where the script is.

to see if it overrided the php.ini settings.
make a phpinfo.php file with <?php

phpinfo();

?>
goto www.domain.com/phpinfo.php

sibudas
03-28-2008, 12:06 AM
1.Upload using your ftp and not from the web-interface of bluehost
2.If you are using forrms in the php script then be sure to remove the magic quotes(I had this problem earlier!)
Let me know the exact error that you are getting with your php script,then I may be able to help you out.