I am in the beginning stages of writing my first socket based php app from
scratch. However I think I've quickly picked up a bad coding habbit when
reading from sockets. I'm doing the following:
//writing the socket
socket_write ($socket,"blah blah$CRLF", strlen ($in));
//sleeping for 1 second.
This was exactly what I was trying to avoid. See I was porting a reporting
module to write .XLS files to a database, rather than to files. It's easier
for me to clean up old reports that way.
Anyway, thanks for your help!
Regards,
Ian Newlands
"@ Edwin" <[EMAIL PROTECTED]
Well I tried that, however I was saving dynamically generated .XLS files.
Because I was using addslashes before hand it was reporting the wrong file
size.
So it was my mistake, thanks for your help!
Regards,
Ian Newlands
"Jason Wong" <[EMAIL PROTECTED]> wrote
Does anyone know of a function, or a method to calculate how many bytes are
in a string? Similar to the filesize file system function.
Any help would be appreciated.
Regards,
Ian Newlands
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
keeping your
includes safe. In your php.ini you can leave your includes line blank.
Hope it helps!
Regards,
Ian Newlands
"1lt John W. Holmes" <[EMAIL PROTECTED]> wrote in message
news:003f01c1f76f$9df452f0$2f7e3393@TB447CCO3...
> > To learn more, I put the phpinfo(); fun
5 matches
Mail list logo