[PHP] File Uploads Help!!!

2008-12-05 Thread Jason Todd Slack-Moehrle
Hi All, I am uploading a file and it says it worked, but I dont see it in the directory Here is my code so far: $allowed_ext = array('csv','xls'); $ext = end(explode('.',$_FILES['uploadedfile']['name'])); $ran2 = rand()..; $target = tempUploads/;

Re: [PHP] File Uploads Help!!! --Forgot

2008-12-05 Thread Jason Todd Slack-Moehrle
Here is the output I am printing: 'tempUploads/1425182872.xlsUploaded The File.' What is the issue? -Jason On Dec 5, 2008, at 2:11 PM, Jason Todd Slack-Moehrle wrote: Hi All, I am uploading a file and it says it worked, but I dont see it in the directory Here is my code so far:

Re: [PHP] File Uploads Help!!! --Forgot

2008-12-05 Thread Eric Butera
On Fri, Dec 5, 2008 at 5:13 PM, Jason Todd Slack-Moehrle [EMAIL PROTECTED] wrote: Here is the output I am printing: 'tempUploads/1425182872.xlsUploaded The File.' What is the issue? -Jason On Dec 5, 2008, at 2:11 PM, Jason Todd Slack-Moehrle wrote: Hi All, I am uploading a file and

Re: [PHP] File Uploads Help!!! --Forgot

2008-12-05 Thread Jason Todd Slack-Moehrle
Hi Eric, 'tempUploads/1425182872.xlsUploaded The File.' http://us2.php.net/manual/en/function.is-uploaded-file.php http://us2.php.net/manual/en/features.file-upload.errors.php So do I still use move_uploaded_file? -Jason

Re: [PHP] File Uploads Help!!! --Forgot

2008-12-05 Thread Eric Butera
On Fri, Dec 5, 2008 at 5:40 PM, Jason Todd Slack-Moehrle [EMAIL PROTECTED] wrote: Hi Eric, 'tempUploads/1425182872.xlsUploaded The File.' http://us2.php.net/manual/en/function.is-uploaded-file.php http://us2.php.net/manual/en/features.file-upload.errors.php So do I still use

Re: [PHP] File Uploads Help!!! --Forgot

2008-12-05 Thread Jason Todd Slack-Moehrle
Hi Eric, So do I still use move_uploaded_file? Absolutely. I just didn't see anywhere in your code where you were checking for an error with the file upload itself or that it did exist on the server before moving it. Got it, thanks!! -Jason -- PHP General Mailing List

Re: [PHP] file uploads Q?

2006-12-13 Thread tedd
At 5:14 PM +0100 12/12/06, Børge Holen wrote: On Tuesday 12 December 2006 15:02, Jochem Maas wrote: Børge Holen wrote: It is sad to see that you got an amazing tool like this list and still manages to read and understand it the way you FEEL like at any moment. what makes this list

[PHP] [so O T that it hurts :-)] Re: [PHP] file uploads Q?

2006-12-13 Thread Jochem Maas
tedd wrote: At 5:14 PM +0100 12/12/06, Børge Holen wrote: On Tuesday 12 December 2006 15:02, Jochem Maas wrote: Børge Holen wrote: ... Well... if Jochem is a moron, then I must be dunce because I've learn a lot from him, and continue to do so. If you take the time to listen, even you

Re: [PHP] file uploads Q?

2006-12-12 Thread Jochem Maas
Børge Holen wrote: On Monday 11 December 2006 20:48, Jochem Maas wrote: Richard Lynch wrote: On Sat, December 9, 2006 12:18 pm, William Stokes wrote: Is it possible to allow user pick several images and upload them all at once? (I need to pass the images to a function for the resize). Or do

RE: [PHP] file uploads Q?

