error in code........

Discussion in 'PHP' started by Mady, Jan 2, 2008.

  1. #1
    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.........
     
    Mady, Jan 2, 2008 IP
  2. goliathus

    goliathus Peon

    Messages:
    93
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    copy and paste line 17 pls...
     
    goliathus, Jan 3, 2008 IP
  3. AT-XE

    AT-XE Peon

    Messages:
    676
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    AT-XE, Jan 3, 2008 IP
  4. Mady

    Mady Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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
     
    Mady, Jan 3, 2008 IP
  5. LittleJonSupportSite

    LittleJonSupportSite Peon

    Messages:
    386
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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
     
    LittleJonSupportSite, Jan 3, 2008 IP