Web Hosting Talk







View Full Version : PHP


hvdm_20
03-30-2001, 06:35 AM
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...

Chicken
03-30-2001, 08:49 PM
Please see:
http://www.webhostingtalk.com/showthread.php?threadid=7652