[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 08-25-2006, 11:57 PM   #1 (permalink)
NamePros Regular
 
emgage's Avatar
 
Join Date: Sep 2005
Posts: 790
94.50 NP$ (Donate)

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
__________________
S60 Forum | Team Symbian | Profile Idol | Waploads
More In Development ;)
emgage is offline  
Old 08-26-2006, 12:41 AM   #2 (permalink)
Eating Pie
 
iNod's Avatar
 
Join Date: Nov 2004
Location: Canada
Posts: 2,289
126.05 NP$ (Donate)

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, 04:26 AM   #3 (permalink)
NamePros Regular
 
emgage's Avatar
 
Join Date: Sep 2005
Posts: 790
94.50 NP$ (Donate)

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)
//}
}
}
__________________
S60 Forum | Team Symbian | Profile Idol | Waploads
More In Development ;)
emgage is offline  
Old 08-26-2006, 11:18 AM   #4 (permalink)
NamePros Regular
 
emgage's Avatar
 
Join Date: Sep 2005
Posts: 790
94.50 NP$ (Donate)

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
__________________
S60 Forum | Team Symbian | Profile Idol | Waploads
More In Development ;)
emgage is offline  
Old 08-26-2006, 12:55 PM   #5 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
 
Join Date: Feb 2006
Posts: 2,801
56.00 NP$ (Donate)

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, 01:53 PM   #6 (permalink)
NamePros Regular
 
emgage's Avatar
 
Join Date: Sep 2005
Posts: 790
94.50 NP$ (Donate)

emgage will become famous soon enoughemgage will become famous soon enough


tahnks a lot mate, taht worked perfect. points and rep added
__________________
S60 Forum | Team Symbian | Profile Idol | Waploads
More In Development ;)
emgage is offline  
Closed Thread


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 05:51 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85