Re: [PHP] File Upload Problem

2011-04-06 Thread Daniel Brown
On Wed, Apr 6, 2011 at 13:10, tedd wrote: > Hi gang: > > I wrote a simple script to upload image files from my desktop to a server -- > the exact same code works on two servers, but fails on a third. > > I suspect there is something set different between the servers, but I can't > find it. > > Odd

Re: [PHP] File Upload Problem

2011-04-06 Thread Bastien Koert
On Wed, Apr 6, 2011 at 1:10 PM, tedd wrote: > Hi gang: > > I wrote a simple script to upload image files from my desktop to a server -- > the exact same code works on two servers, but fails on a third. > > I suspect there is something set different between the servers, but I can't > find it. > > O

Re: [PHP] File Upload Problem

2004-12-20 Thread Richard Lynch
Wayne Donaho wrote: > I am trying to run a file upload using PHP as a CGI script and am running > into an odd error. > > The error I am getting is the dreaded Server Error -- Error 500 Premature > end of script headers: php.cgi Some more analysis ideas: On the very first line of your script, prin

[PHP] Re: PHP File Upload Problem

2004-11-12 Thread Mike Walsh
"Mike Walsh" <[EMAIL PROTECTED]> wrote in message news:0%ald.9258 [ ... snipped ... ] > > ; Maximum allowed size for uploaded files. > upload_max_filesize = 1G > [ ... snipped ... ] It turns out that 1G is not a valid value for this directive. Not sure why I haven't run into this problem previ

Re: [PHP] File Upload Problem

2004-10-20 Thread Robby Russell
On Wed, 2004-10-20 at 17:00 -0700, Robby Russell wrote: > On Wed, 2004-10-20 at 19:27 -0400, Nathan Mealey wrote: > > This file upload problem has me very confused. > > > > The code is: > > > > $upload_dir = '/articles_store/'; > > $uploadfile = $upload_dir . basename($_FILES['userfile']['name'])

Re: [PHP] File Upload Problem

