Home TheRandomizer Forum Index Log in Register FAQ Search
TheRandomizer Forum Index » General Support » html_entity_decode()
Post new topic  Reply to topic View previous topic :: View next topic 
html_entity_decode()
PostPosted: Sat Oct 11, 2003 8:47 am Reply with quote
Andrew
Guest




Hi!
I just installed the script and I'm getting the error:

Fatal error: Call to undefined function: html_entity_decode() in /home/virtual/var/www/html/index.php on line 7

Can you help me?
Regards,
Andrew
html_entity_decode fix.
PostPosted: Sat Oct 11, 2003 8:54 am Reply with quote
daniel
Addict
Joined: 19 Sep 2004
Posts: 177




Hi Andrew,and thank you for using TheRandomizer.
Your PHP version is older then 4.3.0.
What you'll need to do:
-go to lib\stdlib.php;
-add the following code just before "?>"
function html_entity_decode ($string) { $trans_tbl = get_html_translation_table (HTML_ENTITIES); $trans_tbl = array_flip ($trans_tbl); return strtr ($string, $trans_tbl); }

This will work.
Best regards,
Daniel
 html_entity_decode() 
 TheRandomizer Forum Index » General Support
All times are GMT  
Page 1 of 1  

  
  
 Post new topic  Reply to topic  


Powered by phpBB© 2001-2006 phpBB Group |Randomizer Script | Web Hosting | phpBB Skin by Vjacheslav Trushkin