PHP Classes

catch html

Recommend this page to a friend!

      PHP HTTP protocol client  >  All threads  >  catch html  >  (Un) Subscribe thread alerts  
Subject:catch html
Summary:I do not want to display code
Messages:2
Author:parvo ime
Date:2010-04-07 14:52:48
Update:2010-04-07 20:01:34
 

  1. catch html   Reply   Report abuse  
Picture of parvo ime parvo ime - 2010-04-07 14:52:48
Hello,

first congrats for wonderful class!


Now i`m using:

for($body_data='';;)
{

$error=$http->ReadReplyBody($body,1000);
if($error!=""
|| strlen($body)==0)
break;

$body_data .= HtmlSpecialChars($body);
}

to catch html source into $body_data, but I do not want to be shown html code in my page.

How to do it?

Thank you in advance!!

  2. Re: catch html   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2010-04-07 20:01:34 - In reply to message 1 from parvo ime
What shows in the page is debug information. Just set the debug variable to 0.