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

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

Displaying image from database
Hi,

I've got a site where that's got a database behind it. Currently it has loads of items in

Send inserts to mysql thru port 80
Hi!

I have an application that must do some inserts in a mysql db. This db is behind a firewa

making web pages for accounts
Hello, I would like to make pages for accounts on my website im making (its not a real website..im j

Which PHP-Editor do you think is the best?
Hi everyone,
Myself Brian Anderson. For the last 2 years i have been working a

i have no idea why this isn't working
Code: <?php
session_start();
include("connect.php");

error_reporting(E

Sending CC Info by email
I am a little bit less knowledgable in the security area as most developers and I know I have a lot

Security Exception on pages using AJAX
I am getting the exception: attempted to perform an operation not allowed by the security policy on

Spaghetti Code
So.

I've pretty much reached the point where I have so many isset s on one page that I can't

foreach help.
Hello all,

First time I'm attempting to use a foreach statement and was just wondering if my

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