本人从前没用过PHP,交叉编译后,把PHP-CGI写到MIPS板,
做了个简单程序:
1.PHP:
<?
echo "Hello World!\n";
?>PHP-CGI 1.PHP得到如下:
Content-type: text/html
X-Powered-By: PHP/5.0.5
<?
echo "Hello World!\n";
?>
做了个简单程序:
1.PHP:
<?
echo "Hello World!\n";
?>PHP-CGI 1.PHP得到如下:
Content-type: text/html
X-Powered-By: PHP/5.0.5
<?
echo "Hello World!\n";
?>
<?php
echo "Hello World!\n";
?> 得到:
Hello World!这样写就好了