filesize problem


Posted on 16th Feb 2014 07:03 pm by admin

i use ubuntu 9.10 and i have mountet a folder from an windows

/mount/FOLDER
/mount/FOLDER/FILE.txt

i try to find out the size of folder : FILE.txt

PHP Warning: filesize(): stat failed for /mount/FOLDER/FISIER.txt in /home/alin/programe/instalate/workspace/aptana work/spartacus/Running/indices.php on line 26

access right:

-rwxr-xr-x 1 500 root 183567853 2009-11-09 17:38 FISIER.txt

code that generates warning
if(file_exists($fileName))
{

$fp=fopen($fileName,'r');
echo (fgets($fp)); //it writes the first line from the folder
$fileSize=filesize($fileName);//linia 26

i can't figure out why i can read from the file but the function stat and lstat returns false

No comments posted yet

Your Answer:

Login to answer
81 Like 11 Dislike
Previous forums Next forums
Other forums

Move array index to end
Hey guys,
Quick question:

I have an array that looks like this:
Code: [Select]$var =

problem with script manager
Hi iam using Net.2005.I have created ajax enabledwebsite.i have master page in which i have script m

A href problem under php
Hello...

I tried to explain the issue in an earlier post.. but was not clear enough....

Help With editting and deleting form
Hallo !!

So look at this image :

http://img194.imageshack.us/img194/8272/snapshot5f.pn

Ajax Issues - Update Panel / Timer. Intellisense doesn't know about them
Type 'System.Web.UI.ScriptManager' does not have a public property named 'UpdatePanel'. That is wha

DateTimeZone::listIdentifiers headache
http://php.net/manual/en/datetimezone.listidentifiers.php


So the documentation states tha

ASP.NET 2.0 - Enter Key - Default Submit Button
Hi,One of the most annoying things in developing web pages is handling the "Enter key" for form subm

Database 'Validation'
Hi everyone,
I'm trying to validate the password entered by the user with the password in the dat

need help in php variable
i have a php variable on one page
Code: [Select]$lastId = mysql_insert_id($db);
echo $lastId;<

IIS on 2003 anon access disabled issue
I have an IIS server that belongs to a domain, and anonymous access is turned off for all my sites.

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash