Re: [nyphp-talk] Chat thru Ajax

2007-02-26 Thread Chris Shiflett
LK wrote: > Two people on separate PCs are sending instant messages to each > other through Ajax on a common server. The sender posts a message > and it gets stored in the database. How does the receiver get > that message on the other machine? Use persistent connections and chunked responses. It'

[nyphp-talk] Chat thru Ajax

2007-02-26 Thread LK
Two people on separate PCs are sending instant messages to each other through Ajax on a common server. The sender posts a message and it gets stored in the database. How does the receiver get that message on the other machine? I can envision a polling mechanism whereby the receiver's client peri

[nyphp-talk] Wanted to know opinions about Open Portal Management systems in PHP and MySQL

2007-02-26 Thread Jiju Thomas Mathew
Hi all I would like to see the views of those who have handled the available open portal management systems. I am currently assessing a general script to manage a portal related to our state, with a blog, forum, polls, news, articles and journals. Should be easy to change the design, like should

Re: [nyphp-talk] Thoughts on using JavaScript with no progressive fall-back

2007-02-26 Thread Chris Shiflett
Chris Snyder wrote: > I'm a big fan of the "unobtrusive" approach, where you build > interfaces in Plain Old HTML + CSS and then use wicked DOM > mojo to convert them into rich applications on the client. If > Javascript isn't available, everything still works but with a > lot more clicking. This

Re: [nyphp-talk] Thoughts on using JavaScript with no progressive fall-back

2007-02-26 Thread inforequest
Cliff Hirsch cliff-at-pinestream.com |nyphp dev/internal group use| wrote: On 2/26/07 6:28 PM, "csnyder" <[EMAIL PROTECTED]> wrote: On 2/26/07, Cliff Hirsch <[EMAIL PROTECTED]> wrote: I'm seeing more and more applications that simply do not work if JavaScript is turned off. In fact, I

Re: [nyphp-talk] Thoughts on using JavaScript with no progressive fall-back

2007-02-26 Thread Cliff Hirsch
On 2/26/07 6:28 PM, "csnyder" <[EMAIL PROTECTED]> wrote: > On 2/26/07, Cliff Hirsch <[EMAIL PROTECTED]> wrote: >> >> I'm seeing more and more applications that simply do not work if JavaScript >> is turned off. In fact, I'm looking at purchasing a slick shopping cart that >> seems great, but I t

Re: [nyphp-talk] Thoughts on using JavaScript with no progressive fall-back

2007-02-26 Thread csnyder
On 2/26/07, Cliff Hirsch <[EMAIL PROTECTED]> wrote: I'm seeing more and more applications that simply do not work if JavaScript is turned off. In fact, I'm looking at purchasing a slick shopping cart that seems great, but I think the lack of progressive fallback is a show stopper. I'm a big f

Re: [nyphp-talk] Thoughts on using JavaScript with no progressive fall-back

2007-02-26 Thread inforequest
Cliff Hirsch cliff-at-pinestream.com |nyphp dev/internal group use| wrote: I’m seeing more and more applications that simply do not work if JavaScript is turned off. In fact, I’m looking at purchasing a slick shopping cart that seems great, but I think the lack of progressive fallback is a sho

Re: [nyphp-talk] punctuation in From: header

2007-02-26 Thread Robyn Overstreet
Thank you. You're right. Quotes are required. And they do show up in some mail programs (like gmail when you view the message page as opposed to the list of messages) but generally they don't show up. Robyn On 2/26/07, Kenneth Dombrowski <[EMAIL PROTECTED]> wrote: Hi Robyn, On 07-02-26 15:45

Re: [nyphp-talk] punctuation in From: header

2007-02-26 Thread Kenneth Dombrowski
Hi Robyn, On 07-02-26 15:45 -0500, Robyn Overstreet wrote: > > Using double quotes in PHP doesn't seem to make a difference, but > quoting in the string itself *does* work for sending punctuation. > However, the quotation marks show up in the From name field, which I'd > like to avoid if possibl

[nyphp-talk] punctuation in From: header

2007-02-26 Thread Robyn Overstreet
There was a thread about this a while back, and I'm trying to find out some more information. Sending email (with PEAR) fails when there is punctuation in the header. For example, in the application I'm working on, the name in the From field may need to be "A. Beeccee Assoc., Inc." yet strings wit

RE: [nyphp-talk] Thoughts on using JavaScript with noprogressivefall-back

2007-02-26 Thread Peter Sawczynec
Oh, to recall vintage days with a rueful smile, when maximum lean and mean internet surfing demanded using HTTP HEAD commands from the command prompt. Peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rolan Yang Sent: Monday, February 26, 2007 1:37 P

