Reply to Re: scripting workflow

Your name:

Reply:


Posted by Chris on 10/06/60 11:13

I hand code everything I do in php. I separate functions and class in
referenced files that are grouped by function in the site(i.e. - all queries
are in queries.php, the db connection is done in dbconn.php, etc...). This
will allow a project to grow without having to rewrite everything. Also
debugging is easy. If you know a query is failing, open the queries.php
file.

The structure I use is to build the entire page as a variable, usually
called $page, that I print after it has been completed. So from the html
doctype tag to the closing html tag I simply append to one variable and
print.

CJ


"DuSTiN KRySaK" <mailinglists@digitalcollision.com> wrote in message
news:8217b6d00f799818de0ad8030d1e0436@digitalcollision.com...
>I just have a few questions regarding workflow when producing scripts.
>
> First off, do people prefer to have all their code in one file? Or
> multiple separate files? I know functions and classes are good to keep in
> separate files, but i am talking about say for example a news system, etc.
>
> Next off, how about when actually assembling the files? Do you produce all
> of your html output, then say build all of your functions - then say build
> the logic?
>
> Does that make sense?
>
> I had in the past use DW for building php apps, and as an exercise to
> myself I am forcing myself to hand code to learn better. But I do however
> want to increase my productivity.
>
> If anyone has any pointers on this type of stuff - it would be much
> appreciated!
>
> Thanks!
>
> d

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация