This is a discussion on Apache & PHP within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I can't visualize my php files correctly - for instance, index.php contains: " <html> <head> <title>Teste</title> </head> <body> Test: ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I can't visualize my php files correctly - for instance, index.php contains: " <html> <head> <title>Teste</title> </head> <body> Test: <?php echo "ok"; ?> </body> </html> " but the output ( with a WebBrowser - e.g. lynx ) is : " Test: " Trying "php /var/www/htdocs/index.php > test.htm; lynx index.php": " Content-type: text/html X-Powered-By: PHP/4.3.1 Test: ok " I'm using Slackware9.0. What should I do ? Pedro Amaral Couto |
| ||||
| -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 In article <pan.2003.09.08.13.18.02.20680@AmC.netcabo.pt>, Pedro Amaral Couto wrote: > I can't visualize my php files correctly - for instance, index.php > contains: What you should do is open the php file via a webserver. It is the webserver which parses the php code to a valid html file. In short make sure apache has php support (look at the bottom of the file /etc/apache/httpd.conf) place the file in the webroot (/var/www/htdocs or such) open the file with a URL like http://localhost/index.php Pretty sure this has nothing to do with Slackware though. - -- If life is a stage, I want some better lighting. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/XH/sqV1uRRMUN/wRAmuSAJ9qH7ZxImt3la8tCJmesNY7NU7p9QCfTH0O r0ILtFbkJ59TfyxIXOPoCVU= =K+KV -----END PGP SIGNATURE----- |