[PHP] Uploading a file through PHP form

2007-12-13 Thread Ron Piggott
How do you upload a file using PHP? Also what is the web page which describes the procedure on php.net ? Thanks, Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Uploading a file through PHP form

2007-12-13 Thread Benjamin
Try checking out this manual page: http://us3.php.net/features.file-upload It includes pretty much everything you'll need to know. --Ben On Dec 13, 2007 9:03 PM, Ron Piggott [EMAIL PROTECTED] wrote: How do you upload a file using PHP? Also what is the web page which describes the procedure on

RE: [PHP] Uploading a file through PHP form

2007-12-13 Thread Bastien Koert
Hi Ron, http://www.php.net/manual/en/features.file-upload.php is the page its pretty simple Bastien From: [EMAIL PROTECTED] To: php-general@lists.php.net Date: Thu, 13 Dec 2007 21:03:00 -0500 Subject: [PHP] Uploading a file through PHP form How do you upload a file using PHP? Also what

[PHP] Uploading Image File

2006-05-10 Thread Renzo Clavijo
Morning all. I would like to know if anybody could e-mail an example of code to upload files into a MySQL server using PHP from a form. Thanks a lot. Best Regards, RENZO CLAVIJO

Re: [PHP] Uploading Image File

2006-05-10 Thread gustav
Morning all. I would like to know if anybody could e-mail an example of code to upload files into a MySQL server using PHP from a form. Thanks a lot. Best Regards, RENZO CLAVIJO What exactly do you mean? Best regards /Gustav Wiberg -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Uploading Image File

2006-05-10 Thread Jochem Maas
Renzo Clavijo wrote: Morning all. I would like to know if anybody could e-mail an example of code to upload files into a MySQL server using PHP from a form. recently a new phenomenon has appeared online, namely search engines:

[PHP] Uploading a file

2005-09-06 Thread Josh
Hi I have recently been working on a site which allows the user to upload a file to the site. Originally calling the $_FILES['file']['tmp_name'] worked fine, however the web host has now disabled all global variables and if I'm not mistaken $_FILES is global. Does anyone know of a work

Re: [PHP] Uploading a File

2005-02-27 Thread Dotan Cohen
On Sat, 26 Feb 2005 23:04:59 -0700, Jason Bennett [EMAIL PROTECTED] wrote: Hi all, I'm having this problem trying to upload a file using PHP. I am using Apache (compiled from source) and PHP 5.0.3 The entire contents of the page is: form method=post enctype=multipart/form-data

Re: [PHP] Uploading a File

