Jump to content

Archived

This topic is now archived and is closed to further replies.

epod

Runnin php scripts under other programs

Recommended Posts

I have recently approached an issue where I must retreive data from a descriptor. The data
is populated into the descriptor by the program which will run the php script.

I have searched for ways to read the descriptor, but have failed as most of the read() functions
appear to be geared around files. Also, I was hoping to avoid running the external program
from within the php script with proc_open in order to obtain this data.

So a general run down of how this will work, is this:

/sbin/external_prog /sbin/script.php

external_prog pushes data into the descriptor, and script.php needs to pull the data.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.