[PHP] File Uplaod

2004-01-11 Thread Rick Laird
I am trying to uplaod a 3 MB file to a server running apache and PHP.  I
seem to hitting a 1.7 MB limit on the file size.  I do not have
max_file_size set in my php.ini.  I am using the Jakarta HTTPClient java
classes as the client.

Any help would be much appriciated.

Thanks

Rick Laird

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] File Uplaod

2004-01-11 Thread Stuart
Rick Laird wrote:
I am trying to uplaod a 3 MB file to a server running apache and PHP.  I
seem to hitting a 1.7 MB limit on the file size.  I do not have
max_file_size set in my php.ini.
Not having upload_max_filesize set (which I assume is the setting you 
are referring to) will cause PHP to use the default value of 2MB. Try 
setting it and see what happens.

--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] File Uplaod

2004-01-11 Thread Jason Wong
On Sunday 11 January 2004 04:30, Rick Laird wrote:
 I am trying to uplaod a 3 MB file to a server running apache and PHP.  I
 seem to hitting a 1.7 MB limit on the file size.  I do not have
 max_file_size set in my php.ini.  I am using the Jakarta HTTPClient java
 classes as the client.

upload_max_filesize defaults to 2MB, so to upload something larger you 
_need_ to set it. Also read the chapter on Handling file uploads to see 
what other settings needs to be changed as well.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
When given a choice -- take both! 
-- Anti- Murphy's Laws n2
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP File Uplaod Path

2001-02-08 Thread Shane McBride

Dhaval,

You really do not nee to be concerned about the temp directory, but if you
are, you can wite a little script (if your not the sysadmin) to find this
out. Actually it tells you a ton of useful info. Here it is:

?
phpinfo();
?

Name it phpinfo.php or whatever you like, upload it to the server and view
it. I believe that PHP knows where to look to find the temp file.

As far as moving the file once its uploaded, here you go:

File to create the upload: (show_upload.php)
html
head
titleUpload a File/title
/head
body
h1Upload a File/h1
form enctype="multipart/form-data" method="post" action="do_upload.php"
pstrongFile to Upload:/strongbr
input type="file" name="img1" size="30"/p
Pinput type="submit" name="submit" value="Upload File"/p
/form
/body
/html

File to do the work: (do_upload.php)
?
if ($img1_name != "") {
copy("$img1", "/your/directory/path/$img1_name")
or die("Couldn't copy the file!");
} else {
 die("No input file specified");
}
?
html
head
titleSuccessful File Upload!/title
body
h1Success!/h1
PYou sent: ? echo "$img1_name"; ?, a ? echo "$img1_size"; ?
byte file with a mime type of ? echo "$img1_type"; ?./p
/body
/html

This is taken from Julie Meloni's website. She writes GREAT books. "PHP
Essentials" is essential.
http://www.thickbook.com/extra/php_fileupload.phtml

Thanks Julie!!!

- Shane
DISCLAIMER: I am by no means an expert on this, or any other, topic...
- Original Message -
From: "Dhaval Desai" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 07, 2001 3:42 AM
Subject: [PHP] PHP File Uplaod Path


 Hi!

 I need help with uploading files with php.
 What is the default directory where the files are
 uploaded..?
 I want to specify a particular directory where the
 files have to come after they are uploaded.

 Is it possible to specify a path in the script where
 the files will automatically be copied after uploading
 to the temporary directory.

 Please help me out ...

 Thank You
 Dhaval Desai




 __
 Do You Yahoo!?
 Yahoo! Auctions - Buy the things you want at great prices.
 http://auctions.yahoo.com/

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP File Uplaod Path

2001-02-08 Thread Ankur Verma

The default file upload path is the Temporary directory of your system.

But the problem that I percieve in your case is that when PHP uploads the
file, it gives it a temporary file name ( such as /tmp/shsgtW ). if you are
loooking to store the files in an intelligent manner, I would suggest that
you do not change the file upload path. Let php copy the file where it does
by default. Once the file has been uploaded, copy it to the directory you
want the files to reside in . This way you can also specify a legible name
for the file.

Look in the Uploading files section of the PHP manual and for a good article
on uploadingfiles at phpbuilder.com

hope that helps

regards

Ankur Verma
HCL Technologies
A1CD, Sec -16
Noida, UP
India


 - Original Message -
 From: "Dhaval Desai" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, February 07, 2001 2:12 PM
 Subject: [PHP] PHP File Uplaod Path


  Hi!
 
  I need help with uploading files with php.
  What is the default directory where the files are
  uploaded..?
  I want to specify a particular directory where the
  files have to come after they are uploaded.
 
  Is it possible to specify a path in the script where
  the files will automatically be copied after uploading
  to the temporary directory.
 
  Please help me out ...
 
  Thank You
  Dhaval Desai
 
 
 
 
  __
  Do You Yahoo!?
  Yahoo! Auctions - Buy the things you want at great prices.
  http://auctions.yahoo.com/
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP File Uplaod Path

2001-02-07 Thread Dhaval Desai

Hi!

I need help with uploading files with php.
What is the default directory where the files are
uploaded..?
I want to specify a particular directory where the
files have to come after they are uploaded.

Is it possible to specify a path in the script where
the files will automatically be copied after uploading
to the temporary directory.

Please help me out ...

Thank You
Dhaval Desai




__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP File Uplaod Path

2001-02-07 Thread Michael Hall



On Wed, 7 Feb 2001, Dhaval Desai wrote:

 Hi!
 
 I need help with uploading files with php.
 What is the default directory where the files are
 uploaded..?

/tmp ... file name is php(n) where 'n' is an incrementing number

 I want to specify a particular directory where the
 files have to come after they are uploaded.
 Is it possible to specify a path in the script where
 the files will automatically be copied after uploading
 to the temporary directory.
 

TEMPDIR environment variable

Mick


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]