NYCPHP Meetup

[nycphp-talk] <script language="php">

Brian brian at preston-campbell.com
Thu Feb 6 19:46:50 EST 2003


I'm not sure if sequestering code to the head in all cases is realistic.  I 
comment my code, adhere to coding standards, use functions and classes where 
applicable.  I can open a file two months from now and make sense of what is 
going on by simply making a little effort now.


On Thursday 06 February 2003 07:16 pm, Jon Baer wrote:
> > Wow, does this work?
> > I've always used PHP to format output into Javascript, and included it
> > in the page that way:
> >
> >     <script type='text/javascript'
>
> src='foo.php?format=js&arg=bar'></script>
>
>
> See ... for my part (and opinion) Id find this kinda sloppy although it
> works fine ... the main issue I have is that I have taken on some small
> projects and its loaded with slop and <?php all over the place ...
> meanwhile a (albeit complicated SQL statement) would have really helped, Id
> also find a template approach extremely better.  So far most of my stuff
> is:
>
> <script language="php">
> // examine all GET, POST, SQL, fill arrays, etc //
> </script>
>
> <html>
> // rest of the page
>
> It should be a written rule/law somewhere to do all your PHP/JSP work @ the
> top of the page :-)
>
> What would be extremely nice is to be able to object off segments of the
> page using the same technique.
>
> - Jon
>
>
>
> --- Unsubscribe at http://nyphp.org/list/ ---





More information about the talk mailing list