php-windows Digest 18 Jul 2002 10:36:53 -0000 Issue 1247

Topics (messages 14824 through 14831):

Re: [PHP] Restart process from code?
        14824 by: Brian Huff

Re: Restart process from code?
        14825 by: Peter

Problems in passing parameters
        14826 by: Lung

Re: Problem in passing parameters
        14827 by: Ross Fleming
        14828 by: Asmodean
        14829 by: Lung

Oracle or OCI8
        14830 by: Lung

snmp / php / linux /error
        14831 by: MAAS

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---

NET STOP only works if its running as a service.  Otherwise you'll need 
the "kill" utility.  It comes with the NT Resource Kit, which works on 
NT and 2000, I haven't tested it on XP, or anybody else.

you can give kill a pid, or an executable name, like

 > kill java.exe

or whatever...

Im not sure where to download it from... you might need to do some 
googling.  Or your could write your own C++ code to do it... or find 
somebody who wrote an equivalent utility.

-- 

Brian 'Bex' Huff
[EMAIL PROTECTED]
Phone: 952-903-2023
Fax: 952-829-5424

> How do I end the process using exec? Is there an equivalent to NET STOP?
> 
> - Noah


--- End Message ---
--- Begin Message ---
You need a program to control the ASP process. This is proably some sort of
command line tool and you just put whatever you would type in the
commandline into the exec() function. (in quotes of course!)


"Noah Spitzer-Williams" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is there a way to restart a process (actually the process to handle ASP
> pages) from code?
>
> - Noah
>
>


--- End Message ---
--- Begin Message ---
Hi,



--- End Message ---
--- Begin Message ---
Which variables?  I hope you mean $_POST[username] and $_POST[password] ?
If not, read the manual about accessing variables.  Otherwise, let us know

Ross

> -----Original Message-----
> From: Lung [mailto:[EMAIL PROTECTED]]
> Sent: 12 July 2002 16:26
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Problem in passing parameters
>
>
> Hi,
>
>   I have built a form for inputting username & password and
> called login.php
> to handle. However, I fail to pass the variables to index.php like:
> http://localhost/php/login.php?username=test&password=test. When
> I check the
> variables in login.php, it said these variables are unset. Please
> adivse how
> to solve it! I am using IIS & PHP 4.2.1 in Window 2000.
>   Thanks!
>
> Lung
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
RF> Which variables?  I hope you mean $_POST[username] and $_POST[password] ?
RF> If not, read the manual about accessing variables.  Otherwise, let us know

RF> Ross

>> -----Original Message-----
>> From: Lung [mailto:[EMAIL PROTECTED]]
>> Sent: 12 July 2002 16:26
>> To: [EMAIL PROTECTED]
>> Subject: [PHP-WIN] Problem in passing parameters
>>
>>
>> Hi,
>>
>>   I have built a form for inputting username & password and
>> called login.php
>> to handle. However, I fail to pass the variables to index.php like:
>> http://localhost/php/login.php?username=test&password=test. When
>> I check the
>> variables in login.php, it said these variables are unset. Please
>> adivse how
>> to solve it! I am using IIS & PHP 4.2.1 in Window 2000.
>>   Thanks!
>>
>> Lung
>>
>>
>>
>>
>> --
>> PHP Windows Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>

Passing the arguments like that makes them available in
$_GET['username'] and $_GET['password'].

-- 
Best regards,
 Asmodean                            mailto:[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
Thanks all of you, I have solved the problems by using $_REQUEST. The
problem comes as I use php 4 with register_global off. So, my old scripts
won't work!

"Asmodean" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> RF> Which variables?  I hope you mean $_POST[username] and
$_POST[password] ?
> RF> If not, read the manual about accessing variables.  Otherwise, let us
know
>
> RF> Ross
>
> >> -----Original Message-----
> >> From: Lung [mailto:[EMAIL PROTECTED]]
> >> Sent: 12 July 2002 16:26
> >> To: [EMAIL PROTECTED]
> >> Subject: [PHP-WIN] Problem in passing parameters
> >>
> >>
> >> Hi,
> >>
> >>   I have built a form for inputting username & password and
> >> called login.php
> >> to handle. However, I fail to pass the variables to index.php like:
> >> http://localhost/php/login.php?username=test&password=test. When
> >> I check the
> >> variables in login.php, it said these variables are unset. Please
> >> adivse how
> >> to solve it! I am using IIS & PHP 4.2.1 in Window 2000.
> >>   Thanks!
> >>
> >> Lung
> >>
> >>
> >>
> >>
> >> --
> >> PHP Windows Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >>
>
> Passing the arguments like that makes them available in
> $_GET['username'] and $_GET['password'].
>
> --
> Best regards,
>  Asmodean                            mailto:[EMAIL PROTECTED]
>


--- End Message ---
--- Begin Message ---
Hi,

  I have tried both, it seems Oracle (i.e Ora_?) is much faster but OCI8 is
more powerful. So, how can I tune OCI8 in order to have faster response.
  Also, I can't use Ora_bind() inside a function. Ora_exec will return an
error of "Cannot find variable" when executed. Is there any way to solve it?
  Thanks!

Lung


--- End Message ---
--- Begin Message ---
Iam trying to use my php file in a Linux machine.

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

<?
$bat = snmpget("192.168.10.8", "pub_likt", ".1.3.6.1.4.1.2606.1.2.12.0");
$sum = snmpget("192.168.10.8", "pub_likt", ".1.3.6.1.4.1.2606.1.2.13.0");
$drift = snmpget("192.168.10.8", "pub_likt", ".1.3.6.1.4.1.2606.1.2.10.0");
$verk = snmpget("192.168.10.8", "pub_likt", ".1.3.6.1.4.1.2606.1.2.11.0");
echo $bat;
?>

Then I start it with php snmp_guard.php

All I get is

Call to undefeind funcion snmpget()

WHY??


--- End Message ---

Reply via email to