The lightsquid cgi script generates an html page. Actually, I want to "intercept" this page.
Or you can do so, from PHP run cgi and transfer the result to a file. And then read this file.

    1 answer 1

    Maybe here what you need? How to run CGI script from PHP

    or here include / execute a CGI file inside a PHP file

    I think the exec function will do.

    • Well yes. it can’t be. Besides, mixing CGI / Perl with PHP isn’t necessary. So file_get_contents - alexlz
    • then it will receive the contents of the script, and not the contents of the page it has created - spirit
    • @spirit well, well, well. $ data = file_get_contents (" fullpathto.cgi", 0 ); - alexlz
    • "file_get_contents - Reads the contents of a file into a string". This function will not launch " fullpathto.cgi ", but will read its contents. - spirit
    • @spirit, read [allow_url_fopen] [1] [1]: php.net/manual/en/filesystem.configuration.php - thunder