On Sun, Feb 24, 2013 at 1:07 PM, wrote:
> Hello,
>
> I have been looking how to upload big files more than 1GB , with php but it
> doesn't work well. I guess php POST multipart method is to memory consuming.
> Is there a way , like in the apache.commons to catch the stream and handle
> it ?
> I'v
On Wed, Apr 6, 2011 at 13:10, tedd wrote:
> Hi gang:
>
> I wrote a simple script to upload image files from my desktop to a server --
> the exact same code works on two servers, but fails on a third.
>
> I suspect there is something set different between the servers, but I can't
> find it.
>
> Odd
On Wed, Apr 6, 2011 at 1:10 PM, tedd wrote:
> Hi gang:
>
> I wrote a simple script to upload image files from my desktop to a server --
> the exact same code works on two servers, but fails on a third.
>
> I suspect there is something set different between the servers, but I can't
> find it.
>
> O
On Mon, Feb 7, 2011 at 11:03, Frank Bonnet wrote:
> I found nothing that's why I wrote this !!!
My point is, you only told everyone what you're trying to do. Not
once did you ask a question or mention where you're seeking guidance,
other than your ambivalence on file uploads and distribution
On 2/7/2011 8:03 AM, Frank Bonnet wrote:
> On 02/07/2011 05:01 PM, Daniel Brown wrote:
>> On Mon, Feb 7, 2011 at 10:56, Frank Bonnet wrote:
>>> Hello
>>>
>>> I'm searching for a utility that let our users upload a file
>>> on a server , then generate a temporary link that point
>>> to the real fil
"Frank Bonnet" wrote:
>On 02/07/2011 05:01 PM, Daniel Brown wrote:
>> On Mon, Feb 7, 2011 at 10:56, Frank Bonnet wrote:
>>> Hello
>>>
>>> I'm searching for a utility that let our users upload a file
>>> on a server , then generate a temporary link that point
>>> to the real file.
>>>
>>> As this
On 02/07/2011 05:01 PM, Daniel Brown wrote:
On Mon, Feb 7, 2011 at 10:56, Frank Bonnet wrote:
Hello
I'm searching for a utility that let our users upload a file
on a server , then generate a temporary link that point
to the real file.
As this is for internal use we don't need security, the fi
On Mon, Feb 7, 2011 at 10:56, Frank Bonnet wrote:
> Hello
>
> I'm searching for a utility that let our users upload a file
> on a server , then generate a temporary link that point
> to the real file.
>
> As this is for internal use we don't need security, the file
> can be read by anyone.
>
> The
At 7:23 PM +0100 12/29/10, Michelle Konzack wrote:
Hello,
my users have an Online-File-Store with nearly anything they need but
one feature is missing: Drag-D-Drop.
I like to implement Drag-D-Drop so users can Drag a file from a File-
Manager and Drop it on the Upload-Icon in my Webinter
On Wed, Dec 29, 2010 at 07:23:25PM +0100, Michelle Konzack wrote:
> Hello,
>
> my users have an Online-File-Store with nearly anything they need but
> one feature is missing: Drag-D-Drop.
>
> I like to implement Drag-D-Drop so users can Drag a file from a File-
> Manager and Drop it on th
On a slight tangent, but is that signature why I'm not able to read any of
michelles emails on my phone? For some reason, only her emails get stuck and
won't download, so I have to wait til someone else replies.
To answer the question on this, I've not yet seen a cross platform answer to
this q
On Wed, Dec 29, 2010 at 10:30 AM, Daniel P. Brown
wrote:
> That's more of a frontend question to which you and your
> six-million-line signature should check Google to find the answer.
> Don't get me wrong, Michelle, we've always tried to help out even with
> off-topic questions, but this is r
> -Original Message-
> From: Michelle Konzack [mailto:linux4miche...@tamay-dogan.net]
> Sent: Wednesday, December 29, 2010 10:23 AM
> To: PHP - General
> Subject: [PHP] File-Upload per Drag-N-Drop?
>
> Hello,
>
> my users have an Online-File-Store with nearly anything they need but
> o
On Wed, Dec 29, 2010 at 13:23, Michelle Konzack
wrote:
> Hello,
>
> my users have an Online-File-Store with nearly anything they need but
> one feature is missing: Drag-D-Drop.
>
> I like to implement Drag-D-Drop so users can Drag a file from a File-
> Manager and Drop it on the Upload-Icon
4 this malfunction is now observed.
>
> Any idea?
>
> Kind regards
>
> Ali
>
>
> - Original Message -
> From: Eric Lee
> To: Ali Reza Sajedi
> Cc: phpList list
> Sent: Saturday, January 30, 2010 1:21 PM
> Subject: Re: [PHP] File
-
From: Eric Lee
To: Ali Reza Sajedi
Cc: phpList list
Sent: Saturday, January 30, 2010 1:21 PM
Subject: Re: [PHP] File Upload
On Sat, Jan 30, 2010 at 7:27 PM, Ali Reza Sajedi
wrote:
Hello,
When uploading a file the variable $_FILES['userfile']['tm
On Sat, Jan 30, 2010 at 7:27 PM, Ali Reza Sajedi wrote:
> Hello,
>
> When uploading a file the variable $_FILES['userfile']['tmp_name'] is not
> set and when debugging I get the following error although /tmp folder exists
> and the permissions are set to 777:
>
> $_FILES['userfile']['error'] = 6
>
Ali Reza Sajedi wrote on 30/01/2010 12:27:
UPLOAD_ERR_NO_TMP_DIR
Value: 6; Missing a temporary folder. Introduced in PHP 4.3.10 and PHP
5.0.3.
Has anyone encountered such a problem or has a clue as to what the cause
could be?
What does "print phpinfo()"; tell you about the upload_tmp_dir?
, Richard Quadling wrote:
>
> From: Richard Quadling
> Subject: Re: [PHP] File upload directive: $_FILES['filename']['name'] instead
> of $_FILES['filename']['tmp_name']
> To: "Andrei Iarus" , "PHP General list"
>
>
2009/12/23 Andrei Iarus :
> Of course: also tried the is_uploaded_file, exactly like in the manual. And
> it fails :(
>
> --- On Wed, 12/23/09, Richard Quadling wrote:
>
> From: Richard Quadling
> Subject: Re: [PHP] File upload directive: $_FILES['filename'
2009/12/22 Andrei Iarus :
> Hello,
>
> On my production & testing servers (production runs on a centrino and testing
> runs on Windows) I can only access the temporary uploaded file using
> ini_get( 'upload_tmp_dir' . '/' . $_FILES['filename']['name'];
> while the file $_FILES['filename']['tmp_nam
On Aug 3, 2009, at 7:04 AM, seb wrote:
Hey all,
i am using move_upload function to upload files to the server, but i
want to add a feature that will allow files to be archived that have
been uploaded already.
so, the problem is:
i upload a file that i want to "upgrade" and move the
Tom wrote:
> "Per Jessen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> news:[EMAIL PROTECTED]
> Tom wrote:
>
>> Im very glad to fix this problem, but the next one is here: Other
>> machine (but 2 GB Ram), same suse version, same (working now)
>> php.ini with limits to 5000M now and i can't uploa
What is set this limit?
"Per Jessen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Tom wrote:
> Im very glad to fix this problem, but the next one is here: Other
> machine (but 2 GB Ram), same suse version, same (working now) php.ini
> with limits to 5000M now and i can't up
You could always program in something (perhaps in Ajax) to monitor the
progress of the file upload and check for errors periodically.
Luke Slater
On 8 Aug 2008, at 11:55, Peter Ford <[EMAIL PROTECTED]> wrote:
Per Jessen wrote:
Tom wrote:
Im very glad to fix this problem, but the next one i
Per Jessen wrote:
Tom wrote:
Im very glad to fix this problem, but the next one is here: Other
machine (but 2 GB Ram), same suse version, same (working now) php.ini
with limits to 5000M now and i can't upload a File greater than 900MB.
A file under 900MB i see the tmp file growing. A File with
Tom wrote:
> Im very glad to fix this problem, but the next one is here: Other
> machine (but 2 GB Ram), same suse version, same (working now) php.ini
> with limits to 5000M now and i can't upload a File greater than 900MB.
> A file under 900MB i see the tmp file growing. A File with +1 GB no
> t
Problem solved (at one machine)!
I can upload a ~ 2 GB File now on a machine with 1 GB Main Memory! No
Problem, swap is used but no break now.
The answer is, i think, the dramatical overhead for http upload, simply my
post_max_size and upload_max_size are to small. If i will upload 1 GB it
mus
Al wrote:
One of my sites has been hacked and I'm trying to find the hole. The
hack code creates dirs with "nobody" ownership, so it's obvious stuff is
not via ftp [ownership would be foo]
Site is virtual host, Linux/Apache
I'm concerned about a file uploader my users use to upload photos.
I would recommend something more strong
http://www.php.net/manual/en/function.exif-imagetype.php
or if you dont have exif
http://www.php.net/manual/en/function.getimagesize.php
will do also a trick.
One more thing, you are also allowing .txt and .css which may be
potential hole, as Apache can
The hack puts this .htaccess in dozens of dirs
RewriteEngine On
RewriteCond %{HTTP_REFERER}
^http://([a-z0-9_\-]+\.)*(google|msn|yahoo|live|ask|dogpile|mywebsearch|yandex|rambler|aport|mail|gogo|poisk|alltheweb|fireball|freenet|abacho|wanadoo|free|club-internet|aliceadsl|alice|skynet|terra|ya
How was it "hacked"?
That will help determine what kind of exploit might have been used.
On 4/11/08, Al <[EMAIL PROTECTED]> wrote:
> One of my sites has been hacked and I'm trying to find the hole. The hack
> code creates dirs with "nobody" ownership, so it's obvious stuff is not via
> ftp [own
t;Jim Moseby" <[EMAIL PROTECTED]>
Cc: "'Sukhwinder Singh'" <[EMAIL PROTECTED]>;
Sent: Saturday, June 09, 2007 5:15 AM
Subject: RE: [PHP] File Upload - post_max_size and upload_max_filesize in
GBs
On Thu, June 7, 2007 10:52 am, Jim Moseby wrote:
Rumor has i
On Thu, June 7, 2007 10:52 am, Jim Moseby wrote:
> Rumor has it that uploaded files are stored in memory before being
> committed
> to disk. If so, the amount of free RAM available to PHP would be the
> limit
> to the filesize regardless of the ini file settings.
I think you have to go pretty far
On Fri, 2007-06-08 at 10:53 -0400, tedd wrote:
> At 4:35 PM +0100 6/7/07, Stut wrote:
> >You need to look into maybe a java applet, or just plain
> >FTP/SFTP/SCP for files that big. HTTP was never designed to handle
> >uploading files of that size. For a start there is no facility to
> >restart
tedd wrote:
At 4:35 PM +0100 6/7/07, Stut wrote:
You need to look into maybe a java applet, or just plain FTP/SFTP/SCP
for files that big. HTTP was never designed to handle uploading files
of that size. For a start there is no facility to restart the upload
should it get interrupted and fail.
At 4:35 PM +0100 6/7/07, Stut wrote:
You need to look into maybe a java applet, or just plain
FTP/SFTP/SCP for files that big. HTTP was never designed to handle
uploading files of that size. For a start there is no facility to
restart the upload should it get interrupted and fail.
-Stut
-St
Sukhwinder Singh wrote:
You don't appear to have read what I said. A Java applet can use FTP
to upload the file - PHP does not get involved in that part. Once the
upload is complete the applet can POST to your PHP file giving it
information like where it's put the file and this other informatio
nder Singh" <[EMAIL PROTECTED]>
Cc:
Sent: Friday, June 08, 2007 2:10 AM
Subject: Re: [PHP] File Upload - post_max_size and upload_max_filesize in
GBs
Sukhwinder Singh wrote:
Even java applets have to hand over the file to some script, in this
case php and php will get it in $_FILES
Sukhwinder Singh wrote:
Even java applets have to hand over the file to some script, in this
case php and php will get it in $_FILES array it seems (in case of
japplet). so the problem will remain.
Not at all true. A Java applet can use FTP to handle the upload and
still pass meta data about
w.
Thanks for replying.
Sukhwinder Singh
- Original Message -
From: "Stut" <[EMAIL PROTECTED]>
To: "Sukhwinder Singh" <[EMAIL PROTECTED]>
Cc:
Sent: Friday, June 08, 2007 1:28 AM
Subject: Re: [PHP] File Upload - post_max_size and upload_max_filesize in
G
the file from a Java applet.
-Stut
- Original Message - From: "Stut" <[EMAIL PROTECTED]>
To: "Sukhwinder Singh" <[EMAIL PROTECTED]>
Cc:
Sent: Thursday, June 07, 2007 8:56 PM
Subject: Re: [PHP] File Upload - post_max_size and upload_max_filesize
in GBs
>
> > Rumor has it that uploaded files are stored in memory before being
> > committed
> > to disk. If so, the amount of free RAM available to PHP
> would be the limit
> > to the filesize regardless of the ini file settings.
>
> I don't think that is the case. File is written to temp
> directo
php will get it in $_FILES array it seems (in case of japplet). so
the problem will remain.
- Original Message -
From: "Stut" <[EMAIL PROTECTED]>
To: "Sukhwinder Singh" <[EMAIL PROTECTED]>
Cc:
Sent: Thursday, June 07, 2007 8:56 PM
Subject: Re: [PHP]
gt;
To: "Sukhwinder Singh" <[EMAIL PROTECTED]>
Cc: "Jim Moseby" <[EMAIL PROTECTED]>;
Sent: Thursday, June 07, 2007 9:16 PM
Subject: Re: [PHP] File Upload - post_max_size and upload_max_filesize in
GBs
Sukhwinder Singh wrote:
Rumor has it that uploaded files a
Sukhwinder Singh wrote:
Rumor has it that uploaded files are stored in memory before being
committed
to disk. If so, the amount of free RAM available to PHP would be the
limit
to the filesize regardless of the ini file settings.
I don't think that is the case. File is written to temp director
IL PROTECTED]>
Sent: Thursday, June 07, 2007 8:59 PM
Subject: Re: [PHP] File Upload - post_max_size and upload_max_filesize in
GBs
A beeter method is to send the file via ftp. I think most browsers
allow this. And for example store the file in a user specific file.
Then the user, via a web i
also have to update database to associate that file
with some user etc. It needs to be web based.
Sukhwinder Singh
- Original Message -
From: "Jim Moseby" <[EMAIL PROTECTED]>
To: "'Sukhwinder Singh'" <[EMAIL PROTECTED]>;
Sent: Thursday, June
Message - From: "Stut" <[EMAIL PROTECTED]>
To: "Sukhwinder Singh" <[EMAIL PROTECTED]>
Cc:
Sent: Thursday, June 07, 2007 8:35 PM
Subject: Re: [PHP] File Upload - post_max_size and upload_max_filesize
in GBs
Sukhwinder Singh wrote:
I want to allow uploading of h
>
> Hello,
>
> I want to allow uploading of huge video files, which may be
> as big as 4 GB. But when I try to set
>
> post_max_size = 4G
> upload_max_filesize = 4G
>
> in php.ini, it doesn't work and everything in post (posted
> data) is ignored.
>
> I get a warning about size of posted da
.
Any utility which allows this?
Thanks,
Sukhwinder Singh
- Original Message -
From: "Stut" <[EMAIL PROTECTED]>
To: "Sukhwinder Singh" <[EMAIL PROTECTED]>
Cc:
Sent: Thursday, June 07, 2007 8:35 PM
Subject: Re: [PHP] File Upload - post_max_size
Sukhwinder Singh wrote:
I want to allow uploading of huge video files, which may be as big as 4 GB. But when I try to set
post_max_size = 4G
upload_max_filesize = 4G
in php.ini, it doesn't work and everything in post (posted data) is ignored.
I get a warning about size of posted data greater
Well, seeing as I have no directory anywhere in my file structure called
"/tmp" and yet my file uploads are still working, it would appear that my
temporary file upload directory "/tmp" given by php_info() is somewhere
outside of my root directory. So that's good news! That's were I'll be
doing
On Wed, September 27, 2006 12:12 pm, Andy Hultgren wrote:
> So I've been trying to figure out where php uploads files to
> temporarily
> store them before I move them to their permanent storage directory,
> and I'm
> having some difficulties:
>
> -- php_info() says the temporary file upload directo
So I've been trying to figure out where php uploads files to temporarily
store them before I move them to their permanent storage directory, and I'm
having some difficulties:
-- php_info() says the temporary file upload directory is "/tmp" but I don't
know if that's relative to my root directory
On Wed, September 27, 2006 10:11 am, tedd wrote:
>>So when you read advice to use 0777 you can immediately change that
>> to
>>0700, because the only access needed is for you, not your group, and
>>not the "world" of other users on that machine.
>
> Excellent point -- thanks.
This applies only to
At 6:43 PM -0500 9/26/06, Richard Lynch wrote:
On Mon, September 25, 2006 3:58 pm, Andy Hultgren wrote:
> -- Since I'm only allowing image uploads, I can strictly filter which
files
are allowed to be uploaded (with extension checks and get_image_size).
Extension check is kinda useless...
I
On Mon, September 25, 2006 3:58 pm, Andy Hultgren wrote:
> So I tried to implement the example code given in the php tmpfile()
> documentation and it wouldn't do anything, which suggests that I don't
> have
> access to the /tmp directory. Also, the FAQ's section on my server's
> website say that /
The FTP will be slower, almost for sure.
He's doing it because he can FTP in as himself, and not as the
"nobody" user Apache runs as.
Your webhost has you running as yourself already, so you can chmod
your files at will in PHP.
On Mon, September 25, 2006 2:11 pm, Andy Hultgren wrote:
> Tedd,
>
>
Hey Tedd and Eric,
Between the two of you and Richard Lynch's last post, I understand why I can
use chmod() and mkdir() within php without having to use the ftp commands: I
run on a server that is configured to run my php scripts as "username" (ie.
me!) instead of as "nobody" (which is much more
Well, that didn't sound too good...
So I tried to implement the example code given in the php tmpfile()
documentation and it wouldn't do anything, which suggests that I don't have
access to the /tmp directory. Also, the FAQ's section on my server's
website say that /tmp is not shared between the
Andy:
It was never a question of speed for me -- it was a question of being
able to change file permissions from within a php script so that I
could create and write files safely.
You see, I am *not* able to use chmod() within a php script at all
regardless of what permissions the file and p
On 9/25/06, Andy Hultgren <[EMAIL PROTECTED]> wrote:
Tedd,
Thanks so much your thorough response - it's good to know that I'm not the
only one trying to figure this out! I'm curious, in your code you use the
PHP ftp functions, but I have used the PHP functions chmod() and mkdir()
without estab
Tedd,
Thanks so much your thorough response - it's good to know that I'm not the
only one trying to figure this out! I'm curious, in your code you use the
PHP ftp functions, but I have used the PHP functions chmod() and mkdir()
without establishing an ftp connection. Is it faster to establish a
At 9:32 PM -0600 9/24/06, Andy Hultgren wrote:
Hi Tedd,
Yes, when I browse to www.myDomain.com I get the index.html file, and so I
have been leaving the .public_html/ directory alone since it is not my
root. I'm curious, what you described is exactly what I'm trying to do -
what permissions do
Hi Tedd,
Yes, when I browse to www.myDomain.com I get the index.html file, and so I
have been leaving the .public_html/ directory alone since it is not my
root. I'm curious, what you described is exactly what I'm trying to do -
what permissions do you set the parent folder at when you are finish
At 7:19 PM -0600 9/22/06, Andy Hultgren wrote:
For whatever reason when I ftp in using WinFtp I don't see public_html
(it's hidden, don't know why; if I make a directory called
".public_html" it gets created and then disappears), but I can see my
file structure from my host's website and so I kno
On Saturday 23 September 2006 01:27, you wrote:
> Hi Borge,
>
> host/users/myDomain is the actual directory (and it's the root
> directory), and I do not have access to higher directories. So
> basically I do not have access to directories higher than my root
> directory, which is unfortunate. Al
For whatever reason when I ftp in using WinFtp I don't see public_html
(it's hidden, don't know why; if I make a directory called
".public_html" it gets created and then disappears), but I can see my
file structure from my host's website and so I know that when I ftp in
to myDomain.com this is wha
I may have hit "send" too soon...
Like, when you do FTP, do you see:
index.htm
page2.htm
page3.htm
right away?
*OR*, do you see:
public_html
And then you do "cd public_html" and THEN you see the files?
If you don't do "cd public_html" then I really don't think accepting
file uploads is a Go
So pretty much there's nothing to be done about it? If I can get the
chmod thing to make it so that you can't surf to your uploaded image
afterwards and view it, I'd be happy with that solution. I'd like to
stick with this host if I could.
On 9/22/06, Richard Lynch <[EMAIL PROTECTED]> wrote:
O
On Fri, September 22, 2006 3:58 pm, Andy Hultgren wrote:
> that as my root directory is simply www.myDomain.com and not
> ".public_html/" and I am on a shared server where my root cannot be
I got two words for you:
Change Hosts
--
Like Music?
http://l-i-e.com/artists.htm
--
PHP General Mailin
On Friday 22 September 2006 22:58, Andy Hultgren wrote:
> Hi,
> I am relatively new to php and am trying to set up a file upload
> process for my website. I have read through the php security
> documentation and a number of the security-related questions on these
> lists and am attempting to imple
True, but it checks it at the first attempt to upload, not when the file
is done or partially uploaded. Granted, not what the OP asked for
exactly, but better then what he has now and better then spending more
time looking...
Wolf
Chris wrote:
> Wolf wrote:
>> In your form uploading script:
>> #
Wolf wrote:
In your form uploading script:
# individual file size limit - in bytes (102400 bytes = 100KB)
$file_size_ind = "838860800"; // 819.2 MB
$weight=$_FILES[fileupload][size];
if ($weight>$file_size_ind)
{
echo" ERROR: please get the file size
less than ".$file_size_ind." BYTES (".rou
In your form uploading script:
# individual file size limit - in bytes (102400 bytes = 100KB)
$file_size_ind = "838860800"; // 819.2 MB
$weight=$_FILES[fileupload][size];
if ($weight>$file_size_ind)
{
echo" ERROR: please get the file size
less than ".$file_size_ind." BYTES (".round(($file_size
On Wed, May 10, 2006 11:09 am, Phillip S. Baker wrote:
> James Nunnerley wrote:
> However you can set the max file size within the tag of HTML.
> I forget the proper snytax and tag off the top of my head.
> I am not sure the error it spits out as I have never tested that.
> you can also use javasc
Jay Blanchard wrote:
[snip]
Is there anyway to check the size of a file before it starts uploading
it?
For instance, if the file is huge, and takes ages to upload, and is then
rejected by the server, the user will be somewhat annoyed!
[/snip]
PHP is server-side and cannot check anything client-s
James Nunnerley wrote:
Is there anyway to check the size of a file before it starts uploading it?
For instance, if the file is huge, and takes ages to upload, and is then
rejected by the server, the user will be somewhat annoyed!
I'm not even sure this is a php question!
Nope not a PHP que
On Wednesday 10 May 2006 13:39, Jay Blanchard wrote:
> [snip]
> Is there anyway to check the size of a file before it starts uploading
> it?
> For instance, if the file is huge, and takes ages to upload, and is then
> rejected by the server, the user will be somewhat annoyed!
> [/snip]
>
> PHP is s
[snip]
Is there anyway to check the size of a file before it starts uploading
it?
For instance, if the file is huge, and takes ages to upload, and is then
rejected by the server, the user will be somewhat annoyed!
[/snip]
PHP is server-side and cannot check anything client-side. You cold use
somet
James Nunnerley schrieb:
Is there anyway to check the size of a file before it starts uploading it?
For instance, if the file is huge, and takes ages to upload, and is then
rejected by the server, the user will be somewhat annoyed!
I'm not even sure this is a php question!
No you can't.
No
On Mon, 2005-04-04 at 17:07 +0300, William Stokes wrote:
> Hello,
> I might have asked this already but I am still ignorent ;-)
>
> How to check if a same name file already exists in a upload directory when
> uploading new file?
>
> Thanks
> -Will
>
http://www.php.net/file_exists
-Robby
--
> How to check if a same name file already exists in a upload
> directory when uploading new file?
>
Use the file_exists() function (oddly named, I know).
http://us4.php.net/manual/en/function.file-exists.php
-M
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
I might have asked this already but I am still ignorent ;-)
How to check if a same name file already exists in a upload directory
when
uploading new file?
Use the appropriately named file_exists() function.
L.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.
William Stokes wrote:
Okl I can't reverse engineer that...
I just need to know how to set the path.
now I have it like this and it wont work. $fileame comes from a form.
if (copy($filename, "/imagedir/" . $filename_name))
print "upload succesful!";
Don't use copy(), use move_uploaded_file()
See
Never mind. I got that sorted out! Thanks anyway...
-Will
"William Stokes" <[EMAIL PROTECTED]> kirjoitti
viestissä:[EMAIL PROTECTED]
> Okl I can't reverse engineer that...
>
> I just need to know how to set the path.
> now I have it like this and it wont work. $fileame comes from a form.
>
> if (
Okl I can't reverse engineer that...
I just need to know how to set the path.
now I have it like this and it wont work. $fileame comes from a form.
if (copy($filename, "/imagedir/" . $filename_name))
print "upload succesful!";
"Tristan Pretty" <[EMAIL PROTECTED]> kirjoitti
viestissä:[EMAIL
http://www.hotscripts.com/Detailed/24113.html
take a look at this.. perhaps you can reverse engineer it
"William Stokes" <[EMAIL PROTECTED]>
24/03/2005 09:18
To
php-general@lists.php.net
cc
Subject
[PHP] file upload
Hello,
I'm (slowly) learning how to make a file upload stuff with ph
ADNET Ghislain wrote:
> upload_tmp_dir/www/htdocs/upload /no value/
^^^
/
/
*THIS* is the one that matters -+
Someh
ADNET Ghislain wrote:
> I am trying to make upload files to belong to the ftp user of the
> website and not the apache user.
>
> As i run in module i tried to do this:
>
> 1/ create a temp dir on the website outside the documentroot, chown the
> temp dir to my ftp user and allow the group to w
Graham Cossey wrote:
I have a problem uploading a file in IE6 or Firefox1.0 but it works
fine using Opera7.54.
The problem is that I want to ensure that the file being uploaded is a
CSV file, so I test the $_FILES['file']['type'] value.
In Firefox & IE it is returned as "application/octet-stream" b
Graham Cossey wrote:
> The problem is that I want to ensure that the file being uploaded is a
> CSV file, so I test the $_FILES['file']['type'] value.
That only ensures that somebody else can forge the type header being sent
to you.
Anybody with half a clue (okay, a clue and a half) could do that
Tom wrote:
> Thanks for the replies. My manual was out of date, not that it would
> have made any difference to this anyway as .
> upload_tmp_dir variable was correctly set in the php.ini file, and I'd
> restarted the web server several times. It seems however that the file
> is getting cached
Thanks for the replies. My manual was out of date, not that it would
have made any difference to this anyway as .
upload_tmp_dir variable was correctly set in the php.ini file, and I'd
restarted the web server several times. It seems however that the file
is getting cached somehow, and is no
Tom wrote:
Hi
I have a very simple file upload form and script to handle it (copied
verbatim from the php manual, except for the file target location and
the script name).
However, it always fails, with an error code in the _FILE array or 6.
Does anyone know what this error is or what I am likely
On Thu, 20 Jan 2005 13:30:35 +0100, M. Sokolewicz <[EMAIL PROTECTED]> wrote:
> what you're doing is server => server
> What the akshay wants is server => client
> The only not yet posted other options are client => client (which is
> essentially impossible with PHP, unless you use the server=>serve
Anirudh Dutt wrote:
On Thu, 20 Jan 2005 12:26:07 +0100, Marek Kilimajer <[EMAIL PROTECTED]> wrote:
akshay wrote:
Hi all,
I hv problem while file upload.
I hv one server and multiple client.
I want to upload a file from Server to client.
how this is possible in PHP
This is usualy called download. Is
On Thu, 20 Jan 2005 12:26:07 +0100, Marek Kilimajer <[EMAIL PROTECTED]> wrote:
> akshay wrote:
> > Hi all,
> > I hv problem while file upload.
> > I hv one server and multiple client.
> > I want to upload a file from Server to client.
> > how this is possible in PHP
>
> This is usualy called downl
akshay wrote:
Hi all,
I hv problem while file upload.
I hv one server and multiple client.
I want to upload a file from Server to client.
how this is possible in PHP
This is usualy called download. Is this what you want?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:
1 - 100 of 362 matches
Mail list logo