Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Install PHP server


ghost's Avatar
0 0

You need a server to run PHP, I want to view my files offline, just for testing and learning. I managed to find out that you need to install PHP and an Apache Server, i installed the latest versions of both programs. I took a simple code and named it test.php

<body>

<?php echo "Hello World"; ?>

</body>
</html>```
When I open the file with Firefox, it asks if i want to open it or download it, I say open and Dreamweaver opens the file. I just want to see the PHP file in Firefox.

What am I doing wrong here?

Thx.

ghost's Avatar
0 0

Windows or Linux? Online or Offline?

online => www.t35.com offline => linux => apache => windows => WAMP and JOOMLA (last name could contain spelling errors ;) )


ghost's Avatar
0 0

ok unistall all that shite. Download EasyPHP, it installs and configures everything you need, you wap all your scripts into the http://localhost/ to http://localhost/[scriptname].php . Easy as pie.


ghost's Avatar
0 0

what is the www folder?


ghost's Avatar
0 0

you can try phpdev, google for it :) it configures almost automaticly and has a nice start.bat :p


ghost's Avatar
0 0

OK, thanks guys. I got WAMP, and i like it, its easy :P now I just want to send those pages to the orld, thats still a problem :s