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. -- Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo

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 s

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?

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: http://www.crazydrclaw.com/

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

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

2007-11-21 Thread Andrés Robinet
nk; Jochem Maas; php-general@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 diffi

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

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 invisi

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

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

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 visual

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

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 fil

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 M

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?

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 do

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

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

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 d

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 memory/CPU

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.

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 upl

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

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 > > > > and then give the PHP command > > move_uploaded_file( $userfile , $destination_file_name); > > the owner of the file is 'www'. Is there any way

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 accompl

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 coul

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

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. I"m > working with the below. Can you help? > > $numoffile = 1; > >$file_dir = "d:/upload/"; >if ($

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 wr

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 o

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 offer

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 o

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. I"m working with the below. Can you help? Guethlein: Yes, try this -- watch for line breaks. Also, create folders "upl

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. I"m working with the below. Can you help? 0) print "Your file(s) has been uploaded."; echo ' [snipped] The fo

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

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

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.

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 > > Upload a file: > > No the first part of the file name is just dropped and the file with the > truncated name is saved in the correct place. > > But with it escaping the quote do y

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

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 Upload a file: No the first part of the file name is just dropped and the file with the truncated name is saved in the correct place. But with it escaping the quote do you mean that you end up with a file with \ in it? That would be an illegal

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

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

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 un

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 i

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 on/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!\n"; } else { echo ("error!"); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

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: \n"; //$username : contains the name of TMP file, $usrfile_name : it's the real name of file } ?> File to Upload: I get the message that the file has been successfully added, but when I check the location the file doesn't

RE: [PHP] Uploading Files

2004-02-24 Thread Rich Gray
>if($userfile) { > copy($userfile, '/home/sites/site176/web/makeit/$userfile_name'); > echo "Successfully Added!\n"; > } > ?> > > File to Upload: > > Hi Tom Here's some quick comments.. . You need enctype="multipart/form-data" on your form for file uploads . Watch out for max file size

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 Thanks in advance, Dimitri Marshall Try using $_F

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

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

2003-07-04 Thread Sid
Well I have built a script that is responsible for upload 20Mb of files at a time. The possible probs are 1) A short disconnetion in the net connection can cause the upload to stall 2) Sometimes when I visit / post data on the same domain, the upload stalls where as if I just leave that upload be a

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

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 -

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

Re: [PHP] Uploading Files Via PHP

2003-03-27 Thread Philip J. Newman
; Sent: Friday, March 28, 2003 6:17 AM Subject: RE: [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 PRO

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 Marek Kilimajer
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 both, ei

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 necesser

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 apach

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 General

RE: [PHP] Uploading Files Via PHP

2003-03-26 Thread daniel
possibly a permissions problem , dir needs to be 777 and owned by httpd >= Original Message From "Jennifer Goodie" <[EMAIL PROTECTED]> = >http://www.php.net/manual/en/features.file-upload.php > >From the page listed above: "Related Configurations Note: See also the >file_uploads, upload_ma

RE: [PHP] Uploading Files Via PHP

2003-03-26 Thread Jennifer Goodie
http://www.php.net/manual/en/features.file-upload.php >From the page listed above: "Related Configurations Note: See also the file_uploads, 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. -Or

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. 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 to upload photos VIA php? I ha

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 nee

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 see

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 by

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 t

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

2002-10-07 Thread 1LT John W. Holmes
How are you deleting the file? How are you moving the temp file to the permanent area? Are you sure it's not a browser cache issue? ---John Holmes... - Original Message - From: "Donahue Ben" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 07, 2002 1:22 PM Subject: [PHP]

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

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 Lo

Re: [PHP] uploading files problem

2002-03-29 Thread Balaji Ankem
specify the value attribute in input elements!!! - Original Message - From: "Balaji Ankem" <[EMAIL PROTECTED]> Date: Friday, March 29, 2002 4:27 pm Subject: Re: [PHP] uploading files problem > hi friend, > > do we have static variables in php? > > If w

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

RE: [PHP] Uploading files without an HTML form

2002-03-28 Thread Collins, Robert
If you know the file location, and the location doesn't change you could do an fopen() and basically read and rewrite the file. Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: Sam Rose [mail

Re: [PHP] Uploading files in Russian? (urgent)

2002-03-04 Thread Maxim Derkachev
Hello Lauri, Monday, March 04, 2002, 7:25:27 PM, you wrote: LV> Does anybody have any ideas? Do I need to install Russian language packs LV> on my computer? Do I need to pass a header in PHP, which would define LV> the charset to use? Anything else? Which encoding to use (currently: LV> )? It

Re: [PHP] uploading files | how to avoid submitting twice?

2002-02-25 Thread Krzysztof Kocjan
In JavaScript define varaible which is global for this page, name it like page_submited, by default set it to false. On submit event set this variable to true and then from JavaScript submit form. When user second time will try to submit the form do nothig, just leave function code. Your JvaS

Re: [PHP] Uploading Files via Forms

2002-02-14 Thread Aaron Gould
Developer - Original Message - From: "Anas Mughal" <[EMAIL PROTECTED]> To: "Aaron Gould" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, February 14, 2002 10:22 AM Subject: Re: [PHP] Uploading Files via Forms > I remember doing this a while ago.

Re: [PHP] Uploading Files via Forms

2002-02-14 Thread Anas Mughal
I remember doing this a while ago. So, please excuse me if I am way off. As far as I recall, the upload form could specify maximum file size. Check if putting a larger value there helps. --- Aaron Gould <[EMAIL PROTECTED]> wrote: > I have a CD with several of our company's product > images on

Re: [PHP] uploading files to another server from PHP using SSL

2001-07-25 Thread Vincent Stoessel
Take a look at the curl functionality in the ph manual Dennis Gearon wrote: > Is it possible to open a 'https://' connection via any functions in PHP? For > example, if I have script that I want to use to edit files on another box which > has SSL enabled, I download the file using the SSL, and u

RE: [PHP] Uploading files

2001-07-02 Thread scott [gts]
use assoc. arrays, please. your code will be *much* easier to maintain and extend. variables-of-variables are headaches for everyone involved. $location = $input_form[$i]; > -Original Message- > From: David A Castillo [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 29, 2001 1:41 PM >

Re: [PHP] Uploading files

2001-05-20 Thread James, Yz
Hello Diego, You need to use copy() If the form input is like this: file: Send this Will only let you upload a file of less than 1kb if you program around that (1024 bytes in a Kb). Setting to 102400 would give you a max upload size of 100 Kb. So, simply: You can of course test whether the

Re: [PHP] Uploading files

2001-03-07 Thread Ankur Verma
have you checked the permissions on the temp directory on your server? make sure that the directory has appropriate permissions for locating the temp directory in which php is uploading the files, use amd look for upload_tmp_dir setting. hope that helps Ankur Verma - Original Message -

Re: [PHP] Uploading files

2001-02-20 Thread Chris Lee
I wouldnt worry about filenames :) just make your own file name, store that name with cross reference to the real filename in a db. I allow users to update images to our server, I store them directly in the db, I also store the mime-type along with the filename. every file has a unique file_id nu

Re: [PHP] Uploading Files via PHP

2001-02-18 Thread Michael Stearne
mageExt; }else { print "$image_name is not a valid file to upload. Please upload JPEG (.jpg) or GIF (.gif) type images only. "; return 0; } } Brian Drexler wrote: > exec( "mv $image '$Destination/$FileName'"); > ?> > > ----- Original Message