2006-12-12 Thread Tim
Børge Holen wrote: On Monday 11 December 2006 20:48, Jochem Maas wrote: Richard Lynch wrote: On Sat, December 9, 2006 12:18 pm, William Stokes wrote: Is it possible to allow user pick several images and upload them all at once? (I need to pass the images to a function for the

Re: [PHP] file uploads Q?

2006-12-12 Thread Børge Holen
On Tuesday 12 December 2006 12:01, you wrote: Børge Holen wrote: On Monday 11 December 2006 20:48, Jochem Maas wrote: Richard Lynch wrote: On Sat, December 9, 2006 12:18 pm, William Stokes wrote: Is it possible to allow user pick several images and upload them all at once? (I need to

Re: [PHP] file uploads Q?

2006-12-12 Thread Jochem Maas
Tim wrote: Børge Holen wrote: On Monday 11 December 2006 20:48, Jochem Maas wrote: Richard Lynch wrote: On Sat, December 9, 2006 12:18 pm, William Stokes wrote: Is it possible to allow user pick several images and upload them all at once? (I need to pass the images to a function for the

Re: [PHP] file uploads Q?

2006-12-12 Thread Jochem Maas
Børge Holen wrote: On Tuesday 12 December 2006 12:01, you wrote: Børge Holen wrote: On Monday 11 December 2006 20:48, Jochem Maas wrote: Richard Lynch wrote: ... is that crack your smoking? No, I LEARN from this list. you? we'll I'll admit to learning plenty on this list from 'old

Re: [PHP] file uploads Q?

2006-12-12 Thread Børge Holen
On Tuesday 12 December 2006 14:10, Jochem Maas wrote: Tim wrote: Børge Holen wrote: On Monday 11 December 2006 20:48, Jochem Maas wrote: Richard Lynch wrote: On Sat, December 9, 2006 12:18 pm, William Stokes wrote: Is it possible to allow user pick several images and upload them all

RE: [PHP] file uploads Q?

2006-12-12 Thread Tim
-Message d'origine- De : Jochem Maas [mailto:[EMAIL PROTECTED] Envoyé : mardi 12 décembre 2006 14:10 À : Tim Cc : php-general@lists.php.net Objet : Re: [PHP] file uploads Q? Tim wrote: Børge Holen wrote: On Monday 11 December 2006 20:48, Jochem Maas wrote: Richard Lynch

Re: [PHP] file uploads Q?

2006-12-12 Thread Stut
Børge Holen wrote: No, I LEARN from this list. you? I smoke this list. Keeps me happy, out of trouble, and best of all it's free! -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file uploads Q?

2006-12-12 Thread Jochem Maas
Børge Holen wrote: ... It is sad to see that you got an amazing tool like this list and still manages to read and understand it the way you FEEL like at any moment. what makes this list 'amazing' is the handful of people who regularly answer (even the most banal) questions. the

Re: [PHP] file uploads Q?

2006-12-12 Thread Stut
Jochem Maas wrote: and say what *you* mean. I LIKE MARMITE!! Damn, that does feel better. -Stut (fairly bored today) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file uploads Q?

2006-12-12 Thread Jochem Maas
Stut wrote: Jochem Maas wrote: and say what *you* mean. I LIKE MARMITE!! you have my condolences. Damn, that does feel better. see, just let it out... (said in soothing psychoanalyst's voice) -Stut (fairly bored today) really!? ;-) -- PHP General Mailing List

Re: [PHP] file uploads Q?

2006-12-12 Thread David Giragosian
On 12/12/06, Jochem Maas [EMAIL PROTECTED] wrote: Stut wrote: Jochem Maas wrote: and say what *you* mean. I LIKE MARMITE!! you have my condolences. Damn, that does feel better. see, just let it out... (said in soothing psychoanalyst's voice) -Stut (fairly bored today) really!? ;-)

Re: [PHP] file uploads Q?

2006-12-12 Thread Børge Holen
On Tuesday 12 December 2006 15:02, Jochem Maas wrote: Børge Holen wrote: ... It is sad to see that you got an amazing tool like this list and still manages to read and understand it the way you FEEL like at any moment. what makes this list 'amazing' is the handful of people who regularly

Re: [PHP] file uploads Q?

2006-12-11 Thread Jochem Maas
Richard Lynch wrote: On Sat, December 9, 2006 12:18 pm, William Stokes wrote: Is it possible to allow user pick several images and upload them all at once? (I need to pass the images to a function for the resize). Or do I need to give several browse buttons to allow multiple file uploads?

Re: [PHP] file uploads Q?

2006-12-11 Thread Børge Holen
On Monday 11 December 2006 20:48, Jochem Maas wrote: Richard Lynch wrote: On Sat, December 9, 2006 12:18 pm, William Stokes wrote: Is it possible to allow user pick several images and upload them all at once? (I need to pass the images to a function for the resize). Or do I need to

Re: [PHP] file uploads Q?

2006-12-11 Thread Jim Lucas
Jochem Maas wrote: Richard Lynch wrote: On Sat, December 9, 2006 12:18 pm, William Stokes wrote: Is it possible to allow user pick several images and upload them all at once? (I need to pass the images to a function for the resize). Or do I need to give several browse buttons to allow

Re: [PHP] file uploads Q?

2006-12-11 Thread Chris
Jim Lucas wrote: Jochem Maas wrote: Richard Lynch wrote: On Sat, December 9, 2006 12:18 pm, William Stokes wrote: Is it possible to allow user pick several images and upload them all at once? (I need to pass the images to a function for the resize). Or do I need to give several browse

[PHP] file uploads Q?

2006-12-09 Thread William Stokes
Hello, I have somehow managed to write a scipt that is able to upload and resize images to a server :))) Sad part is that now the user can upload only one image at a time.(user has a browse button for browsing images in his local disk and can pick only one at a time). Is it possible to allow

Re: [PHP] file uploads Q?

2006-12-09 Thread Richard Lynch
On Sat, December 9, 2006 12:18 pm, William Stokes wrote: Is it possible to allow user pick several images and upload them all at once? (I need to pass the images to a function for the resize). Or do I need to give several browse buttons to allow multiple file uploads? Yes, you would need to

Re: [PHP] File Uploads not working over SSL

2006-10-05 Thread Richard Lynch
On Wed, October 4, 2006 3:02 pm, Rahul S. Johari wrote: form method=post action=http://www.myurl.com/imsafm2_main.php; If you MOVED everything to the SSL server, then http://www.myurl.com ain't the right ACTION anymore. It's now https://www.myurl.com -- Some people have a gift link here. Know

Re: [PHP] File Uploads not working over SSL

2006-10-05 Thread Rahul S. Johari
Richard, I corrected that mistake in a previous email you must have missed. I had copied the wrong code in my email to the list. The correct code is indeed form method=post action=https://www.myurl.com/imsafm2_main.php; I'm pretty baffled at this stage. I don't understand why this won't work

Re: [PHP] File Uploads not working over SSL

2006-10-05 Thread Richard Lynch
On Thu, October 5, 2006 3:42 pm, Rahul S. Johari wrote: Richard, I corrected that mistake in a previous email you must have missed. I had copied the wrong code in my email to the list. The correct code is indeed form method=post action=https://www.myurl.com/imsafm2_main.php; I'm pretty

[PHP] File Uploads not working over SSL

2006-10-04 Thread Rahul S. Johari
Ave, I have a File Manager application in place for over 2 years now. Everything¹s been working groovy! Until yesterday. Yesterday we purchased and installed an SSL Certificate. And now the uploads are not working anymore! Gets the ³Page cannot be displayed² error. Tried the same application

Re: [PHP] File Uploads not working over SSL

2006-10-04 Thread Jo�o C�ndido de Souza Neto
Please, show us your code. Rahul S. Johari [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Ave, I have a File Manager application in place for over 2 years now. Everything¹s been working groovy! Until yesterday. Yesterday we purchased and installed an SSL Certificate. And now the

Re: [PHP] File Uploads not working over SSL

2006-10-04 Thread Rahul S. Johari
Well, the File Manager application itself is pretty extensive... But if you're looking for the upload code, here it is (sensitive information erased): if($upload_file) { $db = mysql_connect(localhost,usr,pwd);

Re: [PHP] File Uploads not working over SSL

2006-10-04 Thread Rahul S. Johari
, October 04, 2006 9:02 PM Subject: Re: [PHP] File Uploads not working over SSL Well, the File Manager application itself is pretty extensive... But if you're looking for the upload code, here it is (sensitive information erased): if($upload_file

[PHP] file uploads and sizes

2005-05-05 Thread Cima
i have the following code that works except when the file i'm trying to upload excedes the upload_max _filesize and post_max_size defined in the php.ini file. what happens when the file is smaller than the max sizes mentioned previously, the if (isset .) part of the code is executed yet when

[PHP] file uploads and sizes

2005-05-05 Thread Cima
i have the following code that works except when the file i'm trying to upload excedes the upload_max _filesize and post_max_size defined in the php.ini file. what happens when the file is smaller than the max sizes mentioned previously, the if (isset .) part of the code is executed yet when

Re: [PHP] file uploads and sizes

2005-05-05 Thread Greg Donald
On 5/5/05, Cima [EMAIL PROTECTED] wrote: i have the following code that works except when the file i'm trying to upload excedes the upload_max _filesize and post_max_size defined in the php.ini file. what happens when the file is smaller than the max sizes mentioned previously, the if (isset

[PHP] file uploads

2005-02-27 Thread pmpa
I believe you must have form action=somewhere.php enctype=multipart/form-data method=post Pedro. -Mensagem original- De: Jeremy Freedman [mailto:[EMAIL PROTECTED] Enviada: sábado, 26 de Fevereiro de 2005 20:54 Para: php-general@lists.php.net Assunto: [PHP] file uploads I got

[PHP] file uploads

2005-02-26 Thread Jeremy Freedman
I got the files to upload correctly using input type=file and associated php expressions but they seem to be ascii encoded cause the jpgs and gifs are not displayed at all, just the correct placeholders which means the getImageSize() function is returning correct data! Sincerely, Jeremy

Re: [PHP] File uploads and handling

2004-10-29 Thread Philip Thompson
[embarrassment] Thanks all. Of course it was a dumb thing I was doing. I didn't give the absolute path when moving the uploaded file. I got it to work though! [/embarrassment] ~Philip On Oct 28, 2004, at 9:40 PM, Robby Russell wrote: On Thu, 2004-10-28 at 19:04 -0500, Philip Thompson wrote:

Re: [PHP] File uploads and handling

2004-10-28 Thread Philip Thompson
On Oct 26, 2004, at 7:06 AM, Jason Wong wrote: On Tuesday 26 October 2004 03:45, Philip Thompson wrote: I have a form to upload a file from a user's computer to the server. I want to then modify the file, and then let the user save it back. However, I am having troubles opening the file. It says

Re: [PHP] File uploads and handling

2004-10-28 Thread Greg Donald
On Thu, 28 Oct 2004 19:04:27 -0500, Philip Thompson [EMAIL PROTECTED] wrote: manual Handling file uploads to see how it all works. Yeah, that was not useful at all. That's how the rest of us learned. The examples on the page is pretty clear to me. That's what I originally looked

Re: [PHP] File uploads and handling

2004-10-28 Thread Robby Russell
On Thu, 2004-10-28 at 19:04 -0500, Philip Thompson wrote: On Oct 26, 2004, at 7:06 AM, Jason Wong wrote: On Tuesday 26 October 2004 03:45, Philip Thompson wrote: I have a form to upload a file from a user's computer to the server. I want to then modify the file, and then let the user

[PHP] File uploads and handling

2004-10-25 Thread Philip Thompson
Hi all. I have a form to upload a file from a user's computer to the server. I want to then modify the file, and then let the user save it back. However, I am having troubles opening the file. It says it doesn't exist. Any suggestions? --- if (is_uploaded_file($_FILES['userfile']['name']))

Re: [PHP] File uploads and handling

2004-10-25 Thread Jason Wong
On Tuesday 26 October 2004 03:45, Philip Thompson wrote: I have a form to upload a file from a user's computer to the server. I want to then modify the file, and then let the user save it back. However, I am having troubles opening the file. It says it doesn't exist. Any suggestions?

[PHP] File Uploads

2003-12-26 Thread Jough Jeaux
Greetings all, I want to allow users to upload images to an online profile. Anyone know how to let the user browse his/her local filesystem from the web page? __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ -- PHP

Re: [PHP] File Uploads

2003-12-26 Thread Jough Jeaux
Hmm, well, to answer my own question, it looks like the following will do. Sorry to make an ass of myself. Hope you were all entertained!! form enctype=multipart/form-data action=_URL_ method=POST input type=hidden name=MAX_FILE_SIZE value=3 Send this file: input name=userfile type=file

Re: [PHP] file uploads

2003-12-02 Thread Jon Bennett
Hi, I'm working on a class and when a user submits a form to add a new product, I'm calling the addProduct method and within that method I call another method of the class 3 times. Once for a thumbnail image, once for a preview image and once for the full image, is this considered the correct

[PHP] file uploads

2003-12-01 Thread Jon Bennett
Hi, I have a file upload problem, but I don't think it's a permission thing (if only, that would be simple!). I have written a resizing method for a class I'm working on, and it always fails on the imageJpeg() at the end of the method. This is the error I get... imagejpeg(): Unable to open

Re: [PHP] file uploads

2003-12-01 Thread Jon Bennett
Just to clarify about using move_uploaded_file() I call the storeBigImage methid from aother method like so function addProduct(){ $this-storeBigImage($ID, $_FILES[image]); } that doesn't work, if I use this: function addProduct(){ // Move the uploaded file to the correct location

Re: [PHP] file uploads

2003-12-01 Thread Chris Hayes
PHP first gives the file a temporary name on a temporary location. This name is not the same as the name given in the upload form. I think the temp filename is in the $_FILES array too, do a print_r($_FILES) to check. Now, here's the strange bit, if I call my method and just use

Re: [PHP] file uploads

2003-12-01 Thread Jon Bennett
Hi Chris, I think you're referring to this: $_FILES[image][tmp_name] In my class I pass this as a reference: $aArgs['Image'] = $_FILES[image]; Then, $aImage in my storeBigImage() method is passed the $aArgs['Image'] when it's called: $this-storeBigImage($productID, $aArgs['Image']); All

Re: [PHP] file uploads

2003-12-01 Thread Jon Bennett
Ok, I've got it sorted now, but I'm buggered as to why this didn't work the way I hoped. It seems that if I use an indexed or associative array to store the location and new image file name, imagejpeg never works, but if I use a normal var it does !! what's with that! // doesn't work

Re: [PHP] file uploads

2003-12-01 Thread Pavel Jartsev
Jon Bennett wrote: Just to clarify about using move_uploaded_file() ... function addProduct(){ // Move the uploaded file to the correct location move_uploaded_file($$_FILES[image][tmp_name], BASE_DIR./_img/_products/.$iProductId._.$fileName); } ... function storeBigImage($ID,

Re: [PHP] file uploads

2003-12-01 Thread Jon Bennett
well I'll be dammed, that was it! Geeze, you look at something for so long sometimes you can't see the wood for the trees I feel so stoopid now! Thanks, Jon jon bennett | [EMAIL PROTECTED] new media designer / developer _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ J b

Re: [PHP] file uploads

2003-12-01 Thread Jon Bennett
I'm trying to return a value if the file uploads correctly, using return, but I don't seem to be getting anything back. I've added this to my storeImages method return = $aNewImage['new_name']; and when I call the method from my addProduct() method I use this: $sThumbnailFileName =

Re: [PHP] file uploads

2003-12-01 Thread Jon Bennett
sorry, made a mistake when writing my email: return = $aNewImage['new_name']; should be: return $aNewImage['new_name']; Cheers, Jon jon bennett | [EMAIL PROTECTED] new media designer / developer _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ J b e n . n e t 91

Re: [PHP] file uploads

2003-12-01 Thread Jon Bennett
Down't worry, it's sorted! Cheers, Jon jon bennett | [EMAIL PROTECTED] new media designer / developer _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ J b e n . n e t 91 Gloucester Rd, Trowbridge, Wilts, BA14 0AD t: +44 (0) 1225 341039 w: http://www.jben.net/ On 1 Dec

Re: [PHP] file uploads

2003-12-01 Thread Eugene Lee
On Mon, Dec 01, 2003 at 02:00:34PM +, Jon Bennett wrote: : : Hi Chris, : : I think you're referring to this: : : $_FILES[image][tmp_name] : : In my class I pass this as a reference: : : $aArgs['Image'] = $_FILES[image]; : : Then, $aImage in my storeBigImage() method is passed the :

Re: Re[2]: [PHP] File Uploads!

2003-06-30 Thread Jason Wong
On Monday 30 June 2003 07:06, Catalin Trifu wrote: I used MAX_FILE_SIZE too in the form which uploads the file (the input field is before the file field) and I am using IE6 for testing and still the file pass through to the server. *IF* the browser supports it then IT would stop the

[PHP] File Uploads!

2003-06-29 Thread Catalin Trifu
Hi, This is the error I get in the log file: [error] PHP Warning: POST Content-Length of 11184886 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 This is absolutely correct. The problem is this error does not reach my PHP script and I have no idea how can I tell my

Re: [PHP] File Uploads!

2003-06-29 Thread Tom Rogers
Hi, Sunday, June 29, 2003, 9:49:43 PM, you wrote: CT Hi, CT This is the error I get in the log file: CT [error] PHP Warning: POST Content-Length of 11184886 bytes exceeds the CT limit of 8388608 bytes in Unknown on line 0 CT This is absolutely correct. The problem is CT this

Re[2]: [PHP] File Uploads!

2003-06-29 Thread Tom Rogers
Hi, Sunday, June 29, 2003, 10:17:43 PM, you wrote: TR Hi, TR Sunday, June 29, 2003, 9:49:43 PM, you wrote: CT Hi, CT This is the error I get in the log file: CT [error] PHP Warning: POST Content-Length of 11184886 bytes exceeds the CT limit of 8388608 bytes in Unknown on line 0 CT

Re: [PHP] File Uploads!

2003-06-29 Thread Catalin Trifu
Hi, I already tried $_FILES['userfile']['error'], but as I already said the $_FILES is empty, completely empty Cheers, Catalin Tom Rogers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Sunday, June 29, 2003, 9:49:43 PM, you wrote: CT Hi, CT This is

Re: Re[2]: [PHP] File Uploads!

2003-06-29 Thread Jason Wong
On Sunday 29 June 2003 20:40, Tom Rogers wrote: Maybe you have to wind up the post_max_size in php.ini and then control with MAX_FILE_SIZE in the form for the error to show up in the $_FILES array MAX_FILE_SIZE in the form is client-side, for the benefit of the browser. *IF* the browser

Re: Re[2]: [PHP] File Uploads!

2003-06-29 Thread Catalin Trifu
Hi, I used MAX_FILE_SIZE too in the form which uploads the file (the input field is before the file field) and I am using IE6 for testing and still the file pass through to the server. Cheers, Catalin Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sunday

Re[4]: [PHP] File Uploads!

2003-06-29 Thread Tom Rogers
Hi, Monday, June 30, 2003, 4:14:02 AM, you wrote: JW On Sunday 29 June 2003 20:40, Tom Rogers wrote: Maybe you have to wind up the post_max_size in php.ini and then control with MAX_FILE_SIZE in the form for the error to show up in the $_FILES array JW MAX_FILE_SIZE in the form is

[PHP] File uploads...

2003-03-24 Thread Al
Trying to do what should be rather simple and I have done before. Maybe I am just overlooking the obvious but this is the error I get... Warning: Unable to open 'Array' for reading: No such file or directory in /var/www/html/nepso_noah/NEPSO/includes/reporters/update_profile.inc on line 33 This

RE: [PHP] File uploads...

2003-03-24 Thread Dan Rossi
u etetr reference them with $_FILES['photonew']['tmp_name'] or do a print_r($_FILES); and it'll tell u info in the upload -Original Message- From: Al [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 7:14 AM To: [EMAIL PROTECTED] Subject: [PHP] File uploads... Trying to do what

Re: [PHP] File uploads...

2003-03-24 Thread Kevin Stone
- Original Message - From: Al [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 24, 2003 1:14 PM Subject: [PHP] File uploads... Trying to do what should be rather simple and I have done before. Maybe I am just overlooking the obvious but this is the error I get... Warning

[PHP] file uploads

2003-03-04 Thread Joseph Bannon
Regarding file uploads... 1) Do the temp files automatically delete, or do I need to put something in the code to delete them? 2) If automatically, how long? Where can I set the length of time until they are deleted? 3) If not, is there a place I can make it be automatic? Thanks Joseph

Re: [PHP] file uploads

2003-03-04 Thread Ernest E Vogelsinger
At 19:55 04.03.2003, Joseph Bannon spoke out and said: [snip] Regarding file uploads... 1) Do the temp files automatically delete, or do I need to put something in the code to delete them? 2) If automatically, how long? Where can I set the length of time

Re: [PHP] file uploads

2003-03-04 Thread Chris Hewitt
Ernest E Vogelsinger wrote: At 19:55 04.03.2003, Joseph Bannon spoke out and said: [snip] Regarding file uploads... 1) Do the temp files automatically delete, or do I need to put something in the code to delete them? 2) If automatically, how long? Where

