[PHP] Tidy on a shared host

2009-08-20 Thread Al
I've written an application that depends heavily on Tidy for cleaning up user inputed text. Unfortunately, some shared hosts won't install the extension for my clients. Is there a way I can install a stand alone version using FTP with access only in a directory where my program resides. The h

[PHP] Tidy question about the config args

2009-07-24 Thread Al
I have a question about using the $config arguments with tidy_parse_string() and tidy_repair_string() etc. The functions seem to totally ignore new-blocklevel-tags new-empty-tags new-inline-tags E.g., I have in my config array some custom tags [new-inline-tags] => blue,bold,green,italic,red,

Re: [PHP] tidy

2008-08-11 Thread Eric Butera
On Fri, Aug 8, 2008 at 3:46 PM, Selwyn Polit <[EMAIL PROTECTED]> wrote: > How do I install php-tidy extension on a hosted linux? I don't have access > to yum or apt-get. When I try pecl install tidy this fails > > .. > checking for TIDY support... yes, shared >

[PHP] tidy

2008-08-08 Thread Selwyn Polit
How do I install php-tidy extension on a hosted linux? I don't have access to yum or apt-get. When I try pecl install tidy this fails .. checking for TIDY support... yes, shared configure: error: Cannot find libtidy ERROR: `/var/tmp/pear/download/tidy-1.2/configure --with-tidy' fa

Re: [PHP] tidy configuration disabled still html is generated

2008-03-25 Thread Wolf
Nilesh Govindrajan <[EMAIL PROTECTED]> wrote: > Wolf wrote: > > Nilesh Govindrajan <[EMAIL PROTECTED]> wrote: > > > >> I have tried everything. > >> > >> setting tidy.clean_output = Off or 0 in php.ini OR using ini_set > >> > >> but still tidy makes a plaintext file html. > >> > >>

Re: [PHP] tidy configuration disabled still html is generated

2008-03-25 Thread Nilesh Govindrajan
Wolf wrote: Nilesh Govindrajan <[EMAIL PROTECTED]> wrote: I have tried everything. setting tidy.clean_output = Off or 0 in php.ini OR using ini_set but still tidy makes a plaintext file html. help. Contact the creators of Tidy I told na it was a silly problem. didn't you get

Re: [PHP] tidy configuration disabled still html is generated

2008-03-25 Thread Wolf
Nilesh Govindrajan <[EMAIL PROTECTED]> wrote: > I have tried everything. > > setting tidy.clean_output = Off or 0 in php.ini OR using ini_set > > but still tidy makes a plaintext file html. > > help. Contact the creators of Tidy -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] tidy configuration disabled still html is generated

2008-03-25 Thread Nilesh Govindrajan
Nilesh Govindrajan wrote: I have tried everything. setting tidy.clean_output = Off or 0 in php.ini OR using ini_set but still tidy makes a plaintext file html. help. I am sorry. :) It was a silly problem. FIXED. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] tidy configuration disabled still html is generated

2008-03-25 Thread Nilesh Govindrajan
I have tried everything. setting tidy.clean_output = Off or 0 in php.ini OR using ini_set but still tidy makes a plaintext file html. help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] tidy extension is loaded but not working

2008-01-04 Thread Pavel Pragin
Hello, I am trying to get tidy for php working on my systems. 1. Got latest libtidy (libraries) from cvs and compiled/installed them (no issues) 2. Got latest php tidy tidy-1.2 from PECL and compiled and installed (no issues) 3. Added the tidy extension in to /etc/php.d

Re: [PHP] tidy memory corruption problem

2007-12-11 Thread Richard Lynch
has ran into a > major > snag > > I get this: > > *** glibc detected *** /usr/sbin/httpd: malloc(): memory corruption: > 0x81946e30 > > whenever the tidy_parse_string() is called. > > I'm running the latest apache/php/tidy that FC6 has to offer... > php-t

[PHP] tidy memory corruption problem

2007-12-11 Thread Eric Wood
My first attempt at leaning the tidy suite of functions has ran into a major snag I get this: *** glibc detected *** /usr/sbin/httpd: malloc(): memory corruption: 0x81946e30 whenever the tidy_parse_string() is called. I'm running the latest apache/php/tidy that FC6 has to offer... php

