PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
$address = "192.168.0.1";
print("trying to pass $address to the expect script");
print("<br/>");
exec("expect telnet.exp $address");
print("<br/>see if it worked");
?>
Thanks for the help. As it turns out I wasn't having a problem passing the variable from php to expect, I wasn't getting the variable from JS to PHP. I've corrected it and the code I posted works. Cheers!