Re: [PHP] file uploads

2003-03-04 Thread Liam Gibbs
1) Do the temp files automatically delete, or do I need to put something in the code to delete them? They do, and I believe it's until the end of the currently-running PHP script. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file uploads

2003-03-04 Thread Joseph Bannon
They do, and I believe it's until the end of the currently-running PHP script. Perfect! Thanks. Joseph __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- PHP General Mailing List

[PHP] file uploads received, but mangled

2003-01-21 Thread af
Hi all. 2nd try -- Is the following possible to work around, or is it a bug that I should be reporting? I'm having issues uploading files whose names don't necessarily end with the correct extension, in particular text files which don't end in .txt. (Why they don't is complicated, and it's

[PHP] file uploads received, but mangled

2003-01-20 Thread af
Hi all. I'm having issues uploading files whose names don't necessarily end with the correct extension, in particular text files which don't end in .txt. (Why they don't is complicated, and it's impractical to insist that they must.) The files are received, but altered -- they are prepended

[PHP] file uploads 800K with php into a BLOB field

2002-12-30 Thread Mike Brancato
i'm having trouble with using php to upload files to be used as resources over the web via php and a backend db. i don't prefer to store them on the filesystem, but i guess thats an ultimate solution. either way, my code works, in theory, and literally. but not on file above 799KB. why?

