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.

php_snmp

Discussion in 'PHP' started by bartolay13, Aug 10, 2010.

  1. #1
    Hi all,

    I installed an php_snmp plugin in my local server, and recieving an error

    Fatal error: Call to undefined function snmpwalk() in <dir>  on line 3
    Code (markup):
    here's what ive done already,
    - enabled php_snmp extension
    - downloaded php_snmp.dll and placed it under the ext directory
    - uncommented php_snmp on the php.ini
    - enabled extension php_sockets

    am i missing something? how can i fix this and let apache read the snmp functions?

    Thanks
     
    bartolay13, Aug 10, 2010 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Some programs (such as XAMPP) have multiple php.ini files. Make sure you're editing the right one.
    Run php_info() and see if it's enabled there.
    Restart Apache (might be obvious, but it's not on your check list)
     
    nico_swd, Aug 11, 2010 IP
  3. HuggyEssex

    HuggyEssex Member

    Messages:
    297
    Likes Received:
    4
    Best Answers:
    2
    Trophy Points:
    45
    #3
    HuggyEssex, Aug 11, 2010 IP
  4. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #4
    @nico_swd currently im using wamp to my test server, im editing the correct one (putting php.ini to error), forgot that one, but yes i always restart the services.
    @HuggyEssex certainly that would i do, the thing is im still installing this plugin/object/functions to php.

    read some articles in installing snmp,
    php extension integration check (uncommented this one in .ini)
    extensions=php_snmp.dll
    Code (markup):
    while in apache theres this thing about mod_ap2_snmp.so, which is not available on the local server apps
    i have a great feeling that this must be installed to apache 2.0. anybody installed modules in apache before? specifically mod snmp?
     
    bartolay13, Aug 11, 2010 IP
  5. MyVodaFone

    MyVodaFone Well-Known Member

    Messages:
    1,048
    Likes Received:
    42
    Best Answers:
    10
    Trophy Points:
    195
    #5
    MyVodaFone, Aug 11, 2010 IP