#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Hong Kong
    Posts
    73
    Rep Power
    15
    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. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    43
    Rep Power
    15
    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

IMN logo majestic logo threadwatch logo seochat tools logo