[PHP] Uploading files without saving them

2008-06-23 Thread James Colannino
Hey everyone. Here's a simple question. I'd like to be able to import information from a text file located on the client without actually saving it on the server; that is, I simply want to read the data into memory on the server, without actually saving it to a file. I've been googling

RE: [PHP] Uploading files without saving them

2008-06-23 Thread Boyd, Todd M.
-Original Message- From: James Colannino [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2008 3:48 PM To: php-general@lists.php.net Subject: [PHP] Uploading files without saving them Hey everyone. Here's a simple question. I'd like to be able to import information from a text

Re: [PHP] Uploading files without saving them

2008-06-23 Thread James Colannino
Boyd, Todd M. wrote: IIRC, if you never move it out of PHP's defaulted temporary storage sandbox, it will eventually be wiped. When files are uploaded via PHP, they must explicitly be moved into the active file system. Ah, I see. What would happen if two people just happened to upload files

Re: [PHP] Uploading files without saving them

2008-06-23 Thread James Colannino
Nitsan Bin-Nun wrote: PHP uses randomaly name for each of them (during the upload to the temporary directory), when its done PHP moves the file to the objective location, i dont think you will obstacle filename problems. Ah, excellent! Thanks :) James -- My blog:

Re: [PHP] Uploading files without saving them

2008-06-23 Thread Daniel Brown
On Mon, Jun 23, 2008 at 6:05 PM, James Colannino [EMAIL PROTECTED] wrote: Ah, I see. What would happen if two people just happened to upload files with the same filename at the same time? Would one stomp over the other, or does PHP have mechanisms to handle that sort of situation? Todd

Re: [PHP] Uploading files without saving them

2008-06-23 Thread Shawn McKenzie
Daniel Brown wrote: On Mon, Jun 23, 2008 at 6:05 PM, James Colannino [EMAIL PROTECTED] wrote: Ah, I see. What would happen if two people just happened to upload files with the same filename at the same time? Would one stomp over the other, or does PHP have mechanisms to handle that sort of

Re: [PHP] Uploading files without saving them

2008-06-23 Thread Daniel Brown
On Mon, Jun 23, 2008 at 8:17 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: Oooo... where can I get this 'summer.jpg'? It's an Easter Egg embedded in the $_FILES array under an undocumented hidden key. ?php

[PHP] uploading files... necessary Ajax?

2007-11-21 Thread pere roca
Hi, a basic question: I want to send a CSV file and some other parameters. In my FORM I have method=POST input type=file and action=http://php;; It sends it to the php file but I don't want the php to be visualized (in fact it just works with the data and inserts in database). I want to keep

Re: [PHP] uploading files... necessary Ajax?