Re: [PHP] Uploading Files via PHP

2001-02-18 Thread Brian Drexler
- Original Message - From: Michael Stearne <[EMAIL PROTECTED]> To: Brian Drexler <[EMAIL PROTECTED]> Cc: Php-General <[EMAIL PROTECTED]> Sent: Sunday, February 18, 2001 1:55 PM Subject: Re: [PHP] Uploading Files via PHP > The script you are using is probably chec

Re: [PHP] Uploading Files via PHP

2001-02-18 Thread Michael Stearne
The script you are using is probably checking the MIME type of the file uploaded and rejecting any of the ones that are not one of the types you listed. Look at or post some of the code you are using to find out if this is the case. Michael Brian Drexler wrote: > I've been using a PHP uplo

Re: [PHP] uploading files

2001-02-15 Thread Richard Lynch
> Can you get php to upload an image if you have the direct location of the > file (ie. c:\bar\foo\bar\foobar.jpg), but the only thing is that I am not No. Where the file lives on the user's computer is irrelevant, and you can't just go snagging it. If you could, you could go snagging all their

Re: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Christopher Ostmo
Scott Mebberson pressed the little lettered thingies in this order... > So does anybody have a work around. > I need this becase I am creating a web updating system using my own code > and text box. Ie, I use reg epx's to search through 'my code' and change it > to proper html. Then I search thro

Re: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Philip Olson
> Doesn't anybody know anything?? Even a nope it can't be done is a better > response than nothing? > > Thanks guys Don't always expect a response, especially within 137 minutes. Also consider how dangerous it would be. If I decided to check for files on a visitors HD's and was able to downloa

Re: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Scott Mebberson
So does anybody have a work around. I need this becase I am creating a web updating system using my own code and text box. Ie, I use reg epx's to search through 'my code' and change it to proper html. Then I search through and find all file references in order to upload them. But them I am stuck w

RE: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Jason Murray
> > Does anybody know how to upload a file if the only information you > > have is the string to the location of the file on the clients hard > > drive. Also, the string was not retrieved using the form method, which > > I know about. This method can't be used and I need to be able to upload >

Re: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Timothy Aslat
Scott Mebberson wrote: > Does anybody know how to upload a file if the only information you have is > the string to the location of the file on the clients hard drive. Also, the > string was not retrieved using the form method, which I know about. This > method can't be used and I need to be able

RE: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Jason Murray
> Doesn't anybody know anything?? Even a nope it can't be done > is a better response than nothing? "Nope, it can't be done." Well ... actually, it *can* be done. But you ruled out the only possible method of doing it, for some reason. Jason -- Jason Murray [EMAIL PROTECTED] Web Design Team

Re: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Scott Mebberson
Doesn't anybody know anything?? Even a nope it can't be done is a better response than nothing? Thanks guys ""Scott Mebberson"" <[EMAIL PROTECTED]> wrote in message 96fcni$kg$[EMAIL PROTECTED]">news:96fcni$kg$[EMAIL PROTECTED]... > Hi Guys, > > Does anybody know how to upload a file if the only

Re: [PHP] uploading files through php-generated scripts

2001-01-15 Thread David P. Schwartz
Richard Lynch wrote: > > I've got a strange thing with overriding an ini file in PHP. > > > > I'm trying to implement a simple example of a script that allows a file to > be > > uploaded. > > > > I put an > tag > > ENCTYPE goes in the FORM tag, I think... maybe, but this is copied straight out

Re: [PHP] uploading files through php-generated scripts

2001-01-15 Thread Richard Lynch
> I've got a strange thing with overriding an ini file in PHP. > > I'm trying to implement a simple example of a script that allows a file to be > uploaded. > > I put an tag ENCTYPE goes in the FORM tag, I think... > on the form, along with a submit button. (yeah, the rest of the HTML is > fine

  1   2   >