FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » php+html mixup in displaying multidimensional array in html tables
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: php+html mixup in displaying multidimensional array in html tables [message #176872 is a reply to message #176871] Mon, 30 January 2012 15:03 Go to previous messageGo to previous message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma:
Senior Member
Scott Johnson wrote:

> […] trying to wrap my head around what you mean by "validation before the
> php source code is deployed on the production server". The only thing I
> can guess is that you are meaning using you editor to validate your code
> structure?

That is correct. For example, Eclipse PHP Development Tools (PDT) [1] allow
you to perform validation both on the PHP code *and* the content that is
being generated with PHP if the latter is generated outside of PHP sections.
It is also properly highlighted then, and the structure is displayed in the
Outline View (where you can switch between the PHP parse tree and the
markup/whatever parse tree).

This is very helpful, especially if you need to generate content with a
complex structure (e. g. in templates). It appears to work with any
generated content, as long as the filename suffix is .php or you have added
the Content-Type to the list of PHP types and opened the file with the PHP
Editor. (This also works with temporary files downloaded from the
production server for a quick fix to be backported later.)

Apparently that client-side validation is not as common a technique among
PHP developers as I thought. However, this would account for the amount of
markup ranging from being slightly invalid to completely borken, working
only by chance because of browser's error correction, that is generated by
many PHP-driven Web applications.


PointedEars
___________
[1] <http://www.eclipse.org/projects/project.php?id=tools.pdt>
--
Danny Goodman's books are out of date and teach practices that are
positively harmful for cross-browser scripting.
-- Richard Cornford, cljs, <cife6q$253$1$8300dec7(at)news(dot)demon(dot)co(dot)uk> (2004)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Fast/Easy way to extract a column from multi-dimensional array?
Next Topic: Freelance PHP Developer
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 03:54:16 GMT 2024

Total time taken to generate the page: 0.04650 seconds