Re: [PHP] Re: php-tidy

2007-09-01 Thread OOzy Pal
On 9/1/07, Jens Kleikamp <[EMAIL PROTECTED]> wrote: > OOzy Pal schrieb: > > On 9/1/07, Jens Kleikamp <[EMAIL PROTECTED]> wrote: > > > >> OOzy Pal schrieb: > >> > >>> I have php4 running on Ubuntu Feisty. I can see php5-tidy in the > >

[PHP] Re: php-tidy

2007-09-01 Thread Jens Kleikamp
OOzy Pal schrieb: > I have php4 running on Ubuntu Feisty. I can see php5-tidy in the > Synaptic (Package Manager) but can not see php4-tidy or php-tidy. How > can I install php4-tidy for php4? > On linux: - download the source - untar and go to directory - /path/to/phpize - ./configu

[PHP] php-tidy

2007-09-01 Thread OOzy Pal
I have php4 running on Ubuntu Feisty. I can see php5-tidy in the Synaptic (Package Manager) but can not see php4-tidy or php-tidy. How can I install php4-tidy for php4? -- OOzy Ubuntu-Feisty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Tidy HTML source?

2006-12-01 Thread Robert Cummings
On Fri, 2006-12-01 at 17:51 -0800, Paul Novitski wrote: > > At 12/1/2006 02:22 PM, Richard Lynch wrote: > > > > Try 10 X as many for most templating solutions. > > Ten times as many templates as there are pages on the site? Wow, > that's a lot. Fortunately I don't use any of those templating >

Re: [PHP] Tidy HTML source?

2006-12-01 Thread Paul Novitski
At 12/1/2006 02:22 PM, Richard Lynch wrote: On Thu, November 30, 2006 6:47 pm, Paul Novitski wrote: > A templating system requires the processor to merge content with > template. An inline markup assembly system requires the processor to > build the markup from function calls. Where is the tech

Re: [PHP] Tidy HTML source?

2006-12-01 Thread Richard Lynch
On Thu, November 30, 2006 6:47 pm, Paul Novitski wrote: > A templating system requires the processor to merge content with > template. An inline markup assembly system requires the processor to > build the markup from function calls. Where is the technique that > doesn't take machine cycles? You

Re: [PHP] Tidy HTML source?

2006-12-01 Thread Sancar Saran
Dear Paul, Many thanks for replaying my message, It was very helpful and now I really understood why I so negative for templating systems... I haven't got programer background or education. I'm self learner. Many of php programmers have other programming experiences, and if I understand correc

Re: [PHP] Tidy HTML source?

2006-12-01 Thread Satyam
ECTED]> To: Sent: Friday, December 01, 2006 1:47 AM Subject: Re: [PHP] Tidy HTML source? On Thursday 30 November 2006 18:51, Paul Novitski wrote: > With respect to separating code and markup, you said "sometimes there > are reasons not to do so, for example, web services.&qu

Re: [PHP] Tidy HTML source?

2006-11-30 Thread Paul Novitski
On Thursday 30 November 2006 18:51, Paul Novitski wrote: > With respect to separating code and markup, you said "sometimes there > are reasons not to do so, for example, web services." What are some > of those reasons? At 11/30/2006 10:57 AM, Sancar Saran wrote: What about performance ? W

Re: [PHP] Tidy HTML source?

2006-11-30 Thread Sancar Saran
On Thursday 30 November 2006 18:51, Paul Novitski wrote: > At 11/30/2006 01:52 AM, Satyam wrote: > And, stepping back, you're perpetuating the embedding of markup > with logic so that it will still take a PHP programmer to modify > the markup of one of your pages. Do you not see the ad

Re: [PHP] Tidy HTML source?

2006-11-30 Thread Paul Novitski
At 11/30/2006 01:52 AM, Satyam wrote: And, stepping back, you're perpetuating the embedding of markup with logic so that it will still take a PHP programmer to modify the markup of one of your pages. Do you not see the advantage in separating the two layers? Yes, I do, and I would recommend

