Warning: Fread() [function.fread]: Length Parameter Must Be Greater Than 0 http://www.wallpaperama.com/forums/warning-fread-function-fread-length-parameter-must-be-greater-than-0-t5678.html Subscribe and keep up to date with Warning: Fread() [function.fread]: Length Parameter Must Be Greater Than 0 with the latest replies and comments from other people like you who are interested in Warning: Fread() [function.fread]: Length Parameter Must Be Greater Than 0 at wallpaperama.com en Warning: Fread() [function.fread]: Length Parameter Must Be Greater Than 0 [ Visit Post ] http://www.wallpaperama.com/forums/warning-fread-function-fread-length-parameter-must-be-greater-than-0-t5678.html i was wondering if you know any how to fix this error im getting: Warning: fread() [function.fread]: Length parameter must be greater than 0. in myscript.php on line 65 i never seen this before how can i solve this thanks http://www.wallpaperama.com/forums/warning-fread-function-fread-length-parameter-must-be-greater-than-0-t5678.html Comments by: test Thu, 01 Jan 2009 19:35:24 -0700 another way + $size = filesize($filename); + if ( empty($size) ) { + return false; + } just use if funtion to step over it! make it ez man http://www.wallpaperama.com/forums/warning-fread-function-fread-length-parameter-must-be-greater-than-0-t5678.html#38265 http://www.wallpaperama.com/forums/warning-fread-function-fread-length-parameter-must-be-greater-than-0-t5678.html#38265 Comments by: test Thu, 01 Jan 2009 19:35:24 -0700 line 62: if ($page_type == "f") { line 63: $filename = "../pages/".$page_url.".php"; line 64: $handle = fopen($filename, "r"); if (filesize($filename))==0{} else{$page_content = fread($handle, filesize($filename));} line 66: fclose($handle); just use if funtion to step over it! make it ez man http://www.wallpaperama.com/forums/warning-fread-function-fread-length-parameter-must-be-greater-than-0-t5678.html#38264 http://www.wallpaperama.com/forums/warning-fread-function-fread-length-parameter-must-be-greater-than-0-t5678.html#38264 Comments by: noname Thu, 01 Jan 2009 19:35:24 -0700 line 62: if ($page_type == "f") { line 63: $filename = "../pages/".$page_url.".php"; line 64: $handle = fopen($filename, "r"); if (filesize($filename))==0{} else{$page_content = fread($handle, filesize($filename));} line 66: fclose($handle); http://www.wallpaperama.com/forums/warning-fread-function-fread-length-parameter-must-be-greater-than-0-t5678.html#38260 http://www.wallpaperama.com/forums/warning-fread-function-fread-length-parameter-must-be-greater-than-0-t5678.html#38260 Comments by: luis Thu, 01 Jan 2009 19:35:24 -0700 PHP CODE: line 62: if ($page_type == "F") { line 63: $filename = "../pages/".$page_url.".php"; line 64: $handle = fopen($filename, "r"); line 65: $page_content = fread($handle, filesize($filename)); line 66: fclose($handle); http://www.wallpaperama.com/forums/warning-fread-function-fread-length-parameter-must-be-greater-than-0-t5678.html#37431 http://www.wallpaperama.com/forums/warning-fread-function-fread-length-parameter-must-be-greater-than-0-t5678.html#37431 Comments by: hostman Thu, 01 Jan 2009 19:35:24 -0700 give me example of your code near the line of the error http://www.wallpaperama.com/forums/warning-fread-function-fread-length-parameter-must-be-greater-than-0-t5678.html#37430 http://www.wallpaperama.com/forums/warning-fread-function-fread-length-parameter-must-be-greater-than-0-t5678.html#37430