| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Sep 2005 Location: Riyadh, Saudi Arabia
Posts: 855
![]() ![]() | Utopsites error help needed! (their support is offline) HI guys, i really need some help on my topsites list. I have an error which is really distorting my site and im not sure how to fix it. The error is Warning: fread() [function.fread]: Length parameter must be greater than 0. in /home/phonesec/public_html/teamsymbian/admin/lib/class.functions.php on line 723 Warning: fread() [function.fread]: Length parameter must be greater than 0. in /home/phonesec/public_html/teamsymbian/admin/lib/class.functions.php on line 723 Warning: Cannot modify header information - headers already sent by (output started at /home/phonesec/public_html/teamsymbian/admin/lib/class.functions.php:723) in /home/phonesec/public_html/teamsymbian/admin/ Their forum is offline and im not getting any replies from them by email so id appreciate if anyone can give me any ideas on how to fix this. The site was working fine previously, not sure what the problem is. I can donait some points and rep for your help, thanks
__________________ Dr.Discuss |
| |
| | #2 (permalink) |
| Eating Pie Join Date: Nov 2004 Location: Canada
Posts: 2,272
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Hello, Make sure you read there "README" or installation instructions and chmod all needed files. Otherwise open up /admin/lib/class.functions.php in notepad and go to line 723 and copy what you see and paste it here. - Steve
__________________ I feel old. |
| |
| | THREAD STARTER #3 (permalink) |
| NamePros Regular Join Date: Sep 2005 Location: Riyadh, Saudi Arabia
Posts: 855
![]() ![]() | hi, the line reads: return $content; The surrounding content is as follows: 1\"> ".$def." </option>\n":''; $content = "\n<select name=\"".$file."\" $othercrap>".$other.$a."</select>\n"; return $content; (line 723) //} } }
__________________ Dr.Discuss |
| |
| | THREAD STARTER #4 (permalink) |
| NamePros Regular Join Date: Sep 2005 Location: Riyadh, Saudi Arabia
Posts: 855
![]() ![]() | sorry, my mistake. the line reads $a = fread(fopen($url, $read),filesize ($url)); and surrounding content is function get_file($url,$read='r') { $a = fread(fopen($url, $read),filesize ($url)); return $a; line 45 reads header("Content-Encoding: x-gzip"); Appreciate anyones help on this
__________________ Dr.Discuss |
| |
| | #5 (permalink) |
| Buy my domains. Join Date: Feb 2006
Posts: 2,796
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Try using: Code: $a = file_get_contents($url); Code: $a = fread(fopen($url, $read),filesize ($url)); |
| |
| | THREAD STARTER #6 (permalink) |
| NamePros Regular Join Date: Sep 2005 Location: Riyadh, Saudi Arabia
Posts: 855
![]() ![]() | tahnks a lot mate, taht worked perfect. points and rep added
__________________ Dr.Discuss |
| |