[PHP] SuSE 8.0 php 4.1.2 .spec file
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, Maybe I should post this to the -install mlist, but it is not the installation (./configure, make...) that causes problems, but the fact that I want to keep dependencies. So - does anyone have a working $subj? Thank you very much for any hint. http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xAD674062 -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE979y1lDG6Z61nQGIRAm9rAJ9VL3dDzD/B1gxFbA7y4YED8SeZggCg3zyB 2HGLx0vyi5cNLmjzntyfe8c= =xqqI -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] snmp problems
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, Suse 8.0, ucdsnmp-4.2.3-145, tried both php-4.1.2 and 4.3.0, compiled from source, snmp support enabled. bash# snmpget 1.2.3.4 "communitystring" .1.3.6.1.2.1.2.2.1.1.2 interfaces.ifTable.ifEntry.ifIndex.2 = 2 But if I try the following lines: $a=snmpwalkoid("1.2.3.4", "communitystring", ".1.3.6.1.2.1.2.2.1.1.2"); print_r ($a) I get only Array ( ) Does anyone else experience the same problem? Or is there some way to find out if the problem is caused by: - - suse - - ucd - - php - - me being ignorant ? Thank you all. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+TQ4AlDG6Z61nQGIRAnkFAKCjkTEGx+rMXV3vUc7NySgZm0l7/gCgsmgG LiTy00n62rux9RfdjA4sKgU= =Wa5J -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] snmp_set_quick_print or snmpwalkoid issue ?
First of all, gretings to everyone (I'm new here). And the problem: #!/usr/local/bin/php -q results in: interfaces.ifTable.ifEntry.ifOutOctets.1: interfaces.ifTable.ifEntry.ifOutOctets.1 = Counter32: 137600220 interfaces.ifTable.ifEntry.ifOutOctets.2: interfaces.ifTable.ifEntry.ifOutOctets.2 = Counter32: 25026545 and with snmp_set_quick_print(1): interfaces.ifTable.ifEntry.ifOutOctets.1: interfaces.ifTable.ifEntry.ifOutOctets.1 137600606 interfaces.ifTable.ifEntry.ifOutOctets.2: interfaces.ifTable.ifEntry.ifOutOctets.2 25031056 Shouldn't I get only the last field with the actual value ?? Details: php-4.1.2 ucd-snmp-4.2.4 both from tarballs. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: snmp_set_quick_print or snmpwalkoid issue ?
Yes, I have seen that, but the manual says I should get the only the value, not also the OID. Can anyone please run this code and tell me if they get the same result? On Thu, 2 May 2002, Ray \BigDog\ Hunter wrote: > Basically you are not going to get the value type of the snmp, ie OID, > timeticks, integers, etc.. > > Ray Hunter > > > > "Razvan Cosma" <[EMAIL PROTECTED]> wrote in message > Pine.LNX.4.44.0205011203110.32753-10@mach2">news:Pine.LNX.4.44.0205011203110.32753-10@mach2... > > First of all, gretings to everyone (I'm new here). > > > > And the problem: > > #!/usr/local/bin/php -q > > > snmp_set_quick_print(0); > > $test=snmpwalkoid("1.1.1.1","public",".1.3.6.1.2.1.2.2.1.16"); > > for (reset($test); $i = key($test); next($test)) { > > echo "$i:\n$test[$i]\n"; > > } > > ?> > > results in: > > interfaces.ifTable.ifEntry.ifOutOctets.1: > > interfaces.ifTable.ifEntry.ifOutOctets.1 = Counter32: 137600220 > > interfaces.ifTable.ifEntry.ifOutOctets.2: > > interfaces.ifTable.ifEntry.ifOutOctets.2 = Counter32: 25026545 > > > > and with snmp_set_quick_print(1): > > interfaces.ifTable.ifEntry.ifOutOctets.1: > > interfaces.ifTable.ifEntry.ifOutOctets.1 137600606 > > interfaces.ifTable.ifEntry.ifOutOctets.2: > > interfaces.ifTable.ifEntry.ifOutOctets.2 25031056 > > > > Shouldn't I get only the last field with the actual value ?? > > Details: php-4.1.2 ucd-snmp-4.2.4 both from tarballs. > > > > > > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] snmp replies not printed
Hello, I have installed php 4.1.2 and ucd 4.2.4 both from tarballs on a linux box, and compiled php both as an apache module and standalone (same options, except for the --with-apxs). Now, when I use snmpwalk or whatever other function from within apache, it works (almost) correctly: snmp_set_quick_print causes php to return both the OID and the value although the manual says different, but I can live with that. the problem is that a simple script run from the standalone interpreter on the same machine behaves very strange. Example: #!/usr/local/bin/php -q http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] what is php.ini on linux?
there is, is is called... php.ini :) It should reside in /etc, if there is none, create it and add whatever options you need in it. In the source tree you will find two files - php.ini-dist and php.ini-recommended which might be of help. On Thu, 16 May 2002, andy wrote: > Hi there, > > I am wondering what the equivalent to php.ini is on linux. There is no such > file on linux. Is there a different name? > > I would like to set up the max execution time > > Thanx, > > Andy > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php