Remember to check the return value of fwrite(). In particular, writing into a socket can return fewer bytes than requested, and you'll have to try again with the remainder of your data.
![]() |
|
||||||||||
|
fwriteОписаниеint fwrite ( resource handle, string string [, int length] )
fwrite() записывает содержимое
fwrite() возвращает количество записанных байтов или FALSE в случае ошибки.
Обратите внимание, что если аргумент
См. также описание функций fread(), fopen(), fsockopen(), popen() и file_put_contents(). fwrite
chad 0x40 herballure 0x2e com
05-Sep-2007 10:13
Remember to check the return value of fwrite(). In particular, writing into a socket can return fewer bytes than requested, and you'll have to try again with the remainder of your data.
chaobreederxl at gmail dot com
29-Mar-2007 12:52
This is a simple function I wrote that uses the fopen and fwrite functions to log the actions of users... very useful for tracking your members on your site.
cutmaster at fearlesss dot com 09-Mar-2007 03:09
For those who, like me, lost a lot of minutes (hours) to understand why fwrite doesn't create a real utf-8 file, here's the explanation I've found : |
| © 2007 info@grandviewstudio.com |
|
Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 324 Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 330 Z058440144362 Z348613067571 |