Re: [nyphp-talk] Thoughts on using JavaScript with no progressivefall-back

2007-02-26 Thread Rolan Yang
Also, I would recommend a phone number with plenty of digits 1, 2, and 3. For THOSE types of people, the "8-0-0" is difficult to call because the rotary dial takes a long time to return all the way back from the zero's. ~Rolan Kenneth Downs wrote: Peter Sawczynec wrote: An easy progressive

Re: [nyphp-talk] Thoughts on using JavaScript with no progressive fall-back

2007-02-26 Thread tedd
At 9:26 AM -0500 2/26/07, Cliff Hirsch wrote: I'm seeing more and more applications that simply do not work if JavaScript is turned off. In fact, I'm looking at purchasing a slick shopping cart that seems great, but I think the lack of progressive fallback is a show stopper. Whatever happened

RE: [nyphp-talk] Thoughts on using JavaScript with noprogressivefall-back

2007-02-26 Thread Peter Sawczynec
And further to this type of topic. Remember, years ago when Wired Magazine re-built their website to completely degrade gracefully for any browser using infinitely complex CSS and valid XHTML. They got nuthin' for that. And, I mean, nuthin'. On the other hand: google maps, yahoo flickr, nickelo

Re: [nyphp-talk] Thoughts on using JavaScript with no progressivefall-back

2007-02-26 Thread Kenneth Downs
Peter Sawczynec wrote: An easy progressive fallback for those users with JavaScript turned off would be a nice web page with an 800-number to use and a printable form to order by regular mail (yikes!). LOL! ___ New York PHP Community Tal

RE: [nyphp-talk] Thoughts on using JavaScript with no progressivefall-back

2007-02-26 Thread Peter Sawczynec
Me, I tend to strongly push customers towards the latest common standards that the general population at large is likely using and try to avoid time-consuming infinitely backwards compatible constructions -- as I've done that type of development and because one ends up developing to usage statistic

Re: [nyphp-talk] Thoughts on using JavaScript with no progressive fall-back

2007-02-26 Thread Jiju Thomas Mathew
Hi If we are writing howtos and documentations, we can avoid javascript, but when doing coding for an earning, we need buyers, where the real money is.. Just tell me now a days how many of you will create a webpage which will look like a standard howto documentation? With just Hx, b, p, dl, ul

Re: [nyphp-talk] Thoughts on using JavaScript with no progressive fall-back

2007-02-26 Thread michael
On Mon, 26 Feb 2007 10:08:19 -0500 "Mark Withington" <[EMAIL PROTECTED]> wrote: > I agree. With absolutely no data to back this up, I bet any "serious" > web user has JavaScript on and probably [relatively] up-to-date on > their browser version. On the contrary.. "serious" web users have it tur

RE: [nyphp-talk] Thoughts on using JavaScript with no progressive fall-back

2007-02-26 Thread Urb LeJeune
I usually use http://www.w3schools.com/browsers/browsers_stats.asp as a rough guide. It shows 94% JavaScript on, 6% off for January 2007. Be a little careful generalizing this number as applied to shopping cards. In many cases, JaveScript is off for people coming from behind corpora

Re: [nyphp-talk] detecting Ajax calls

2007-02-26 Thread Kenneth Downs
David Mintz wrote: I am wondering what you guys are doing to detect whether your PHP script is being called via AJAX or --- "regular?" (Do we have a retronym for that in this brave new Web 2.0 world?). FWIW, we're using a variant of the isAjax, passing different values to tell the framework to

Re: [nyphp-talk] detecting Ajax calls

2007-02-26 Thread Rob Marscher
I am wondering what you guys are doing to detect whether your PHP script is being called via AJAX or --- "regular." I know Prototype sends a custom headers e.g. [X-Prototype-Version] => 1.5.0 [X-Requested-With] => XMLHttpRequest I've been checking for $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XML

[nyphp-talk] Re: detecting Ajax calls

2007-02-26 Thread David Mintz
Damn it. Sorry for repeating myself -- the fingers slipped. On 2/26/07, David Mintz <[EMAIL PROTECTED]> wrote: I am wondering what you guys are doing to detect whether your PHP script is being called via AJAX or --- "regular." -- David Mintz http://davidmintz.org/ _

[nyphp-talk] detecting Ajax calls

2007-02-26 Thread David Mintz
I am wondering what you guys are doing to detect whether your PHP script is being called via AJAX or --- "regular?" (Do we have a retronym for that in this brave new Web 2.0 world?). I know Prototype sends a custom headers, e.g. [X-Prototype-Version] => 1.5.0 [X-Requested-With] =>

