|
HTML Tidy |
|
Kinetic (21:33 13/5/2003) rich (08:18 14/5/2003) Kinetic (16:55 14/5/2003) Kinetic (17:05 14/5/2003) rich (08:14 15/5/2003) alpha (09:15 15/5/2003) Kinetic (10:48 15/5/2003) monkeyson2 (11:07 15/5/2003) Kinetic (13:45 15/5/2003) rich (17:35 15/5/2003) alpha (10:30 16/5/2003)
|
|
Andrew Duffell |
Message #41998, posted by ad at 21:33, 13/5/2003 |
Posts: 3262
|
Could HTML Tidy be installed on Knox please? |
|
[ Log in to reply ] |
|
Richard Goodwin |
Message #42001, posted by rich at 08:18, 14/5/2003, in reply to message #41998 |
Dictator for life
Posts: 6828
|
Could HTML Tidy be installed on Knox please? Done. It's installed as /usr/local/bin/tidy if you need to reference it directly.
Out of interest, you don't have shell access, so how are you going to use this? If it's via a web page, doesn't W3C already offer this service? ________ Cheers, Rich.
|
|
[ Log in to reply ] |
|
Andrew Duffell |
Message #42064, posted by ad at 16:55, 14/5/2003, in reply to message #42001 |
Posts: 3262
|
Could HTML Tidy be installed on Knox please? Done. It's installed as /usr/local/bin/tidy if you need to reference it directly.
Out of interest, you don't have shell access, so how are you going to use this? If it's via a web page, doesn't W3C already offer this service? I'm wanting to intergrate it into a web page I can run it like I run PNGCrush I assume:
<?php system("tidy page.html" ?> |
|
[ Log in to reply ] |
|
Andrew Duffell |
Message #42068, posted by ad at 17:05, 14/5/2003, in reply to message #42064 |
Posts: 3262
|
Example for you lucky people
Before: http://mysober.co.uk/html.html After: http://mysober.co.uk/tidy.php?source=html.html |
|
[ Log in to reply ] |
|
Richard Goodwin |
Message #42099, posted by rich at 08:14, 15/5/2003, in reply to message #42068 |
Dictator for life
Posts: 6828
|
Groovy. And now Tim can get the admin HTML posting stuff working ________ Cheers, Rich.
|
|
[ Log in to reply ] |
|
Tim Fountain |
Message #42108, posted by alpha at 09:15, 15/5/2003, in reply to message #42099 |
Forum bod
Posts: 570
|
Groovy. And now Tim can get the admin HTML posting stuff working On the forums? If so it should sorta work already. I can't use HTML tidy on the forums until I work out a way to check whether or not it is installed.
BTW Andrew, there's an obvious security hole in that tidy.php script. |
|
[ Log in to reply ] |
|
Andrew Duffell |
Message #42113, posted by ad at 10:48, 15/5/2003, in reply to message #42108 |
Posts: 3262
|
Groovy. And now Tim can get the admin HTML posting stuff working On the forums? If so it should sorta work already. I can't use HTML tidy on the forums until I work out a way to check whether or not it is installed.
BTW Andrew, there's an obvious security hole in that tidy.php script. Yeah, I just noticed that too I'll disable the script when I get access to a computer I can FTP from |
|
[ Log in to reply ] |
|
Phil Mellor |
Message #42114, posted by monkeyson2 at 11:07, 15/5/2003, in reply to message #42113 |
Please don't let them make me be a monkey butler
Posts: 12380
|
<?php system("/usr/local/bin/tidy -i ".$source); ?>
|
|
[ Log in to reply ] |
|
Andrew Duffell |
Message #42129, posted by ad at 13:45, 15/5/2003, in reply to message #42114 |
Posts: 3262
|
<?php system("/usr/local/bin/tidy -i ".$source); ?>
Don't abuse it |
|
[ Log in to reply ] |
|
Richard Goodwin |
Message #42135, posted by rich at 17:35, 15/5/2003, in reply to message #42108 |
Dictator for life
Posts: 6828
|
Groovy. And now Tim can get the admin HTML posting stuff working On the forums? If so it should sorta work already. Really? I thought you said you couldn't do it without HTML Tidy. And I've been refraining from abusing it because I didn't know you'd fixed it!
I can't use HTML tidy on the forums until I work out a way to check whether or not it is installed. tidy -h, see if anything non-error-like is returned? Not sure about PHP, but in Perl doing a system call should return a success/failure status, and put the output into a variable so you can grep for key phrases if you want to be tarty (like check for version numbers etc.). ________ Cheers, Rich.
|
|
[ Log in to reply ] |
|
Tim Fountain |
Message #42158, posted by alpha at 10:30, 16/5/2003, in reply to message #42135 |
Forum bod
Posts: 570
|
I thought you said you couldn't do it without HTML Tidy. Ah yeah, that part isn't quite fixed yet .
tidy -h should work, I might have a bash with that at the weekend. |
|
[ Log in to reply ] |
|
|