|
Posted by Ed Curtis on 02/10/05 23:14
On Thu, 10 Feb 2005, Richard Lynch wrote:
> Ed Curtis wrote:
> > On Thu, 10 Feb 2005, Richard Lynch wrote:
> >>
> >> In honor of our recent Super Bowl, here is a slow-motion instant replay:
> >>
> >> Bob: "Well, it's a great day so far for PHP today, isn't it Jim?"
> >> Jim: "You've got that right, Bob! Now let's check out this play."
> >> Bob: "Watch as the user surfs right to that web page!"
> >> Jim: "Yeah, smooth!"
> >> Bob: "Then, Apache detects the .php in the URL and hands off the action
> >> to
> >> PHP!"
> >> Jim: "PHP has been really strong today, hasn't it?"
> >> Bob: "Sure has, Jim!"
> >> Jim: "Then, PHP builds up some HTML and JavaScript and sends it out!"
> >> Bob: "Yeah, and then PHP says 'Job Done.'"
> >> Jim: "You've got that right, Bob! PHP is outta the game for now,
> >> resting."
> >> Bob: "Now watch carefully as the user interacts with the browser."
> >> Jim: "Pay particular attention as they change items in the filelist
> >> box."
> >> Bob: "Oooooh! What a fumble!!!"
> >> Jim: "Yeah, it's definitely much too late to be handing off to PHP!"
> >> Bob: "Sure is, Jim. PHP has been out of the game now for awhile!"
> >>
> >> Copyright Richard Lynch and the NFL.
> >> Unauthorized re-broadcast is a violation of Federal Law.
> >
> > Your comments are quite funny but wouldn't it have been alot easier to
> > say that you can't call a PHP function within a generated HTML element?
> > You can however use the onChange event to call another PHP script that
> > will perform the function. Not nearly as many keystrokes :)
>
> The other 237 times I've answered this question, the reader doesn't
> understand *WHY* they can't do that unless it's broken down into a
> slow-motion instant replay of server-side versus client-side.
>
> And if they don't understand *THAT*, they are going to have troubles down
> the road with Cookies, HTTP Authentication, scraping from SSL sites,
> sessions, and probably a couple other PHP topics.
>
> I'd rather get them thinking about this now than answer a dozen more
> questions all stemming from a fundamental lack of understanding of the
> interaction of browser, server, and PHP. YMMV
>
> I know *I* didn't get this until somebody was kind enough to build a
> diagram of what happens in an HTTP exchange. It's in the archives (about
> 6 years back, mind you...)
>
> So I typed Jim, Bob and "" a lot, and a couple extra lines for fun.
> [shrug] I type fast anyway. :-)
>
Sorry I started this. I didn't mean for it to become another "kid caught
using PHP" thread.
Ed
Navigation:
[Reply to this message]
|