2005-02-27 Thread anirudh dutt
were those two sections in the same file? entire contents and entire script can be a bit unclear. if they are in the same file... u might want to put an if (!empty($_FILES['myfile']['name'])) { //second section that handles files upload // the $uploaddir = /tmp; part } it would be good to give

[PHP] Uploading a File

2005-02-26 Thread Jason Bennett
Hi all, I'm having this problem trying to upload a file using PHP. I am using Apache (compiled from source) and PHP 5.0.3 The entire contents of the page is: form method=post enctype=multipart/form-data action=/upload.php INPUT TYPE=hidden name=MAX_FILE_SIZE value=52428800 input type=file

RE: [PHP] Uploading a File Solution

2005-02-26 Thread Jason Bennett
, it took it as 2 bytes either way. Cheers, J. -Original Message- From: Jason Bennett [mailto:[EMAIL PROTECTED] Sent: Saturday, February 26, 2005 11:05 PM To: php-general@lists.php.net Subject: [PHP] Uploading a File Hi all, I'm having this problem trying to upload a file using PHP. I am

[PHP] Uploading a file to server behind a firewall

2004-02-26 Thread Rick Laird
I am trying to upload a file to a server behind a firewall. Notes It works fine from inside the firewall. I access the server and run the following ?php phpinfo(); ? Bug when I run the following code. It works in from within the firewall. But not from outside. I have port

Re: [PHP] uploading a file from a form

2003-07-29 Thread Tom Rogers
Hi, Friday, July 25, 2003, 1:48:50 AM, you wrote: AM I am having a problem with uploading a file from a form. I changed the AM permission on the directory, but I am still getting an error. Here is my AM error: AM Copy failed./home/vencel/www/images/apt/company_logo/14Update Failed! AM It

Re: [PHP] uploading a file from a form

2003-07-29 Thread Amanda McComb
The version is PHP Version 4.2.3. On Tue, 29 Jul 2003, Tom Rogers wrote: Hi, Friday, July 25, 2003, 1:48:50 AM, you wrote: AM I am having a problem with uploading a file from a form. I changed the AM permission on the directory, but I am still getting an error. Here is my AM error:

Re[2]: [PHP] uploading a file from a form

2003-07-29 Thread Tom Rogers
Hi, Wednesday, July 30, 2003, 12:09:44 AM, you wrote: AM The version is PHP Version 4.2.3. AM On Tue, 29 Jul 2003, Tom Rogers wrote: Then you can use the $_FILES array like this: if($_FILES[photo][error]==0){ //make sure no errors on upload if(!empty($_FILES[photo][name])){ //do we

Re: [PHP] uploading a file from a form

2003-07-28 Thread Amanda McComb
I'm not sure what that means...how do I use it, and where? On Fri, 25 Jul 2003, Marek Kilimajer wrote: Don't you need to use $HTTP_POST_FILES array because you have register_globals off? Amanda McComb wrote: I am having a problem with uploading a file from a form. I changed the

Re: [PHP] uploading a file from a form

2003-07-28 Thread Marek Kilimajer
Everything is in the manual: http://www.php.net/features.file-upload Amanda McComb wrote: I'm not sure what that means...how do I use it, and where? On Fri, 25 Jul 2003, Marek Kilimajer wrote: Don't you need to use $HTTP_POST_FILES array because you have register_globals off? Amanda McComb

Re: [PHP] uploading a file from a form

2003-07-28 Thread Martin Peck
: Monday, July 28, 2003 3:43 PM Subject: Re: [PHP] uploading a file from a form Everything is in the manual: http://www.php.net/features.file-upload Amanda McComb wrote: I'm not sure what that means...how do I use it, and where? On Fri, 25 Jul 2003, Marek Kilimajer wrote: Don't you

Re: [PHP] uploading a file from a form

2003-07-25 Thread Marek Kilimajer
Don't you need to use $HTTP_POST_FILES array because you have register_globals off? Amanda McComb wrote: I am having a problem with uploading a file from a form. I changed the permission on the directory, but I am still getting an error. Here is my error: Copy

Re: [PHP] uploading a file from a form

2003-07-25 Thread Curt Zirzow
* Thus wrote Amanda McComb ([EMAIL PROTECTED]): mysql_query($add_image_query) or die(Update Failed!); Print out the $add_image_query to see whats wrong with it. Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/)

[PHP] uploading a file from a form

2003-07-24 Thread Amanda McComb
I am having a problem with uploading a file from a form. I changed the permission on the directory, but I am still getting an error. Here is my error: Copy failed./home/vencel/www/images/apt/company_logo/14Update Failed! It looks like it's not finding the file type. Here is my code: ?

[PHP] Uploading a file from a specific directory

2003-04-05 Thread José RELLAND
With : FORM ENCTYPE=multipart/form-data ACTION=_URL_ METHOD=POST ... Envoyez ce fichier : INPUT NAME=userfile TYPE=file ... /FORM Is there a parameter wich indicates the directory where the file must be uploaded ? For example, from the root of my site. Thank You -- PHP General Mailing List

RE: [PHP] Uploading a file from a specific directory

2003-04-05 Thread John W. Holmes
With : FORM ENCTYPE=multipart/form-data ACTION=_URL_ METHOD=POST ... Envoyez ce fichier : INPUT NAME=userfile TYPE=file ... /FORM Is there a parameter wich indicates the directory where the file must be uploaded ? The file is uploaded to the directory specified in php.ini. You must

[PHP] uploading a file via php - i need some simple code

2002-07-03 Thread Phil Schwarzmann
I am having the worst trouble trying to write a tiny simple script that will upload a file. Below is my code - can anyone tell me why it's not working HTML form name=form1 method=post action=upload.php enctype=multipart/form-data input type=hidden name=MAX_FILE_SIZE value=1000 input

Re: [PHP] uploading a file via php - i need some simple code

2002-07-03 Thread Lowell Allen
From: Phil Schwarzmann [EMAIL PROTECTED] I am having the worst trouble trying to write a tiny simple script that will upload a file. Below is my code - can anyone tell me why it's not working HTML form name=form1 method=post action=upload.php enctype=multipart/form-data input

RE: [PHP] uploading a file

2002-07-02 Thread Beverly Steiner
6.0.26. Any suggestions on what I need to add? Thanx, Bev -Original Message- From: Balaji Ankem [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 12:11 PM To: 'Phil Schwarzmann' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] uploading a file Upload.html === !DOCTYPE html public

Re: [PHP] uploading a file

2002-07-02 Thread Jason Wong
On Tuesday 02 July 2002 22:35, Beverly Steiner wrote: Balaji, I tried to implement the code you put in this email and I'm having some problems. I am able to browse and choose a file from my system then click upload. The php script doesn't get the value of $path. The site is running PHP

[PHP] uploading a file

2002-07-01 Thread Phil Schwarzmann
anyone have some code they can send me that will successfully upload a file? I've got all the HTML correct, it's just that my PHP code ain't working. Thanks! Phil

RE: [PHP] uploading a file

2002-07-01 Thread Jay Blanchard
How do you know it ain't working? Send us your code, maybe we can fix it. -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 10:59 AM To: [EMAIL PROTECTED] Subject: [PHP] uploading a file anyone have some code they can send me

Re: [PHP] uploading a file

2002-07-01 Thread Mirza Muharemagic
Hi Phil, your input file name should be the_file snip global $the_path_news, $the_file_name, $the_file, $the_path; if ($the_file_name) { if (!@move_uploaded_file($the_file, $the_path./.$the_file_name)) {

RE: [PHP] uploading a file

2002-07-01 Thread Balaji Ankem
[mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 9:29 PM To: [EMAIL PROTECTED] Subject: [PHP] uploading a file anyone have some code they can send me that will successfully upload a file? I've got all the HTML correct, it's just that my PHP code ain't working. Thanks! Phil

[PHP] uploading a file - here is the error message...

2002-07-01 Thread Phil Schwarzmann
Here is the error I'm receiving when attempting to upload a file Warning: Unable to create 'temp/test.txt': Permission denied in /home/.../www/website/upload3.php on line 11 ..could it be that my web host isn't giving me permissions to upload files ?

RE: [PHP] uploading a file - here is the error message...

2002-07-01 Thread Lazor, Ed
: Monday, July 01, 2002 10:13 AM To: [EMAIL PROTECTED] Subject: [PHP] uploading a file - here is the error message... Here is the error I'm receiving when attempting to upload a file Warning: Unable to create 'temp/test.txt': Permission denied in /home/.../www/website/upload3.php on line 11

Re: [PHP] uploading a file - here is the error message...

2002-07-01 Thread Kevin Stone
PROTECTED] Sent: Monday, July 01, 2002 11:13 AM Subject: [PHP] uploading a file - here is the error message... Here is the error I'm receiving when attempting to upload a file Warning: Unable to create 'temp/test.txt': Permission denied in /home/.../www/website/upload3.php on line 11

Re: [PHP] uploading a file - here is the error message...

2002-07-01 Thread Mirza Muharemagic
Hi Phil, first thing u should do is to check permission of this directory (CHMOD). the 2nd one, u should replace function copy with move_uploaded_file. than is should work. Mirza [EMAIL PROTECTED] 01.07.2002 19:13 Here is the error I'm receiving when attempting to upload

Re: [PHP] uploading a file - here is the error message...

2002-07-01 Thread Phil Schwarzmann
I took your advice first and tried move_uploaded_file and it kept saying It barfed (hehe). Then I switched to copY and got this new error. Thaks for your help!! [EMAIL PROTECTED] 07/01/02 01:29PM Hi Phil, first thing u should do is to check permission of this directory (CHMOD).

Re: [PHP] Uploading a file

2002-01-25 Thread Todd Cary
Jason - Using the recommended HTML, everything works *except* the file does not become part of the data sent back to the server. In fact, the VALUE from the INPUT element is not received (e.g. $filename== $HTTP_POST_VARS[filename];). I am using RH Linux 7.2 with Apache. Is there a parameter

Re: [PHP] Uploading a file

2002-01-25 Thread Shane Wright
Hi Jason You have set the form's ENCTYPE attribute to 'multipart/form-data' haven't you? FORM ENCTYPE='multipart/form-data' -- Shane On Friday 25 Jan 2002 2:08 pm, Todd Cary wrote: Jason - Using the recommended HTML, everything works *except* the file does not become part of the

Re: [PHP] Uploading a file

2002-01-25 Thread Jason Wong
On Friday 25 January 2002 22:08, Todd Cary wrote: Jason - Using the recommended HTML, everything works *except* the file does not become part of the data sent back to the server. In fact, the VALUE from the INPUT element is not received (e.g. $filename== $HTTP_POST_VARS[filename];). I am

Re: [PHP] Uploading a file

2002-01-24 Thread daniel
] CC: [EMAIL PROTECTED] Subject: Re: [PHP] Uploading a file I though I had followed the example in the manual. Are you saying that there is something I missed? Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Uploading a file

2002-01-24 Thread JSheble
]; run by ezmlm Date: Thu, 24 Jan 2002 14:31:03 -0800 From: Todd Cary [EMAIL PROTECTED] X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; U) To: daniel [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [PHP] Uploading a file I though I had followed the example in the manual. Are you

Re: [PHP] Uploading a file

2002-01-24 Thread Todd Cary
I am not well versed in Apache. Is there so parameter that I may not have sett correctly? Something that would cause the problen I am having? Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Uploading a file

2002-01-24 Thread Ronald Tezuka
been able to figure out why I haven't been able to get a file greater than 6 megs to upload? I still have copies of all the messages sent just in case nobody remembers my problem ;) Ron. From: JSheble [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Subject: Re: [PHP] Uploading a file Date: Thu

Re: [PHP] Uploading a file

2002-01-24 Thread Jason Wong
On Friday 25 January 2002 13:20, Ronald Tezuka wrote: To keep this arguement from going on indefinately one thing I know that I haven't seen anyone commenting on is the fact that even if MAX_FILE_SIZE is optional, the HIDDEN element is not optional. Somewhere on those PHP pages it says that

[PHP] Uploading a file into a database....ideas please.

2001-06-20 Thread Sam
Title: Uploading a file into a databaseideas please. Hi all, I have several text files that need to be uploaded each week to a mySQL db. At the moment I'm deleting the tables via telnet then exporting them via ODBC. I have tried uploading in the following ways. 1. Using the copy

RE: [PHP] Uploading a file into a database....ideas please.

2001-06-20 Thread scott [gts]
to add stuff to your DB. -Original Message-From: Sam [mailto:[EMAIL PROTECTED]]Sent: Wednesday, June 20, 2001 5:06 AMTo: 'php'Subject: [PHP] Uploading a file into a databaseideas please. Hi all, I have several text files that need to be uploaded each week to a mySQL db