NYCPHP Meetup

NYPHP.org

[nycphp-talk] length parameter

Jonathan hendler at simmons.edu
Thu Aug 18 17:00:19 EDT 2005


Hi Steve

See in this example from php.net

|$filename = "/usr/local/something.txt";
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
fclose($handle);

|What  is happening for you is that the second parameter is 0 or less.
This means that the file you are trying to load is probably empty.

Steve Rieger wrote:

>what does this mean
>
>any pointers
>
><b>Warning</b>:  fread(): Length parameter must be greater than 0. in  
><b>/http/..../.../filegetter.inc</b> on line <b>191</b><br />
>
>--
>Steve Rieger
>AIM chozrim
>ICQ 53956607
>Cell 646 335 8915
>steve.rieger at tbwachiat.com
>
>
>
>
>This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is privileged, confidential and/or otherwise protected from disclosure.  Dissemination, distribution or copying of this e-mail or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is strictly prohibited.  All contents are the copyright property of TBWA\Chiat\Day, its agencies or a client of such agencies.  If you are not the intended recipient, you are nevertheless bound to respect the worldwide legal rights of TBWA\Chiat\Day, its agencies and its clients.  We require that unintended recipients delete the e-mail and destroy all electronic copies in their system, retaining no copies in any media.  If you have received this e-mail in error, please immediately notify us via e-mail to disclaimer at tbwachiat.com.  We appreciate your cooperation.
>
>We make no warranties as to the accuracy or completeness of this e-mail and accept no liability for its content or use.  Any opinions expressed in this e-mail are those of the author and do not necessarily reflect the opinions of TBWA\Chiat\Day or any of its agencies or affiliates.
>
>
>_______________________________________________
>New York PHP Talk Mailing List
>AMP Technology
>Supporting Apache, MySQL and PHP
>http://lists.nyphp.org/mailman/listinfo/talk
>http://www.nyphp.org
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20050818/ec37fc2e/attachment.html>


More information about the talk mailing list