1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Fatal error: Call to undefined function: getrawdata()

Discussion in 'PHP' started by PalSys, Dec 20, 2006.

  1. #1
    Alright, does anyone have any idea why I'd receive this error besides the function not being enabled on the server? I'm using a few different pieces of software, all using the same function for ping tests, traceroutes, etc, but I have one test that I can't get to run because it doesn't understand the same function that everything else on the server understands.

    Excuse the rant :D Any ideas?
     
    PalSys, Dec 20, 2006 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    It's part of the PEAR library. Do you know if any of the other Pear functions work?
     
    jestep, Dec 20, 2006 IP
    PalSys likes this.
  3. PalSys

    PalSys palsys.io

    Messages:
    2,628
    Likes Received:
    224
    Best Answers:
    0
    Trophy Points:
    230
    #3
    Yeah, other PEAR functions are definitely working 100% for other installed software. That's why I'm so confused :(
     
    PalSys, Dec 20, 2006 IP
  4. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #4
    There is no other reason, php is pretty specific when it comes to error handling, it wouldn't lie, get in touch with your host, see if they upgeaded php recently and forgot to upgrade thier ext folder.
     
    krakjoe, Dec 21, 2006 IP
  5. PalSys

    PalSys palsys.io

    Messages:
    2,628
    Likes Received:
    224
    Best Answers:
    0
    Trophy Points:
    230
    #5
    It's on a private server and I had my sysadmin look into it personally.

    For reference: http://www.palsys.ca/tools/hostname.php

    This traceroute test works, but the ping test returns that error. They are both using the same function (according to my sysadmin for this box),

    Does that clarify anything at all, or is this still a case of 'it is what it is' and my sysadmin is wrong?
     
    PalSys, Dec 21, 2006 IP
  6. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #6
    upload the following, try it in several places if you feel the need to.

    
    <?
    if(!function_exists("getrawdata"))
    {
    die("I cannot call getrawdata, at this directory on the server it is inaccessible");
    }
    else
    {
    die("I <b>CAN</b> call getrawdata.");
    }
    ?>
    
    PHP:
    That should give you an answer.......
     
    krakjoe, Dec 21, 2006 IP
  7. falcondriver

    falcondriver Well-Known Member

    Messages:
    963
    Likes Received:
    47
    Best Answers:
    0
    Trophy Points:
    145
    #7
    yeah thats frikking nasty, happend to me once: disabled some functions over night and the next day i had only black squares where some auto-generated graphics where before :mad:
     
    falcondriver, Dec 21, 2006 IP
  8. PalSys

    PalSys palsys.io

    Messages:
    2,628
    Likes Received:
    224
    Best Answers:
    0
    Trophy Points:
    230
    #8
    Thanks for the code joe. I ran the test and it says pretty clearly that the function isn't accessible anywhere on this box. So it looks like my sysadmin is wrong. I'll leave it to him to get this worked out.

    Thanks again for the help!
     
    PalSys, Dec 21, 2006 IP
    devin likes this.
  9. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #9
    I can give you a way to ping other addresses there are several ways to do it, so if sysadmin really can't be bothered to help you, then pm me and I'll give you a script to find out what I can use that you do have.....
     
    krakjoe, Dec 21, 2006 IP
  10. PalSys

    PalSys palsys.io

    Messages:
    2,628
    Likes Received:
    224
    Best Answers:
    0
    Trophy Points:
    230
    #10
    Nope, turns out it was a server issue, the sysadmin got it worked out. Thanks again for the help!
     
    PalSys, Dec 21, 2006 IP