View Single Post
Old 01-20-2003, 04:47 PM   #26 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,529
sde is on a distinguished road
the whole idea i'm chasing here is getting the output to show up on the web page you are accessing.

for example, i got passthru() to work.
PHP Code:
<?
// prints /etc/passwd file
passthru("cat /etc/passwd");

print 
"<br><br>";

// this will print errors also
passthru("cat /etc/shadow 2>&1");
?>
now i want to get shell_exec() to work so i can actually get the output into a variable rather than just printing it out.
sde is offline   Reply With Quote