[Typo3-dev] get HTML of a page...

Ries van Twisk typo3 at rvt.dds.nl
Fri May 13 16:29:10 CEST 2005


Hey Guys,

I already asked this on typo3-user but no answer... (I couldn't find the 
class/code )

I currently use this code to get the HTML of a page with a specific UID:
    function getPageHTML($uid) {
        $command = '/usr/bin/wget -O - 
"http://ns2.latinsecure.com:8042/index.php?id='.((int)$uid).'&ebook=1"';
        $handle = popen($command, 'r');
        $html = '';
        while (!feof($handle)) {
            $html .= fread($handle, 10240);
        }
        fclose($handle);
        return $html;
    }

But I am wondering of there isn't any specific typo3 function so I can 
bypass
our webserver and get direct access to the rendered HTML.

I do this in the backend but willing to switch the FE if there isn't any 
BE code/class
that can handle it..

thanks in advance,
Ries

-- 
R. van Twisk
http://www.metamorf.net

Our Typo3 enabled website: http://www.livetravelguides.com
Instand help for Typo3?    irc:/irc.freenode.net/typo3
Looking for documentation? http://typo3.org/documentation/






More information about the TYPO3-dev mailing list