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 w
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
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 g
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:
>
>
>
>
>
>
>
> The entire script is:
>
>
Sorry all,
I found the problem. I had put in an entry in post_max_size as "2G"
however PHP seems to think that meant 2 bytes. I lowered it down to
something reasonable in "M" and it worked fine. I'm not sure if that is
a bug or not regardless of whether or not 2G is smart for that variable,
it
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> err
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
-
From: "Marek Kilimajer" <[EMAIL PROTECTED]>
To: "Amanda McComb" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: 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/f
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 wr
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
* 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
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 failed./home/vencel/www/images/ap
> With :
>
> <...
> Envoyez ce fichier :
> <...
>
>
> 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
move/copy it from there before the script ends.
---John W. Holmes...
PHP Architect
> 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
>
> enctype="multipart/form-data">
>
[snip]
Without looking at your oth
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
t
Explorer 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
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
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 up
That's always possible. Unless you have access to your temp directory you
will not be able to update the permissions. At this point I would email
your host and ask them about the situation. Good luck.
-Kevin
- Original Message -
From: "Phil Schwarzmann" <[EMAIL PROTECTED]>
To: <[EMAIL
The web server needs write access to where you're trying to store the files.
Check the directory permissions. Check with your ISP to make sure there are
solutions other than making the directory world writeable.
-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: M
Upload.html
===
FileUpload
function check()
{
document.upload.method = "POST";
document.upload.enctype='multipart/form-data'
document.upload.action="upload.php";
doc
Hi Phil,
your input file name should be "the_file"
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))
{
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 that will succ
Many thanks! I did not read far enough in the docs to note the part
about PHP 4.0. That has fixed the problem.
Todd
--
Todd Cary
Ariste Software
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [E
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];).
Hi Jason
You have set the form's ENCTYPE attribute to 'multipart/form-data' haven't
you?
--
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 data sent back to the server. In fact
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 in
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 th
has anyone 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]>
>
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 a
dd Cary wrote:
> > Mailing-List: contact [EMAIL PROTECTED]; 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: [EMAI
t; 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 saying that
> there is something I missed?
>
> Todd
>
> --
> Todd Cary
> Ariste Software
> [E
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, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECT
> For some reason, I cannot get the following code to work - the file is
> not sent to the server. Is there something obviously wrong? I am using
> Apache on Linux (RH 7.2).
At least LOOK in the manual:
http://www.php.net/manual/en/features.file-upload.php
It's right there. First example. Pay
Title: Uploading a file into a databaseideas please.
put a
on a form - cut-paste the
text onto the
form,
submit the form, and have the form put your info into
the database
if
your server supports PHP, there are many many MySQL
admin
scripts out there that you could use to add stu
35 matches
Mail list logo