Opening and Closing PHP File??

[php]echo “Hello World!”;[/php]

note: I’ve recently installed PHP on the Apache web server, so that shouldn’t be the problem. :wink:

I’ve created a simple ‘Hello World!’ page, but when I run it, it immediately closes and asks, “Would you like to download this file?”. If I say yes, it does te same thing. I’ve checked for errors, and I even have the semi-colon.

How do I make it run and echo “Hello World”;? (php start and closing tags are correct)

You must install the conection in apache with php.
If you use debian,ubuntu or also other unix SO, you must install libapache2-mod-php5.
If you use other SO must be the same with other packages.

Sponsor our Newsletter | Privacy Policy | Terms of Service