Re: new install - code shows no output

From: Date: Tue, 18 Jul 2000 05:50:39 +0000
Subject: Re: new install - code shows no output
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-7037@lists.php.net to get a copy of this message
On 18 Jul, David Banning wrote: > I can't get simple script to appear in Netscape; > > - using php4 > - PHP is definitely running (used telnet localhost 80 / HEAD HTTP 1.0) > which shows: 'Server: Apache/1.3.12 (Unix) PHP/4.0.0' > - checked 'AddType application/x-httpd-php .php' is added > - my file is test.php and this is the content; > > <html> > <head> > <title>Example</title> > </head> > <body> > <?php echo "Hi, I'm a PHP script!"; ?> > </body> > </html> > > Here's something I discovered - tell me if I'm on the right track. > > I notice - AddType application/x-httpd-php .php > is within conditional brackets - like so; > <IfModule mod_mime.c> > AddType application/x-httpd-php .php > lots of other entries... > </IfModule> > > In other words - I imagine if if mod_mine.so dosen't exist, > (which it doesn't, although I do have mod_mime_magic.so) > the 'AddType application/x-httpd-php .php' doesn't get set, right? > > I tried putting it outside of the conditions - still doesn't work. > > But looking through the manual - mod_mine.so looks like > it is there for identifying the type of file names (like maybe *.php > types?) > > Could this be my problem? > I'd certainly try adding mod_mime - it lives immediately after mod_mime_magic in my install. As to why mod_mime is not installed ??? Cheers -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#7037) next »