2004-10-20 Thread Robby Russell
On Wed, 2004-10-20 at 19:27 -0400, Nathan Mealey wrote: > This file upload problem has me very confused. > > The code is: > > $upload_dir = '/articles_store/'; > $uploadfile = $upload_dir . basename($_FILES['userfile']['name']); > > if (move_uploaded_file($_FILES['userfile']['tmp_name'],$uploadf

Re: [PHP] File upload problem

2004-09-04 Thread Dre
thanks Jason .. it worked thanks again "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Saturday 04 September 2004 23:36, Dre wrote: > > I'm trying to upload a file using a form > > > $base_img_dir = "http://localhost/app_images/";; > > The destination directory/file

Re: [PHP] File upload problem

2004-09-04 Thread Jason Wong
On Saturday 04 September 2004 23:36, Dre wrote: > I'm trying to upload a file using a form > $base_img_dir = "http://localhost/app_images/";; The destination directory/file has to be a path on the local filesystem. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software S

RE: [PHP] File upload problem

2003-12-20 Thread Larry Brown
According to the documentation you have to have the maxfilesize tag before the input tag. -Original Message- From: Dino Costantini [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 6:34 PM To: [EMAIL PROTECTED] Subject: [PHP] File upload problem i'm trying to write a page whic

Re: [PHP] File upload problem

2003-12-18 Thread Blake Schroeder
This works for me My Form ?> Send this file: savefile.php // In PHP earlier then 4.1.0, $HTTP_POST_FILES should be used instead of // $_FILES. In PHP earlier then 4.0.3, use copy() and is_uploaded_file() // instead of move_uploaded_file $uploaddir = '/fullDirectoryPath'; $uploadfile = $

Re: [PHP] File Upload problem

2003-10-20 Thread Grant Rutherford
I found the problem!!! Buried deep within the manual: LimitRequestBody in /etc/httpd/conf.d/php.conf was set too small. Thanks for your time everyone, Grant -- Grant Rutherford Iders Incorporated 600A Clifton Street Winnipeg, MB R3G 2X6 http://www.iders.ca tel: 204-779-5400 ext 36 fax: 204-779-5

RE: [PHP] File Upload problem

2003-10-20 Thread Jay Blanchard
[snip] I included all of my code in my origional post. If you would like it reposted, I can do that. I retried it with exactly the same code as the manual has in the file uploads section (cut and paste). I'm merely trying to get the upload to work, I'm not concerned about handling the file y

Re: [PHP] File Upload problem

2003-10-20 Thread Grant Rutherford
Hi there, I'm running PHP version 4.2.2 I included all of my code in my origional post. If you would like it reposted, I can do that. I retried it with exactly the same code as the manual has in the file uploads section (cut and paste). I'm merely trying to get the upload to work, I'm not c

RE: [PHP] File Upload problem

2003-10-20 Thread Jay Blanchard
[snip] I've tried a few more things, still with no success. Increasing post_max_size and upload_max_filesize to 100M doesn't fix the problem. Turning error logging on doesn't seem to catch any errors. Is it possible that this is a problem with apache, and if so how should I go about fixi

Re: [PHP] File Upload problem

2003-10-20 Thread Grant Rutherford
I've tried a few more things, still with no success. Increasing post_max_size and upload_max_filesize to 100M doesn't fix the problem. Turning error logging on doesn't seem to catch any errors. Is it possible that this is a problem with apache, and if so how should I go about fixing it?

Re: [PHP] file upload problem

2003-08-23 Thread Matthias Nothhaft
Did you get any error (displayed/logged) ? Test it like that: print_r($_FILES) // with php < 4.1 use $HTTP_POST_FILES Now you can find your file at ...['tmp_name'] See also the php manual ;-) Regards, Matthias Matthias Wulkow wrote: Hallo Jim, am Samstag, 23. August 2003 um 21:32 hast Du Folg

Re: [PHP] file upload problem

2003-08-23 Thread Jim Lucas
r the script ends. Jim Lucas - Original Message - From: "Matthias Wulkow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Jim Lucas" <[EMAIL PROTECTED]> Sent: Saturday, August 23, 2003 12:43 PM Subject: Re: [PHP] file upload problem > Hallo Jim, &g

Re: [PHP] file upload problem

2003-08-23 Thread Matthias Wulkow
Hallo Jim, am Samstag, 23. August 2003 um 21:32 hast Du Folgendes gekritzelt: JL> how are you checking to see if the files are getting uploaded? JL> Jim Lucas I'm looking in /tmp for new files... but there are none. I'm also looking in the Apache-RootDirectory. No files neither. SvT -- W

Re: [PHP] file upload problem

2003-08-23 Thread Jim Lucas
- Original Message - From: "Matthias Wulkow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Jim Lucas" <[EMAIL PROTECTED]> Sent: Saturday, August 23, 2003 12:27 PM Subject: Re: [PHP] file upload problem > Hallo Jim, > > am Samstag, 23. Au

Re: [PHP] file upload problem

2003-08-23 Thread Matthias Wulkow
Hallo Jim, am Samstag, 23. August 2003 um 21:16 hast Du Folgendes gekritzelt: JL> when you are uploading files via a form, you must use the POST method. well, I tried the example from http://de.php.net/manual/de/features.file-upload.php#features.file-upload.post-method and that doesn't work nei

Re: [PHP] file upload problem

2003-08-23 Thread Jim Lucas
when you are uploading files via a form, you must use the POST method. Jim Lucas - Original Message - From: "Matthias Wulkow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, August 23, 2003 11:16 AM Subject: [PHP] file upload problem > Hi , > > I try to upload a file with s

Re: [PHP] File upload problem - permission denied

2003-02-27 Thread 1LT John W. Holmes
Message - From: "Niklas Lampén" <[EMAIL PROTECTED]> To: "Php-General" <[EMAIL PROTECTED]> Sent: Thursday, February 27, 2003 9:07 AM Subject: RE: [PHP] File upload problem - permission denied On linux you can do it in shell with chmod command. Do 'chmod 766 direc

RE: [PHP] File upload problem - permission denied

2003-02-27 Thread Niklas Lampén
3 16:03 To: [EMAIL PROTECTED] Subject: Re: [PHP] File upload problem - permission denied All right then. ¿Where do I set that permission for PHP? On my local Windows machine it is usually in IIS. However the whole ..\inetpub\wwwroot\.. directory already has read and write permissions. Apart from PHP

Re: [PHP] File upload problem - permission denied

2003-02-27 Thread Frans Bakker
All right then. ¿Where do I set that permission for PHP? On my local Windows machine it is usually in IIS. However the whole ..\inetpub\wwwroot\.. directory already has read and write permissions. Apart from PHP I use Cold Fusion. With Cold Fusion I don't have any permission problems... "Niklas la

RE: [PHP] File upload problem - permission denied

2003-02-27 Thread Niklas Lampén
Seems that php does not have write access to that directory. Set it right and it should work. Niklas P.S. Tip: It's much quicker to create plain html without echo. Just do it like , not like "; ?> :) -Original Message- From: Frans Bakker [mailto:[EMAIL PROTECTED] Sent: 27. helmikuuta

RE: [PHP] File upload problem

2003-02-18 Thread Chris McCluskey
Ochoa [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 18, 2003 7:04 AM To: John M; [EMAIL PROTECTED] Subject: Re: [PHP] File upload problem There may be several reasons why it doesn't work but the first thing I noticed is that "action" is blank. You need to have this defined. John M

Re: [PHP] File upload problem

2003-02-18 Thread Manuel Ochoa
There may be several reasons why it doesn't work but the first thing I noticed is that "action" is blank. You need to have this defined. John M <[EMAIL PROTECTED]> wrote:Hello, I have the code below. It's a simple file upload. But it doesn't work. Before the line if(isset( $Submit )) is an echo

Re: [PHP] File upload problem

2003-02-10 Thread Pag
Which sounds like it has to be there to me? I just checked a working file upload form without MAX_FILE_SIZE field, and it worked.. I guess i misunderstood what was on the tutorials ? Or i wonder if this was a must in the earlier versions of PHP? Anyone? I have an upload feature on my a

RE: [PHP] File upload problem

2003-02-10 Thread Dennis Cole
e, however, cannot be fooled. " -Original Message- From: Gurhan Ozen [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 9:50 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] File upload problem On Sun, 2003-02-09 at 19:43, Jason Wong wrote: > On Monday 10 F

Re: [PHP] File upload problem

2003-02-10 Thread Gurhan Ozen
On Sun, 2003-02-09 at 19:43, Jason Wong wrote: > On Monday 10 February 2003 05:56, Gurhan Ozen wrote: > > > You need to specifye the MAX_FILE_SIZE value as a hidden argument to the > > form.. > > See: http://www.php.net/manual/en/features.file-upload.php > > You don't. > > If you can show other

Re: [PHP] File upload problem

2003-02-09 Thread Jason Wong
On Monday 10 February 2003 05:56, Gurhan Ozen wrote: > You need to specifye the MAX_FILE_SIZE value as a hidden argument to the > form.. > See: http://www.php.net/manual/en/features.file-upload.php You don't. If you can show otherwise please post details to the list. -- Jason Wong -> Gremlins

Re: [PHP] File upload problem

2003-02-09 Thread David Rice
Hi John: Well actually I believe that you don't have to set MAX_FILE_SIZE...(I don't) but you might want make sure that you are not trying to send a file larger than the post_max_size directives in php.ini and ensure that file_uploads is set to allow http uploads. On Sunday, February 9, 2003, a

Re: [PHP] File upload problem

2003-02-09 Thread Gurhan Ozen
Hi, You need to specifye the MAX_FILE_SIZE value as a hidden argument to the form.. See: http://www.php.net/manual/en/features.file-upload.php Gurhan On Mon, 2003-06-30 at 15:05, John M wrote: > Hello, > > I have the code below. It's a simple file upload. But it doesn't work. > Before the line

Re: [PHP] File upload problem

2003-02-01 Thread David Rice
On Saturday, February 1, 2003, at 10:58 AM, Tomator wrote: I tried but I can't upload any file. My form and code are as following: Try looking at: http://www.php.net/manual/en/features.file-upload.php There is a working example there. -- PHP General Mailing List (http://www.php.net/) To uns

RE: [PHP] File upload problem

2003-01-21 Thread Matt Schroebel
> -Original Message- > From: John M [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 30, 2003 3:05 PM > To: [EMAIL PROTECTED] > Subject: [PHP] File upload problem > > > Hello, > > I have the code below. It's a simple file upload. But it doesn't work. > Before the line if(isset( $Submit )

RE: [PHP] File upload problem

2003-01-21 Thread Edward Peloke
John, I have Win 98 with Apache 2 and it worked fine for me, once I commented out the file type check, didn't seem to like any file I tried, even gifs. I also had to create a folder named 'files' under my htdocs folder in apache. Eddie -Original Message- From: John M [mailto:[EMAIL PRO

RE: [PHP] File Upload problem

2002-11-12 Thread Van Andel, Robert
Vogelsinger Cc: [EMAIL PROTECTED] Subject: RE: [PHP] File Upload problem It was a typo. Sorry. -Original Message- From: Ernest E Vogelsinger [mailto:ernest@;vogelsinger.at] Sent: Tuesday, November 12, 2002 3:46 PM To: Van Andel, Robert Cc: [EMAIL PROTECTED] Subject: Re: [PHP] File Upload p

RE: [PHP] File Upload problem

2002-11-12 Thread Van Andel, Robert
Vogelsinger [mailto:ernest@;vogelsinger.at] Sent: Tuesday, November 12, 2002 3:46 PM To: Van Andel, Robert Cc: [EMAIL PROTECTED] Subject: Re: [PHP] File Upload problem At 00:25 13.11.2002, Van Andel, Robert said: [snip] >encType=multipart/form-data&g

Re: [PHP] File Upload problem

2002-11-12 Thread Ernest E Vogelsinger
At 00:25 13.11.2002, Van Andel, Robert said: [snip] >encType=multipart/form-data>name=MAX_FILE_SIZE> > > } >?> >When I submit the form at the bottom of the script, the $user_file variable >equals "none". I am unable to figure out what is going on. The var

Re: [PHP] File upload problem...

2002-10-29 Thread Marek Kilimajer
Try print_r($_FILES) and see if you really get what you should. And also check if you have your form set as David Russell wrote: Hi all, I have a form with a file upload section. The target script contains the following: if (is_uploaded_file($_FILES['newuserfile']['tmp_name'])) { Ad

RE: [PHP] file upload problem

2002-05-18 Thread Rodney Davis
PROTECTED]] Sent: Saturday, May 18, 2002 7:31 PM To: Rodney Davis Cc: [EMAIL PROTECTED] Subject: Re: [PHP] file upload problem On Sat, 18 May 2002, Rodney Davis wrote: > I am trying to use the move_uploaded_file() function to upload files to > a specific directory. It works fine with small .jpg

Re: [PHP] file upload problem

2002-05-18 Thread Miguel Cruz
On Sat, 18 May 2002, Rodney Davis wrote: > I am trying to use the move_uploaded_file() function to upload files to > a specific directory. It works fine with small .jpgs .txt etc etc but > won't work with a large .mp3 file. Is this because it is too large? > What can I do? You can tell us what "

Re: [PHP] File upload problem

2002-05-07 Thread Jason Soza
- Original Message - From: Jason Wong <[EMAIL PROTECTED]> Date: Tuesday, May 7, 2002 8:49 am Subject: Re: [PHP] File upload problem > On Tuesday 07 May 2002 19:09, David Freeman wrote: > > > -Original Message- > > > Hmm, after a bit of testing I

Re: [PHP] File upload problem

2002-05-07 Thread Jason Wong
On Tuesday 07 May 2002 19:09, David Freeman wrote: > > -Original Message- > > Hmm, after a bit of testing I find that the MAX_FILE_SIZE > > tag is useless to say the least (probably because no browsers support > > it?) > > That's somewhat of a shame I guess but I can hardly claim to be

Re: [PHP] File upload problem

2002-05-07 Thread Linn Kubler
I put the max file size tag into my code but that didn't help either. What looks like is happening is that the php file can't be found. I'm using phpscriptcenter's upload.php program and it is all in one script, if you know what I mean. What I'm seeing now is that, depending on the size of the

RE: [PHP] File upload problem

2002-05-07 Thread David Freeman
> -Original Message- > Hmm, after a bit of testing I find that the MAX_FILE_SIZE > tag is useless to say the least (probably because no browsers support it?) That's somewhat of a shame I guess but I can hardly claim to be surprised - especially as I've just spent much of my time in th

Re: [PHP] File upload problem

2002-05-07 Thread Jason Wong
On Tuesday 07 May 2002 14:14, David Freeman wrote: > I guess that anything that causes this sort of thing to happen on the > browser is going to help. I know I'd be fairly unimpressed if I sat > waiting for a 2MB file to upload only to find that the limit is 1.5MB or > some such. At least if a

Re: [PHP] File upload problem

2002-05-07 Thread Jason Wong
On Tuesday 07 May 2002 15:22, Miguel Cruz wrote: > On Tue, 7 May 2002, Jason Wong wrote: > >>> > >> > >> You actually _need_ that hidden tag set AFAIK. > > > > I'm curious, I keep seeing people say that that tag is /necessary/, but > > I've never had to use it in the upload forms that I've built

Re: [PHP] File upload problem

2002-05-07 Thread Miguel Cruz
On Tue, 7 May 2002, Jason Wong wrote: >>> >> >> You actually _need_ that hidden tag set AFAIK. > > I'm curious, I keep seeing people say that that tag is /necessary/, but I've > never had to use it in the upload forms that I've built and they work just > fine in Opera, NN & IE. Don't feel ba

RE: [PHP] File upload problem

2002-05-06 Thread David Freeman
> -Original Message- > I'm curious, I keep seeing people say that that tag is > /necessary/, but I've never had to use it in the upload forms > that I've built and they work just fine in Opera, NN & IE. Good question. To be honest it's been a while since I looked, I built a file

Re: [PHP] File upload problem

2002-05-06 Thread Jason Wong
On Tuesday 07 May 2002 09:01, David Freeman wrote: > > -Original Message- > > D'oh! You're right, I went back and checked php.ini and > > found upload_max_filesize but it's already set to 200M, I'm > > assuming that means 200 MegaBytes. So I don't think that's > > the problem. I do

RE: [PHP] File upload problem

2002-05-06 Thread David Freeman
> -Original Message- > D'oh! You're right, I went back and checked php.ini and > found upload_max_filesize but it's already set to 200M, I'm > assuming that means 200 MegaBytes. So I don't think that's > the problem. I don't have the hidden tag set in the page > code so that

Re: [PHP] File upload problem

2002-05-06 Thread Linn Kubler
D'oh! You're right, I went back and checked php.ini and found upload_max_filesize but it's already set to 200M, I'm assuming that means 200 MegaBytes. So I don't think that's the problem. I don't have the hidden tag set in the page code so that shouldn't be a factor either, right? I'm a real ro

Re: [PHP] File upload problem

2002-05-06 Thread Francesc Leveque
I can remember there is an option on the php config file to set the max file size when uploading... I think you can also limit the size with a hidden input on the form... like this: the value corresponds to the number of bytes. so this would be for 2 MB.. -- Fr

Re: [PHP] file upload problem

2001-10-18 Thread SafeV
I've run into the same problem, I had to 'chmod 777 images' to be able to create dirs or files, which is BAD security! Brian Aitken wrote: > Hiya > > I promise I won't keep perstering you after this question :-) > > My problem is this - I've got a complete system that works perfectly on > Lin

RE: [PHP] File Upload Problem

2001-09-03 Thread Johan Vikerskog (ECS)
Perhaps someone from your Network group(or similiar) have put a restriction towards that site for some strange reason. Ask your administrator and he probobly will know the answer. //Johan -Original Message- From: Tim Grubb [mailto:[EMAIL PROTECTED]] Sent: den 3 september 2001 09:55 To:

Re: [PHP] File Upload Problem Solving?

2001-09-01 Thread Marc Davenport
On Fri, 31 Aug 2001, Jeff Oien wrote: > I have a user who is unable to upload files but I don't know where > to start with the troubleshooting process. I have this: > > @copy("$img1", "/blah/$username/$img1_name") > or die("File upload didn't work."); > > and they are getting the die

RE: [PHP] File Upload Problem Solving?

2001-08-31 Thread Jeff Oien
I found the problem. A user was logged in under their username with a different case (capital/small letters) and that caused a problem. Jeff Oien > I have a user who is unable to upload files but I don't know where > to start with the troubleshooting process. I have this: > > @copy("$img1", "/bl

Re: [PHP] File upload problem

2001-08-23 Thread Sheridan Saint-Michel
Change To: <[EMAIL PROTECTED]> Sent: Thursday, August 23, 2001 4:31 AM Subject: [PHP] File upload problem > Hello there, > > I am trying to create a form for uploading files to the local intranet. > Therefore I created a form for uploading files as mentioned in the PHP > manual. After submittin

Re: [PHP] File upload problem on IIS/NT4

2001-02-20 Thread Phil Driscoll
Make sure that upload_tmp_dir in your php.ini file is set to something sensible for a windows machine. I have it set to f:\php\temp (and you also need to make sure that the directory specified actually exists). Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.co

Re: [PHP] File upload problem on IIS/NT4

2001-02-19 Thread John Vanderbeck
ITry searching the drive(s) for the file. I dont know what the deal is, but I found on my system that the session path specified in the php.ini file isn't being used, it is using /tmp instead. Might be doing the same thing for the upload path. - John Vanderbeck - Admin, GameDesign - Origin