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

While Problem
i am having a problem with a while statement here is the code
Code: [Select]<?php
sess

help retrieiving results and doing pagination
Having some trouble trying to get the results to show on more than just one page.

What is ha

SWF image using php?
Hello once again.

My latest en devour requires me to produce an image of a static .swf that i

Supress some serveroutput but not all
Hi,

I have a script I'm working on that uses plsql to create and RMAN script, this uses d

Preg_match unknown modifyer
Hello,

Im trying to write a little script for my forums i need to get the reply from my forum

UPLOAD IMAGES NOT WORKING!
Hi there i have a upload script in which it uploads the picture to a folder than creates two thumbna

Logging and nologging bulk insert
Hi,

oracle version: 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production

Form errors in an array
I'm processing a form and putting the errors in an array. empty($errors) doesn't seem to do the tric

Code Help.. If txt input box empty search X instead..
I am having a problem with my search script. At current it will simply search by a selected date whi

how to hide input fields on selection screen using variant attribute
Hello all,

I want to know how to hide input fields on selection screen using variant attr

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