Loans - Credit Reports - Loans - Debt Help - Online Loans

PDA

View Full Version : error in code........


Mady
Jan 2nd 2008, 10:08 pm
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.........

goliathus
Jan 3rd 2008, 1:08 am
copy and paste line 17 pls...

AT-XE
Jan 3rd 2008, 2:07 am
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.

Mady
Jan 3rd 2008, 3:17 am
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

LittleJonSupportSite
Jan 3rd 2008, 7:04 am
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