Hi All, I am using a open source during the configuration i facing this error.... Warning: mb_strstr() [function.mb-strstr]: Empty delimiter. in C:\xampp\htdocs\blueerp-0.6\ck-api\ckapi.inc.php on line 17 Platform, , not supported this error irritates me a lot.......... Please tell me how to eliminate it..... i will be thankful to you Thanks.........
Please tell us which database are you using. And give us the code of that file. Also it will be good if you tell us which version of php you are using.
actually i am configuring a open source of erp ......... the line 17 is if (!strstr('egw,phpbb,tiki,horde,xar,osc,zen,cre,xoops,drupal,mambo,joomla,jos,e107,xrms,vtiger,wp,b2evo,moodle,at',PLATFORM)) die('Platform, '.PLATFORM.', not supported'); and in using php 5.2.4
I don't think you can do it the way you want there. You want want to ereg that rather then strstr it. A valid example of strstr is as follows: <?php $email = 'name@example.com'; $domain = strstr($email, '@'); echo $domain; // prints @example.com $user = strstr($email, '@', true); echo $user; // prints name ?> Apply those rules. But for your case I would !ereg or ereg on $variable