note 19662 deleted from function.ob-start by sniper

From: Date: Tue, 25 Feb 2003 08:16:31 +0000
Subject: note 19662 deleted from function.ob-start by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-44485@lists.php.net to get a copy of this message
regarding Tidy, I've just hacked it into my php/apache setup, so if you own your server, you could try something like this too: Create a shell script: #!/bin/bash ulimit -t 2 echo $1 | tidy -q -config /etc/local/tidy.conf 2>/dev/null exit 0 (change to your tidy conf) and then make a function which you can set to be the output_handler in php.ini: function tidyIt($buffer) { $buffy = return shell_exec("phptidy " . escapeshellarg($buffer); } Make sure the function is available to every page (php gracefully ignores it if not though) and you should find your markup suddenly a lot prettier. Improvements welcome!

« previous php.notes (#44485) next »