Re: [PHP] Tidy HTML source?



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 consistent!

/frank

28 nov 2006 kl. 04.13 skrev 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 struck me that trying to make my PHP spit out page source that
looks like it was made lovingly by hand was perhaps the work of an
obsessive.

Now I know that even if it is, I'm not alone :)

Cheers!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


.



Relevant Pages

  • Re: The 2nd last ever php thread
    ... used to understand HTML ... - the web server recognises the .php file extension ... if found - the web server will examine and process the php code ... 'If the user is John then display Hi John, if the user is Fred then display Go away Fred' ...
    (uk.media.tv.misc)
  • Re: [PHP] Scripts taking too much time
    ... At seemingly random points in random scripts at random times it just seems to wait. ... Have you checked your database logs to see if anything is being run that shouldn't be? ... I'm don't know if it's my PHP code, but I'm fairly certain it's not my database calls. ... This time lapse is occurring in places where nothing is being done except outputing values from a constant, or HTML ...
    (php.general)
  • Re: OT - Best way to learn PHP?
    ... scripting languages hes as thick as pig shit. ... You can't render the page without something like HTML, ... A requested html file will be chucked out and sent by the web server ... sent by the web server after the php code has been processed. ...
    (uk.media.tv.misc)
  • Re: How best to highlight an an item...
    ... your source code and all. ... My page is .html for a start. ... server it is going to is set to process any php code, ... So is my home server. ...
    (alt.html)
  • Re: add php counter to HTML email
    ... > Is there any way of adding PHP code to count the number of times and HTML ... PHP runs on the web server, not on the client. ... add a link to your statistics script and ask people ...
    (alt.php)