Jeremy H asked:
i have installed apache and php, but i cannot open one single, stupid, PHP script in my browser.
i have installed apache and php, but i cannot open one single, stupid, PHP script in my browser.
i want to be able to test my php scripts without uploading to a server.


2 Comments to 'i need a free PHP emulator so i can test php scripts on my computer without having to upload o my web site?'
April 23, 2010
If you have installed Apache and PHP on your loacl machine, there is no reason you can’t run the scripts locally. You have something configured incorrectly or you are not loading the scripts correctly.
You don’t need a PHP emulator. PHP IS and emulator, of sorts. You can also load your scripts using PHP from the command line.
Read the documentation at.
April 23, 2010
I don’t think there is such a thing as a PHP emulator, and I don’t know why you’d need one. It’s likely that you either didn’t install PHP and apache correctly or you aren’t using it right.
Use XAMPP to install PHP and apache. It will also include MySQL and phpMyAdmin (which you will need sooner or later) and some other good stuff too. It’s much easier than trying to configure PHP and apache by hand. Best of all, it’s all configured to run together immediately. XAMPP and all of its components are free and open source.
Once you’ve got a web server, you need to turn it on (that’s not automatic.) There’s a nice control panel that makes this easy with XAMPP. PHP files will only work if they’re in a specific subdirectory (usually htdocs in the apache directory structure) Also, you can’t just load a PHP file into the browser the same way you do an HTML file. Instead, you need to point the browser to
PHP is called by the server, so if you use a mechanism (like the directive) that bypasses the server, your PHP programs won’t run.