This is a discussion on move_uploaded_file() within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I'm using easy php -- apache on WInXP. All configuration settings are defaults. I can upload a very small file (...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I'm using easy php -- apache on WInXP. All configuration settings are
defaults. I can upload a very small file (2k) but not a 12k file. The limit is set to 2M in the config file. Same problem on my host. I'm new to apache and php. Any advice on how to let me load files up to about 2Meg? -- Joel Goldstick columbuswebmakers.com |
|
|||
|
Joel Goldstick a écrit le 29/01/2004 :
> I'm using easy php -- apache on WInXP. All configuration settings are > defaults. I can upload a very small file (2k) but not a 12k file. The > limit is set to 2M in the config file. > > Same problem on my host. I'm new to apache and php. Any advice on how to > let me load files up to about 2Meg? What is the error msg? |
|
|||
|
Here are the error messages:
Warning: move_uploaded_file(/PatOnARock.jpg): failed to open stream: Permission denied in /home/pyjcg/public_html/Workbench/PHPUploadFile.php on line 64 Warning: move_uploaded_file(): Unable to move '/tmp/phpSaQjQC' to '/PatOnARock.jpg' in /home/pyjcg/public_html/Workbench/PHPUploadFile.php on line 64 PatOnARock.jpg copied succesfully !! I then use my ftp client to check the site. No file anywhere. But it seems to upload, since I see the browser churning away Permission in the directory I want to store it is r/w for owner. r for group and world "Joel Goldstick" <joel.goldstick@columbuswebmakers.com> wrote in message news:2OcSb.88112$f97.34823@fe3.columbus.rr.com... > I'm using easy php -- apache on WInXP. All configuration settings are > defaults. I can upload a very small file (2k) but not a 12k file. The > limit is set to 2M in the config file. > > Same problem on my host. I'm new to apache and php. Any advice on how to > let me load files up to about 2Meg? > > -- > Joel Goldstick > columbuswebmakers.com > > |
|
|||
|
"Joel Goldstick" <joel.goldstick@columbuswebmakers.com> wrote in message
news:26xSb.93222$f97.79096@fe3.columbus.rr.com... > Here are the error messages: > Warning: move_uploaded_file(/PatOnARock.jpg): failed to open stream: > Permission denied in /home/pyjcg/public_html/Workbench/PHPUploadFile.php on > line 64 > > Warning: move_uploaded_file(): Unable to move '/tmp/phpSaQjQC' to > '/PatOnARock.jpg' in /home/pyjcg/public_html/Workbench/PHPUploadFile.php on > line 64 > PatOnARock.jpg copied succesfully !! > > > I then use my ftp client to check the site. No file anywhere. But it seems > to upload, since I see the browser churning away > > Permission in the directory I want to store it is r/w for owner. r for > group and world > YOU are the owner, r/w is good, apache or nobody is the one trying to write the file, so group/world of r wont work -- Mike Bradley http://www.gzentools.com -- free online php tools |
|
|||
|
Is your problem with the HTML???
<input type="hidden" name="MAX_FILE_SIZE" value="2000000"> this tells the browser the maximum file size to upload if it isn't set it asumes a very small value! "Joel Goldstick" <joel.goldstick@columbuswebmakers.com> schreef in bericht news:2OcSb.88112$f97.34823@fe3.columbus.rr.com... > I'm using easy php -- apache on WInXP. All configuration settings are > defaults. I can upload a very small file (2k) but not a 12k file. The > limit is set to 2M in the config file. > > Same problem on my host. I'm new to apache and php. Any advice on how to > let me load files up to about 2Meg? > > -- > Joel Goldstick > columbuswebmakers.com > > |