[PHP-WIN] snmpwalk

2002-07-08 Thread MAAS

Hi

Iam trying to use snmpwalk but I get this:

Parse error: parse error, unexpected T_VARIABLE in
c:\inetpub\wwwroot\alarm.php on line 7

This Is my code:



ALARM ???







-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] MIB and snmp

2002-07-08 Thread MAAS

Iam trying to get some data on a php homepage. I get the data vith snmp msg.
I get som msg, but when I try to get a speciall object ID i get this:

ALARM 27 (port 52):
Warning: Error in packet. Reason: (noSuchName) There is no such variable
name in this MIB. in c:\inetpub\wwwroot\alarm.php on line 6

Warning: This name does not exist: enterprises.2606.1.0.47 in
c:\inetpub\wwwroot\alarm.php on line 6


ALARM 26 (port 50):
Warning: Error in packet. Reason: (noSuchName) There is no such variable
name in this MIB. in c:\inetpub\wwwroot\alarm.php on line 8

Warning: This name does not exist: enterprises.2606.1.0.46 in
c:\inetpub\wwwroot\alarm.php on line 8

Anyone what to do??






-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] SNMP -> LOG

2002-07-15 Thread MAAS


Hi

I would like to collect data from snmpget and log it.
Anyone have a idea how to do this?

// maas, Sweden



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] fputs - need help!!

2002-07-15 Thread MAAS


Hi

I use this line

fputs ($sysname_log, "$time - SystemName: $sysname\n");

I would like to get a log file, and everytime I refresh this page it will
make a new line and write
$the local time - SystemName: $sysname
So after a while it will look like this

$the local time - SystemName: $sysname
$the local time - SystemName: $sysname
$the local time - SystemName: $sysname

BUT, this is not working, I don“t get a new line, everything is on the same
line. Why??
I use WIN2K and IIS.





-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] mail in WIN2K

2002-07-15 Thread MAAS


Hi

Iam trying to use mail in WIN2K PRO, I use IIS. But I only get this in my
browser

Warning: Server Error in c:\inetpub\wwwroot\log.php on line 23

I use code like this. But what should I use for headers?

mail($recipient, $subject, $msg, $mailheaders);

Should I do anything in php.ini? I have configurate it with my snmp mail
server.






-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] CRON JOB

2002-07-17 Thread MAAS


What do I have to do before I can run my file.php as a cron job in Linux?




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] snmp / php / linux /error

2002-07-18 Thread MAAS

Iam trying to use my php file in a Linux machine.

#!/usr/local/bin/snmp_guard.php -q



Then I start it with php snmp_guard.php

All I get is

Call to undefeind funcion snmpget()

WHY??



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Re: [PHP] Removing Items from an Array

2005-10-13 Thread Jochem Maas

[EMAIL PROTECTED] wrote:

Thanks for the addition Jochem..  one reason I post here, even if it's a basic 
example, is because if there's a better way or a chance to learn something new, 
I want to have that opportunity.  Thanks again!



TG,

its a pleasure. I often find it fun just to write stuff like this ...
and in this particular case your first suggestion seemed to fit the bill _and_ 
it was
implemented in a way that the OP had a very good chance of understanding ...
I figured I'd come over the top and give him something in the same vein
that might give him a challenge :-) based on your initial post he hopefully
had enough to go on (I gather he managed to solve his problem, maybe he
is a better programmer now as well).

rgds,
Jochem

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php