Kevin
- Original Message -
From: "Dave" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 1:04 PM
Subject: [PHP] upload a file from a pc
> Whats the easiest way to create a script to upload a file from my home PC
to
> my web server using PHP?
>
Whats the easiest way to create a script to upload a file from my home PC to
my web server using PHP?
Example - I want to copy a graphic called "TITLE.GIF" from my pc to my web
page by using PHP.
Is there a command to do this easily?
Please help.
Dave
--
PHP General Mailing List (http://w
Hi, Bogdan,
Thanks for your help.
It isn't a SQL error. I do not upload the file to a database.
I have been able to upload a 4M file.
I really think it is because the memory_limit of the server is 8M. And that
means that it doesn't have enough resource to copy the uploaded file from the
tempora
Do you get a PHP or a SQL error? I had this problem, but my problem was
MySQL, not PHP (i.e. PHP handles uploads > 2MB and MySQL doesn't by
default). The error I got was "MySQL server has gone away" or something
similar.
Bogdan
[EMAIL PROTECTED] wrote:
>I have to upload files.
>My scripts do
I have to upload files.
My scripts don't work with large files.
On the "Chapter 19. Handling file uploads" from the php.net doc I found the
following comments :
[EMAIL PROTECTED]
26-Feb-2002 08:24
When uploading large files, I've found that the memory limit has to be
twice as large as the uplo
hi,
I try to upload a file using a form. When I use INPUT TYPE="text" it is ok,
but when i change it to "hidden" it doesn't work :(
This is a part of the form:
where $dir is a directory where I want ot place the file. The script to copy
a file looks like that:
copy($userfile, $dir.$userfile_name)
On Wed, 25 Apr 2001, Rafael Faria wrote:
> i tried:
> if (!move_uploaded_file($MyFile,"/home/vacamarela/public_html/rafael")) {
> echo "can't copy";
> exit;
> }
>
> and retur "can't copy"
Does your web server used id have write permission in that directory and
execute p
i tried:
if (!move_uploaded_file($MyFile,"/home/vacamarela/public_html/rafael")) {
echo "can't copy";
exit;
}
and retur "can't copy"
my form is
:/
Rafael
>Acesso fácil, rápido e ilimitado? Suporte 24hs? R$19,90?
>Só no AcessoBOL. http://www.bol.com.br/acessobol
>Hey Guys,
i'm here thinking what i did wrong.can u guys help me?
i did 2 ways to upload a file and none of them work fine! :/
first way
$folder = "/tmp";
if(!copy($MyFile,$folder.$MyFile)){
echo "can't copy";
} else {
echo "work it!";
9 matches
Mail list logo