On Wed, Apr 6, 2011 at 1:10 PM, tedd t...@sperling.com 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
On Wed, Apr 6, 2011 at 13:10, tedd t...@sperling.com 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
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, print
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 previously
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'],$uploadfile)) {
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']);
if
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
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 has to be a
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
This works for me
My Form
?php
?
form enctype=multipart/form-data action=savefile.php method=POST
input type=hidden name=MAX_FILE_SIZE value=10
Send this file: input name=filename type=file
input type=submit value=Send File
/form
savefile.php
?php
// In PHP earlier then 4.1.0,
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?
[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
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
[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
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:
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 such an
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
- 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. August 2003 um 21:16 hast Du Folgendes gekritzelt:
JL when
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
--
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,
am Samstag, 23. August 2003 um 21:32 hast Du Folgendes
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
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
form name=blah, not like
? echo form name=\blah\; ? :)
-Original Message-
From: 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
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 I use Cold
-
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 direcory'.
You can find out more about chmod-command
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
]]
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 [EMAIL PROTECTED] wrote:Hello,
I have
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 otherwise please
,
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 February 2003 05:56
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
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
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,
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
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
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
-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 )) is an
At 00:25 13.11.2002, Van Andel, Robert said:
[snip]
FORM action=? echo $PHP_SELF; ? method=post
encType=multipart/form-dataINPUT type=hidden value=2
name=MAX_FILE_SIZE
INPUT type=file name=users_fileBRINPUT type=submit value=Upload!
/FORM?PHP
}
?
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]
FORM action=? echo $PHP_SELF; ? method
: [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 problem
At 00:25
Try print_r($_FILES) and see if you really get what you should. And also
check if you have your
form set as
form enctype=multipart/form-data action= url method=POST
David Russell wrote:
Hi all,
I have a form with a file upload section. The target script contains the
following:
if
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 .jpgs .txt
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
-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
On Tue, 7 May 2002, Jason Wong wrote:
INPUT TYPE=hidden name=MAX_FILE_SIZE value=2048000
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
On Tuesday 07 May 2002 15:22, Miguel Cruz wrote:
On Tue, 7 May 2002, Jason Wong wrote:
INPUT TYPE=hidden name=MAX_FILE_SIZE value=2048000
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
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
-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 the
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
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
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 find that the MAX_FILE_SIZE
tag is useless to say the least (probably because
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
-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
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 don't have
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
Linux
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
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 message. All
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,
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
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
-
59 matches
Mail list logo