Re: hi, highlight_string.

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: hi, highlight_string.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-53942@lists.php.net to get a copy of this message
On Mon, 21 May 2001, Alexander Wagner wrote: >Michel 'ZioBudda' Morelli wrote: >> Hi, I want to save into a variable ($tmp) the value of >> highlight_string command. Any one? or any similar function? > >Have a look at PHP 4's output buffering functions. You can use them to >safe the output instead of displaying it. no, not work. e.g.: <? ob_start(); $f = fopen("one_file.php","r"); $f2 = fread($f,40000); fclose($f); $pippo = highlight_string($f2); echo "qua<br>"; echo $pippo; echo "qua<br>"; ?> tnx however -- "Attenzione, il file o directory non è utilizzabile perchè il disco o floppy è entrato in un ciclo rindondante." ( Messaggio reale su Windows NT4 Server ) -- Michel <ZioBudda> Morelli michel@ziobudda.net ICQ UIN: 58351764 PR of Linux in Italy http://www.ziobudda.net http://www.linuxlab.it

« previous php.general (#53942) next »