[PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Jeff Schmidt
plain this error? It's completely breaking my script. I suspect, that the *real* error is somewhere earlier in the file, but I've read through it 20 times and just can't find anything out of place (can't find any obvious syntax errors, for example). Thanks for any help you can

[PHP] (SOLVED) Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-15 Thread Jeff Schmidt
nk it indented the cursor 4 spaces, and I hit 'home' and typed the delimiting token, and forgot about the whitespace at the end (normally, whitespace is ignored/collapsed by the parser). Jeff Schmidt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-15 Thread Jeff Schmidt
truction set up so strangely, is that I was testing out to see if certain things were causing problems. Originally I had it setup more like how you suggested. I only changed it to test some theories out about what might be causing the parser error. Jeff Schmidt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-15 Thread Jeff Schmidt
after the token. This caused the parser to basically treat the whole rest of the script file as a heredoc string, which is where the problems came from. Jeff Schmidt Jason Barnett wrote: Jeff Schmidt wrote: Hello, I've made the source available at: http://www.weldingconsultants.com/wcapp/admin

Re: [PHP] opt-in mail list best practice

2005-03-16 Thread Jeff Schmidt
but you'd probably use a run-once script that did that in a batch). Anyhow, that is just my thoughts on the matter. Packages like Mailman are very good at managing mailing lists, so I would just use something like that to take care of that problem. Jeff Schmidt -- PHP General Maili

Re: [PHP] Re: multiple OR's

2005-03-17 Thread Jeff Schmidt
ou want. As an earlier poster suggested, the best way to do this would be to use the in_array construct, which tests to see if the first value is in the array specified as the second value. if (in_array($name, array("jim", "andrea", "bob"))) { //code here } Jeff Schm

Re: [PHP] can I do a for each here??

2005-03-17 Thread Jeff Schmidt
I would be tempted to do the following. First, I would setup the html form so that the text boxes are named something like 'age[Andrea]', 'age[Bob]', etc. When the form submitted, this will give you an array, accessible as $_POST['age'] (or $_GET['age'] depending on whether you used POST or GET

Re: [PHP] can I do a for each here??

2005-03-17 Thread Jeff Schmidt
e values of $name and $age to make sure they are legal, and in the correct format, and then assign them individually, as before. Jeff Jeff Schmidt wrote: I would be tempted to do the following. First, I would setup the html form so that the text boxes are named something like 'age[Andre

Fw: [PHP] Problem with arrays

2005-03-25 Thread Jeff Schmidt
I sent this to the original user, but forgot to CC it to the list. I'm just sending this now, for completeness. - Original Message - From: "Jeff Schmidt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 25, 2005 5:10 PM Subject: Re: [PHP] Proble

[PHP] using returned references directly?

2004-05-17 Thread Jeff Schmidt
nt? I mean, I could: $b = $A->getObjectB(); $b->methodFromObjectB(); But since I only want to use object B once, it seems like a waste to store it and then use it. I do this kind of thing in other OO languages quite frequently. Jeff Schmidt signature.asc Description: OpenPGP digital signature

[PHP] Sessioin Management URL rewriter problem

2004-06-15 Thread Jeff Schmidt
ral ampersand? I'm not sure that this is exactly a bug, but it is an annoyance nonetheless, as it adds a lot of white noise when I try to validate my pages. Jeff Schmidt signature.asc Description: OpenPGP digital signature

Re: [PHP] Sessioin Management URL rewriter problem

2004-06-15 Thread Jeff Schmidt
Thanks, that did the trick. Now my pages actually validate. :-) Jeff Robin Vickery wrote: On Tue, 15 Jun 2004 09:50:55 -0400, Jeff Schmidt <[EMAIL PROTECTED]> I have some tags that look like: And session management is rewriting these as: Which at first glance appears fine, right? But the p

[PHP] session.gc_maxlifetime

2004-03-25 Thread Jeff Schmidt
unt of time specified by this setting, regardless of whether they have recently accessed the site? I believe, if I understand it, it's the first scenario, where the session get's garbage collected if the user doesn't visit your site for sission.gc_maxlifetime seconds, correc

[PHP] Performance of server-side DOM?

2005-10-10 Thread Jeff Schmidt
Hello, I've been toying around, lately, with using PHP's DOM API (specifically, domxml because I'm still using PHP4) for doing some of my server side dynamic pages, instead of the 'classic' method of outputting a serial stream of html dynamically generated with, e.g. php print() statements. T