Jump to content

Archived

This topic is now archived and is closed to further replies.

PHPF60818

Which AMP Installation for Windows XP Pro environment?

Recommended Posts

Glad to know there are several choices like XAMPP, WAMP, EasyPHP, Reactor, etc.

Questions:
(1) If one wishes to avoid the need to "upgrade" to a more powerful installation later, which one(s) should one install under WinXP Pro?

(2) How secure are each of the installations? What's the chance of hackers hacking into the computer via the installation? In terms of being hacker-proof, which of the installations is the most secure, and which is the least secure? Which one has the best default security?

(3) What are the key caveats to follow to prevent hacking as a result of installing such a PHP programming environment?

Thanks to all for any input. I am sure many beginners will appreciate knowing the answers to all the above questions.

Share this post


Link to post
Share on other sites
If you install a server on to your PC, your PC has a slim chance of getting hacked. As the real vunerability you'll have is the security of your PHP scripts this is how sites get hacked due to exploits in thier code.

To stop people from hacking your scripts you should make sure any variables comming the client such as POST'd data, URL parameters and cookies should all be validated properly. For example say you have an id url parameter which holds an integer. You should check that the id variable is a number using this:
[code=php:0]if(isset($_GET['id']) && is_numeric($GET['id']))
{
    // id variable has been validated and passed. We can now use $_GET['id'] variable
}
else
{
    // we kill the script as id variable is either not present or is not a number
    die('invalid identifier');
}[/code]


Also I dont like any of those packages you have listed above. It is much better to setup Apache, PHP and MySQL manaully That way if you want to upgrade PHP you can do without having to wait until your AMP package has been updated.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.