2007-11-21 Thread Christian Hänsel
pere roca [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hi, a basic question: I want to send a CSV file and some other parameters. In my FORM I have method=POST input type=file and action=http://php;; It sends it to the php file but I don't want the php to be visualized

Re: [PHP] uploading files... necessary Ajax?

2007-11-21 Thread Jochem Maas
pere roca wrote: Hi, a basic question: I want to send a CSV file and some other parameters. In my FORM I have method=POST input type=file and action=http://php;; It sends it to the php file but I don't want the php to be visualized (in fact it just works with the data and inserts in

Re: [PHP] uploading files... necessary Ajax?

2007-11-21 Thread T . Lensselink
On Wed, 21 Nov 2007 14:06:17 +0100, Jochem Maas [EMAIL PROTECTED] wrote: pere roca wrote: Hi, a basic question: I want to send a CSV file and some other parameters. In my FORM I have method=POST input type=file and action=http://php;; It sends it to the php file but I don't want the php

RE: [PHP] uploading files... necessary Ajax?

2007-11-21 Thread Jay Blanchard
[snip] Seems to me Pere want's to do an upload without reloading the whole page. [/snip] The problem is that you cannot upload files using Ajax alone. But you can do it without a reload, requires an invisible IFRAME and a little technique. Search Google for several different articles on this. --

RE: [PHP] uploading files... necessary Ajax?

2007-11-21 Thread T . Lensselink
On Wed, 21 Nov 2007 08:38:18 -0600, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Seems to me Pere want's to do an upload without reloading the whole page. [/snip] The problem is that you cannot upload files using Ajax alone. But you can do it without a reload, requires an invisible IFRAME

Re: [PHP] uploading files... necessary Ajax?

2007-11-21 Thread pere roca ristol
Thanks for the answer, you are right, Jay, I don't want nor reload the page nor a new .php page (the one that works with the data I post) appears. It's difficult to believe that a so dummy thing is not working in php (without Ajax)! I found this URL explaining ajax/php for uploading files.

RE: [PHP] uploading files... necessary Ajax?

2007-11-21 Thread Andrés Robinet
@lists.php.net Subject: Re: [PHP] uploading files... necessary Ajax? Thanks for the answer, you are right, Jay, I don't want nor reload the page nor a new .php page (the one that works with the data I post) appears. It's difficult to believe that a so dummy thing is not working in php

Re: [PHP] Uploading Files into MySQL

2007-05-28 Thread Greg Donald
On 5/24/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am working on a script to upload files into MySQL db. The following script uploads to a file system how do I go about uploading the file into the DB? Where do I put the SQL statement in the code below?

[PHP] Uploading Files into MySQL

2007-05-24 Thread [EMAIL PROTECTED]
I am working on a script to upload files into MySQL db. The following script uploads to a file system how do I go about uploading the file into the DB? Where do I put the SQL statement in the code below? form method='POST' enctype=multipart/form-data input type=file name=myfile input

Re: [PHP] Uploading Files Should I use MySQL or Server for storage?

2007-05-21 Thread Richard Lynch
On Sun, May 20, 2007 8:16 pm, [EMAIL PROTECTED] wrote: I am in the process of adding a part to my website which would include pictures, pdf files, txt files, and excel files. The files sizes could be anywhere on average of 100k to 2mb. Do you think I should be uploading the files to a

Re: [PHP] Uploading Files Should I use MySQL or Server for storage?

2007-05-21 Thread Richard Lynch
On Sun, May 20, 2007 10:43 pm, Robert Cummings wrote: On Sun, 2007-05-20 at 20:35 -0500, Greg Donald wrote: On 5/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am in the process of adding a part to my website which would include pictures, pdf files, txt files, and excel files. The

[PHP] Uploading Files Should I use MySQL or Server for storage?

2007-05-20 Thread [EMAIL PROTECTED]
I am in the process of adding a part to my website which would include pictures, pdf files, txt files, and excel files. The files sizes could be anywhere on average of 100k to 2mb. Do you think I should be uploading the files to a MySQL database or to my server? I have head that there are pros

Re: [PHP] Uploading Files Should I use MySQL or Server for storage?

2007-05-20 Thread Richard Davey
Hi benc11, Monday, May 21, 2007, 2:16:19 AM, you wrote: I am in the process of adding a part to my website which would include pictures, pdf files, txt files, and excel files. The files sizes could be anywhere on average of 100k to 2mb. Do you think I should be uploading the files to a

Re: [PHP] Uploading Files Should I use MySQL or Server for storage?

2007-05-20 Thread [EMAIL PROTECTED]
Thanks Rich. The files are not going to be downloaded all that often and the overall traffic is relatively low. However, as with probably everyone I am hoping and expecting big increases in traffic. I currently run most of my site off LAMP. My main concerns as you mentioned is using

Re: [PHP] Uploading Files Should I use MySQL or Server for storage?

2007-05-20 Thread Greg Donald
On 5/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am in the process of adding a part to my website which would include pictures, pdf files, txt files, and excel files. The files sizes could be anywhere on average of 100k to 2mb. Do you think I should be uploading the files to a MySQL

Re: [PHP] Uploading Files Should I use MySQL or Server for storage?

2007-05-20 Thread Robert Cummings
On Sun, 2007-05-20 at 20:35 -0500, Greg Donald wrote: On 5/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am in the process of adding a part to my website which would include pictures, pdf files, txt files, and excel files. The files sizes could be anywhere on average of 100k to 2mb.

Re: [PHP] Uploading Files Should I use MySQL or Server for storage?

2007-05-20 Thread Larry Garfield
A well-optimized and load balanced database-based setup will beat a badly configured file system setup, sure. But will it beat a well-optimized and load balanced file system setup? I would be very surprised. Really, it comes down to this, assuming you know what you're doing either way.

Re: [PHP] Uploading Files Should I use MySQL or Server for storage?

2007-05-20 Thread Robert Cummings
On Sun, 2007-05-20 at 23:11 -0500, Larry Garfield wrote: A well-optimized and load balanced database-based setup will beat a badly configured file system setup, sure. But will it beat a well-optimized and load balanced file system setup? I would be very surprised. Really, it comes down

Re: [PHP] Uploading Files Should I use MySQL or Server for storage?

2007-05-20 Thread Larry Garfield
On Sunday 20 May 2007, Robert Cummings wrote: On Sun, 2007-05-20 at 23:11 -0500, Larry Garfield wrote: A well-optimized and load balanced database-based setup will beat a badly configured file system setup, sure. But will it beat a well-optimized and load balanced file system setup? I

Re: [PHP] Uploading files.

2006-10-29 Thread Richard Lynch
On Sat, October 28, 2006 11:47 am, João Cândido de Souza Neto wrote: I´m in a big doubt about uploading files ins a safe way. I wont give permission for the web server user to write in some folder of my system and then use move_uploaded_file function in order to keep it secure. The upload

[PHP] Uploading files.

2006-10-28 Thread Jo�o C�ndido de Souza Neto
Hi everyone. I´m in a big doubt about uploading files ins a safe way. I wont give permission for the web server user to write in some folder of my system and then use move_uploaded_file function in order to keep it secure. I was using ftp functions to do it but a get a new trouble, in some

Re: [PHP] Uploading files.

2006-10-28 Thread Ed Lazor
Side note on the PHP FTP... I'm sure there are PHP FTP classes out there for you to use... google php ftp class and you'll see a few options to explore. On Oct 28, 2006, at 10:47 AM, João Cândido de Souza Neto wrote: Hi everyone. I´m in a big doubt about uploading files ins a safe way.

Re: [PHP] Uploading files / processing with a PHP script

2006-10-09 Thread Richard Lynch
On Sun, October 8, 2006 7:47 am, Ron Piggott (PHP) wrote: When I upload a file into an application I am writing with the HTML form command INPUT NAME=userfile TYPE=file and then give the PHP command move_uploaded_file( $userfile , $destination_file_name); the owner of the file is 'www'.

Re: [PHP] Uploading files / processing with a PHP script

2006-10-09 Thread Richard Lynch
On Sun, October 8, 2006 2:49 pm, Larry Garfield wrote: The owner of a file can change ownership of the file, too, I believe, essentially willing it to someone else. I sure hope not... Cuz then I could chmod 4777 a file to make it execute as owner, then I could will it to 'root' owner, and then

[PHP] Uploading files / processing with a PHP script

2006-10-08 Thread Ron Piggott (PHP)
When I upload a file into an application I am writing with the HTML form command INPUT NAME=userfile TYPE=file and then give the PHP command move_uploaded_file( $userfile , $destination_file_name); the owner of the file is 'www'. Is there any way I am able to automatically change the owner of

Re: [PHP] Uploading files / processing with a PHP script

2006-10-08 Thread Stut
Ron Piggott (PHP) wrote: When I upload a file into an application I am writing with the HTML form command INPUT NAME=userfile TYPE=file and then give the PHP command move_uploaded_file( $userfile , $destination_file_name); the owner of the file is 'www'. Is there any way I am able to

Re: [PHP] Uploading files / processing with a PHP script

2006-10-08 Thread Larry Garfield
On Sunday 08 October 2006 13:25, Stut wrote: the owner of the file is 'www'. Is there any way I am able to automatically change the owner of the file to my FTP login identity (for example 'rpiggott') As far as I am aware only the root user can change the owner of files. You could set up

Re: [PHP] Uploading files / processing with a PHP script

2006-10-08 Thread John Wells
On 10/8/06, Ron Piggott (PHP) [EMAIL PROTECTED] wrote: the owner of the file is 'www'. Is there any way I am able to automatically change the owner of the file to my FTP login identity (for example 'rpiggott') Just curious, why do you want to do this? What are you *really* hoping to

Re: [PHP] Uploading Files

2006-05-22 Thread Richard Lynch
On Sun, May 21, 2006 3:52 am, P. Guethlein wrote: I'm at one of those frustration levels can't seem to get a script working that will post and upload a file to the server. Im working with the below. Can you help? ?php var_dump($_FILES); $numoffile = 1; $file_dir =

[PHP] Uploading Files

2006-05-21 Thread P. Guethlein
I'm at one of those frustration levels can't seem to get a script working that will post and upload a file to the server. Im working with the below. Can you help? ?php $numoffile = 1; $file_dir = d:/upload/; if ($_FILES['myfiles']) { print_r ($_FILES); for

Re: [PHP] Uploading Files

2006-05-21 Thread Rabin Vincent
On 5/21/06, P. Guethlein [EMAIL PROTECTED] wrote: I'm at one of those frustration levels can't seem to get a script working that will post and upload a file to the server. Im working with the below. Can you help? ?php $numoffile = 1; $file_dir = d:/upload/; if

Re: [PHP] Uploading Files

2006-05-21 Thread tedd
At 1:52 AM -0700 5/21/06, P. Guethlein wrote: I'm at one of those frustration levels can't seem to get a script working that will post and upload a file to the server. Im working with the below. Can you help? Guethlein: Yes, try this -- watch for line breaks. Also, create folders

Re: [PHP] Uploading Files - Beginner

2006-05-21 Thread P. Guethlein
I'm still very frustrated trying to figure out how to upload a file. I must have tried 15 different coding examples and none of them work. When I try and debug and do a print_r($_FILES); All I'm getting back is array() with no data. File upload is allowed in my php.ini Can anyone offer any

RE: [PHP] Uploading Files - Beginner

2006-05-21 Thread Jay Blanchard
[snip] I'm still very frustrated trying to figure out how to upload a file. I must have tried 15 different coding examples and none of them work. When I try and debug and do a print_r($_FILES); All I'm getting back is array() with no data. File upload is allowed in my php.ini Can anyone

Re: [PHP] Uploading Files - SOLVED

2006-05-21 Thread P. Guethlein
It worked perfectly! ES Simple Uploader Script located at http://www.hotscripts.com/PHP/Scripts_and_Programs/File_Manipulation/Upload_Systems/index.html If anyone else is on their learning curve... -Pete At 04:56 PM 05/21/2006, P. Guethlein wrote: I'm still very frustrated trying to figure

RE: [PHP] Uploading Files - Beginner

2006-05-21 Thread P. Guethlein
Jay, Thanks for the response. I finally found a script that actually worked immediately. I posted the link in an earlier message. I found the authors directly link here http://www.energyscripts.com/Products/product2.html for others that may need help. -Pete At 05:23 PM 05/21/2006, you

[PHP] Uploading files?

2005-05-19 Thread rory walsh
Hi list, I am having a little problem with the code below. It just won't seem to work? Even though I always select a jpeg my mime content type test is never true? Have I made a silly mistake somewhere? I also run the test to see if the 'mime_content_type()' function exists first before I do

[PHP] uploading files

2005-04-13 Thread marc serra
Hi, i want to create a form to upload a file on a server. My problem is that i want to check the filesize before sending it because if the filesize is superior than 2 MB it failed and i don't want to wait for a long time for uploading a file that will fail. Can you please give me a solution to

Re: [PHP] uploading files with a single quote in the filename

2005-02-28 Thread AdamT
On 24 Feb 2005 08:22:39 -0600, Bret Hughes [EMAIL PROTECTED] wrote: On Thu, 2005-02-24 at 01:04, Dotan Cohen wrote: that. A little javascript goes a long way in these sort of situations You don't want to do that will javascript. I, for one, surf with javascript turned off. The

Re: [PHP] uploading files with a single quote in the filename

2005-02-25 Thread Bret Hughes
On Thu, 2005-02-24 at 01:04, Dotan Cohen wrote: that. A little javascript goes a long way in these sort of situations You don't want to do that will javascript. I, for one, surf with javascript turned off. The malicious script kiddie, I would presume, also would be very happy to send you

[PHP] uploading files with a single quote in the filename

2005-02-23 Thread neil
Hi When uploading files using a type=file in a form, if a file is uploaded with a single quote the file gets truncated to whatever is after the quote eg. blah'sblah.txt will be uploaded as sblah.txt Is this a magic quotes issue? What is the best way to deal with it? Neil -- PHP General

Re: [PHP] uploading files with a single quote in the filename

2005-02-23 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Hi When uploading files using a type=file in a form, if a file is uploaded with a single quote the file gets truncated to whatever is after the quote eg. blah'sblah.txt will be uploaded as sblah.txt Is this a magic quotes issue? I don't think so, test it by turning it

Re: [PHP] uploading files with a single quote in the filename

2005-02-23 Thread Bret Hughes
On Wed, 2005-02-23 at 06:49, [EMAIL PROTECTED] wrote: Hi When uploading files using a type=file in a form, if a file is uploaded with a single quote the file gets truncated to whatever is after the quote eg. blah'sblah.txt will be uploaded as sblah.txt Is this a magic quotes issue?

Re: [PHP] uploading files with a single quote in the filename

2005-02-23 Thread neil
Thanks some answers: turning magic quotes on and off seemed to make no difference 1. single quotes aren't important to me but this application allows users to upload photos which often use descriptive filenames which sometimes have single quotes eg. my mum's car.jpg. I replace the spaces with

Re: [PHP] uploading files with a single quote in the filename

2005-02-23 Thread neil
Thanks Bret I have tried turning all reporting on - error_reporting(E_ALL); but that doesn't reveal anything significant I have looked in the logs but there is nothing significant there. Because the type is file in the form it is not handled like a post - the values go into an array called

Re: [PHP] uploading files with a single quote in the filename

2005-02-23 Thread Bret Hughes
On Wed, 2005-02-23 at 16:40, [EMAIL PROTECTED] wrote: Thanks Bret I have tried turning all reporting on - error_reporting(E_ALL); but that doesn't reveal anything significant I have looked in the logs but there is nothing significant there. Because the type is file in the form it is not

Re: [PHP] uploading files with a single quote in the filename

2005-02-23 Thread neil
Hi Brett My form is effectively identical to yours form enctype=multipart/form-data action=/uploadfiles.php method=post bUpload a file:/b input name=userfile type=file size=100 No the first part of the file name is just dropped and the file with the truncated name is saved in the correct place.

Re: [PHP] uploading files with a single quote in the filename

2005-02-23 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Thanks some answers: turning magic quotes on and off seemed to make no difference 1. single quotes aren't important to me but this application allows users to upload photos which often use descriptive filenames which sometimes have single quotes eg. my mum's car.jpg. I

Re: [PHP] uploading files with a single quote in the filename

2005-02-23 Thread Bret Hughes
On Wed, 2005-02-23 at 18:45, [EMAIL PROTECTED] wrote: Hi Brett My form is effectively identical to yours form enctype=multipart/form-data action=/uploadfiles.php method=post bUpload a file:/b input name=userfile type=file size=100 No the first part of the file name is just dropped and the

Re: [PHP] uploading files with a single quote in the filename

2005-02-23 Thread Dotan Cohen
that. A little javascript goes a long way in these sort of situations You don't want to do that will javascript. I, for one, surf with javascript turned off. The malicious script kiddie, I would presume, also would be very happy to send you a silly filename without letting javascript check it.

[PHP] Uploading Files

2004-02-24 Thread Tom Wollaston
Hi I am trying to write a cript for some file uploading. So far I have come up wth: ?php if($userfile) { copy($userfile, '/home/sites/site176/web/makeit/$userfile_name'); echo Successfully Added!br\n; } ? form action=?php echo $PHP_SELF ? method=post name=upload File to Upload: input

RE: [PHP] Uploading Files

2004-02-24 Thread Rich Gray
?php if($userfile) { copy($userfile, '/home/sites/site176/web/makeit/$userfile_name'); echo Successfully Added!br\n; } ? form action=?php echo $PHP_SELF ? method=post name=upload File to Upload: input type=file name=userfileBR input type=submit value=Upload /form Hi Tom Here's some

Re: [PHP] Uploading Files

2004-02-24 Thread Tom Wollaston
I have updated my script as follows but it still doesn't seem to work: ?php $uploadpath = /home/sites/site176/web/makeit; if($userfile) { move_uploaded_file ($_FILES ['userfile'], $uploadpath/$userfile_name); echo $userfile_name; echo Successfully Added!br\n; //$username : contains the name of

Re: [PHP] Uploading Files

2004-02-24 Thread Matt Matijevich
try this if($userfile) { if(move_uploaded_file($_FILES ['userfile'], $uploadpath/$userfile_name)) { echo $userfile_name; echo Successfully Added!br\n; } else { echo (error!); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Uploading Files!

2003-11-03 Thread Dimitri Marshall
Hi there, I'm new to this new PHP thing and man it's frusterating. Anyway, I'm not gonna tell you my life story, but I just need to know how to allow users to upload files to my server . I've already made a form with the input name=whatever type=file and then a program that should get the varibles

AW: [PHP] Uploading Files!

2003-11-03 Thread Daniel Diehl
Hi Dimitri, I'm new to this new PHP thing and man it's frusterating. Anyway, I'm not gonna tell you my life story, but I just need to know how to allow users to upload files to my server . I've already made a form with the input name=whatever type=file and then a program that should get the

Re: [PHP] Uploading Files!

2003-11-03 Thread Rob Burris
Dimitri Marshall wrote: Hi there, I'm new to this new PHP thing and man it's frusterating. Anyway, I'm not gonna tell you my life story, but I just need to know how to allow users to upload files to my server . I've already made a form with the input name=whatever type=file and then a program

[PHP] Uploading files via SSH

2003-09-04 Thread Ben C.
This is not a PHP question but didn't know where else to ask it. I am uploading files via SSH Secure File Transfer and am getting the following error message. --error message start-- Failed to scan directories. Error 6: C:/Documents and Settings/My Documents/My Webs/dynamic/1.php: No such file

Re: [PHP] Uploading files via SSH

2003-09-04 Thread Evan Nemerson
Google for Failed to scan directories. Error 6 (including quotes). First result is the ssh.com faq, which has a link to http://www.ssh.com/support/faq/secureshell/qa_1_1198.html, which is your answer On Wednesday 03 September 2003 11:39 pm, Ben C. wrote: This is not a PHP question but didn't

Re: [PHP] Uploading files time out every so often

2003-07-04 Thread Sid
not get disconnected (This is unlikely, but never the less check) Hope it helps. All the best. - Sid - Original Message - From: Ivo Pletikosic [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 11:29 AM Subject: [PHP] Uploading files time out every so often Hello, I am

[PHP] Uploading files time out every so often

2003-07-03 Thread Ivo Pletikosic
Hello, I am currently involved in a site where users frequently need to upload text files of various sizes. Every so often users will experience problems where the uploads will start timing-out and need to be reinitiated. The timeout problem comes and goes, so far I've been unable to find the

[PHP] uploading files after passing vars between forms

2003-06-12 Thread Artoo
Hey I'm confused! Do I use move_uploaded_file() or copy() and what is the first parameter of both in the following case: form portion of upload.htm -- FORM NAME=Uploading ENCTYPE=multipart/form-data ACTION=confirmation.php METHOD=POST onSubmit=return

Re: [PHP] uploading files after passing vars between forms

2003-06-12 Thread Marek Kilimajer
Don't forget uploaded files are removed after confirmation.php finishes. You need to move them to a temporary directory. Artoo wrote: Hey I'm confused! Do I use move_uploaded_file() or copy() and what is the first parameter of both in the following case: form portion of upload.htm

Fw: [PHP] uploading files after passing vars between forms

2003-06-12 Thread Kevin Stone
- Original Message - From: Artoo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 12, 2003 10:16 AM Subject: [PHP] uploading files after passing vars between forms Hey I'm confused! Do I use move_uploaded_file() or copy() and what is the first parameter of both

Re: [PHP] uploading files after passing vars between forms

2003-06-12 Thread Artoo
I didn't know that Thanks for the info. Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Don't forget uploaded files are removed after confirmation.php finishes. You need to move them to a temporary directory. Artoo wrote: Hey I'm confused! Do I use

Re: [PHP] Uploading Files Via PHP

2003-03-27 Thread Marek Kilimajer
not necesserily both, either of them is enought: drwxrwxrwt2 root root 188416 Mar 27 11:23 /tmp or drwx--2 apache apache 188416 Mar 27 11:23 /var/www/uploads daniel wrote: possibly a permissions problem , dir needs to be 777 and owned by httpd -- PHP

Re: [PHP] Uploading Files Via PHP

2003-03-27 Thread Jason Wong
On Thursday 27 March 2003 18:25, Marek Kilimajer wrote: not necesserily both, either of them is enought: Not quite true :) If owned by 'httpd' then 'httpd' still needs write permission (o+w). drwxrwxrwt2 root root 188416 Mar 27 11:23 /tmp or drwx--2 apache apache

RE: [PHP] Uploading Files Via PHP

2003-03-27 Thread Dan Rossi
did u even read it ? chmod 777 + owned by httpd -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 9:40 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Uploading Files Via PHP On Thursday 27 March 2003 18:25, Marek Kilimajer wrote: not necesserily

Re: [PHP] Uploading Files Via PHP

2003-03-27 Thread Marek Kilimajer
777 + owned by httpd -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 9:40 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Uploading Files Via PHP On Thursday 27 March 2003 18:25, Marek Kilimajer wrote: not necesserily both, either of them

RE: [PHP] Uploading Files Via PHP

2003-03-27 Thread Jennifer Goodie
A world writeable directory is a security risk. Why not just fix the owner/group and only give the permissions needed, 775 at most. -Original Message- From: Dan Rossi [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 1:45 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Uploading Files

Re: [PHP] Uploading Files Via PHP

2003-03-27 Thread Philip J. Newman
: [PHP] Uploading Files Via PHP A world writeable directory is a security risk. Why not just fix the owner/group and only give the permissions needed, 775 at most. -Original Message- From: Dan Rossi [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 1:45 AM To: [EMAIL

RE: [PHP] Uploading Files Via PHP

2003-03-27 Thread Jennifer Goodie
Or you could just do it correctly the first time and be done with it. :) -Original Message- From: Philip J. Newman [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 10:23 AM To: Jennifer Goodie; Dan Rossi; [EMAIL PROTECTED] Subject: Re: [PHP] Uploading Files Via PHP You could

[PHP] Uploading Files Via PHP

2003-03-26 Thread Vernon
Is there some thing that needs to be turned on in the php.ini in order to be able to upload photos VIA php? I have the same script on one machine with the right permissions on the upload dirs on one machine and am moving to another machine which is not being uploaded. Funny thing is I'm not

Re: [PHP] Uploading Files Via PHP

2003-03-26 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Are you getting any errors through PHP? Set error reporting to E_ALL then try. ?php error_reporting(E_ALL); ? On Wednesday 26 March 2003 04:41 pm, Vernon wrote: Is there some thing that needs to be turned on in the php.ini in order to be able

RE: [PHP] Uploading Files Via PHP

2003-03-26 Thread Jennifer Goodie
. -Original Message- From: Vernon [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 4:41 PM To: [EMAIL PROTECTED] Subject: [PHP] Uploading Files Via PHP Is there some thing that needs to be turned on in the php.ini in order to be able to upload photos VIA php? I have the same script on one

RE: [PHP] Uploading Files Via PHP

2003-03-26 Thread daniel
, upload_max_filesize, upload_tmp_dir, and post_max_size directives in php.ini I would read that manual page as it deals with file uploading support. -Original Message- From: Vernon [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 4:41 PM To: [EMAIL PROTECTED] Subject: [PHP] Uploading Files Via PHP

[PHP] uploading files and MAX_FILE_SIZE and php.ini

2003-02-13 Thread David T-G
Hi, all -- Yes, I'm back again with another upload question. I promise I've been paying attention in class, but I just can't get this to work! The default upload_max_filesize in my php.ini was 2M, but I changed it to 200M and restarted the server, and now phpinfo() reports 200M. I created a

Re: [PHP] uploading files and MAX_FILE_SIZE and php.ini

2003-02-13 Thread Jason Wong
On Friday 14 February 2003 02:44, David T-G wrote: Yes, I'm back again with another upload question. I promise I've been paying attention in class, but I just can't get this to work! [snip] Now I'm at a loss for where to turn to fix this. It would seem that everything is in place! Is

RE: [PHP] uploading files and MAX_FILE_SIZE and php.ini

2003-02-13 Thread Mike Kercher
You might also check out your timeout value in php.ini -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 12:57 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] uploading files and MAX_FILE_SIZE and php.ini On Friday 14 February 2003 02:44

Re: [PHP] uploading files and MAX_FILE_SIZE and php.ini

2003-02-13 Thread David T-G
Jason, et al -- ...and then Jason Wong said... % % On Friday 14 February 2003 02:44, David T-G wrote: % % Yes, I'm back again with another upload question. I promise I've been % paying attention in class, but I just can't get this to work! % % [snip] % % Now I'm at a loss for where to

Re: [PHP] uploading files and MAX_FILE_SIZE and php.ini

2003-02-13 Thread David T-G
Mike, et al -- ...and then Mike Kercher said... % % You might also check out your timeout value in php.ini I'll definitely need to tweak that for the real world, but this was locally on a laptop. It was fun to watch the two drive lights flash back and forth as I watched my free space go down

Re: [PHP] uploading files and MAX_FILE_SIZE and php.ini

2003-02-13 Thread David T-G
Hi again -- ...and then David T-G said... % ... % Ahhh... After reading it *twice* I realized that I'm using method='post' % and so I need to set post_max_size as well. I've now confirmed that I % can upload multiple MAX_FILE_SIZE files up to post_max_size :-) Oh, yeah -- and now I need to

Re: [PHP] uploading files and MAX_FILE_SIZE and php.ini

2003-02-13 Thread Jason Wong
On Friday 14 February 2003 03:17, David T-G wrote: Mike, et al -- ...and then Mike Kercher said... % % You might also check out your timeout value in php.ini This should not have an effect because PHP only starts executing *after* the file has been fully uploaded. I'll definitely need to

[PHP] uploading files

2002-11-01 Thread Shaun Thornburgh
I am attempting to upload image files to the server from a users browser using the following code, however, the images seem to get corrupted, they look completely different and the file sizes are generally smaller, also it sometimes says file upload unsuccessful, even when it does upload the file?

[PHP] uploading files

2002-10-07 Thread Donahue Ben
I am uploading a gif file using is_upload_file($filename) function. I save the file with a file name img1.gif. It seems to work fine. But when I delete the file img1.gif then upload a different gif file and save it as img1.gif, it displays the first image i uploaded not the most recent one,

Re: [PHP] uploading files

2002-10-07 Thread 1LT John W. Holmes
] uploading files I am uploading a gif file using is_upload_file($filename) function. I save the file with a file name img1.gif. It seems to work fine. But when I delete the file img1.gif then upload a different gif file and save it as img1.gif, it displays the first image i uploaded

Re: [PHP] Uploading Files

2002-10-05 Thread Justin French
on 05/10/02 5:53 AM, Jason ([EMAIL PROTECTED]) wrote: I would like to be able to upload files from the client computer to the server via a form. I know how to build the form, but am not sure of the best way to process this. I know there are certain ftp functions that can do this, which I'm

[PHP] Uploading Files

2002-10-04 Thread Jason
I would like to be able to upload files from the client computer to the server via a form. I know how to build the form, but am not sure of the best way to process this. I know there are certain ftp functions that can do this, which I'm not sure how to use. Are there any others? Jason D.

[PHP] Uploading files

2002-06-27 Thread Tyler Longren
Hello, I usually use this code to upload files when I have a form with input type=file name=passcodeFile It no longer works for some reason: $data = fread(fopen($_POST[passcodeFile], r), filesize($_POST[passcodeFile])); Here are the errors that it produces: Warning: fopen(, r) - Success in

Re: [PHP] Uploading files

2002-06-27 Thread Bogdan Stancescu
Well, apparently $_POST[passcodeFile] is empty. The first question that comes to mind is whether you have the correct array index there. The second is why do you need the double quotes surrounding it. You should try echoing $_POST[passcodeFile] and see if it contains anything. Bogdan Tyler

[PHP] uploading files problem

2002-03-29 Thread Claudio Fedel
hi there, I'm trying to upload a file using php on an apache server running on linux. The code of the form I'm using is as follow: form enctype=\multipart/form-data\ method=POST action=$PHP_SELF?action=doupload pFile to upload:br input type=file name=file size=30 input type=text name=zio

Re: [PHP] uploading files problem

2002-03-29 Thread Balaji Ankem
hi friend, do we have static variables in php? If we have can u give the syntax!!1 Thanks in advance Balaji Content-Type: multipart/alternative; boundary=_=_NextPart_001_01C1D70D.F3519000 --_=_NextPart_001_01C1D70D.F3519000 Content-Type: text/plain hi there, I'm trying to

  1   2   >