|
Posted by R. Rajesh Jeba Anbiah on 08/13/07 15:35
On Aug 13, 12:20 am, Michael N <nietz...@gmail.com> wrote:
> i have some scripts made for use as a CLI scripts from the console.
>
> but i like use this scipts from a webbrower.
>
> i dont like to patch the scripts too much.
>
> the script uses the stream wrapper:
>
> php://stdin
> php://stdout
> php://stderr
>
> possible solutions:
>
> 1) a wrapper to wrap over the php://sdt* streams
> 2) change the php://sdt* streams to a new wrapper (like webphp://sdt )
>
> is there already a working solution?
> maybe with use of ajax?
I think, you might be knowing... anyway, fopen('php://stdin', 'r');
on command line is getting input from command line and on webserver
environment, it's reading from POST.
--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
[Back to original message]
|