move_uploaded_file()

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 (...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-29-2004
Joel Goldstick
 
Posts: n/a
Default move_uploaded_file()

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


Reply With Quote
  #2 (permalink)  
Old 01-30-2004
Jedi121
 
Posts: n/a
Default Re: move_uploaded_file()

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?


Reply With Quote
  #3 (permalink)  
Old 01-30-2004
Joel Goldstick
 
Posts: n/a
Default Re: move_uploaded_file()

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
>
>



Reply With Quote
  #4 (permalink)  
Old 01-30-2004
CountScubula
 
Posts: n/a
Default Re: move_uploaded_file()

"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


Reply With Quote
  #5 (permalink)  
Old 01-30-2004
John Smith
 
Posts: n/a
Default Re: move_uploaded_file()

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
>
>



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:38 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0