|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Hello
I have a CGI Program written in C eg. ... ... 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? |
|
#2
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Running a PHP program in a CGI Program written in C |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|