Re: how do I use php://memory?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jan 29, 2010, at 10:57 PM, Mari Masuda wrote:

> 
> On Jan 29, 2010, at 4:38 PM, Nathan Nobbe wrote:
> 
>> On Fri, Jan 29, 2010 at 5:35 PM, Mari Masuda <mari.masuda@xxxxxxxxxxxx> wrote:
>> Hello,
>> 
>> I have a function that uses tidy to attempt to clean up a bunch of crappy HTML that I inherited.  In order to use tidy, I write the crappy HTML to a temporary file on disk, run tidy, and extract and return the clean(er) HTML.  The program itself works fine but with all of the disk access, it runs quite slowly.
>> 
>> why read from disk in the first place?
>> 
>> http://us3.php.net/manual/en/tidy.parsestring.php
>> 
>> -nathan 
> 
> Thank you, this looks like exactly what I need.  Unfortunately I cannot get it to work on my machine.

[snip]

So I figured it out... I was using the wrong command to compile libtidy.  (I am not a *nix geek so I had no idea I was messing it up.)  To get it working, I followed the instructions I found here: http://www.php.net/manual/en/ref.tidy.php#64281

My setup is slightly different from the person who wrote the directions in that I am running OS X 10.6.2 and PHP 5.2.12.  However, the only difference between the instructions I followed and what I actually had to do is that the line to comment out for me was line 525 instead of 508.  (The actual line is: typedef unsigned long ulong;)

Thank you everyone for your help!
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux