php-windows Digest 17 Oct 2007 21:31:54 -0000 Issue 3353
Topics (messages 28570 through 28572):
Cann't exec() or system() with safe_mode=1
28570 by: Joaquín
28571 by: Stut
Re: sms service
28572 by: trystano.aol.com
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 ---
Hello,
I have a problem with safe_mode. I want to execute some program while in
safe_mode=1 but I cann't. To make it as simple as possible I'm now using
myprogram.exe that is the typical "hello world" program.
It only works with safe_mode=0 and with safe_mode=1 nothing happens and
it returns nothing: no echo, no error message, althoug
error_reporting=E_ALL.
I try it with exec() and system() and it is the same (both execute it or
both don't).
After having read some blogs and newsgroups I have set all these things:
-myprogram.exe is placed in C:\wwwroot\tests\bin. IUSR_SERV, IWAM_SERV
and ALL can read and execute it.
-a copy of CMD.exe is placed in C:\wwwroot\tests\bin. IUSR_SERV,
IWAM_SERV and ALL can read and execute it.
-C:\wwwroot\tests\bin is in the PATH
-safe_mode_exec_dir = "c:\wwwroot\tests\bin"
-with IIS manager I have set both "Anonymous"_and_"Windows integrated"
authentication and only "Windows integrated" authentication in
C:\wwwroot\tests.
¿Have you any idea?
This is my php
##########################################################
<?php
$retstr = exec('C:\wwwroot\tests\bin\myprogram.exe 2>&1',$retval);
echo "<p>retstr: ".$retstr;
echo "<p>retval: ";
if ((bool)$retval!=False){
foreach ($retval as $nombre => $valor){
echo $valor."<br>";
}
} else {
echo "False<br>";
}
echo "<hr>";
$retstr = system('C:\wwwroot\tests\bin\myprogram.exe 2>&1',$retval);
echo "<p>retstr: ".$retstr;
echo "<p>retval: ";
if ((bool)$retval!=False){
echo "True<br>";
} else {
echo "False<br>";
}
?>
##########################################################
And this my server:
Windows 2000
IIS 5
PHP 4.4.3, ISAPI
I have tried it in a W2003, IIS6, PHP 4.4.2 with the sema result :(
Thanks for your help.
--- Begin Message ---
Hello,
I have a problem with safe_mode. I want to execute some program while in
safe_mode=1 but I cann't. To make it as simple as possible I'm now using
myprogram.exe that is the typical "hello world" program.
It only works with safe_mode=0 and with safe_mode=1 nothing happens and
it returns nothing: no echo, no error message, althoug
error_reporting=E_ALL.
I try it with exec() and system() and it is the same (both execute it or
both don't).
After having read some blogs and newsgroups I have set all these things:
-myprogram.exe is placed in C:\wwwroot\tests\bin. IUSR_SERV, IWAM_SERV
and ALL can read and execute it.
-a copy of CMD.exe is placed in C:\wwwroot\tests\bin. IUSR_SERV,
IWAM_SERV and ALL can read and execute it.
-C:\wwwroot\tests\bin is in the PATH
-safe_mode_exec_dir = "c:\wwwroot\tests\bin"
-with IIS manager I have set both "Anonymous"_and_"Windows integrated"
authentication and only "Windows integrated" authentication in
C:\wwwroot\tests.
¿Have you any idea?
This is my php
##########################################################
<?php
$retstr = exec('C:\wwwroot\tests\bin\myprogram.exe 2>&1',$retval);
echo "<p>retstr: ".$retstr;
echo "<p>retval: ";
if ((bool)$retval!=False){
foreach ($retval as $nombre => $valor){
echo $valor."<br>";
}
} else {
echo "False<br>";
}
echo "<hr>";
$retstr = system('C:\wwwroot\tests\bin\myprogram.exe 2>&1',$retval);
echo "<p>retstr: ".$retstr;
echo "<p>retval: ";
if ((bool)$retval!=False){
echo "True<br>";
} else {
echo "False<br>";
}
?>
##########################################################
And this my server:
Windows 2000
IIS 5
PHP 4.4.3, ISAPI
I have tried it in a W2003, IIS6, PHP 4.4.2 with the sema result :(
Thanks for your help.
--- End Message ---
--- End Message ---
--- Begin Message ---
Joaquín wrote:
Hello,
I have a problem with safe_mode. I want to execute some program while in
safe_mode=1 but I cann't. To make it as simple as possible I'm now using
myprogram.exe that is the typical "hello world" program.
It only works with safe_mode=0 and with safe_mode=1 nothing happens and
it returns nothing: no echo, no error message, althoug
error_reporting=E_ALL.
I try it with exec() and system() and it is the same (both execute it or
both don't).
After having read some blogs and newsgroups I have set all these things:
-myprogram.exe is placed in C:\wwwroot\tests\bin. IUSR_SERV, IWAM_SERV
and ALL can read and execute it.
-a copy of CMD.exe is placed in C:\wwwroot\tests\bin. IUSR_SERV,
IWAM_SERV and ALL can read and execute it.
-C:\wwwroot\tests\bin is in the PATH
-safe_mode_exec_dir = "c:\wwwroot\tests\bin"
-with IIS manager I have set both "Anonymous"_and_"Windows integrated"
authentication and only "Windows integrated" authentication in
C:\wwwroot\tests.
¿Have you any idea?
Try using forward slashes instead of backslashes.
-Stut
--
http://stut.net/
--- End Message ---
--- Begin Message ---
You basically need to find an SMS provider. They will then have a mechanism in
which you send them details (account username and password, recipient, text
etc). You could send this via a URL or through form submission.
But yeah, find a provider, check out their documentation and go from there.
Hope this helps.
Tryst
-----Original Message-----
From: Nishantha Pradeep <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Wed, 17 Oct 2007 5.07am
Subject: [PHP-WIN] sms service
how can i build sms send/receive application using PHP?.Is there anything I
need than php ?
________________________________________________________________________
Get a FREE AOL Email account with unlimited storage. Plus, share and store
photos and experience exclusively recorded live music Sessions from your
favourite artists. Find out more at http://info.aol.co.uk/joinnow/?ncid=548.
--- End Message ---