From codebowl at gmail.com Fri Oct 1 08:06:09 2004 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 1 Oct 2004 08:06:09 -0400 Subject: [nycphp-talk] PHP AND AOL Instant Messenger Message-ID: <8d9a4280041001050659ca20cb@mail.gmail.com> I figured i would ask this here since there is not much for documentation i have found on the web. When you create a socket connection in PHP, will it carry from page to page or will you have to reconnect the socket everytime? I was thinking of implementing an AOL IM from a web page that will allow you to sign on and send IM's from the site, however i either need to keep the main window open and figure out some way not to close the socket until they click logoff and open all IM windows as new windows. Or i need to be ablet o have the connection stay between page calls. If anyone has any links that could be helpfull i would appreciate it, all i have been able to find is this http://www.experts-exchange.com/Web/Web_Languages/PHP/Q_20450773.html -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com 802-558-5247 For a GMail account contact me OFF-LIST From jonbaer at jonbaer.net Fri Oct 1 08:28:01 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 01 Oct 2004 08:28:01 -0400 Subject: [nycphp-talk] MXML + FLEX ... Message-ID: <415D4D51.2020406@jonbaer.net> has anyone played with Macromedia's new language? any thoughts about it? - jon -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 From jonbaer at jonbaer.net Fri Oct 1 08:48:53 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 01 Oct 2004 08:48:53 -0400 Subject: [nycphp-talk] PHP AND AOL Instant Messenger In-Reply-To: <8d9a4280041001050659ca20cb@mail.gmail.com> References: <8d9a4280041001050659ca20cb@mail.gmail.com> Message-ID: <415D5235.3030401@jonbaer.net> You would have to have the socket remain open but Im not sure that is a good way .. the options I know of @ the moment: aim:goim?screenname=screenname&message=Hi.+Are+you+there? (Client already has aim protocol registered with Mozilla/IE) http://simpleaim.sourceforge.net/ (You could do some funky javascript calls I beleive - not sure) http://www.aim.com/developer.adp?aolp= (Wait for whatever dev docs become available) - Jon Joseph Crawford wrote: > I figured i would ask this here since there is not much for > documentation i have found on the web. > > When you create a socket connection in PHP, will it carry from page to > page or will you have to reconnect the socket everytime? > > I was thinking of implementing an AOL IM from a web page that will > allow you to sign on and send IM's from the site, however i either > need to keep the main window open and figure out some way not to close > the socket until they click logoff and open all IM windows as new > windows. Or i need to be ablet o have the connection stay between > page calls. > > If anyone has any links that could be helpfull i would appreciate it, > all i have been able to find is this > > http://www.experts-exchange.com/Web/Web_Languages/PHP/Q_20450773.html > -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 From codebowl at gmail.com Fri Oct 1 09:09:50 2004 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 1 Oct 2004 09:09:50 -0400 Subject: [nycphp-talk] PHP AND AOL Instant Messenger In-Reply-To: <415D5235.3030401@jonbaer.net> References: <8d9a4280041001050659ca20cb@mail.gmail.com> <415D5235.3030401@jonbaer.net> Message-ID: <8d9a428004100106096fb43673@mail.gmail.com> the aim:goim method you provided above just registers to be used with AIM and opens the AIM window, i am thinking of implementing a 100% totally web based version of this, similar to what aol.com has when you sign in as an aol member. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com 802-558-5247 For a GMail account contact me OFF-LIST From dcech at phpwerx.net Fri Oct 1 09:28:14 2004 From: dcech at phpwerx.net (Dan Cech) Date: Fri, 01 Oct 2004 09:28:14 -0400 Subject: [nycphp-talk] PHP AND AOL Instant Messenger In-Reply-To: <8d9a4280041001050659ca20cb@mail.gmail.com> References: <8d9a4280041001050659ca20cb@mail.gmail.com> Message-ID: <415D5B6E.7020102@phpwerx.net> Joseph Crawford wrote: > I figured i would ask this here since there is not much for > documentation i have found on the web. > > When you create a socket connection in PHP, will it carry from page to > page or will you have to reconnect the socket everytime? You would have to reopen the socket on each page. > I was thinking of implementing an AOL IM from a web page that will > allow you to sign on and send IM's from the site, however i either > need to keep the main window open and figure out some way not to close > the socket until they click logoff and open all IM windows as new > windows. Or i need to be ablet o have the connection stay between > page calls. There are a few different possibilities, depending on the system you want to run it on. In any case to do this through php you would most likely have to have a background server process running for each IM session (this can just be a php script), which would maintain the socket and do the actual communication. Your frontend would then pass any user inputs to the server process and read the output for display. One way to set this up would be to use proc_open (http://php.net/proc_open) to launch the server process with both its input and output redirected to files. Then when someone sends an IM you send the command to the input file, the server process does the communication and it writes the result to the output file. Your script to display the conversation just grabs output from the output file. I haven't tried to build a system like this myself, but in theory I think it should work. Another possibility is to use a database to communicate between the frontend and the server process, but it would probably be too slow for your purposes. Dan > If anyone has any links that could be helpfull i would appreciate it, > all i have been able to find is this > > http://www.experts-exchange.com/Web/Web_Languages/PHP/Q_20450773.html > From Cbielanski at inta.org Fri Oct 1 09:34:43 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Fri, 1 Oct 2004 09:34:43 -0400 Subject: [nycphp-talk] PHP AND AOL Instant Messenger Message-ID: This seems like a good reason to pick up on Flash, doesn't it? Thanks, Chris Bielanski Web Programmer, International Trademark Association, 1133 Avenue of the Americas, 33rd Floor New York, NY 10036 +1 (212) 642-1745, f: +1 (212) 768-7796 mailto:cbielanski at inta.org, www.inta.org INTA -- 125 Years of Excellence > -----Original Message----- > From: Dan Cech [mailto:dcech at phpwerx.net] > Sent: Friday, October 01, 2004 9:28 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] PHP AND AOL Instant Messenger > > > Joseph Crawford wrote: > > I figured i would ask this here since there is not much for > > documentation i have found on the web. > > > > When you create a socket connection in PHP, will it carry > from page to > > page or will you have to reconnect the socket everytime? > > You would have to reopen the socket on each page. > > > I was thinking of implementing an AOL IM from a web page that will > > allow you to sign on and send IM's from the site, however i either > > need to keep the main window open and figure out some way > not to close > > the socket until they click logoff and open all IM windows as new > > windows. Or i need to be ablet o have the connection stay between > > page calls. > > There are a few different possibilities, depending on the system you > want to run it on. > > In any case to do this through php you would most likely have > to have a > background server process running for each IM session (this > can just be > a php script), which would maintain the socket and do the actual > communication. > > Your frontend would then pass any user inputs to the server > process and > read the output for display. > > One way to set this up would be to use proc_open > (http://php.net/proc_open) to launch the server process with both its > input and output redirected to files. Then when someone sends an IM > you send the command to the input file, the server process does the > communication and it writes the result to the output file. > > Your script to display the conversation just grabs output from the > output file. > > I haven't tried to build a system like this myself, but in theory I > think it should work. > > Another possibility is to use a database to communicate between the > frontend and the server process, but it would probably be too > slow for > your purposes. > > Dan > > > If anyone has any links that could be helpfull i would > appreciate it, > > all i have been able to find is this > > > > http://www.experts-exchange.com/Web/Web_Languages/PHP/Q_20450773.html > _______________________________________________ New York PHP Talk Supporting AMP Technology (Apache/MySQL/PHP) http://lists.nyphp.org/mailman/listinfo/talk http://www.newyorkphp.org From codebowl at gmail.com Fri Oct 1 09:45:51 2004 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 1 Oct 2004 09:45:51 -0400 Subject: [nycphp-talk] PHP AND AOL Instant Messenger In-Reply-To: References: Message-ID: <8d9a428004100106455a27361f@mail.gmail.com> i would pick up on flash but i suck at graphic design and i already know PHP :) so the only way to do something like this is to communicate to a server process? i mean i cant have someone go to the site, login and have the socket remain open such as this. user goes to the site, logs in, that page doesnt change once they login, when they click a user in thier userlist it opens a new window via javascript that will allow them to send the message in some way. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com 802-558-5247 For a GMail account contact me OFF-LIST From george at omniti.com Fri Oct 1 12:20:50 2004 From: george at omniti.com (George Schlossnagle) Date: Fri, 1 Oct 2004 12:20:50 -0400 Subject: [nycphp-talk] database handles In-Reply-To: <330532b6040930200072224031@mail.gmail.com> References: <20041001025702.GA20689@panix.com> <330532b6040930200072224031@mail.gmail.com> Message-ID: On Sep 30, 2004, at 11:00 PM, Mitch Pirtle wrote: > George Schlossnagle's "Upgrading to PHP 5" (O'Reilly) shows just how > to handle this approach in Chapter 2. Well done. That fine book is Trachtenburg's, not mine. Though in Chapter 2 of "Advanced PHP Programming" I talk about DB wrapper classes. George From adam at trachtenberg.com Fri Oct 1 12:32:55 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Fri, 1 Oct 2004 12:32:55 -0400 (EDT) Subject: [nycphp-talk] database handles In-Reply-To: References: <20041001025702.GA20689@panix.com> <330532b6040930200072224031@mail.gmail.com> Message-ID: On Fri, 1 Oct 2004, George Schlossnagle wrote: > On Sep 30, 2004, at 11:00 PM, Mitch Pirtle wrote: > > > George Schlossnagle's "Upgrading to PHP 5" (O'Reilly) shows just how > > to handle this approach in Chapter 2. Well done. > > That fine book is Trachtenburg's, not mine. Though in Chapter 2 of > "Advanced PHP Programming" I talk about DB wrapper classes. I think Mitch is actually referring to that code in your book because I don't remember talking about this in Chapter 2 of "Upgrading to PHP 5." -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From mitch.pirtle at gmail.com Fri Oct 1 12:35:59 2004 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Fri, 1 Oct 2004 12:35:59 -0400 Subject: [nycphp-talk] database handles In-Reply-To: References: <20041001025702.GA20689@panix.com> <330532b6040930200072224031@mail.gmail.com> Message-ID: <330532b604100109356d7b1102@mail.gmail.com> D'oh! (slaps forehead) That's what I get for reading mailing lists late in the day... (I was actually staring right at the book while typing that email!) Sorry about that folks. -- Mitch, shaking his head in disgrace On Fri, 1 Oct 2004 12:32:55 -0400 (EDT), Adam Maccabee Trachtenberg wrote: > On Fri, 1 Oct 2004, George Schlossnagle wrote: > > > On Sep 30, 2004, at 11:00 PM, Mitch Pirtle wrote: > > > > > George Schlossnagle's "Upgrading to PHP 5" (O'Reilly) shows just how > > > to handle this approach in Chapter 2. Well done. > > > > That fine book is Trachtenburg's, not mine. Though in Chapter 2 of > > "Advanced PHP Programming" I talk about DB wrapper classes. > > I think Mitch is actually referring to that code in your book because > I don't remember talking about this in Chapter 2 of "Upgrading to PHP > 5." > > -adam > > -- > adam at trachtenberg.com > author of o'reilly's "upgrading to php 5" and "php cookbook" > avoid the holiday rush, buy your copies today! > > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org > From webmaster at localnotion.com Fri Oct 1 13:19:10 2004 From: webmaster at localnotion.com (Matthew Terenzio) Date: Fri, 1 Oct 2004 13:19:10 -0400 Subject: [nycphp-talk] database handles In-Reply-To: <330532b604100109356d7b1102@mail.gmail.com> References: <20041001025702.GA20689@panix.com> <330532b6040930200072224031@mail.gmail.com> <330532b604100109356d7b1102@mail.gmail.com> Message-ID: <0224BBC9-13CE-11D9-A1A7-0003938BDF32@localnotion.com> I thought that was odd because I have Adam's book. Guess I'll have to get yours now, George. On Oct 1, 2004, at 12:35 PM, Mitch Pirtle wrote: > D'oh! (slaps forehead) > > That's what I get for reading mailing lists late in the day... (I was > actually staring right at the book while typing that email!) Sorry > about that folks. > > -- Mitch, shaking his head in disgrace > > On Fri, 1 Oct 2004 12:32:55 -0400 (EDT), Adam Maccabee Trachtenberg > wrote: >> On Fri, 1 Oct 2004, George Schlossnagle wrote: >> >>> On Sep 30, 2004, at 11:00 PM, Mitch Pirtle wrote: >>> >>>> George Schlossnagle's "Upgrading to PHP 5" (O'Reilly) shows just how >>>> to handle this approach in Chapter 2. Well done. >>> >>> That fine book is Trachtenburg's, not mine. Though in Chapter 2 of >>> "Advanced PHP Programming" I talk about DB wrapper classes. >> >> I think Mitch is actually referring to that code in your book because >> I don't remember talking about this in Chapter 2 of "Upgrading to PHP >> 5." >> >> -adam >> >> -- >> adam at trachtenberg.com >> author of o'reilly's "upgrading to php 5" and "php cookbook" >> avoid the holiday rush, buy your copies today! >> >> >> _______________________________________________ >> New York PHP Talk >> Supporting AMP Technology (Apache/MySQL/PHP) >> http://lists.nyphp.org/mailman/listinfo/talk >> http://www.newyorkphp.org >> > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org From mitch.pirtle at gmail.com Fri Oct 1 13:56:31 2004 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Fri, 1 Oct 2004 13:56:31 -0400 Subject: [nycphp-talk] database handles In-Reply-To: <0224BBC9-13CE-11D9-A1A7-0003938BDF32@localnotion.com> References: <20041001025702.GA20689@panix.com> <330532b6040930200072224031@mail.gmail.com> <330532b604100109356d7b1102@mail.gmail.com> <0224BBC9-13CE-11D9-A1A7-0003938BDF32@localnotion.com> Message-ID: <330532b604100110564a643b9b@mail.gmail.com> Ok, here's the details: The Book: Upgrading to PHP 5 The Author: Adam Trachtenberg The Chapter: 2, Object-Oriented Programming The Bonehead: Me Page 22 has a rough outline of a class that could open connections if needed, or reuse existing persistent connections if available. Sheesh, and I hadn't even been drinking! class Mitchy extends Bonehead; From Cbielanski at inta.org Fri Oct 1 14:08:15 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Fri, 1 Oct 2004 14:08:15 -0400 Subject: [ot] RE: [nycphp-talk] database handles Message-ID: class Mitchy extends Bonehead implements Dorkable; ;) Thanks, Chris Bielanski Web Programmer, International Trademark Association, 1133 Avenue of the Americas, 33rd Floor New York, NY 10036 +1 (212) 642-1745, f: +1 (212) 768-7796 mailto:cbielanski at inta.org, www.inta.org INTA -- 125 Years of Excellence From krook at us.ibm.com Fri Oct 1 14:09:32 2004 From: krook at us.ibm.com (Daniel Krook) Date: Fri, 1 Oct 2004 14:09:32 -0400 Subject: [ot] RE: [nycphp-talk] database handles In-Reply-To: Message-ID: > class Mitchy extends Bonehead implements Dorkable; > > ;) Oh man. The fact that I too was trying to come up with something like that proves that there's a strong demand among NYPHPers for a Dorkable interface in PEAR somewhere. : ) Daniel Krook, Application Developer WW Web Production Services North 2, ibm.com 1133 Westchester Avenue, White Plains, NY 10604 Personal: http://info.krook.org/ Persona: http://w3.ibm.com/eworkplace/persona_bp_finder.jsp?CNUM=9A9796897 From webmaster at localnotion.com Fri Oct 1 14:35:36 2004 From: webmaster at localnotion.com (Matthew Terenzio) Date: Fri, 1 Oct 2004 14:35:36 -0400 Subject: [nycphp-talk] PHP AND AOL Instant Messenger In-Reply-To: <8d9a428004100106455a27361f@mail.gmail.com> References: <8d9a428004100106455a27361f@mail.gmail.com> Message-ID: if you can run a jabber server, try this. BTW, this uses http and must retain an open connection, so your average little server will only scale to a couple hundred users(big generalization). http://webmessenger.blitzaffe.com/ On Oct 1, 2004, at 9:45 AM, Joseph Crawford wrote: > i would pick up on flash but i suck at graphic design and i already > know PHP :) > > so the only way to do something like this is to communicate to a > server process? i mean i cant have someone go to the site, login and > have the socket remain open such as this. > > user goes to the site, logs in, that page doesnt change once they > login, when they click a user in thier userlist it opens a new window > via javascript that will allow them to send the message in some way. > > -- > Joseph Crawford Jr. > Codebowl Solutions > codebowl at gmail.com > 802-558-5247 > > For a GMail account > contact me OFF-LIST > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org From adam at trachtenberg.com Fri Oct 1 14:59:49 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Fri, 1 Oct 2004 14:59:49 -0400 (EDT) Subject: [nycphp-talk] database handles In-Reply-To: <330532b604100110564a643b9b@mail.gmail.com> References: <20041001025702.GA20689@panix.com> <330532b6040930200072224031@mail.gmail.com> <330532b604100109356d7b1102@mail.gmail.com> <0224BBC9-13CE-11D9-A1A7-0003938BDF32@localnotion.com> <330532b604100110564a643b9b@mail.gmail.com> Message-ID: On Fri, 1 Oct 2004, Mitch Pirtle wrote: > Ok, here's the details: > > The Book: Upgrading to PHP 5 > The Author: Adam Trachtenberg > The Chapter: 2, Object-Oriented Programming > The Bonehead: Me > > Page 22 has a rough outline of a class that could open connections if > needed, or reuse existing persistent connections if available. Oh right! I forgot about that. There's also some stuff on page 28, when I talk about static properties. I don't have George's book, but believe he goes into a far more in-depth than I did. -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From yury at heavenspa.com Fri Oct 1 15:07:57 2004 From: yury at heavenspa.com (Yury Rush) Date: Fri, 1 Oct 2004 15:07:57 -0400 Subject: [nycphp-talk] shopping cart In-Reply-To: Message-ID: Hi -- can someone make some recommendations on a GOOD shopping cart. By good i need the following: - easy admin - functional admin - easy *design* integration - PHP/mySQL I've reviewed x-cart, zen cart, sunshop, I like xcart the best, from a the visual designs of their clients sites as well as the admin functionality.. anyone suggest anything else? regards yury From ajai at bitblit.net Fri Oct 1 15:14:08 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Fri, 01 Oct 2004 15:14:08 -0400 Subject: [nycphp-talk] shopping cart In-Reply-To: References: Message-ID: <415DAC80.3020206@bitblit.net> Yury Rush wrote: >Hi -- can someone make some recommendations on a GOOD shopping cart. By good >i need the following: >- easy admin >- functional admin >- easy *design* integration >- PHP/mySQL > >I've reviewed x-cart, zen cart, sunshop, I like xcart the best, from a the >visual designs of their clients sites as well as the admin functionality.. > >anyone suggest anything else? > phpshop.org -- Aj. Systems Administrator / Developer From hans at cyberxdesigns.com Fri Oct 1 16:16:41 2004 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Fri, 01 Oct 2004 16:16:41 -0400 Subject: [nycphp-talk] shopping cart In-Reply-To: References: Message-ID: <415DBB29.2050609@cyberxdesigns.com> I have used X-Cart on a bunch of projects. It is a beast but I like it. Both implementations of X-Cart that I did this summer have included a lot of customization. I normally completely re-skin it and then I modify for my clients needs. I like all the features it comes with out of the box. The re-skinning process can be tedious and there are some cross browser compatibility issues that need to be solved. But I like. It does have some draw backs, it can be slow and there are regular security updates. If you customize it too much you will have to make the security updates manually. Not fun. By the way, I do not consider the updates the draw back, I consider the manual application of the patches a pain in the arse. I know this does not answer your question about a cart that fits your criteria but I figured I would add my $0.02. Support and the forums for X-Cart are very helpful. I always find the answers I need in the forums and I have had some vexing problems. So the short of it is that X-Cart has solved my client's ecommerce needs and I will continue to use it for a while. http://www.imaginativelearningtools.com If you have any x-cart questions you can contact me off-list and I am more then happy to answer them. Hans Kaspersetz -- Hans C. Kaspersetz Cyber X Designs http://www.cyberxdesigns.com Yury Rush wrote: >Hi -- can someone make some recommendations on a GOOD shopping cart. By good >i need the following: >- easy admin >- functional admin >- easy *design* integration >- PHP/mySQL > >I've reviewed x-cart, zen cart, sunshop, I like xcart the best, from a the >visual designs of their clients sites as well as the admin functionality.. > >anyone suggest anything else? > >regards >yury > > >_______________________________________________ >New York PHP Talk >Supporting AMP Technology (Apache/MySQL/PHP) >http://lists.nyphp.org/mailman/listinfo/talk >http://www.newyorkphp.org > > > > > From hans at cyberxdesigns.com Fri Oct 1 17:03:00 2004 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Fri, 01 Oct 2004 17:03:00 -0400 Subject: [nycphp-talk] September Presentations Message-ID: <415DC604.6070705@cyberxdesigns.com> Hola! The September presentations have been posted to the NYPHP web site. Check them out at: http://www.nyphp.org/content/presentations/ -- Hans C. Kaspersetz Cyber X Designs http://www.cyberxdesigns.com From webmaster at localnotion.com Fri Oct 1 18:18:05 2004 From: webmaster at localnotion.com (Matthew Terenzio) Date: Fri, 1 Oct 2004 18:18:05 -0400 Subject: [nycphp-talk] database handles Message-ID: yes that database class from Adam;s book was what I had in mind. I even took it another step and used that static property technique within all classes which might use the database class. So in effect, the class only requires() the database class and instantiates it if hasn't already. If instantiated, the database class only connects if it hasn't already. I'm liking PHP 5 so much I wrote a Haiku. Cascading Database Requires one connection Slash Dot here we come. Just wish more web hosts upgraded to 5 and offered Postgresql. Guess it's just a matter of time. Matt From codebowl at gmail.com Fri Oct 1 19:03:12 2004 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 1 Oct 2004 19:03:12 -0400 Subject: [nycphp-talk] PHP AND AOL Instant Messenger In-Reply-To: References: <8d9a428004100106455a27361f@mail.gmail.com> Message-ID: <8d9a42800410011603141796e@mail.gmail.com> dont ask why but i am for some reson set on using AIM lol. anyone know if there is any documentation out there on thier IM system? i have been searching today and my head is killing me, dunno if that is the reason i havent found anything or not ;( -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com 802-558-5247 For a GMail account contact me OFF-LIST From webmaster at localnotion.com Fri Oct 1 19:54:27 2004 From: webmaster at localnotion.com (Matthew Terenzio) Date: Fri, 1 Oct 2004 19:54:27 -0400 Subject: [nycphp-talk] PHP AND AOL Instant Messenger In-Reply-To: <8d9a42800410011603141796e@mail.gmail.com> References: <8d9a428004100106455a27361f@mail.gmail.com> <8d9a42800410011603141796e@mail.gmail.com> Message-ID: <3A59D327-1405-11D9-A1A7-0003938BDF32@localnotion.com> On Oct 1, 2004, at 7:03 PM, Joseph Crawford wrote: > dont ask why but i am for some reson set on using AIM lol. You understand I meant using Jabber and a transport to access AOL's protocol. Even so, you might be able to learn about the protocol from the open source AIMT transport project over at jabber.org. > > anyone know if there is any documentation out there on thier IM system? > > i have been searching today and my head is killing me, dunno if that > is the reason i havent found anything or not ;( > > -- > Joseph Crawford Jr. > Codebowl Solutions > codebowl at gmail.com > 802-558-5247 > > For a GMail account > contact me OFF-LIST > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org From codebowl at gmail.com Fri Oct 1 19:56:39 2004 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 1 Oct 2004 19:56:39 -0400 Subject: [nycphp-talk] PHP AND AOL Instant Messenger In-Reply-To: <3A59D327-1405-11D9-A1A7-0003938BDF32@localnotion.com> References: <8d9a428004100106455a27361f@mail.gmail.com> <8d9a42800410011603141796e@mail.gmail.com> <3A59D327-1405-11D9-A1A7-0003938BDF32@localnotion.com> Message-ID: <8d9a428004100116562491855d@mail.gmail.com> i thought jabber was just another IM client like YIM, ICQ etc.. i will look into this thanks ;) -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com 802-558-5247 For a GMail account contact me OFF-LIST From webmaster at localnotion.com Fri Oct 1 20:15:13 2004 From: webmaster at localnotion.com (Matthew Terenzio) Date: Fri, 1 Oct 2004 20:15:13 -0400 Subject: [nycphp-talk] PHP AND AOL Instant Messenger In-Reply-To: <8d9a428004100116562491855d@mail.gmail.com> References: <8d9a428004100106455a27361f@mail.gmail.com> <8d9a42800410011603141796e@mail.gmail.com> <3A59D327-1405-11D9-A1A7-0003938BDF32@localnotion.com> <8d9a428004100116562491855d@mail.gmail.com> Message-ID: <21888807-1408-11D9-A1A7-0003938BDF32@localnotion.com> On Oct 1, 2004, at 7:56 PM, Joseph Crawford wrote: > i thought jabber was just another IM client like YIM, ICQ etc.. > i will look into this thanks ;) It is, but some people have written transports for Jabber servers that communicate with other networks. You'll also find a number of open source PHP clients there. See , we are back On Topic. > > -- > Joseph Crawford Jr. > Codebowl Solutions > codebowl at gmail.com > 802-558-5247 > > For a GMail account > contact me OFF-LIST > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org From heli_travel at yahoo.com Fri Oct 1 23:52:01 2004 From: heli_travel at yahoo.com (haha) Date: Fri, 1 Oct 2004 20:52:01 -0700 (PDT) Subject: [nycphp-talk] shopping cart In-Reply-To: <415DBB29.2050609@cyberxdesigns.com> Message-ID: <20041002035201.64526.qmail@web12202.mail.yahoo.com> how is osCommerce? Thanks, --- "Hans C. Kaspersetz" wrote: > I have used X-Cart on a bunch of projects. It is a beast but > I like > it. Both implementations of X-Cart that I did this summer > have included > a lot of customization. I normally completely re-skin it and > then I > modify for my clients needs. I like all the features it comes > with out > of the box. The re-skinning process can be tedious and there > are some > cross browser compatibility issues that need to be solved. > But I like. > > It does have some draw backs, it can be slow and there are > regular > security updates. If you customize it too much you will have > to make > the security updates manually. Not fun. By the way, I do not > consider > the updates the draw back, I consider the manual application > of the > patches a pain in the arse. I know this does not answer your > question > about a cart that fits your criteria but I figured I would add > my $0.02. > > Support and the forums for X-Cart are very helpful. I always > find the > answers I need in the forums and I have had some vexing > problems. So > the short of it is that X-Cart has solved my client's > ecommerce needs > and I will continue to use it for a while. > > http://www.imaginativelearningtools.com > > If you have any x-cart questions you can contact me off-list > and I am > more then happy to answer them. > > Hans Kaspersetz > > -- > Hans C. Kaspersetz > Cyber X Designs > > http://www.cyberxdesigns.com > > > > Yury Rush wrote: > > >Hi -- can someone make some recommendations on a GOOD > shopping cart. By good > >i need the following: > >- easy admin > >- functional admin > >- easy *design* integration > >- PHP/mySQL > > > >I've reviewed x-cart, zen cart, sunshop, I like xcart the > best, from a the > >visual designs of their clients sites as well as the admin > functionality.. > > > >anyone suggest anything else? > > > >regards > >yury > > > > > >_______________________________________________ > >New York PHP Talk > >Supporting AMP Technology (Apache/MySQL/PHP) > >http://lists.nyphp.org/mailman/listinfo/talk > >http://www.newyorkphp.org > > > > > > > > > > > > > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org > _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com From matt at atopia.net Sat Oct 2 02:34:01 2004 From: matt at atopia.net (Matt Juszczak) Date: Sat, 2 Oct 2004 02:34:01 -0400 (EDT) Subject: [nycphp-talk] Returning from Includes Message-ID: <20041002023353.B3145@scruffy.atopia.net> Hey all, Just had a quick question. I've got a system that currently runs that has a basic module file (module.main) which includes a couple files... header.html, footer.html, and the current module file .... go.none is included if $go is NULL, action.none is included if $action is NULL .... if action is UpdateUserInfo and go is ManageUser then action.UpdateUserInfo and go.ManageUser is included ... and so on and so forth. go.* is the text displayed to the screen and UpdateUserInfo is the include of the action that does updating, deleting, etc.... It all works great, except for when someone modifies the URL ... for instance, changing go from NULL to go equals "ManageUser" .... go.ManageUser requires a userID, which is hard to check for in go.ManageUser because it pushes all the code in .... for instance: File go.ManageUser if (!empty($UserID)) { echo "missing"; } else { // 100 lines of code here ... indented... :-( } I could do something else like if (!empty($UserID)) $errors = "Missing file"; if (empty($errors)) { // 100 lines of code here } but that still does the indent ... so what i want to do is this: if (empty($errors)) { return; // return from the include } //rest of code here I can't do an exit; because then it won't go back to the main "module" file and print footer.html, so the page will look messed up. Will that single return work though? What if I wanted to do multiple layers? I've tried this and I can't seem to get it working like i want it to. Is there a better way? Thanks :) -Matt From jv_nyphp at duikerbok.com Sat Oct 2 03:21:13 2004 From: jv_nyphp at duikerbok.com (Jose Villegas) Date: Sat, 2 Oct 2004 03:21:13 -0400 Subject: [nycphp-talk] Returning from Includes In-Reply-To: <20041002023353.B3145@scruffy.atopia.net> References: <20041002023353.B3145@scruffy.atopia.net> Message-ID: Why don't you check for the user id before you include the file? if ("ManageUser" == $go) { if (!empty($UserID)) include(go.ManageUser); else echo('User ID is missing'); } Otherwise I sometimes make includes into functions. This allows me to break from the code at certain points as well as keep track of variables: function largeIncludedProcess() { global $action; global $UserID; etc. code, code, code $GLOBALS['result1'] = $result1; $GLOBALS['result2'] = $result2; etc. } -jose www.josevillegasdesign.com On Oct 2, 2004, at 2:34 AM, Matt Juszczak wrote: > Hey all, > > Just had a quick question. I've got a system that currently runs that > has a basic module file (module.main) which includes a couple files... > > header.html, footer.html, and the current module file .... go.none is > included if $go is NULL, action.none is included if $action is NULL > .... if action is UpdateUserInfo and go is ManageUser then > action.UpdateUserInfo and go.ManageUser is included ... and so on and > so forth. > > go.* is the text displayed to the screen and UpdateUserInfo is the > include of the action that does updating, deleting, etc.... > > It all works great, except for when someone modifies the URL ... for > instance, changing go from NULL to go equals "ManageUser" .... > go.ManageUser requires a userID, which is hard to check for in > go.ManageUser because it pushes all the code in .... > > for instance: > > File go.ManageUser > > if (!empty($UserID)) > { > echo "missing"; > } > else > { > // 100 lines of code here ... indented... :-( > } > > I could do something else like > > if (!empty($UserID)) > $errors = "Missing file"; > > if (empty($errors)) > { > // 100 lines of code here > } > > > but that still does the indent ... so what i want to do is this: > > > if (empty($errors)) > { > return; // return from the include > } > > //rest of code here > > > I can't do an exit; because then it won't go back to the main "module" > file and print footer.html, so the page will look messed up. Will > that single return work though? What if I wanted to do multiple > layers? I've tried this and I can't seem to get it working like i > want it to. Is there a better way? > > Thanks :) > > -Matt > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org > > From danielc at analysisandsolutions.com Sat Oct 2 12:13:52 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sat, 2 Oct 2004 12:13:52 -0400 Subject: [nycphp-talk] PHP AND AOL Instant Messenger In-Reply-To: <8d9a428004100106455a27361f@mail.gmail.com> References: <8d9a428004100106455a27361f@mail.gmail.com> Message-ID: <20041002161351.GA8213@panix.com> Joseph: On Fri, Oct 01, 2004 at 09:45:51AM -0400, Joseph Crawford wrote: > > so the only way to do something like this is to communicate to a > server process? i mean i cant have someone go to the site, login and > have the socket remain open such as this. > > user goes to the site, logs in, that page doesnt change once they > login, when they click a user in thier userlist it opens a new window > via javascript that will allow them to send the message in some way. If you're looking to do this so a user can be on a web browser looking at a page on a web host, it seems you're misunderstanding how the HTTP protocol works. A web browser opens an HTTP request to a web server, asking it to return a specific page. If the page in question is a script (such as PHP or Perl), the server tells the appropriate interpreter to run the script and generate the HTML. The HTML is then passed to your web browser. The transaction is finished and the connection closed. Your browser then renders the HTML. So, once your page request is fulfilled, there is no more connection between you and the server. Therefore there is no way to maintain an interactive process like you want. The only way to get this to work is with another protocol. Java or Flash, among other things, can be used to do that. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From codebowl at gmail.com Sat Oct 2 12:20:01 2004 From: codebowl at gmail.com (Joseph Crawford) Date: Sat, 2 Oct 2004 12:20:01 -0400 Subject: [nycphp-talk] PHP AND AOL Instant Messenger In-Reply-To: <20041002161351.GA8213@panix.com> References: <8d9a428004100106455a27361f@mail.gmail.com> <20041002161351.GA8213@panix.com> Message-ID: <8d9a42800410020920358996d8@mail.gmail.com> that must be how AOL and ICQ do it then, they both have an online version so that you can sign on to thier service. Another thing i thought about was the possibility of creating a php-gtk AIM application, this should be able to be done right? -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com 802-558-5247 For a GMail account contact me OFF-LIST From webmaster at localnotion.com Sat Oct 2 14:15:52 2004 From: webmaster at localnotion.com (Matthew Terenzio) Date: Sat, 2 Oct 2004 14:15:52 -0400 Subject: [nycphp-talk] PHP AND AOL Instant Messenger In-Reply-To: <20041002161351.GA8213@panix.com> References: <8d9a428004100106455a27361f@mail.gmail.com> <20041002161351.GA8213@panix.com> Message-ID: <1836FD6C-149F-11D9-A1A7-0003938BDF32@localnotion.com> > So, once your page request is fulfilled, there is no more connection > between you and the server. Therefore there is no way to maintain an > interactive process like you want. well, like I said, you can keep the http connection open. Not scalable, works on port 80 through firewalls, but will not work with a proxy since it will wait for the complete request and then forward it to the browser or client. very similar to streaming over http. On Oct 2, 2004, at 12:13 PM, Daniel Convissor wrote: > Joseph: > > On Fri, Oct 01, 2004 at 09:45:51AM -0400, Joseph Crawford wrote: >> >> so the only way to do something like this is to communicate to a >> server process? i mean i cant have someone go to the site, login and >> have the socket remain open such as this. >> >> user goes to the site, logs in, that page doesnt change once they >> login, when they click a user in thier userlist it opens a new window >> via javascript that will allow them to send the message in some way. > > If you're looking to do this so a user can be on a web browser looking > at > a page on a web host, it seems you're misunderstanding how the HTTP > protocol works. > > A web browser opens an HTTP request to a web server, asking it to > return a > specific page. If the page in question is a script (such as PHP or > Perl), > the server tells the appropriate interpreter to run the script and > generate the HTML. The HTML is then passed to your web browser. The > transaction is finished and the connection closed. Your browser then > renders the HTML. > > So, once your page request is fulfilled, there is no more connection > between you and the server. Therefore there is no way to maintain an > interactive process like you want. > > The only way to get this to work is with another protocol. Java or > Flash, among other things, can be used to do that. > > --Dan > > -- > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > data intensive web and database programming > http://www.AnalysisAndSolutions.com/ > 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org From mitch.pirtle at gmail.com Sat Oct 2 20:27:57 2004 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Sat, 2 Oct 2004 20:27:57 -0400 Subject: [nycphp-talk] connecting objects and relations Message-ID: <330532b604100217276bc928e@mail.gmail.com> Thought this would spice things up on the list ;-) Years ago, I asked a perl guru friend of mine what he used to connect application objects and relational data. Certain he would provide insight, he replied that there was nothing to use, and he built his own stuff for each and every project. That did provide insight - that there was no easy solution ;-) I then spent several years in Zopeland, living with this frightening thing called Zope Object DataBase (ZODB). Not mapping to relations, this was a true object database. This was really great, until you needed to access it from outside Zope however... I've just been pointed at Propel: http://propel.phpdb.org/wiki/ Instead of a pure relational or object environment, Propel takes PHP (5) objects and maps them to a relational schema. This concept was brought over from Java, and similar exist for just about all the other application languages - so it is not a surprise to be coming to PHP. Anyone at NYPHP have experience with this strange yet beautiful environment? Ease of use? Performance? -- Mitch, returning victorious from the pumpkin patch, thinking about soup From hans at nyphp.com Sat Oct 2 20:43:25 2004 From: hans at nyphp.com (Hans Zaunere) Date: Sat, 2 Oct 2004 17:43:25 -0700 Subject: [nycphp-talk] connecting objects and relations Message-ID: <41EE526EC2D3C74286415780D3BA9F8704A74C99@ehost011-1.exch011.intermedia.net> > Thought this would spice things up on the list ;-) > > Years ago, I asked a perl guru friend of mine what he used to connect > application objects and relational data. Certain he would provide > insight, he replied that there was nothing to use, and he built his > own stuff for each and every project. > > That did provide insight - that there was no easy solution ;-) > > I then spent several years in Zopeland, living with this frightening > thing called Zope Object DataBase (ZODB). Not mapping to relations, > this was a true object database. This was really great, until you > needed to access it from outside Zope however... > > I've just been pointed at Propel: > > http://propel.phpdb.org/wiki/ > > Instead of a pure relational or object environment, Propel takes PHP > (5) objects and maps them to a relational schema. This concept was > brought over from Java, and similar exist for just about all the other > application languages - so it is not a surprise to be coming to PHP. > > Anyone at NYPHP have experience with this strange yet beautiful > environment? Ease of use? Performance? Those who know me will expect this response: I don't think it makes sense :) Not too mention a performance hit, the relational and objective models don't mesh well in my opinion - they are really different animals. In fact, there are object-based databases, but they have had limited success from my experience (again, though, I'm probably biased :) That said, the propel implementation does look like a good one, regardless of whether I think it's a good idea or not. Seems like a good presentation topic, too, if there's anyone who has found success with it :) H From codebowl at gmail.com Sat Oct 2 20:49:26 2004 From: codebowl at gmail.com (Joseph Crawford) Date: Sat, 2 Oct 2004 20:49:26 -0400 Subject: [nycphp-talk] connecting objects and relations In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8704A74C99@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8704A74C99@ehost011-1.exch011.intermedia.net> Message-ID: <8d9a4280041002174931fb431f@mail.gmail.com> This is the first i have heard of it but i will be looking into it and attempting to use it ;) thanks for this information -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com 802-558-5247 For a GMail account contact me OFF-LIST From lists at prusak.com Sat Oct 2 22:39:37 2004 From: lists at prusak.com (ophir prusak) Date: Sat, 02 Oct 2004 22:39:37 -0400 Subject: [nycphp-talk] PHP AND AOL Instant Messenger In-Reply-To: <1836FD6C-149F-11D9-A1A7-0003938BDF32@localnotion.com> References: <8d9a428004100106455a27361f@mail.gmail.com> <20041002161351.GA8213@panix.com> <1836FD6C-149F-11D9-A1A7-0003938BDF32@localnotion.com> Message-ID: <415F6669.2080707@prusak.com> Actually, you CAN implement a chat client using only a web page. Without going into to much detail, you have one frame which refreshes every 5 seconds or so to check if there are any new messages. If there are it pushes the message to the chat window. At one of my previous jobs I implemented the front end of such a beast using only apache, php, mysql and javascript. The javascript was more complex then anything I thought I'd ever do :) Looking at jabbix.com i see they seem to be doing the same thing more or less: Q: Technically speaking, how does this service work? A: Jabbix Messenger uses a combination of PHP+MySQL (on the server side) and XHTML+CSS+JavaScript (on the client side). The PHP back-end transmits commands to the browser in realtime, which are then executed using JavaScript to create an interactive interface without the use of plug-ins. On the server-side, Jabbix Messenger uses Jabber technology to communicate with other Jabber servers and other third-party chat networks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From shiflett at php.net Sat Oct 2 22:49:42 2004 From: shiflett at php.net (Chris Shiflett) Date: Sat, 2 Oct 2004 19:49:42 -0700 (PDT) Subject: [nycphp-talk] PHP AND AOL Instant Messenger In-Reply-To: <415F6669.2080707@prusak.com> Message-ID: <20041003024942.26826.qmail@web52809.mail.yahoo.com> --- ophir prusak wrote: > Actually, you CAN implement a chat client using only a web page. > > Without going into to much detail, you have one frame which > refreshes every 5 seconds or so to check if there are any new > messages. Another way is to use chunked transfer encoding, so that you just send a chunk at a time. It's sort of the opposite approach, but it seems pretty popular. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming December 2004 http://httphandbook.org/ From chsnyder at gmail.com Sun Oct 3 12:47:05 2004 From: chsnyder at gmail.com (csnyder) Date: Sun, 3 Oct 2004 12:47:05 -0400 Subject: [nycphp-talk] connecting objects and relations In-Reply-To: <330532b604100217276bc928e@mail.gmail.com> References: <330532b604100217276bc928e@mail.gmail.com> Message-ID: On Sat, 2 Oct 2004 20:27:57 -0400, Mitch Pirtle wrote: > http://propel.phpdb.org/wiki/ Hey, now that's pretty slick -- from the documentation there's obviously some intelligent people working on that project. Check out the code -- is it simple and straightforward? Does it look like code you'd write, if you had the time? I went down this road on my own a couple years ago -- defining schemas outside of SQL, letting the code build the tables and worry about the query details. I never actually got to the point where I implemented SelectPeer( $obj ), though. Even though I could see the usefulness of that, I didn't like being so out of control. The problem comes when you start trying to do selects based on complex criteria, as evidenced here: http://propel.phpdb.org/docs/user_guide/chapters/FindingObjects.html#FindingRecods.Criteria In my opinion, SQL is graceful compared to the code you have to write to do create a complex Criteria object. At the end of the day, you probably still need to know enough SQL to handle the edge cases, while also knowing how to read the XML schemas and construct Criteria objects. That said, it-just-works object persistance is a real power tool, and if you take this up seriously you'll probably never look back. From chsnyder at gmail.com Sun Oct 3 12:58:28 2004 From: chsnyder at gmail.com (csnyder) Date: Sun, 3 Oct 2004 12:58:28 -0400 Subject: [nycphp-talk] PHP AND AOL Instant Messenger In-Reply-To: <20041003024942.26826.qmail@web52809.mail.yahoo.com> References: <415F6669.2080707@prusak.com> <20041003024942.26826.qmail@web52809.mail.yahoo.com> Message-ID: Yet ANOTHER way to do this is using Dynamic Javascript, which gets dicey in some browsers (Safari) but otherwise works pretty well if you know what you're doing. 1) script tag in of the Document includes external.js 2) external.js rewrites part of the Document with new html content 3) external.js then issues a setTimeout for myrefresh() 4) myrefresh() uses the DOM to add another script tag to the of the Document 5) goto 1 When the browser sees that the new