Re: PHP tags are not recogonized.
| From: | shanky | Date: | Wed, 03 Jul 2002 00:50:08 +0000 |
| Subject: | Re: PHP tags are not recogonized. | ||
| References: | 1 2 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-7592@lists.php.net to get a copy of this message | ||
Thanks Frederic. I did add both of what you've suggessted to httpd.conf - restarted httpd by apachectl restart, but no luck. Still it just displays what I've in my test.php instead of displaying them in php-way.
I'm very much new to Apache and PHP. I hope the position of these tags in httpd.conf doesn't matter( since I've added them in the last line ).
Frederic Trudeau wrote:
your httpd.conf needs this ; AddType application/x-httpd-php .php .php4 .php3 .phtml AddType application/x-httpd-php-source .phps ... and ... DirectoryIndex index.html index.htm index.shtml index.php index.php3 index.php (and others...) --------------------------------------------------- Frederic Trudeau Coder, Colocation, Development ftrudeau@cam.org 514.529.3000 ext. 246 ----- Original Message ----- From: "kramer" <shankariyer3@attbi.com> To: <php-install@lists.php.net> Sent: Tuesday, July 02, 2002 5:24 PM Subject: [PHP-INST] PHP tags are not recogonized.hello, I've Apache 1.3.20 up and working. My local-host displays this inNetscape:Running version Apache-AdvancedExtranetServer/1.3.20 (Mandrake Linux/3mdk) PHP/4.2.1 mod_ssl/2.8.4 OpenSSL/0.9.6b I installed PHP 4.2.1 under Quick Install DSO option. It went fine - No complaints from make/make install either. As the INSTALL in the php directory suggested, I copied php.ini-dist to /usr/local/lib/php.ini - I didn't modify anthing in here. As suggessted I added the line AddType application/x-httpd-php .php in my httpd.conf Now, my browser doesn't display any PHP tags. It just displays <?phpinfo()?> which I've in test.php. What've I missed ? All help is very much appreciated. Thanks. - shanky. -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php