Question : running php scripts on a stand-alone computer

I have a JavaScript code that I would like to run stand-alone on my PC.  It calls a PHP script to read a file which is supposed to be on the server.  But, I just want to store those files locally, skipping the whole server side so that I can run it all stand-alone.  

Answer : running php scripts on a stand-alone computer

just type in http://localhost or http://127.0.0.1  in your browser..

99.99% of the times, there won't be any problem.. It will be success.

Now, in your javascript file, change http://example.com/script.php to http://localhost/script.php
Random Solutions  
 
programming4us programming4us