allasso Posted June 5, 2009 Share Posted June 5, 2009 Greetings, I hope this is the right place for this question. I have created an archive disk of a website to be used on users' machines as a local mirror. There is also a PHP search script that was used when the site was hosted on a server that I would like to implement if possible. Most of the users of this disk are running Mac OSs which come with PHP installed. Is there a way to access PHP via the web browser WITHOUT having to turn on the webserver? Thanks, Allasso Quote Link to comment https://forums.phpfreaks.com/topic/161059-post-to-php-on-local-machine-without-a-server/ Share on other sites More sharing options...
ldougherty Posted June 5, 2009 Share Posted June 5, 2009 Enabling the web server would allow you to access the scripts via localhost, otherwise if PHP can be parsed on the machine you should be able to just open the scripts individually in a browser. I think for your scripts to actually execute though like the search script you'll need to enable the web server. Quote Link to comment https://forums.phpfreaks.com/topic/161059-post-to-php-on-local-machine-without-a-server/#findComment-849951 Share on other sites More sharing options...
JonnoTheDev Posted June 5, 2009 Share Posted June 5, 2009 NO! You would have to have the script installed on each individual mac if php is available also mysql and database if required. PHP is server side. It doesn't run like javascript does in a web browser. Quote Link to comment https://forums.phpfreaks.com/topic/161059-post-to-php-on-local-machine-without-a-server/#findComment-850050 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.