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               [EMAIL PROTECTED]

ICQ UIN: 58351764                       PR of Linux in Italy
http://www.ziobudda.net                 http://www.linuxlab.it


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to