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

PHP, Arrays & A Lot Of Confusion
I've been doing basic PHP work on sites for a few years now, but I've never been tempted to learn ho

True way to see if action was successful?
If this is a good way to see if action was successful to continue:

Code: function changeGa

parameter passing issue on function
Well I thought I had created a pretty slick web page, using ?page and $_GET to load pages which wher

array_count_values question?
ok i'm trying to create a top ten list from a database of listed favorite movies.

the followi

How would I do "Users not logged in since *** delete them"
I know how I would set this up, and delete the user roughly.
I'll create a table called "Use

my code does not work.
I have a code problem.

Quote"<a href=index.php?gogo=ureticidetay&'?l={$le

mod_rewrite.c on windows ??
why it's not working on windows while it's working on other hosts???

this is the code i got

Auto fill in input value based on User_ID
Hello,

I'm looking form some input on the following problem.

User loads page ->

ORA-00932: inconsistent datatypes: expected - got CLOB
SO : windows xp
database : XE

there is a table (transito) with two fields of clob

How to use php and sql to check if values match the ones in a table (for logins)
How would I code it that the script takes two variables that are passed to it (UserID and PIN), and

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