php3-list | 2000051
Date: 05/05/00
- Next message: A Robertson: "RE: [PHP3] php3 -> php4"
- Previous message: Ekkard Gerlach: "Re: [PHP3] Hiding MySQL username/password"
- In reply to: Michael Collins: "[PHP3] separating content from scripting"
- Next in thread: Richard Lynch: "Re: [PHP3] separating content from scripting"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Michael Collins wrote:
>
> I am preparing myself to move to php from a tag based cgi tool (Lasso).
Congratulations. You'll be kicking yourself in no time (for sticking with
it, and paying for it, for so long.)
> I
> have a bit of C, Java, and Perl training so I don't think I will be
> entirely raw to the code. I hope you don't mind me asking a few general
> questions on this list.
That's what it's here for. Also, learn to scan the online manual. There's
an annotated version, the collected notes of thousands of developers as
they learned the language.
> One thing I am wondering is how well does php work in separating some of
> the scripting from the content of the web pages. Does a "typical" php
> project completed by a team attempt to separate these functions into
> separate files?
They can. There's a template library that can do this. You can also
build pages like this:
<HTML>
<? include 'phplogic.inc' ?>
<B> Content
</HTML>
So the content folks only have minimal exposure.
> A bit more explanation if you don't get what I am talking about: I work a
> lot in teams with graphic designers who do the layout, graphics, flash or
> shockwave movies, and I integrate in the dynamic scripting and database
> elements. I have worked up techniques where most of my scripting is in
> "process" or script files that include in the html content. This allows the
> designers to work on the html (or flash) elements with a limited number of
> tags to specify variables, arrays, and short conditional statements. They
> can then use a GUI editor tool such as Adobe GoLive or DreamWeaver to
> layout pages and have less likelihood of those tools modifying the
> scripting code.
This sounds like the Fasttemplate workflow, or jusdicious useage of
require/include files.... basically, this is what PHP was designed to
do in the first place. Rather than manage walls and walls of code, the
HTML designers could just do their parts around a PHP shell, or a PHP
scripter could add their scipts onto a pre-designed page.
-Bop
-- Brought to you from boop!, the dual boot Linux/Win95 Compaq Presario 1625 laptop, currently running RedHat 6.1. Your bopping may vary.-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: A Robertson: "RE: [PHP3] php3 -> php4"
- Previous message: Ekkard Gerlach: "Re: [PHP3] Hiding MySQL username/password"
- In reply to: Michael Collins: "[PHP3] separating content from scripting"
- Next in thread: Richard Lynch: "Re: [PHP3] separating content from scripting"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

