Re: Could not display PHP file

From: Date: Fri, 08 Jul 2005 07:22:50 +0000
Subject: Re: Could not display PHP file
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-16460@lists.php.net to get a copy of this message
Joseph Lee wrote:
Hello, I installed PHP5 and MySQL on my Linux machine running Apache web server. I could access this server from another computer by http://(hostname)/index.html Then I created a simple hello.php file: <html> .... <?php echo "hello" ?> .... </html> But when I tried http://(hostname)/hello.php from another computer, it just displayed this original text file, not "hello" in a browser. Is it an installation problem? How can I check it? Thanks, Joe
Hi Joe, you need to make sure the following line is in httpd.conf: AddType application/x-httpd-php .php -- Brad Kowalczyk Web Developer www.ibiscode.com

« previous php.install (#16460) next »