php-windows Digest 30 May 2004 22:57:08 -0000 Issue 2268
Topics (messages 23890 through 23891):
Re: Can not execute exes from php
23890 by: Svensson, B.A.T. (HKG)
How do you delete a cookie on the spot?
23891 by: Daniel Anderson
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 ---
That is not a good solution - that way anybody can execute anything, from
anywhere. If you uses ISS, then you can let certain pages run as certain
user. Let the page that needs to do the shell execution run as a user that
can run cmd.exe.
Don't ask me how this is done with apache since I don't know.
-----Original Message-----
From: venkata ramana
To: PHP-Windows
Sent: 29-5-2004 19:29
Subject: [PHP-WIN] Re: Can not execute exes from php
After two days of google search and some other trials, I found the
problem. I have to give execute permissions to
%SystemRoot%/System32/cmd.exe for the user IUSR_sytemname, for getting
those commands executed.
regards,
ramana,
On Sat, 29 May 2004 14:12:33 +0530, venkata ramana <[EMAIL PROTECTED]>
wrote:
>
> Hi,
>
> Whenever I try to execute an exe file from a php program, I am
> getting an error saying
> "Warning: shell_exec(): Unable to execute 'xxxx..'. I am using IIS 6.0
> in windows server 2003.
> It is showing the same error even when I try to execute simple command
> like 'dir'. Please help me by telling what should I do to execute the
> exe files.
>
> Thanks,
> ramana.
>
--- End Message ---
--- Begin Message ---
Hi, can anyone tell me how to clear a cookie when the line comes up?
Because the following: setcookie("name",""); does work yes, but not well enough.
I need it to remove that cookie there and then.
For example:
You go through a login process to access a page, it sets a cookie with username and
password so it registers you as being logged in.
When you click a link which directs you to a logout page, it will clear the cookie.
This is all well and good but if you retype the url to get back to the page, e.g.
http://server/main/ it will still state that you have logged in.
This seems to be flying all over the place, can anyone help? Please don't direct me to
the PHP Manual or any other place as I have already checked.
Many thanks,
Dan
--- End Message ---