[nyphp-talk] detecting Ajax calls

2007-02-26 Thread David Mintz
I am wondering what you guys are doing to detect whether your PHP script is being called via AJAX or --- "regular." I know Prototype sends a custom headers e.g. [X-Prototype-Version] => 1.5.0 [X-Requested-With] => XMLHttpRequest -- David Mintz http://davidmintz.org/ En Nueva York el tránsito de

Re: [nyphp-talk] Thoughts on using JavaScript with no progressive fall-back

2007-02-26 Thread Cliff Hirsch
I just found those figures too. Doesn't say who that 6% is. Seems small, but 6% of a billion is a big #. A bit scary if you have a broad target audience. On 2/26/07 10:24 AM, "Andy Dirnberger" <[EMAIL PROTECTED]> wrote: > I usually use http://www.w3schools.com/browsers/browsers_stats.asp as a rou

[nyphp-talk] Re: Anyone Use PHP to access Bynari Insight

2007-02-26 Thread R. Mariotti
7. RE: Anyone Use PHP to access Bynari Insight LDAP Server? (Timothy Boyden) 8. Re: Anyone Use PHP to access Bynari Insight LDAP Server? (Alvaro P.) 9. Re: Anyone Use PHP to access Bynari Insight LDAP Server? (Randal Rust) Thanks a million gents... The references are

Re: [nyphp-talk] Best way to copy array by value

2007-02-26 Thread Aaron Fischer
I think he was making an assumption about PHP based on how other languages work. Everyone in the class is using Python or Java. He is letting me use PHP, which hasn't been done before in this class. Thanks for the tip on objects, I'll keep that in mind. -Aaron On Feb 26, 2007, at 10:16 AM

Re: [nyphp-talk] Re: talk Digest, Vol 4, Issue 51

2007-02-26 Thread Rob Marscher
Thanks for the posting. Does this only apply to the /etc/php.ini? What about if you copy the /etc/php.ini file locally and edit it, like users do on web hosting services where they aren't root so they can't restart Apache? If users on shared hosting services have access to some type of pe

RE: [nyphp-talk] Thoughts on using JavaScript with no progressive fall-back

2007-02-26 Thread Andy Dirnberger
I usually use http://www.w3schools.com/browsers/browsers_stats.asp as a rough guide. It shows 94% JavaScript on, 6% off for January 2007. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Withington Sent: Monday, February 26, 2007 10:08 AM To: NYPHP T

Re: [nyphp-talk] Best way to copy array by value

2007-02-26 Thread Brian Dailey
If your professor was referring to PHP, it's possible he could have been referring to objects, not arrays. Objects are copied by reference, so if you do this: $Item = new Item; $Item2 = $Item; $Item2->setProductId('12'); print $Item->getProductId(); Your output will be '12'. If you want to cop

Re: [nyphp-talk] Thoughts on using JavaScript with no progressive fall-back

2007-02-26 Thread Brian Dailey
I have a split opinion on this. I've set up a lot of applications where javascript really was required for some things that I wanted to do. Sometimes it really just isn't an option. However, I think it's good practice to at least *warn* the user that javascript is required. This is really true

Re: [nyphp-talk] Thoughts on using JavaScript with no progressive fall-back

2007-02-26 Thread Mark Withington
I agree. With absolutely no data to back this up, I bet any "serious" web user has JavaScript on and probably [relatively] up-to-date on their browser version. So, like the proverbial Willy Sutton reply, [Why do you rob banks, Willy?] "Cause that's where the money is" Why do we write code with

[nyphp-talk] Re: talk Digest, Vol 4, Issue 51

2007-02-26 Thread David A . Roth
Message: 10 Date: Mon, 26 Feb 2007 09:13:01 -0500 From: Ken Robinson <[EMAIL PROTECTED]> Subject: Re: [nyphp-talk] /etc/php.ini changes aren't picked up immediately? To: NYPHP Talk Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii"; format=flowed At 09:07 AM 2/2

Re: [nyphp-talk] Anyone Use PHP to access Bynari Insight LDAP Server?

2007-02-26 Thread Randal Rust
On 2/26/07, R. Mariotti <[EMAIL PROTECTED]> wrote: Perhaps ever, can someone reference some example php code to access even an ldap database for authentication? I have been working with an LDAP system myself, but I have not made it to the authentication part yet. I personally have found it ex

Re: [nyphp-talk] Anyone Use PHP to access Bynari Insight LDAP Server?

