is there any way to parse php without a webserver? I am designing an app and would like to be able to use php for data manipulation with a SQL database but I don't want to bulk up the software with any unnecessary 3rd party apps. plus having to install a web server opens up way too many security issues that don't need to be there in the first place.
There is a CLI and other stuff.. I've used the CLI to do really quick tests of simple code--probably 3 times to be exact.
thank man, that helped a lot
I don't want to bulk up the software with any unnecessary 3rd party apps.
So you want to do an app using php and sql but don't want to use a web server with these installed??
I don't understand..
Get a webserver or turn your own computer into one to test locally.
no I want to build an app that uses php and sql, but doesn't rely on a webserver to act as a go-between.
PHP Is a server-side language and doesn't execute on local machine unless you set your own computer up as a server itself using Apache or IIS software.
Either way, you'll need a server.
You can run PHP w/o a webserver. To double-check, I just stopped httpd on my development box and typed
php -r 'echo "hello\n";'
and it works.
I was reading thru articles at PHP builder and found this which shows a better way to run php w/o a webserver than I previously mentioned.
the shell script was interesting, but I think the MSDE engine will parse php, not sure though, if not I might be able to get a buddy of mine to write me an application handler for it.