In a previous post , we described how to run PHP scripts from a local copy of IIS. This time we want to discuss how to run these scripts from the web server that comes with PHP itself. Both methods come handy for developing and testing scripts offline. You don’t need to buy anything. All that you need is a copy of PHP and of a web browser installed in your machine. To proceed, we assume that you are familiar with Windows 11, that PHP is already installed and working properly, that you know how to write PHP scripts, and that you know how to use the Command Prompt (CMD) tool of Windows. To establish a connection between PHP and CMD, we need to edit Windows Environment Variables. There are two types of variables: User variables and System variables. Users without administrative privileges can only edit User variables. Any edits apply to the user currently logged in. Users logged as administrators can edit User and System variables. Changes made to System variables apply to all users.…