filesize() returns 0


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

I have a socket program that runs in an infinite loop, listening for connections, in this socket I have a method, that is supposed to open a file and write to the file, but I am having issues. Each call to the socket happens about once every 1.5 seconds, and then, it writes to the socket, but for some reason, filesize is always returning "0" even when the file is 1.5kb in size.

No comments posted yet

Your Answer:

Login to answer
109 Like 44 Dislike
Previous forums Next forums
Other forums

EXplanation help
Hey all,

I am still fairly new to PHP programming and I am trying to put together a page wher

error with opendir
when i do this

if ($handle = opendir($dir)) {
while (false !== ($file = readdir($han

preg_match logical error
Code: <?php
$s = file_get_contents("page.html");
preg_match('/<div cla

strtotime issue
Hey all,

I'm playing around with some code, and basically the idea is:

Person changes

pull content
I have an existing page, domain/adverts.php which has a good PR. I've just rebuilt my site and the n

How to display value in drop down list after form has been reloaded
Please bear with me as I am very new to php and html.

I have a form with several drop down me

Loops and Classes
I am making a template system and everything seems to be going well up until I have to loop in a var

Update Database
Hi All,


I have a problem with this:

Code: [Select]<?php
session_start();

MYSQL INSERT ID NOT WORKING
Code: $id = mysql_insert_id();
header("Location: ./?view=$id");
Why $id pulling blan

PHP Captcha Error help - replace the "die" command
Hi All,

I am after a bit of help with a Captcha spam protection box.

The site gave me

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