Re: [nyphp-talk] All In the Game of PHP

2007-06-13 Thread inforequest
Caution: I am not a good coder. That said Peter Sawczynec ps-at-sun-code.com |nyphp dev/internal group use| wrote: The number one muck up I have observed in coding, is programmers creating functions or tools that leave off the final "else" clause at the end of a conditional logic tree. T

Re: [nyphp-talk] problem: session variables disappear after redirection

2007-06-13 Thread Rob Marscher
On Jun 13, 2007, at 9:29 PM, Michael Southwell wrote: But (for those two people, and only for them) when we get to the thanks page, the session information is somehow lost in the course of the redirection, and so the email is sent with blank information. Are you using the default php session ha

Re: [nyphp-talk] nyc php classes (night/long format)

2007-06-13 Thread Rob Marscher
Hey David, A couple quick things I thought I'd point out: On Jun 13, 2007, at 11:09 AM, David Krings wrote: Unlike objects, I have no idea what classes can do and are there for, although I haven't really used either (I used a few objects, such as the zip object). Classes are actually the w

Re: [nyphp-talk] problem: session variables disappear after redirection

2007-06-13 Thread Chris Shiflett
Michael Southwell wrote: > Can anyone imagine or suggest what might be happening here? Based on the subject line alone, my guess is that you're sending a malformed Location header. Can you show us that specific line? Chris -- Chris Shiflett http://shiflett.org/ _

Re: [nyphp-talk] problem: session variables disappear after redirection

2007-06-13 Thread Paul M Jones
On Jun 13, 2007, at 6:29 PM, Michael Southwell wrote: I have a form which submits to a processor script. The processor writes the post variables into the session and checks for correctness. If there is a problem, it redirects to the form which is preloaded from the session, and we start over aga

Re: [nyphp-talk] problem: session variables disappear after redirection

2007-06-13 Thread David Krings
Michael Southwell wrote: > This works perfectly for everybody except two out of about 400 people. Unfortunately one of those two is an officer of the organization. > Can anyone imagine or suggest what might be happening here? The only thing that I can think of is that their browsers don't a

Re: [nyphp-talk] problem: session variables disappear after redirection

2007-06-13 Thread Rolan Yang
Michael Southwell wrote: Here is a baffling problem that piggybacks in a sense on recent discussions about form handling. The situation is this: I have a form which submits to a processor script. The processor writes the post variables into the session and checks for correctness. If there is a

[nyphp-talk] problem: session variables disappear after redirection

2007-06-13 Thread Michael Southwell
Here is a baffling problem that piggybacks in a sense on recent discussions about form handling. The situation is this: I have a form which submits to a processor script. The processor writes the post variables into the session and checks for correctness. If there is a problem, it redirects to t

Re: [nyphp-talk] All In the Game of PHP

2007-06-13 Thread Paul Houle
Peter Sawczynec wrote: The number one muck up I have observed in coding, is programmers creating functions or tools that leave off the final "else" clause at the end of a conditional logic tree. That is, programming logic error examples, such as: Long if-then-else ladders are an antipatt

Re: [nyphp-talk] All In the Game of PHP

2007-06-13 Thread David Krings
Peter Sawczynec wrote: The number one muck up I have observed in coding, is programmers creating functions or tools that leave off the final "else" clause at the end of a conditional logic tree. True! Bit me in the behind before where I was staring at a blank page in the browser not knowing

Re: [nyphp-talk] nyc php classes (night/long format)

2007-06-13 Thread David Krings
Peter Sawczynec wrote: I have found in my own experience (in VB, VBScript, ASP, PHP, XML, SQL, JavaScript, etc.), that every time you learn something and the author hints that technically there is actually a more obscure, more difficult to comprehend and harder to execute, more exacting technique

[nyphp-talk] Re: nyc php classes (night/long format)

2007-06-13 Thread Jeremy Campbell
thanks for all the insight guys. nyu was the only college i found offering a class at the moment and it's halfway over. i think i'm gonna go for it with the 2-day designers class at nyphp next week. after i'll have the o'reiley book and i've got a few things to sink my teeth into to put it

[nyphp-talk] All In the Game of PHP

2007-06-13 Thread Peter Sawczynec
The number one muck up I have observed in coding, is programmers creating functions or tools that leave off the final "else" clause at the end of a conditional logic tree. That is, programming logic error examples, such as: You expect users to weigh platinum by the pound; someone will try to

RE: [nyphp-talk] nyc php classes (night/long format)

2007-06-13 Thread Peter Sawczynec
I have a 2-part series of very nice books published in 2003 by Sitepoint. Labeled as "PHP 5 Ready" and entitled: "The PHP Anthology - Object Oriented PHP Solutions, Vols I and II" File handling, images, email, error handling and more; every project executed step by step with classes only. I am n

Re: [nyphp-talk] nyc php classes (night/long format)

2007-06-13 Thread David Krings
Peter Sawczynec wrote: > Get a book that shows several rudimetary projects done with classes and step by step coding. Being somewhat in the same boat as Jeremy, I'd be interested in any recommendations for books tthat show usage of classes. Unlike objects, I have no idea what classes can do

RE: [nyphp-talk] nyc php classes (night/long format)

2007-06-13 Thread Peter Sawczynec
I am recommending, as best as you can lookup and use only coding examples that program with classes. Don't avoid it, go straight to it. Learn everything in context of classes, your potential hourly rate 9 months from now will ikely be 33% higher than what you might get without class knowledge. And