RE: [PHP] stat(), file_exists(), is_file() on Windows2000

From: Chris Hubbard (chris_at_wildcharacters.com)
Date: 10/30/03


To: "CPT John W. Holmes" <holmes072000@charter.net>, "Php-General@Lists. Php. Net" <php-general@lists.php.net>
Date: Thu, 30 Oct 2003 13:38:19 -0800

John,
thanks for the quick response. If it had been a snake it would have bit me.
Thanks. I was trying to do it the hard way.
Chris

-----Original Message-----
From: CPT John W. Holmes [mailto:holmes072000@charter.net]
Sent: Thursday, October 30, 2003 1:20 PM
To: Chris Hubbard; Php-General@Lists. Php. Net
Subject: Re: [PHP] stat(), file_exists(), is_file() on Windows2000

From: "Chris Hubbard" <chris@wildcharacters.com>
> The problem:
> all the code I've tried to test whether a temp (from a form post) is there
> before doing a filesize() on it is failing.
> I'm doing a filesize check so absurdly large files aren't copied from the
> temp folder to a permanent folder.
> (and no I can't change the ini file, already asked, I did mention
unfriendly
> right?)
> What I want is a value for the filesize of the temporary file.

$_FILES['userfile']['size']

---John Holmes...

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Relevant Pages

  • Re: check clientside file size
    ... Not with PHP, which doesn't work client sided. ... File Upload Form ... and its value is the maximum filesize accepted. ...
    (comp.lang.php)
  • RE: [PHP] PHP Directory List Script Files over 2 GB
    ... [PHP] PHP Directory List Script Files over 2 GB ... The script itself is using php readdir and some javascript functions ... filesize only supports files less then 2 GB according to ...
    (php.general)
  • Re: Upload file permissions problem
    ... uploaded file is created with 600 permissions so it cannot be accessed later ... Do you serve your temp folder then? ... operations in PHP. ... So for this to happen the php upload process user must have write permission to whatever tmp folder is used and the destination folder. ...
    (comp.lang.php)
  • Re: Upload file permissions problem
    ... Do you serve your temp folder then? ... there a way of setting the default file permissions so each uploaded file ... operations in PHP. ... must have write permission to whatever tmp folder is used and the ...
    (comp.lang.php)
  • Re: Upload file permissions problem
    ... Under windows this works fine but on the linux host the ... uploaded file is created with 600 permissions so it cannot be accessed later ... Do you serve your temp folder then? ... operations in PHP. ...
    (comp.lang.php)