Re: [PHP] Tidy HTML source?

2006-11-30 Thread clive
Mark Kelly wrote: Am I crazy to make an extra effort in my code to make the generated HTML pretty? By this I mean linebreaks, indentation etc. - stuff that is aimed at readability rather than correctness. This is obviously above and beyond simply making sure it validates. It's not a huge burden

Re: [PHP] Tidy HTML source?

2006-11-30 Thread Satyam
- Original Message - From: "Paul Novitski" <[EMAIL PROTECTED]> At 11/29/2006 05:13 AM, Satyam wrote: - Original Message - From: "Paul Novitski" <[EMAIL PROTECTED]> What I find to be a much greater problem is the human readability of logic code when HTML is mixed throughout.

Re: [PHP] Tidy HTML source?

2006-11-29 Thread Paul Novitski
At 11/29/2006 05:13 AM, Satyam wrote: - Original Message - From: "Paul Novitski" <[EMAIL PROTECTED]> What I find to be a much greater problem is the human readability of logic code when HTML is mixed throughout. Your innovation is helpful here, as you're nearly making HTML tags into

Re: [PHP] Tidy HTML source?

2006-11-29 Thread Sancar Saran
issing the point so, please, spare me that > one. At one point or another plain HTML has to be generated. > > Satyam > > - Original Message ----- > From: "Mark Kelly" <[EMAIL PROTECTED]> > To: > Sent: Tuesday, November 28, 2006 4:13 AM > Subject: R

Re: [PHP] Tidy HTML source?

2006-11-29 Thread Fredrik Thuresson
, after all, most of the checking could be done at >>> the PHP source level. Further development (which I have not started >>> yet) would lead to automatic verification against DTDs or XSchemas. >>> >>> And, of course, I would appreciate any comment on the pro

Re: [PHP] Tidy HTML source?

2006-11-29 Thread Satyam
- Original Message - From: "Paul Novitski" <[EMAIL PROTECTED]> At 11/28/2006 05:05 AM, Satyam wrote: May I invite you to check http://satyam.com.ar/pht/? This is a project I started some time ago to help me produced HTML in a more clean and efficient way. Usually, producing good H

Re: [PHP] Tidy HTML source?

2006-11-29 Thread Paul Novitski
At 11/28/2006 05:05 AM, Satyam wrote: May I invite you to check http://satyam.com.ar/pht/? This is a project I started some time ago to help me produced HTML in a more clean and efficient way. Usually, producing good HTML involves running a sample output through some HTML validator or lookin

Re: [PHP] Tidy HTML source?

2006-11-29 Thread Satyam
- Original Message - From: "Fredrik Thuresson" <[EMAIL PROTECTED]> To: Sent: Wednesday, November 29, 2006 5:45 AM Subject: Re: [PHP] Tidy HTML source? "At one point or another plain HTML has to be generated. " Care to give me an example? I never genera

Re: [PHP] Tidy HTML source?

2006-11-28 Thread Fredrik Thuresson
be generated. Satyam - Original Message - From: "Mark Kelly" <[EMAIL PROTECTED]> To: Sent: Tuesday, November 28, 2006 4:13 AM Subject: Re: [PHP] Tidy HTML source? On Monday 27 November 2006 17:10, Mark Kelly wrote: Am I crazy to make an extra effort in my code to make

Re: [PHP] Tidy HTML source?

2006-11-28 Thread Satyam
riginal Message - From: "Mark Kelly" <[EMAIL PROTECTED]> To: Sent: Tuesday, November 28, 2006 4:13 AM Subject: Re: [PHP] Tidy HTML source? On Monday 27 November 2006 17:10, Mark Kelly wrote: Am I crazy to make an extra effort in my code to make the generated HTML pre

Re: [PHP] Tidy HTML source?

2006-11-28 Thread Frank Arensmeier
As Richard already pointed out, "ugly" code can be a real problem occasionally. Besides that, I assume that you have some kind of coding standrad for your PHP code already, right? Basically, why do someone would make a difference between pretty styled PHP code and pretty styled html/CSS? Be

Re: [PHP] Tidy HTML source?

