NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Utopsites error help needed! (their support is offline)

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 08-26-2006, 12:57 AM THREAD STARTER               #1 (permalink)
NamePros Regular
 
emgage's Avatar
Join Date: Sep 2005
Location: Riyadh, Saudi Arabia
Posts: 855
emgage will become famous soon enoughemgage will become famous soon enough
 




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
emgage is offline  
Old 08-26-2006, 01:41 AM   #2 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,272
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
 


Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
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.
iNod is offline  
Old 08-26-2006, 05:26 AM THREAD STARTER               #3 (permalink)
NamePros Regular
 
emgage's Avatar
Join Date: Sep 2005
Location: Riyadh, Saudi Arabia
Posts: 855
emgage will become famous soon enoughemgage will become famous soon enough
 




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
emgage is offline  
Old 08-26-2006, 12:18 PM THREAD STARTER               #4 (permalink)
NamePros Regular
 
emgage's Avatar
Join Date: Sep 2005
Location: Riyadh, Saudi Arabia
Posts: 855
emgage will become famous soon enoughemgage will become famous soon enough
 




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
emgage is offline  
Old 08-26-2006, 01:55 PM   #5 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,796
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
Try using:
Code:
$a = file_get_contents($url);
Instead of:
Code:
$a = fread(fopen($url, $read),filesize ($url));
You only get the header error because of the other errors happening. If you fix the first error, you won't get it.
Dan is offline  
Old 08-26-2006, 02:53 PM THREAD STARTER               #6 (permalink)
NamePros Regular
 
emgage's Avatar
Join Date: Sep 2005
Location: Riyadh, Saudi Arabia
Posts: 855
emgage will become famous soon enoughemgage will become famous soon enough
 




tahnks a lot mate, taht worked perfect. points and rep added
__________________
Dr.Discuss
emgage is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 11:08 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger