Hello guys,
Just returned to PHP coding and found some problems in my old scripts on new Apache 2.2.21 and PHP 5.3.8 server.
is_file and filesize functions return either false or E_Warning on files: *.rar !
Is it server configuration problem or just file.rar is not file in PHP?
Thx for your time,
Kano
is_file and filesize functions
Moderator: General Moderators
-
thinsoldier
- Forum Contributor
- Posts: 367
- Joined: Fri Jul 20, 2007 11:29 am
- Contact:
Re: is_file and filesize functions
My guess is it's not php. is_file should be able to find any kind of file even if it has no file extension.
Warning: I have no idea what I'm talking about.
Re: is_file and filesize functions
Whats the size of this file? I had a similar problem once while accessing big (>2GB) file.
Re: is_file and filesize functions
Thanks for replies.
The size of file is not exceeding 500-600 MB in some cases, but usually its something like 20-30 MB. I've read something about big rar archive size problem, but I suppose it is not my case. And if it is not PHP functionality limitation I experience, then maybe it is about php.ini? It is not wrong path or such for sure, I checked another file in the same dir with same path except filname and for *.jpg file everything fine... I thought it might be some kind of security limitation for functions to not work with archives or do I need to write inside this type of files somewhere.
The size of file is not exceeding 500-600 MB in some cases, but usually its something like 20-30 MB. I've read something about big rar archive size problem, but I suppose it is not my case. And if it is not PHP functionality limitation I experience, then maybe it is about php.ini? It is not wrong path or such for sure, I checked another file in the same dir with same path except filname and for *.jpg file everything fine... I thought it might be some kind of security limitation for functions to not work with archives or do I need to write inside this type of files somewhere.
Re: is_file and filesize functions
What is the text of the warning?Kano wrote:is_file and filesize functions return either false or E_Warning on files: *.rar !
Re: is_file and filesize functions
Here is the example of the error text:
Warning: filetype() [function.filetype]: Lstat failed for Airport.rar in X:\\PATH\\materials.php on line 261
Meanwhile will check google for solution, I might missed something during last search.
Warning: filetype() [function.filetype]: Lstat failed for Airport.rar in X:\\PATH\\materials.php on line 261
Meanwhile will check google for solution, I might missed something during last search.