I have a CGI Program written in C
print "<h1> Hello </h1>";
print "<?php echo "Hello"; ?>";
I cannot get these PHP code running.
The result only print a "HELLO" on screen.
I am not familar in Apache server setting. Do I have to config something?
You cant do this.
The output of the CGI program is not considered "PHP code" by the web server. So it will be echoed to the browser.
In fact, check the browser's HTMl page code and you shall see what I mean.
PHP, Perl, SQL Programming at http://www.mentalobjects.com