Hi,
I am wondering if anyone on this list has made attempts of executing shel=
l scripts using PHP.
Here is the code:
<?php
$command =3D "gcc -o hello.c";
exec($command);
?>
So far, the actual program is something simple that prints out Hello, Wor=
ld. I have tried using
// create a new cURL resource
$ch =3D curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://localhost/hello.c");
curl_setopt($ch, CURLOPT_HEADER, false);
All I got is the actual code content that is in one single long string. As =
for using the PHP snippet I have at the beginning of the email, all I get i=
s a blank page, although it does not give me errors of the actual PHP progr=
am. Could anyone please tell me what problem I might be having here?
Anything is appreciated.
Alice
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D
Alice Wei
MIS 2009
School of Library and Information Science
Indiana University Bloomington
ajwei [at] indiana.edu
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
