PavelX 1 Posted October 9, 2020 Hi, Just wondered does any of you guys, know / has any experience on how to allow TIdHTTPServer run a PHP script file (cross platform LINUX/MACOS/WINDOWS/ANDROID) *Note - Starting with android 10 exec is forbidden. https://developer.android.com/about/versions/10/behavior-changes-10 - Removed execute permission for app home directory A starting point with some code examples will be greatly appreciated. Thank you in advance, Pavel Share this post Link to post
Remy Lebeau 1394 Posted October 10, 2020 (edited) There was a recent discussion related to this topic in the AToZed Indy forum: Process PHP with TIdHTTPServer Edited October 10, 2020 by Remy Lebeau Share this post Link to post
Fr0sT.Brutal 900 Posted October 12, 2020 Wait, what? Delphi-powered HTTP server running on Android and executing PHP scripts? Share this post Link to post
Remy Lebeau 1394 Posted October 12, 2020 (edited) 3 hours ago, Fr0sT.Brutal said: Delphi-powered HTTP server running on Android Yes. Quote and executing PHP scripts? On Android, maybe, maybe not. ISAPI is IIS-specific, and support for ISAPI has been dropped from PHP. So, if you can execute the PHP CGI executable AND redirect its STDIN/STDOUT on Android, or if you can find a FastCGI processor that works on Android, or if you can compile the PHP core library (or 3rd party implementation) directly into your app, then you might have a chance. Edited October 12, 2020 by Remy Lebeau Share this post Link to post
PavelX 1 Posted October 12, 2020 After a long research I have abandoned the idea. It looks very difficult for Android. I have found one delphi implementation for FastCGI https://github.com/EvgeniyKorepov/FastCGIClient/blob/master/UnitFastCGI.pas But I cannot find php (php-fpm) binaries for all platforms especially for android And also I have no Idea if will work. How can I start FastCGI daemon if android 10 has removed the execute permission for app home directory? Thank you very much, Pavel Share this post Link to post
Fr0sT.Brutal 900 Posted October 13, 2020 (edited) Just wondering: what's the sane usage scenario this Frankenstein's monster has? Edited October 13, 2020 by Fr0sT.Brutal Share this post Link to post