Brandon, I think you have answered your own question - because the suffix is .cgi the web server is not using PHP to parse the script - if you want all .cgi scripts to be treated as PHP scripts you will need to configure your webserver to invoke php for that suffix... e.g. for Apache it would be similar to ...
AddType application/x-httpd-php .php .cgi BUT that will break any Perl or other cgi scripts you have... HTH Rich -----Original Message----- From: Brandon Oto [mailto:brandon@;berkeleyhigh.org] Sent: 11 November 2002 12:14 To: [EMAIL PROTECTED] Subject: [PHP-INST] Problem with parsing with CGI Hey, everyone. I had a small problem, was hoping someone could enlighten me. Relatively new PHP user, so it's quite possible this is something silly. Check out the following page, if you would: http://www.berkeleyhigh.org/cgi-bin/mt/mt-comments.cgi?entry_id=49 That's a page generated by CGI, with a snippet of PHP in the head. What's the problem? Well, it's not parsing. Check out the source; it's just sitting there, being obstinate. What's funny is that every other page (every single one) on the site have the exact same code, and they all parse just fine. It's very simple code, too; it just reflects a change made on this page: http://www.berkeleyhigh.org/customize/ and prints the appropriate line to determine which style sheet it should be using. Since this is the only page on the site that does this (well, all of the comments pages do this, but they're the same thing, really), what I'm tempted to think is that it's somehow related to the fact that this page has a .cgi label. Maybe. Or maybe not. Maybe I'm just being stupid. Yeesh, I don't know. Can anybody help? Thanks in advance, - Brandon Oto -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php