PHP

PHP is working in telnet with the command php -q test.php

but how can i call a telnet command in a cgi script

print `php -q test.php`;

when i instert the above command i will see this in the source

X-Powered-By: PHP/4.0.4pl1
Content-type: text/html
#
#
print "Content-type: text/html\n\n";
print `/usr/local/bin/php -q test.php`;

how can i solve this, i need php in cgi, thank you...

 

 

 

 

Top