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 (http://www.php.net

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 move_

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

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:

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

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 lis

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

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

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 (http://ww

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

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

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 imag

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 l

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

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

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

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 t

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 b

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

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

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 nee

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 action="https://www.myurl.com/imsafm2_main.php";> > > I'm pretty baffled at

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 https://www.myurl.com/imsafm2_main.php";> I'm pretty baffled at this stage. I don't understand why this won't work over SSL. Over the interne

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: > 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 what I want? I want

Re: [PHP] File Uploads not working over SSL

2006-10-04 Thread Rahul S. Johari
uot;Jo ã o C â ndido de Souza Neto" <[EMAIL PROTECTED]>; "PHP" > > Sent: Wednesday, 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 >

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

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 (

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

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 originall

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 it

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

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!! Send this file: --- Jough Jeaux <[EMAIL PROTECTED]> wrote: > Greetings all, I want to allow users to upload > images > to an online profile. Anyone k

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

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: [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 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 Glouce

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 = $this->_sto

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

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

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']);

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 move_uploaded_

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

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

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

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 sh

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 (http://www.php.

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

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

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

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

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 clien

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 a

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

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-23 Thread @ Edwin
Just a comment... On Tuesday, September 24, 2002 1:39 PM Jaski wrote: > 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-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 dire

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/, and you can do whatever you want with it. (I'm assuming the file field of the form is called "file", and that

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 probab

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

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

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

RE: [PHP] File Uploads

2001-09-13 Thread Martin Lindhe
> Greetings: > > Looking for a way to say *.php in this code: > if ($file != ".htaccess" && $file != "." && $file != ".." > && $file != ANY PHP FILE) > > > I have tried *.php... > separate the file extension from the $file with code looking something like this: $ext = substr($file,str

Re: [PHP] file uploads grief on linux, but okay on BSD

2001-09-05 Thread Rasmus Lerdorf
Are you using move_uploaded_file() to move the file into place? On Thu, 6 Sep 2001, Justin French wrote: > Hi all, > > > My understanding of the whole file uploading thing is not fantastic, and > i'm unsure where to go next with this one. > > I have a file-upload script which works fine on my te

RE: [PHP] file uploads & windows clients

2001-08-28 Thread Pere Vineta
I suggest you to check www.zend.com/zend/spotlight/uploading.php Bst Rgds Pere "Gerard Samuel" <[EMAIL PROTECTED]> escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Ok, I tried the to replicate on different browsers. Microsoft IE 5.5 ,6 > beta & Opera 5 all show this problem.

Re: [PHP] file uploads & windows clients

2001-08-27 Thread Gerard Samuel
Ok, I tried the to replicate on different browsers. Microsoft IE 5.5 ,6 beta & Opera 5 all show this problem. Here are some snippets of the code that Im using. Thanks <---snip---> echo "\n"; <---snip---> echo "   \n"; <---snip---> if ($pic_type != "image/jpeg") { echo "Pleas

Re: [PHP] File uploads in PHP

2001-08-16 Thread Data Driven Design
This is a very good tutorial on the subject. http://www.thickbook.com/extra/php_fileupload.phtml Data Driven Design 1506 Tuscaloosa Ave Holly Hill, Florida 32117 http://www.datadrivendesign.com Phone: (386) 226-8979 Websites That WORK For You - Original Message - From: "Dr. Evil" <[EM

Re: [PHP] file uploads grief

2001-07-20 Thread Saquib Farooq
the "5000" represent byter try making it 500 i.e 5 megabytes i think the file you are trying to upload might be bigger than 5k and 5M is safe you can keep the fileseize fixed to a large value to be safe. and instead all the fancy code just try the move_uploaded_file() command to see if it work

RE: [PHP] File Uploads and Get Method

2001-05-03 Thread Johnson, Kirk
> -Original Message- > now, on the same form, i have a multiple select box, where > you can select > multiple values from one select box. the code is as follows -- > > [ snip ] > > > if the user selects more than one country, then if you echo > $country, it > will show you only the

[PHP] more info: Re: [PHP] file uploads problem?

2001-02-22 Thread Ed Lazor
I was curious, so I uploaded a file using the upload form and transferred the same file via ftp and did a diff on the two files. Here's the results: diff -a Poster.jpg Poster_test.jpg 0a1,2 > Content-Type: image/pjpeg > Does that help? -Ed At 06:01 PM 2/22/2001 -0800, Ed Lazor wrote: >More

Re: [PHP] file uploads problem?

2001-02-22 Thread Ed Lazor
More info: I transferred an image to the web server via ftp and was able to view it successfully from the web site. Here's an example image that was transferred using a file upload form that won't display properly: http://www.atfantasy.com/attachments/3224/samurai1.jpg When you try to view i