php-windows Digest 25 May 2010 07:40:15 -0000 Issue 3817
Topics (messages 30118 through 30121):
@EXEC command not work :(
30118 by: loki
30120 by: Niel Archer
30121 by: loki
Re: [PHP-DB] Need Simple PHP mysql search engine script
30119 by: Niel Archer
Administrivia:
To subscribe to the digest, e-mail:
php-windows-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-windows-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-wind...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Hello,
PHP is installed in c:\program files\php
the PHP script are in network drive \\xxx.xxx.xxx.xxx\scriptdir\
in the PHP script, we try to launch the command @exec(...) with a
executable located in c:\program files\ourexecutable\
it's not work :(
but if we move the PHP script from \\xxx.xxx.xxx.xxx\scriptdir\
to c:\scriptdir\ then it's work !!
everything work good EXCEPT the @EXEC command ...
Safe mode in PHP is OFF ...
Thanks by advance for you help
stephane
--- End Message ---
--- Begin Message ---
> Hello,
>
> PHP is installed in c:\program files\php
> the PHP script are in network drive \\xxx.xxx.xxx.xxx\scriptdir\
> in the PHP script, we try to launch the command @exec(...) with a
> executable located in c:\program files\ourexecutable\
>
> it's not work :(
>
> but if we move the PHP script from \\xxx.xxx.xxx.xxx\scriptdir\
> to c:\scriptdir\ then it's work !!
>
> everything work good EXCEPT the @EXEC command ...
>
> Safe mode in PHP is OFF ...
>
> Thanks by advance for you help
> stephane
Is this operating in a CLI or web-server environment? If it is
web-server then it is probably a permissions issue. By default
Apache/PHP do NOT have permissions to access network resources. You must
create a user to run Apache and give that user the permissions needed.
This of course assumes you're using Apache, but I would guess similar
problem would happen with IIS.
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Niel Archer
--- End Message ---
--- Begin Message ---
I have a begin of explanation
When PHP is run as CGI it's work but with this header message :
'\\xxx.xxx.xxx.xxx\scriptdir'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
Status: 200 OK
X-Powered-By: PHP/5.2.8
Content-type: text/html
@exec function work well
Now when PHP is run as a FAST-CGI then it's not work at
ALL (ie: just the @exec function not work, the other work ok!)
is it a normal behavior ?
thanks you by advance
stephane
On 5/25/2010 2:46 AM, Niel Archer wrote:
Hello,
PHP is installed in c:\program files\php
the PHP script are in network drive \\xxx.xxx.xxx.xxx\scriptdir\
in the PHP script, we try to launch the command @exec(...) with a
executable located in c:\program files\ourexecutable\
it's not work :(
but if we move the PHP script from \\xxx.xxx.xxx.xxx\scriptdir\
to c:\scriptdir\ then it's work !!
everything work good EXCEPT the @EXEC command ...
Safe mode in PHP is OFF ...
Thanks by advance for you help
stephane
Is this operating in a CLI or web-server environment? If it is
web-server then it is probably a permissions issue. By default
Apache/PHP do NOT have permissions to access network resources. You must
create a user to run Apache and give that user the permissions needed.
This of course assumes you're using Apache, but I would guess similar
problem would happen with IIS.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Niel Archer
--- End Message ---
--- Begin Message ---
> Hi Chaitanya,
>
> I have used the below script but its not meeting my requirements. What I
> need is that I have a database in which their are names which I wanted to
> use as keywords. I want to search with only one variable called Names. the
> other stuff will come along with it. Please help me if anyone knows a good
> script for it.
As this is database related, you would likely get more replies asking
in the database list: php...@lists.php.net
> PS: I have tried my own script and a number of scripts available on the net
> but it didn't worked as per my requirements.
>
> Best,
> Guru.
--
Niel Archer
--- End Message ---