FORUMS: list search recent posts

PHP File Upload script

COW Forums : Web Design

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Dan DannerPHP File Upload script
by on Jun 26, 2009 at 7:48:11 am

I'm trying to make it so my web clients can upload all their materials for their website via a file upload on my website. I've been trying several different php scripts but they all work only 90%. One works but if the file size is over 1mb it won't work- even though I've specifically changed the script to accept 512 mb files.... the other one I tried works but it uploads the files into the wrong folder(even though I specified the correct one)and I can't delete them out of my ftp.... SO FRUSTRATING!!

So I'm looking for a simple php script for uploading files.. single or multiple I don't care... and progress bar so clients will know how much longer it'll take.

thanks for any help you can give!

Return to posts index

Dan DannerRe: PHP File Upload script
by on Jun 26, 2009 at 4:41:06 pm

Ok I've kept on trying different php upload scripts and have narrowed down some problems... alot kkep giving me the "failed to change permisison to 777" error.... but I did infact change the folder's permission in my ftp... i can upload a 1mb file but nothing over that size even though I've made it ok to upload 512mb files in the php script... for cry'n out loud I can't figure this out.

I can read php but not write it... I know the code is ok.. its got to be my ftp... but wtf? the folder is 777... 1mb ok 2mb and over not ok even though the php says 512mb is ok? any clues?... anybody?

Return to posts index

Curtis O'MalleyRe: PHP File Upload script
by on Jun 26, 2009 at 4:51:38 pm


wrt fie size - you cannot set that in the script (look for "File Uploads" section):


which means you can only set that in your php config file or in apache configs. i assume you are on a shared host, so that means you don't have access to php.ini or httpd.conf. that leaves an .htaccess file override, and it will vary from host to host if you are allowed to change that. check with your host to see.

as for permissions, it's hard to say w/o seeing your full setup. in general, i would check with your host on this, too, as they probably have docs wrt it somewhere on their site..

hope that helps...


Return to posts index

Dan DannerRe: PHP File Upload script
by on Jun 26, 2009 at 6:17:39 pm

Thanks Curtis... I just realized what I've overlooked... yes I am on a shared host... when I was messing with a wordpress site for a client I came across something that said my server would only take files >2mb.

So yeah its my host... I've been staring at code too long. I'll check with my host to see if they can make it bigger.

many thanks Curtis!!

Return to posts index

Dan DannerRe: PHP File Upload script
by on Jun 26, 2009 at 7:06:41 pm

I got it fixed... I was able to install a php.ini with the max upload size of 50mb. thanks Again Curtis!!

Return to posts index

chandra hopeRe: PHP File Upload script
by on Jul 7, 2009 at 9:34:10 pm

hi there. This PHP script you are talking about is exactly what I am looking for. I know nothing about scripts though. Right now I have a script that I put into a folder on my ftp and when i do that i can send a url to a client so they can down load a file i put in that folder that way I don't have to give them any of my ftp information.
I want to be able to do the same thing but I want for a client to be able to upload a file into a folder on my ftp. I can't figure out how to do this, so today i had to trust the client and give out my ftp info (ie user name passowrd etc.)
could you tell me how to get a script like the one i have for downloads but have it be for uploads?? This would be soo very helpful!

this is what i am using right now:


Return to posts index

Dan DannerRe: PHP File Upload script
by on Jul 7, 2009 at 11:12:36 pm

I don't remember where I found the php script... do a google search for free php upload scripts.

Also check this out:
this will give you the general idea.... and you can copy & paste some of it.

I had to dig around in my host control panel to install a php.ini file so I could make the upload max from 2mb to the maximum of 50mb.

I made a pop up window with the upload form that calls to the upload script. Then it puts all the files into a folder I designate... no ftp needed...

Sorry I can't give detailed info... I had to do some trial & error but i got it figured out... you can too.. good luck Chandra!

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2016 All Rights Reserved