RE: [PHP] php4 and apache on SuSE Linux

From: Date: Thu, 13 Sep 2001 11:03:02 +0000
Subject: RE: [PHP] php4 and apache on SuSE Linux
Groups: php.general 
Request: Send a blank email to php-general+get-67177@lists.php.net to get a copy of this message
Try: <html> <head> <title>PHP Test Example</title> </head> <body> <?php echo "<hr>"; echo date("H:i, jS F"); echo "<p>"; echo "Hi, I am a PHP script!<p>"; echo "<hr>"; ?> </body> </html> Rudolf Visagie rudolf@dhsolutions.co.za -----Original Message----- From: T.Sean Schulze [mailto:hussar256@hotmail.com] Sent: 13 September 2001 11:47 To: php-general@lists.php.net; php-install@lists.php.net Subject: [PHP] php4 and apache on SuSE Linux I am trying to run a simple php4 script on my SuSE Linux 7.2 (Update) system, but I am not getting the correct output. Instead of the browser (Netscape or Konqueror) showing a normal web page, it shows the raw commands from the php script portion of the html file. Here is the script I am using: <html> <head> <title>PHP Test Example</title> </head> <body> <?php echo <hr>; echo date("H:i, jS F"); echo <p>; echo Hi, I am a PHP script!<p>; echo <hr>; ?> </body> </html> When I open this file with konqueror or Netscape, the browser window carries the title "PHP Test Example", but the output within the browser window looks like this: ; echo date("H:i, jS F"); echo ; echo Hi, I am a PHP script! ; echo -------------------------<a horizontal rule>___________________ ; ?> Furthermore, if I run a simple script from the command line, something like this ("trythis.php"): #!/usr/bin/php echo "Hey, I am working fine."; this is the output I get: tschulze:~/web_dev/schulze> ./trythis.php X-Powered-By: PHP/4.0.4pl1 Content-type: text/html echo "Hey, I am working fine."; tschulze:~/web_dev/schulze> Any idea what I need to do to get this working right? TIA, Sean hussar256@hotmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#67177) next »