Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4669024yI haven't mucked with cgi mode since the early days, long lost relic in my books.
I can have a dig around and see if I can get it working.
@AleCx04 or maybe even @linuxxx might have some more recent exposure but I'm doubtful. -
I can think of a couple of ways of doing this, all thanks to the amazing amount of "you should not be doing that".fuckery.php that the language lets us do.
Is your data being sent through http ($_GET, $_POST)? we might be able to work with that, mind you, I cannot possibly imagine someone wanting to fuck with that stream of data for anything real since it involves fucking directly with the stdin output of said requests through the php-cgi executable. It will also require some configuration, since the php-cgi by default only lets you process get requests.
Related Rants
Does somebody know how to send data to the PHP CGI executable directly and how to receive it (stdin/stdout)?
Or point me to a useful resource?
In a side project (just for fun) I try to implement the interface on NodeJS so I could process PHP through ExpressJS (long story).
I've been able to send and receive stuff, but the PHP CGI always tells me that I am "not allowed" to use this interface...
Docs/mailinglists seem reeeally old and don't want to go through the Apache source code 😅
Or does Node not have enough privileges for communicatig with PHP CGI exe?
question
php
expressjs
cgi
ancient alien tech