2006-11-27 Thread Mark Kelly
On Monday 27 November 2006 17:10, Mark Kelly wrote: > Am I crazy to make an extra effort in my code to make the generated HTML > pretty? Thanks everyone for your thoughts on this - I'm quite relieved that I'm not the only one who sits and tweaks so that the HTML is nice and readable. It just s

Re: [PHP] Tidy HTML source?

2006-11-27 Thread tedd
At 5:10 PM + 11/27/06, Mark Kelly wrote: Hi. In the stuff I do almost all the HTML is generated with PHP as basically none of it is static (lots of tabular data, state-sensitive links, stuff like that). Am I crazy to make an extra effort in my code to make the generated HTML pretty? By this

Re: [PHP] Tidy HTML source?

2006-11-27 Thread Richard Lynch
On Mon, November 27, 2006 11:10 am, Mark Kelly wrote: > In the stuff I do almost all the HTML is generated with PHP as > basically > none of it is static (lots of tabular data, state-sensitive links, > stuff > like that). > > Am I crazy to make an extra effort in my code to make the generated > HTM

[PHP] Tidy HTML source?

2006-11-27 Thread Mark Kelly
Hi. In the stuff I do almost all the HTML is generated with PHP as basically none of it is static (lots of tabular data, state-sensitive links, stuff like that). Am I crazy to make an extra effort in my code to make the generated HTML pretty? By this I mean linebreaks, indentation etc. - stuff

[PHP] tidy question

2005-06-10 Thread Thomas
Hi there, I was wondering if it is possible to let tidy repair and format only parts of your html without putting the and stuff in. I.e. only the content of the page between the tags. The reason for that is twofold: 1. I want to cache that repaired string so I don't have to call that repai

[PHP] TIDY Functions: Troubles with Get_Attr function

2005-05-12 Thread Ricardo Junior
Hi all, I'm using the PHP 5.0.4 version with Apache 2 on Windows XP SP2 and I've turned on the TIDY extension (php_tidy.dll) to parse HTML file using PHP. But using the function tidyNode->GET_ATTR() I received the following error message: "Fatal error: Call to undefined method tidyNode:

FW: [PHP] Tidy installation problem in php 4.3.8

2004-09-09 Thread Lizet Peña de Sola
Another reply... lizet -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Thursday, September 09, 2004 1:12 PM To: Lizet Peña de Sola Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Tidy installation problem in php 4.3.8 Lizet Peña de Sola wrote: > Hello Marek, thanks

RE: [PHP] Tidy installation problem in php 4.3.8

2004-09-09 Thread Lizet Peña de Sola
PROTECTED] > Sent: Thursday, September 09, 2004 12:42 PM > To: Lizet Peña de Sola > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Tidy installation problem in php 4.3.8 > > > > Do you mean you installed tidy php module on your hosting company > server? Then you need

Re: [PHP] Tidy installation problem in php 4.3.8

2004-09-09 Thread Marek Kilimajer
Also make sure that the extension is in extension_dir (check php.ini). Then restart the webserver. -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Thursday, September 09, 2004 12:42 PM To: Lizet Peña de Sola Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Tidy in

RE: [PHP] Tidy installation problem in php 4.3.8

2004-09-09 Thread Lizet Peña de Sola
x27;ll let you know, thanks Lizet -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Thursday, September 09, 2004 12:42 PM To: Lizet Peña de Sola Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Tidy installation problem in php 4.3.8 Do you mean you installed tidy php modu

Re: [PHP] Tidy installation problem in php 4.3.8

2004-09-09 Thread Marek Kilimajer
Lizet Peña de Sola wrote: Hi all, I need to use tidy for cleaning up html in my project, our hosting company has php 4.3.8, so we need to install tidy and make the installation again. After several times, the configure and make commands replied no error, however, the phpinfo() doesn't show the pack

[PHP] Tidy installation problem in php 4.3.8

2004-09-08 Thread Lizet Peña de Sola
Hi all, I need to use tidy for cleaning up html in my project, our hosting company has php 4.3.8, so we need to install tidy and make the installation again. After several times, the configure and make commands replied no error, however, the phpinfo() doesn't show the package as installed and when