osx - Run a string through PHP? -


how go processing string through system php?

i've tried doing firing nstask , feeding arguments /usr/bin/php results of php cli, isn't quite same thing — one, line breaks aren't quite right.

what i'd take string, run through php, , store result in string. kind of webserver.

is possible?


update have tried both -f , -r options of php cli, neither 1 of them gives me output i’m looking for.

i suspect php cli not correct approach here.

i able turn string containing php code string containing how code parsed web server php support.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

wso2esb - How to concatenate JSON array values in WSO2 ESB? -