2007-02-26 Thread Alvaro P.
Here is a good script for LDAP authentication in PHP.. http://bjcpgd.cias.rit.edu/index.php/2007/01/16/php-rit-ldap-authentication-function/ The specific data for your users is probably different, but if all you want to see is if their username and password are valid, this will work. Alvaro R

RE: [nyphp-talk] Anyone Use PHP to access Bynari Insight LDAP Server?

2007-02-26 Thread Timothy Boyden
I've never used that particular product, but I have queried Windows Active Directory which is also LDAP based. I got my start with the documentation here: http://us3.php.net/manual/en/ref.ldap.php and by reading the referenced links. -Tim -Original Message- From: [EMAIL PROTECTED] [mailto

Re: [nyphp-talk] Thoughts on using JavaScript with no progressive fall-back

2007-02-26 Thread Kenneth Downs
Cliff Hirsch wrote: I'm seeing more and more applications that simply do not work if JavaScript is turned off. In fact, I'm looking at purchasing a slick shopping cart that seems great, but I think the lack of progressive fallback is a show stopper. Whatever happened to building a robust PHP

Re: [nyphp-talk] Best way to copy array by value

2007-02-26 Thread Aaron Fischer
Indeed it does. Sorry! I was led to believe (by my cs professor) that the default behavior when copying an array is that the copied array is not a new instance but is tied by pointers to the old array, so changes to one would change both of them. Other people in the class are using pytho

[nyphp-talk] Thoughts on using JavaScript with no progressive fall-back

2007-02-26 Thread Cliff Hirsch
I¹m seeing more and more applications that simply do not work if JavaScript is turned off. In fact, I¹m looking at purchasing a slick shopping cart that seems great, but I think the lack of progressive fallback is a show stopper. Whatever happened to building a robust PHP application and only then

[nyphp-talk] Anyone Use PHP to access Bynari Insight LDAP Server?

2007-02-26 Thread R. Mariotti
Fellow phpers; Our shop uses the above referenced LDAP server for email authentication and I've been asked to use the same for our overall user authentication. As I delve into this task, seeing that the docs are rather sparse, I was wondering if anyone of you had ever accessed this product befor

Re: [nyphp-talk] /etc/php.ini changes aren't picked up immediately?

2007-02-26 Thread Cliff Hirsch
Yes, you have to restart Apache for changes in php.ini to take effect. On 2/26/07 9:07 AM, "David A. Roth" <[EMAIL PROTECTED]> wrote: > The system: > CentOS 4.4 x86_64 > Linux localhost.localdomain 2.6.9-42.0.8.ELsmp #1 SMP Tue Jan 30 > 12:18:01 EST 2007 x86_64 x86_64 x86_64 GNU/Linux > PHP 4.3.9

Re: [nyphp-talk] /etc/php.ini changes aren't picked up immediately?

2007-02-26 Thread Tim McEwen
Sounds like you are using PHP as an Apache module in which case the ini file won't take affect until you restart apache. Try using: apachectl graceful -Tim On Feb 26, 2007, at 9:07 AM, David A.Roth wrote: The system: CentOS 4.4 x86_64 Linux localhost.localdomain 2.6.9-42.0.8.ELsmp #1 SMP

Re: [nyphp-talk] /etc/php.ini changes aren't picked up immediately?

2007-02-26 Thread Ken Robinson
At 09:07 AM 2/26/2007, David A. Roth wrote: The system: CentOS 4.4 x86_64 Linux localhost.localdomain 2.6.9-42.0.8.ELsmp #1 SMP Tue Jan 30 12:18:01 EST 2007 x86_64 x86_64 x86_64 GNU/Linux PHP 4.3.9 (cgi) (built: Feb 21 2007 06:31:24) I noticed changes I made to the /etc/php.ini didn't take eff

[nyphp-talk] /etc/php.ini changes aren't picked up immediately?

2007-02-26 Thread David A . Roth
The system: CentOS 4.4 x86_64 Linux localhost.localdomain 2.6.9-42.0.8.ELsmp #1 SMP Tue Jan 30 12:18:01 EST 2007 x86_64 x86_64 x86_64 GNU/Linux PHP 4.3.9 (cgi) (built: Feb 21 2007 06:31:24) I noticed changes I made to the /etc/php.ini didn't take effect immediately. Calling it a night, I turne

Re: [nyphp-talk] PHP and running background tasks...

2007-02-26 Thread Jiju Thomas Mathew
A good answer in this case is to write a cron job/scheduled task that wakes up every five minutes, sends a few mails, and then dies. The background job is controlled by a work queue, which could be a table in the database. A system like this can send e-mail messages, gather information,