[PHP] file uploads double in size - help!

2002-12-28 Thread dgulbranson
I am having trouble with php file uploads where the files are arriving corrupted and information in the file is repeated. Perhaps some can help point me in the right direction. A very small text file will work fine. Anything larger than about 2000k and strange things happen. In the case

Re: [PHP] file uploads double in size - help!

2002-12-28 Thread Michael J. Pawlowsky
This might help you... http://www.phpbuilder.com/columns/florian19991014.php3?page=4 *** REPLY SEPARATOR *** On 28/12/2002 at 2:00 PM [EMAIL PROTECTED] wrote: I am having trouble with php file uploads where the files are arriving corrupted and information in the file

[PHP] File uploads...

2002-11-25 Thread David Russell
Hi all, I am updating a site accounting for register_globals = off. I have a page which allows for the uploading of a number of files. The page sends these in an array of files. The destination script used to have: if ($AttachmentCount 0) { foreach($userfile as $key = $value) {

[PHP] File Uploads

2002-11-21 Thread James \\Cook
I have created a php file to handle file uploads. It very simple without any bells or whistles. I just wanted to know if there was a way to control the owner of the new file because when iupload files the owner is set to httpd which means that I can't access the file properly. My code is as

RE: [PHP] File Uploads

2002-11-21 Thread John W. Holmes
I just wanted to know if there was a way to control the owner of the new file because when iupload files the owner is set to httpd which means that I can't access the file properly. Not much you can do about it, if PHP is running as a module. If it's CGI, then I think you can set it up so the

Re: [PHP] file uploads problem

2002-09-24 Thread @ Edwin
Just a comment... On Tuesday, September 24, 2002 1:39 PM Jaski wrote: snip I tried to copy this file using move_uploaded_file($userfile, "/place/to/put/uploaded/file"); and here a strange thing happened. The file was successfully copied BUT it had permissions like -rw-- which I interpret

Re: Re: [PHP] file uploads problem

2002-09-24 Thread Jaski
No Edwin .. I can't do any thing to that file .. not even from my ftp client .. can't download can't change permissions .. The server is managed by rackspace .. I doubt they would do some thing like running apache as root which I hear is a v foolish thing to do (frankly I don't know how to

Re: [PHP] file uploads problem

2002-09-24 Thread Marek Kilimajer
What I don't understand is how can your webserver create a file and then not to have permission to read it. What is your setup? Jaski wrote: No Edwin .. I can't do any thing to that file .. not even from my ftp client .. can't download can't change permissions .. The server is managed by

Re: Re: [PHP] file uploads problem

2002-09-24 Thread @ Edwin
Jaski, On Tuesday, September 24, 2002 5:07 PM Jaski wrote: No Edwin .. I can't do any thing to that file .. not even from my ftp client .. can't download can't change permissions .. I think you won't be able to do anything with the file IF you use your ftp client. The reason is because *you*

Re: Re: [PHP] file uploads problem

2002-09-24 Thread @ Edwin
Oops, what I wanted to post was http://www.php.net/manual/en/function.chmod.php and not http://www.php.net/manual/en/function.chown.php - E On Tuesday, September 24, 2002 6:00 PM @ Edwin wrote: Jaski, On Tuesday, September 24, 2002 5:07 PM Jaski wrote: No Edwin .. I can't do any

Re: Re: Re: [PHP] file uploads problem

2002-09-24 Thread Jaski
Thanks Edwin .. this one was Bang On. It was exactly what you said .. and now it works .. thanks a lot. Jaski On Tue, 24 Sep 2002 Edwin wrote : Jaski, On Tuesday, September 24, 2002 5:07 PM Jaski wrote: No Edwin .. I can't do any thing to that file .. not even from my ftp client ..

[PHP] file uploads problem

2002-09-23 Thread Jaski
Hi, (Linux RH 7.1, Apache/1.3.22, PHP 4.0.6). I am trying to write a script to send emails. It needs to support attachments. The point where I am stuck is after the file to be attached gets uploaded to /tmp as /tmp/tempfilename thorough an HTTP POST form. I am not able to open that file

Re: [PHP] file uploads problem

2002-09-23 Thread Oscar F
Try: $upload = /path/to/copy/; $upload_path = $upload/$file_filename; if (is_uploaded_file($file)) { Exec(cp $filename $upload_path); } Then you have the file at /path/to/copy/filename, and you can do whatever you want with it. (I'm assuming the file field of the form is called file, and

Re: Re: [PHP] file uploads problem

2002-09-23 Thread Jaski
Thanks .. but I think you are saying exactly what I wrote I was doing .. except that you have used exec(cp $file $path) while I tried PHP's copy() function .. I don't think that will make a difference...though will give that a try any way. Forgot to mention in my previous mail that the

[PHP] php file uploads and type 'image/pjpeg' ???

2002-05-13 Thread John Ngo
basically i've got a file upload script (that works) what i want to do now is restrict it to filetypes of 'image/jpeg' however now i can't upload jpegs cause their filetype appears to be 'image/pjpeg' does anyone know of what could be happening here? -- PHP General Mailing List

[PHP] Re: php file uploads and type 'image/pjpeg' ???

2002-05-13 Thread Jochem
I guess you could check the $userfile_type for the correct type. John Ngo [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... basically i've got a file upload script (that works) what i want to do now is restrict it to filetypes of 'image/jpeg' however now i

[PHP] Re: php file uploads and type 'image/pjpeg' ???

2002-05-13 Thread John Ngo
actually i looked up pjpeg turns out its an actual filetype in its own right haha pjpeg uses progressive encoding as opposed to normal jpeg or something whats weirder is everyfile i've tried on my computer appears to be pjpeg encoded Jochem [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] Re: php file uploads and type 'image/pjpeg' ???

2002-05-13 Thread Miguel Cruz
On Tue, 14 May 2002, John Ngo wrote: actually i looked up pjpeg turns out its an actual filetype in its own right haha pjpeg uses progressive encoding as opposed to normal jpeg or something whats weirder is everyfile i've tried on my computer appears to be pjpeg encoded You're probably

[PHP] File Uploads Security Fix

2002-05-03 Thread Miguel Loureiro
Hello, after copy do_download.php to php4.0.6/main what I have to do? T.Y. -- Best Regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File Uploads

2002-02-06 Thread Ben Crawford
I apoligize if this question has already been asked but I am looking to upload files to my server. I use a form and can get the files to upload as user nobody with a random file name on my Linux box. That is the problem, the user is 'nobody'. This is either an Apache thing or a PHP thing

Re: [PHP] File Uploads

2002-02-06 Thread Jeff Sheltren
The username will be the same username that apache is running as, which you can specify in your httpd.conf file. -Jeff At 10:32 AM 2/6/2002 -0500, Ben Crawford wrote: I apoligize if this question has already been asked but I am looking to upload files to my server. I use a form and can

Re: [PHP] File Uploads

2001-09-13 Thread Christopher CM Allen
Thanks Much Martin! --ccma --snip-- good luck! /Martin -- 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

  1   2   >