html and php

From: Date: Mon, 27 Jan 2003 19:57:24 +0000
Subject: html and php
Groups: php.install 
Request: Send a blank email to php-install+get-9860@lists.php.net to get a copy of this message
Hi ! here is my story (i have looked through archives and found nothing to my problem): I have working configuration of apache 1.3.27 with php-4.3.0 on linux with 2.4.20 kernel. I want to put some php code into my .html pages. So I have added: 1. <IfModule mod_php4.c> AddType application/x-httpd-php .html .php4 .php3 .phtml .php AddType application/x-httpd-php-source .phps </IfModule> 2. ./configure --with-short-tags 3. in php.ini: short_open_tag = On my index.html looks like: <br> test<br> test<br> <br> <script language="php"> print "dupa\n"; </script> <br> <?php print "dupa\n"; ?> In a browser i can see only: test test View source from browser looks like: <br> test<br> test<br> <br> <script language="php"> print "dupa\n"; </script> <br> <?php print "dupa\n"; ?> When i change the extension of file to .php it is working. Where is the problem ? -- greetz boka

« previous php.install (#9860) next »