Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 566
  • Last Modified:

mb_detect_encoding() - is this native to php 4 or 5

Hello, I'm trying to use this function but on the server that I am using it on it's giving me this error:

Fatal error: Call to undefined function mb_detect_encoding() in D:\Domains\nvgaonline.com\wwwroot\SuperCon2\class.myrssparser.php on line 184

What is the requirements for using this function. I thought that this function was inherited in php 4 or php 5. Is there any other setting on the server I need to know because on my other server it works just fine
0
DancingFighterG
Asked:
DancingFighterG
  • 2
  • 2
1 Solution
 
Ray PaseurCommented:
http://us.php.net/manual/en/mbstring.installation.php

The extension is probably not installed on PHP
0
 
DancingFighterGAuthor Commented:
I think that they installed an activiated the extension but I'm still getting the same error:

www.nvgaonline.com/SuperCon2/test.php
0
 
Ray PaseurCommented:
See the code snippet.  I don't think you have the "short tags" thing set.  So instead of saying <? you will need to say <?php
<?xml version="1.0" encoding="iso-8859-1"?> 
 
 
<body bgcolor="#FFFFFF">
 
      <? 
  		    # where is the feed located?
                $url = "http://nvgaonline.com/Forums/index.php?act=rssout&id=11";
                # create object to hold data and display output
                $rss_parser = new myRSSParser($url);
                $rawoutput = $rss_parser->getRawOutput();
				# returns string containing HTML
                $items = $rawoutput['RSS']['CHANNEL'][0]['ITEM'];
                ?>
                <ul>
                  <?
	         for($i=0; $i<8; $i++) {
               ?>
                  <li> 
                    <div align="left"><a href="<?=$items[$i]['LINK']?>" title="<?=strip_tags($items[$i]['TITLE'])?>" target="_blank"> 
                      <?=strip_tags($items[$i]['TITLE'])?>
                      </a></div>
                  </li>
                  <div align="left"> 
                    <?
               }
               ?>
 
                  </div>
                </ul>
 
</body>

Open in new window

0
 
DancingFighterGAuthor Commented:
I will try this out tonight but I think you are right and it might work
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now