From shiflett at php.net Thu Apr 1 00:12:53 2004 From: shiflett at php.net (Chris Shiflett) Date: Wed, 31 Mar 2004 21:12:53 -0800 (PST) Subject: [nycphp-talk] List of sample credit card numbers In-Reply-To: Message-ID: <20040401051253.63662.qmail@web14302.mail.yahoo.com> --- Adam Maccabee Trachtenberg wrote: > I offer up one from a list member who may wish to remain anonymous: > > http://www.sklar.com/texts/ti-tank What can that guy not do? :-) Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From webpage at ureach.com Thu Apr 1 01:06:08 2004 From: webpage at ureach.com (Web Page) Date: Thu, 1 Apr 2004 01:06:08 -0500 Subject: [nycphp-talk] how to make crossover cable - even if you know - you need this tutorial Message-ID: <200404010606.BAA16296@www22.ureach.com> There are women on this list. What is the joke suppose to be here? WP Webbing Along ;):) ________________________________________________ Get your own "800" number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag ---- On Wed, 31 Mar 2004, Dan Horning (dan at mx2pro.com) wrote: > > how to make crossover cable > http://funny.evilbunny.org/display/2048/ > > > > (this is for guys to never forget how to) > > Dan Horning - Technical Systems Administration > http://www.mx2pro.com/ > http://dan.mx2pro.com/ > 1-866-AVID-150 (Personal Direct Line) From ashaw at iifwp.org Thu Apr 1 09:02:30 2004 From: ashaw at iifwp.org (Allen Shaw) Date: Thu, 1 Apr 2004 09:02:30 -0500 Subject: [nycphp-talk] how to make crossover cable - even if you know - youneed this tutorial References: <200404010606.BAA16296@www22.ureach.com> Message-ID: <001501c417f1$f9abce80$7801a8c0@iifwp.local> Good point. ----- Original Message ----- From: "Web Page" To: Sent: Thursday, April 01, 2004 1:06 AM Subject: Re: [nycphp-talk] how to make crossover cable - even if you know - youneed this tutorial > There are women on this list. What is the joke suppose to be > here? > > WP > Webbing Along ;):) > > > > ---- On Wed, 31 Mar 2004, Dan Horning (dan at mx2pro.com) wrote: > > > > how to make crossover cable > > http://funny.evilbunny.org/display/2048/ > > > > > > > > (this is for guys to never forget how to) > > > > Dan Horning - Technical Systems Administration From brian at preston-campbell.com Thu Apr 1 09:09:27 2004 From: brian at preston-campbell.com (Brian Preston-Campbell) Date: Thu, 1 Apr 2004 09:09:27 -0500 Subject: [nycphp-talk] phpinfo() Message-ID: <200404010909.27637.brian@preston-campbell.com> Try phpinfo() today -- It's April 1st. From henry at beewh.com Thu Apr 1 08:12:42 2004 From: henry at beewh.com (Henry Ponce) Date: Thu, 1 Apr 2004 13:12:42 +0000 Subject: [nycphp-talk] automatic translation Message-ID: <200404011312.42622.henry@beewh.com> I'm working on a site in php and mysql that is need of a translator (program), so all the content can be translated automatically to the language the users choose. Is it possible to intergrate it to my site...?? The languages are spanish, english, french, italian, german and swedish. Can anyone recommend any solution (free, nonfree, etc.) to this? Or point me in the right direction, please. I hope I was clear in explaining what I need. Thanx, Henry From tgales at tgaconnect.com Thu Apr 1 11:23:06 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 1 Apr 2004 11:23:06 -0500 Subject: [nycphp-talk] automatic translation In-Reply-To: <200404011312.42622.henry@beewh.com> Message-ID: <002401c41805$9e081750$e98d3818@oberon1> Have a look at this: http://www.systransoft.com/Products/WebTranslator.html It might be what you're looking for. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Henry Ponce > Sent: Thursday, April 01, 2004 8:13 AM > To: NYPHP Talk > Subject: [nycphp-talk] automatic translation > > > I'm working on a site in php and mysql that is need of a > translator (program), > so all the content can be translated automatically to the > language the users > choose. Is it possible to intergrate it to my site...?? > > The languages are spanish, english, french, italian, german > and swedish. > > Can anyone recommend any solution (free, nonfree, etc.) to > this? Or point me > in the right direction, please. > > I hope I was clear in explaining what I need. > > Thanx, > Henry > _______________________________________________ > talk mailing list > talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk > From joel at tagword.com Thu Apr 1 11:36:56 2004 From: joel at tagword.com (Joel De Gan) Date: Thu, 01 Apr 2004 11:36:56 -0500 Subject: [nycphp-talk] automatic translation In-Reply-To: <200404011312.42622.henry@beewh.com> References: <200404011312.42622.henry@beewh.com> Message-ID: <1080837416.4786.57.camel@bezel> Use gettext.. that is what most larger sites with multi-lang sites use. works great with php/mysql.. http://www.gnu.org/software/gettext/ http://us2.php.net/gettext Cheers Joel De Gan --------- http://listbid.com - php freelance http://broadwords.com - get $10 free advertising for your site On Thu, 2004-04-01 at 08:12, Henry Ponce wrote: > I'm working on a site in php and mysql that is need of a translator (program), > so all the content can be translated automatically to the language the users > choose. Is it possible to intergrate it to my site...?? > > The languages are spanish, english, french, italian, german and swedish. > > Can anyone recommend any solution (free, nonfree, etc.) to this? Or point me > in the right direction, please. > > I hope I was clear in explaining what I need. > > Thanx, > Henry From joel at tagword.com Thu Apr 1 11:39:47 2004 From: joel at tagword.com (Joel De Gan) Date: Thu, 01 Apr 2004 11:39:47 -0500 Subject: [nycphp-talk] automatic translation In-Reply-To: <1080837416.4786.57.camel@bezel> References: <200404011312.42622.henry@beewh.com> <1080837416.4786.57.camel@bezel> Message-ID: <1080837587.4786.63.camel@bezel> note: I also should note that this is not "automatic" but it is easy enough to feed your text through babelfish to get at least rough translations first.. -joel On Thu, 2004-04-01 at 11:36, Joel De Gan wrote: > Use gettext.. that is what most larger sites with multi-lang sites use. > works great with php/mysql.. > > http://www.gnu.org/software/gettext/ > > http://us2.php.net/gettext > > Cheers > > Joel De Gan > --------- > http://listbid.com - php freelance > http://broadwords.com - get $10 free advertising for your site From danielc at analysisandsolutions.com Thu Apr 1 12:45:37 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 1 Apr 2004 12:45:37 -0500 Subject: [nycphp-talk] memory_get_usage() on win32 Message-ID: <20040401174537.GA19047@panix.com> Hi Folks: Someon reported a bug in DB about a memory leak (http://pear.php.net/bugs/bug.php?id=1112) Their example uses memory_get_usage(), which isn't enabled on Win32 systems (unless, I guess, I compile my own with the --enable-memory-limit configuration option). Any ideas how I can track memory usage some other way via PHP? Know what, it probably doesn't matter. I've watched the process via the Task Manger's process list (Windows 2000 Pro) and the memory usage doesn't increase even after several itterations of the loop. So he may be having a problem due to his OS/PHP/MySQL combination. Anyone feel like testing it on other platforms? Other thoughts? Thanks, --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 phillip.powell at adnet-sys.com Thu Apr 1 13:28:55 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Thu, 01 Apr 2004 13:28:55 -0500 Subject: [nycphp-talk] automatic translation In-Reply-To: <1080837587.4786.63.camel@bezel> References: <200404011312.42622.henry@beewh.com> <1080837416.4786.57.camel@bezel> <1080837587.4786.63.camel@bezel> Message-ID: <406C5F67.4080109@adnet-sys.com> Problem with most online translators is that they do "machine-level" translation, that is, word-for-word translation, which is impossible to do grammatically correctly from English to Spanish and then from English to Swedish and from English to Japanese, as each language has its own grammatical, syntactical and conjugational construct. Best approach is a "human-level" translation, where via locale-database marrying allows for human translators to enter a phrase into a db that would be pulled according to locale, so that you would have: English: Hello, how are you? Into Swedish: Hej hej, hur mår du? Into Japanese: Ohayo/Konnichiwa/Konbamwa, ikaga desu ka? Do any of the aforementioned PHP tools do human-level translation, that's been something I can't find online, just information on "machine-level" style, which is IMHO a waste of translation. Phil Joel De Gan wrote: >note: I also should note that this is not "automatic" but it is easy >enough to feed your text through babelfish to get at least rough >translations first.. > >-joel > >On Thu, 2004-04-01 at 11:36, Joel De Gan wrote: > > >>Use gettext.. that is what most larger sites with multi-lang sites use. >>works great with php/mysql.. >> >>http://www.gnu.org/software/gettext/ >> >>http://us2.php.net/gettext >> >>Cheers >> >>Joel De Gan >>--------- >>http://listbid.com - php freelance >>http://broadwords.com - get $10 free advertising for your site >> >> > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > From shiflett at php.net Thu Apr 1 13:36:17 2004 From: shiflett at php.net (Chris Shiflett) Date: Thu, 1 Apr 2004 10:36:17 -0800 (PST) Subject: [nycphp-talk] automatic translation In-Reply-To: <406C5F67.4080109@adnet-sys.com> Message-ID: <20040401183617.28193.qmail@web14308.mail.yahoo.com> --- Phillip Powell wrote: > Problem with most online translators is that they do "machine-level" > translation, that is, word-for-word translation That would indeed be a problem, if this were true. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From joel at tagword.com Thu Apr 1 13:58:59 2004 From: joel at tagword.com (Joel De Gan) Date: Thu, 01 Apr 2004 13:58:59 -0500 Subject: [nycphp-talk] automatic translation In-Reply-To: <406C5F67.4080109@adnet-sys.com> References: <200404011312.42622.henry@beewh.com> <1080837416.4786.57.camel@bezel> <1080837587.4786.63.camel@bezel> <406C5F67.4080109@adnet-sys.com> Message-ID: <1080845939.4895.87.camel@bezel> Yes, for one large project (domain name registrar) we had a team of translators who entered the translations for the site so that we could have the entire site in 15 different languages. Be careful with Japanese however as they have seven levels of business formality so if you are running an online business with this it is something to be careful of. Cheers Joel De Gan --------- http://listbid.com - php freelance http://broadwords.com - get $10 free advertising for your site On Thu, 2004-04-01 at 13:28, Phillip Powell wrote: > Problem with most online translators is that they do "machine-level" > translation, that is, word-for-word translation, which is impossible to > do grammatically correctly from English to Spanish and then from English > to Swedish and from English to Japanese, as each language has its own > grammatical, syntactical and conjugational construct. Best approach is > a "human-level" translation, where via locale-database marrying allows > for human translators to enter a phrase into a db that would be pulled > according to locale, so that you would have: > > English: Hello, how are you? > > Into Swedish: Hej hej, hur mår du? > > Into Japanese: Ohayo/Konnichiwa/Konbamwa, ikaga desu ka? > > Do any of the aforementioned PHP tools do human-level translation, > that's been something I can't find online, just information on > "machine-level" style, which is IMHO a waste of translation. > > Phil > > Joel De Gan wrote: > > >note: I also should note that this is not "automatic" but it is easy > >enough to feed your text through babelfish to get at least rough > >translations first.. > > > >-joel > > > >On Thu, 2004-04-01 at 11:36, Joel De Gan wrote: > > > > > >>Use gettext.. that is what most larger sites with multi-lang sites use. > >>works great with php/mysql.. > >> > >>http://www.gnu.org/software/gettext/ > >> > >>http://us2.php.net/gettext > >> > >>Cheers > >> > >>Joel De Gan > >>--------- > >>http://listbid.com - php freelance > >>http://broadwords.com - get $10 free advertising for your site > >> > >> > > > >_______________________________________________ > >talk mailing list > >talk at lists.nyphp.org > >http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From phillip.powell at adnet-sys.com Thu Apr 1 14:00:42 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Thu, 01 Apr 2004 14:00:42 -0500 Subject: [nycphp-talk] automatic translation In-Reply-To: <20040401183617.28193.qmail@web14308.mail.yahoo.com> References: <20040401183617.28193.qmail@web14308.mail.yahoo.com> Message-ID: <406C66DA.8040909@adnet-sys.com> So most PHP-based translators now do human-level translation? Cool! Phil Chris Shiflett wrote: >--- Phillip Powell wrote: > > >>Problem with most online translators is that they do "machine-level" >>translation, that is, word-for-word translation >> >> > >That would indeed be a problem, if this were true. > >Chris > >===== >Chris Shiflett - http://shiflett.org/ > >PHP Security - O'Reilly > Coming Fall 2004 >HTTP Developer's Handbook - Sams > http://httphandbook.org/ >PHP Community Site > http://phpcommunity.org/ >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > From shiflett at php.net Thu Apr 1 14:08:51 2004 From: shiflett at php.net (Chris Shiflett) Date: Thu, 1 Apr 2004 11:08:51 -0800 (PST) Subject: [nycphp-talk] automatic translation In-Reply-To: <406C66DA.8040909@adnet-sys.com> Message-ID: <20040401190851.33011.qmail@web14308.mail.yahoo.com> --- Phillip Powell wrote: > So most PHP-based translators now do human-level translation? Cool! Your logic is flawed: 1. "online translators" == "PHP-based translators" There's more to the Web than PHP. 2. "human-level translation" == everything that's not "word-for-word translation" I think it's safe to assume that there are many different approaches, and "word-for-word translation" is probably the most flawed. This is why you are wrong to suggest that most online translators use this approach. Based on your assumption, I bet you were curious to know why sites like Google only offered translation to/from only a few languages. :-) Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From adam at trachtenberg.com Thu Apr 1 14:20:02 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Thu, 1 Apr 2004 14:20:02 -0500 (EST) Subject: [nycphp-talk] automatic translation In-Reply-To: <20040401190851.33011.qmail@web14308.mail.yahoo.com> References: <20040401190851.33011.qmail@web14308.mail.yahoo.com> Message-ID: On Thu, 1 Apr 2004, Chris Shiflett wrote: > Based on your assumption, I bet you were curious to know why sites like > Google only offered translation to/from only a few languages. :-) Electronic dictionaries for other languages don't exist? -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From phillip.powell at adnet-sys.com Thu Apr 1 14:25:26 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Thu, 01 Apr 2004 14:25:26 -0500 Subject: [nycphp-talk] automatic translation In-Reply-To: <20040401190851.33011.qmail@web14308.mail.yahoo.com> References: <20040401190851.33011.qmail@web14308.mail.yahoo.com> Message-ID: <406C6CA6.3030108@adnet-sys.com> [Quote] I think it's safe to assume that there are many different approaches, and "word-for-word translation" is probably the most flawed. This is why you are wrong to suggest that most online translators use this approach. [/Quote] You assume such a statement and yet call my logic flawed??? I think you're drinking Budweiser, you need to upgrade to premium Czech beers instead, Chris. [Quote] 1. "online translators" == "PHP-based translators" There's more to the Web than PHP. [/Quote] I believe that in the logical debating arena is called "non-sequitur". Since you're going there, so shall I. Upparsning dina svarar! Phil Chris Shiflett wrote: >--- Phillip Powell wrote: > > >>So most PHP-based translators now do human-level translation? Cool! >> >> > >Your logic is flawed: > >1. "online translators" == "PHP-based translators" > >There's more to the Web than PHP. > >2. "human-level translation" == everything that's not "word-for-word >translation" > >I think it's safe to assume that there are many different approaches, and >"word-for-word translation" is probably the most flawed. This is why you >are wrong to suggest that most online translators use this approach. > >Based on your assumption, I bet you were curious to know why sites like >Google only offered translation to/from only a few languages. :-) > >Chris > >===== >Chris Shiflett - http://shiflett.org/ > >PHP Security - O'Reilly > Coming Fall 2004 >HTTP Developer's Handbook - Sams > http://httphandbook.org/ >PHP Community Site > http://phpcommunity.org/ >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > From dmintz at davidmintz.org Thu Apr 1 14:25:20 2004 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 1 Apr 2004 14:25:20 -0500 (EST) Subject: [nycphp-talk] automatic translation In-Reply-To: <20040401190851.33011.qmail@web14308.mail.yahoo.com> References: <20040401190851.33011.qmail@web14308.mail.yahoo.com> Message-ID: At last! A topic I know a little bit about, being a full-time court interpreter (Spanish<>English) for the US District Court, Southern District of New York. If you care about quality, use humans. The state of the machine translation art still isn't up to the task of translating anything but the most simple-minded of texts, and even then it needs to be checked thoroughly by a qualified human. Modern translators have increased their productivity with Computer Assisted Translation (CAT) tools, things that do stuff like sentence memory and terminology database management, watch you work and pop up to offer to continue some sentence you're writing -- think code completion. But that's not Machine Translation (MT). --- David Mintz http://davidmintz.org/ http://sdnyinterpreters.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From jonbaer at jonbaer.net Thu Apr 1 14:22:45 2004 From: jonbaer at jonbaer.net (jon baer) Date: Thu, 1 Apr 2004 14:22:45 -0500 Subject: [nycphp-talk] google's april fools ... Message-ID: <007f01c4181e$eb321530$6400a8c0@thinkpad> anyone catch google's new job offer ... http://www.google.com/jobs/lunar_job.html (i think lol) pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 From shiflett at php.net Thu Apr 1 14:29:18 2004 From: shiflett at php.net (Chris Shiflett) Date: Thu, 1 Apr 2004 11:29:18 -0800 (PST) Subject: [nycphp-talk] automatic translation In-Reply-To: <406C6CA6.3030108@adnet-sys.com> Message-ID: <20040401192918.78109.qmail@web14310.mail.yahoo.com> --- Phillip Powell wrote: > [Quote] > > I think it's safe to assume that there are many different approaches, > and "word-for-word translation" is probably the most flawed. This is > why you are wrong to suggest that most online translators use this > approach. > > [/Quote] > > You assume such a statement and yet call my logic flawed? Indeed: --- Phillip Powell wrote: > Problem with most online translators is that they do "machine-level" > translation, that is, word-for-word translation Short-term memory problem? :-) Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From dmintz at davidmintz.org Thu Apr 1 14:29:48 2004 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 1 Apr 2004 14:29:48 -0500 (EST) Subject: [nycphp-talk] automatic translation In-Reply-To: <406C6CA6.3030108@adnet-sys.com> References: <20040401190851.33011.qmail@web14308.mail.yahoo.com> <406C6CA6.3030108@adnet-sys.com> Message-ID: Yeah, boyeeeeeeee. Bring the flame war! Insult each other in all different languages so that the insulted party has to use some low-end MT tool to try to figure out what the insult was. --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From shiflett at php.net Thu Apr 1 14:34:52 2004 From: shiflett at php.net (Chris Shiflett) Date: Thu, 1 Apr 2004 11:34:52 -0800 (PST) Subject: [nycphp-talk] automatic translation In-Reply-To: Message-ID: <20040401193452.38165.qmail@web14305.mail.yahoo.com> --- David Mintz wrote: > Insult each other in all different languages so that the insulted > party has to use some low-end MT tool to try to figure out what the > insult was. Voc? suga! :-) Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From jeffknight at mac.com Thu Apr 1 14:39:55 2004 From: jeffknight at mac.com (PUTAMARE) Date: Thu, 1 Apr 2004 14:39:55 -0500 Subject: [nycphp-talk] automatic translation In-Reply-To: <20040401193452.38165.qmail@web14305.mail.yahoo.com> References: <20040401193452.38165.qmail@web14305.mail.yahoo.com> Message-ID: <59F027A4-8414-11D8-B24D-000393B9FB36@mac.com> Oh great, don't tell me we're going to start outsourcing insults and flame-wars now too... there goes another skillset. On Apr 1, 2004, at 2:34 PM, Chris Shiflett wrote: > --- David Mintz wrote: >> Insult each other in all different languages so that the insulted >> party has to use some low-end MT tool to try to figure out what the >> insult was. > > Voc? suga! > > :-) > > Chris > Jeff Knight jeff not junkmail at lushmedia.com 212/213-6558 x 203 LUSH media 110 W 40th St #1502 New York, NY 10018 From sklar at sklar.com Thu Apr 1 14:40:36 2004 From: sklar at sklar.com (David Sklar) Date: Thu, 01 Apr 2004 14:40:36 -0500 Subject: [nycphp-talk] automatic translation In-Reply-To: <20040401193452.38165.qmail@web14305.mail.yahoo.com> References: <20040401193452.38165.qmail@web14305.mail.yahoo.com> Message-ID: <406C7034.30907@sklar.com> Chris Shiflett wrote: > --- David Mintz wrote: > >>Insult each other in all different languages so that the insulted >>party has to use some low-end MT tool to try to figure out what the >>insult was. > > > Voc? suga! Oh yeah? Vescere bracis meis! (Do they have the Simpsons on Vatican TV?) David From csnyder at chxo.com Thu Apr 1 14:41:57 2004 From: csnyder at chxo.com (Chris Snyder) Date: Thu, 01 Apr 2004 14:41:57 -0500 Subject: [nycphp-talk] automatic translation In-Reply-To: <20040401193452.38165.qmail@web14305.mail.yahoo.com> References: <20040401193452.38165.qmail@web14305.mail.yahoo.com> Message-ID: <406C7085.6080202@chxo.com> Chris Shiflett wrote: > Voc? suga! Ziehen Sie nicht die trollen. From phillip.powell at adnet-sys.com Thu Apr 1 15:07:05 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Thu, 01 Apr 2004 15:07:05 -0500 Subject: [nycphp-talk] automatic translation In-Reply-To: <20040401192918.78109.qmail@web14310.mail.yahoo.com> References: <20040401192918.78109.qmail@web14310.mail.yahoo.com> Message-ID: <406C7669.70905@adnet-sys.com> No.. you just love to point out my apparent flaws at the expense of your own. It's best to go have a beer now. Phil Chris Shiflett wrote: >--- Phillip Powell wrote: > > >>[Quote] >> >>I think it's safe to assume that there are many different approaches, >>and "word-for-word translation" is probably the most flawed. This is >>why you are wrong to suggest that most online translators use this >>approach. >> >>[/Quote] >> >>You assume such a statement and yet call my logic flawed? >> >> > >Indeed: > >--- Phillip Powell wrote: > > >>Problem with most online translators is that they do "machine-level" >>translation, that is, word-for-word translation >> >> > >Short-term memory problem? :-) > >Chris > >===== >Chris Shiflett - http://shiflett.org/ > >PHP Security - O'Reilly > Coming Fall 2004 >HTTP Developer's Handbook - Sams > http://httphandbook.org/ >PHP Community Site > http://phpcommunity.org/ >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > From jlacey at att.net Thu Apr 1 15:03:25 2004 From: jlacey at att.net (John Lacey) Date: Thu, 01 Apr 2004 13:03:25 -0700 Subject: [nycphp-talk] automatic translation In-Reply-To: <406C7085.6080202@chxo.com> References: <20040401193452.38165.qmail@web14305.mail.yahoo.com> <406C7085.6080202@chxo.com> Message-ID: <406C758D.7060609@att.net> Chris Snyder wrote: > Chris Shiflett wrote: > >> Voc? suga! > > > Ziehen Sie nicht die trollen. > _______________________________________________ ()*&#^%^T @)(*&$&*% From phillip.powell at adnet-sys.com Thu Apr 1 15:07:54 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Thu, 01 Apr 2004 15:07:54 -0500 Subject: [nycphp-talk] automatic translation In-Reply-To: <20040401193452.38165.qmail@web14305.mail.yahoo.com> References: <20040401193452.38165.qmail@web14305.mail.yahoo.com> Message-ID: <406C769A.2070900@adnet-sys.com> Chris Shiflett wrote: >--- David Mintz wrote: > > >>Insult each other in all different languages so that the insulted >>party has to use some low-end MT tool to try to figure out what the >>insult was. >> >> > >Voc? suga! > >:-) > >Chris > > Varfor? Phil >===== >Chris Shiflett - http://shiflett.org/ > >PHP Security - O'Reilly > Coming Fall 2004 >HTTP Developer's Handbook - Sams > http://httphandbook.org/ >PHP Community Site > http://phpcommunity.org/ >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > From phillip.powell at adnet-sys.com Thu Apr 1 15:09:34 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Thu, 01 Apr 2004 15:09:34 -0500 Subject: [nycphp-talk] automatic translation In-Reply-To: <59F027A4-8414-11D8-B24D-000393B9FB36@mac.com> References: <20040401193452.38165.qmail@web14305.mail.yahoo.com> <59F027A4-8414-11D8-B24D-000393B9FB36@mac.com> Message-ID: <406C76FE.6040608@adnet-sys.com> PUTAMARE wrote: > Oh great, don't tell me we're going to start outsourcing insults and > flame-wars now too... there goes another skillset. Nope. Just build a homegrown PHP-based human translation tool to handle insult phrases in multiple languages!! Kiitos, Jumalan siunausta! Phil > > > On Apr 1, 2004, at 2:34 PM, Chris Shiflett wrote: > >> --- David Mintz wrote: >> >>> Insult each other in all different languages so that the insulted >>> party has to use some low-end MT tool to try to figure out what the >>> insult was. >> >> >> Voc? suga! >> >> :-) >> >> Chris >> > Jeff Knight > jeff not junkmail at lushmedia.com > 212/213-6558 x 203 > LUSH media > 110 W 40th St #1502 > New York, NY 10018 > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From felix at bebinary.com Thu Apr 1 15:08:11 2004 From: felix at bebinary.com (felix zaslavskiy) Date: Thu, 1 Apr 2004 15:08:11 -0500 (EST) Subject: [nycphp-talk] memory_get_usage() on win32 In-Reply-To: <20040401174537.GA19047@panix.com> References: <20040401174537.GA19047@panix.com> Message-ID: <34992.69.31.90.22.1080850091.squirrel@www.bebinary.com> I did some test on Linux/mysql4.0.18/php4.3.4 I rewrote the program a bit though , see below. The memory climbed from initial of Virtual 26680 Resident 9460 to Virtual 26796 Resident 9488. So that is 116KB virual mem increas and 28KB resident memory increase. What interesting it climbs gradually for about first 200 iterations and then stops climbing. Also after DB stuff is done and only fake work is done then it does not affect the memory size. I didnt not use memory_get_usage because my php is not compiled for it. I dont think this is a memroy leak because it seems like normal operation of php garbage collection. I would expect the internal tables to grow to some initial size and not be released at all. Just because a reference is unset does not mean php has to release the actual memory. Maybe someone with better internal knowledge of php can understand this better. My modified test program: #!/usr/bin/php -q setFetchMode(DB_FETCHMODE_ASSOC); $count = 0; $ref= null; $row = null; function fake_work(){ $t = array(); for($x=0;$x < 150; $x++){ $t[] = $x + 4 + time() + count($t) - strlen(md5(uniqid(rand()).time())) + rand()%20; } for($x=149; $x >= 0; $x--){ unset($t[$x]); } unset($t); } while($count <= 500) { usleep(5000);//dont go crazy $res=&$db_object->query( "select linkid from test2 where linkid=2" ); $row=&$res->fetchRow(); //this is a dumbed down version, but does the memleak $res->free(); unset($row); unset($res); $count++; //lets do some other fake work fake_work(); echo "tick $count \n"; //echo memory_get_usage()."\n"; } fake_work(); unset($db_object); for($x = 0; $x < 100; $x++) { usleep(5000); fake_work(); } //its kind of useless because it does not let php run echo "end of run sleeping for 5 seconds\n"; sleep(5); ?> > Someon reported a bug in DB about a memory leak > (http://pear.php.net/bugs/bug.php?id=1112) > > Their example uses memory_get_usage(), which isn't enabled on Win32 > systems (unless, I guess, I compile my own with the --enable-memory-limit > configuration option). Any ideas how I can track memory usage some other > way via PHP? > > Know what, it probably doesn't matter. I've watched the process via the > Task Manger's process list (Windows 2000 Pro) and the memory usage doesn't > increase even after several itterations of the loop. So he may be having > a problem due to his OS/PHP/MySQL combination. > > Anyone feel like testing it on other platforms? > > Other thoughts? > > Thanks, > > --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 > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > -- Felix Zaslavskiy felix at bebinary.com (718) 576-1923 http://www.zaslavskiy.net From adam at trachtenberg.com Thu Apr 1 15:11:17 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Thu, 1 Apr 2004 15:11:17 -0500 (EST) Subject: [nycphp-talk] automatic translation In-Reply-To: <406C7034.30907@sklar.com> References: <20040401193452.38165.qmail@web14305.mail.yahoo.com> <406C7034.30907@sklar.com> Message-ID: On Thu, 1 Apr 2004, David Sklar wrote: > (Do they have the Simpsons on Vatican TV?) They have the Simpsons in Montreal and it's in French. It's really eerie hearing the characters with different voices. How do you say D'oh! with a French accent? -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From chendry at nyc.rr.com Thu Apr 1 15:18:45 2004 From: chendry at nyc.rr.com (Christopher Hendry) Date: Thu, 1 Apr 2004 15:18:45 -0500 Subject: [nycphp-talk] automatic translation In-Reply-To: Message-ID: -> -> How do you say D'oh! with a French accent? -> le D'oh! Oui, oui? From tgales at tgaconnect.com Thu Apr 1 15:27:24 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 1 Apr 2004 15:27:24 -0500 Subject: [nycphp-talk] automatic translation In-Reply-To: Message-ID: <003201c41827$be6a1170$e98d3818@oberon1> > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Christopher Hendry > Sent: Thursday, April 01, 2004 3:19 PM > To: NYPHP Talk > Subject: RE: [nycphp-talk] automatic translation > > > -> > -> How do you say D'oh! with a French accent? > -> > > le D'oh! > > Oui, oui? > > Vraiment, pas comme "le d'eau" T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From danielc at analysisandsolutions.com Thu Apr 1 16:12:45 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 1 Apr 2004 16:12:45 -0500 Subject: [nycphp-talk] memory_get_usage() on win32 In-Reply-To: <34992.69.31.90.22.1080850091.squirrel@www.bebinary.com> References: <20040401174537.GA19047@panix.com> <34992.69.31.90.22.1080850091.squirrel@www.bebinary.com> Message-ID: <20040401211245.GA15362@panix.com> Hi Folks: I already thanked Felix directly. Wanted to let y'all know that it turns out the person was using an outdated version of DB. They upgraded and everything is fine. Thanks, --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 mitchy at spacemonkeylabs.com Thu Apr 1 17:40:15 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Thu, 01 Apr 2004 17:40:15 -0500 Subject: [nycphp-talk] automatic translation In-Reply-To: <406C758D.7060609@att.net> References: <20040401193452.38165.qmail@web14305.mail.yahoo.com> <406C7085.6080202@chxo.com> <406C758D.7060609@att.net> Message-ID: <406C9A4F.1010006@spacemonkeylabs.com> John Lacey wrote: > > > Chris Snyder wrote: > >> Chris Shiflett wrote: >> >>> Voc? suga! >> >> >> >> Ziehen Sie nicht die trollen. Heh, I would toss in my favourite Swiss-German insult, but there's no written form. Suffice it to say that the literal translation is "Lick my jacket." Gotta love those Swiss. From southwell at dneba.com Thu Apr 1 17:54:16 2004 From: southwell at dneba.com (Michael Southwell) Date: Thu, 01 Apr 2004 17:54:16 -0500 Subject: [nycphp-talk] automatic translation In-Reply-To: <003201c41827$be6a1170$e98d3818@oberon1> References: <003201c41827$be6a1170$e98d3818@oberon1> Message-ID: <6.0.3.0.2.20040401175343.01ec2650@mail.optonline.net> At 03:27 PM 4/1/2004, you wrote: > > -----Original Message----- > > From: talk-bounces at lists.nyphp.org > > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Christopher Hendry > > Sent: Thursday, April 01, 2004 3:19 PM > > To: NYPHP Talk > > Subject: RE: [nycphp-talk] automatic translation > > > > > > -> > > -> How do you say D'oh! with a French accent? > > -> > > > > le D'oh! > > > > Oui, oui? > > > > > >Vraiment, pas comme "le d'eau" aussi pas comme "le d'euh" >T. Gales & Associates >'Helping People Connect with Technology' > >http://www.tgaconnect.com > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk Michael G. Southwell ================================= DNEBA Enterprises 81 South Road Bloomingdale, NJ 07403-1419 973/492-7873 (voice and fax) southwell at dneba.com http://www.dneba.com ====================================================== From nyphp at enobrev.com Thu Apr 1 18:16:43 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Thu, 1 Apr 2004 18:16:43 -0500 Subject: [nycphp-talk] automatic translation In-Reply-To: <406C9A4F.1010006@spacemonkeylabs.com> Message-ID: Seems like an idea for a really useful web service. A repository for human translations. Get a group of people checking every day for new phrases which could use translation, and eventually have a database of well translated phrases in well.. as many languages as you can get translators. New phrase requests that haven't been translated get added to a list of 'new phrases' to be translated at the moderators next login. Could be very useful for the entire web community. Oh, if I only had time, funding and more beer. Mark From henry at beewh.com Thu Apr 1 20:21:53 2004 From: henry at beewh.com (Henry Ponce) Date: Fri, 2 Apr 2004 01:21:53 +0000 Subject: [nycphp-talk] ringtones... Message-ID: <200404020121.53337.henry@beewh.com> If I were to setup a ringtone service and maybe SMS on my site, could you tell me how it would work? costs?? how Would I put the ringtones onto the site? Would I be charged for each ringtone/SMS sent? if so, how much? Would I have to pay royalties to music companies? If so, how would I do this? I would like customers of my site to be able to just select a tune for their phone on my site and type in their phone number. As always i try this php list for information.....Does anybody have information on such a subject? Thank you, Henry From steven at sohh.com Fri Apr 2 00:41:08 2004 From: steven at sohh.com (Steven Samuel) Date: Fri, 2 Apr 2004 00:41:08 -0500 Subject: [nycphp-talk] ringtones... In-Reply-To: <200404020121.53337.henry@beewh.com> Message-ID: <025e01c41875$204c0630$0300a8c0@STEVEN> It's probably simpler and faster to go through another company that's already doing it. I sell ringtones through 9Square. Regards, Steven Samuel SOHH.com -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Henry Ponce Sent: Thursday, April 01, 2004 8:22 PM To: talk at lists.nyphp.org Subject: [nycphp-talk] ringtones... If I were to setup a ringtone service and maybe SMS on my site, could you tell me how it would work? costs?? how Would I put the ringtones onto the site? Would I be charged for each ringtone/SMS sent? if so, how much? Would I have to pay royalties to music companies? If so, how would I do this? I would like customers of my site to be able to just select a tune for their phone on my site and type in their phone number. As always i try this php list for information.....Does anybody have information on such a subject? Thank you, Henry _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From jonbaer at jonbaer.net Fri Apr 2 00:49:21 2004 From: jonbaer at jonbaer.net (jon baer) Date: Fri, 2 Apr 2004 00:49:21 -0500 Subject: [nycphp-talk] mysql resources question ... (static content) Message-ID: <005601c41876$415b8160$6400a8c0@thinkpad> i think my design in something might have been flawed ... i spent a few days creating a simple DTD/Schema for a site only to go back to a full database and the resources seems to be bogging down the results page w/ alot of queries for single pages ... which is fine since it just started ... but then i realized alot of certain content even though it was relational was pretty boring and static and when it dropped into an archive it was such a "waste" to even have in the db. so the question is if alot of people just leave it for the sake of it being in the database because it should be there or would it be better to dump it all out to XML and parse from there (simple_xml is so fast)? is this a common scenerio? i dont think this is a db vs. xml discussion but rather a "long term thinking" resource strategy question ... thanks for any input ... pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 From danielc at analysisandsolutions.com Fri Apr 2 00:56:20 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 2 Apr 2004 00:56:20 -0500 Subject: [nycphp-talk] mysql resources question ... (static content) In-Reply-To: <005601c41876$415b8160$6400a8c0@thinkpad> References: <005601c41876$415b8160$6400a8c0@thinkpad> Message-ID: <20040402055620.GA11009@panix.com> Hey Jon: On Fri, Apr 02, 2004 at 12:49:21AM -0500, jon baer wrote: > > started ... but then i realized alot of certain content even though it was > relational was pretty boring and static and when it dropped into an archive > it was such a "waste" to even have in the db. Keep stuff in the DB. Who knows what you'll want to do with the data in the long run. Perhaps aggregate your own statistics from them. For server load efficiency, dynamically generate static HTML pages via a cron job. Lata, --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 felix at bebinary.com Fri Apr 2 01:01:01 2004 From: felix at bebinary.com (felix zaslavskiy) Date: Fri, 2 Apr 2004 01:01:01 -0500 (EST) Subject: [nycphp-talk] mysql resources question ... (static content) In-Reply-To: <005601c41876$415b8160$6400a8c0@thinkpad> References: <005601c41876$415b8160$6400a8c0@thinkpad> Message-ID: <36144.69.31.90.22.1080885661.squirrel@www.bebinary.com> If you have stuff in the database that should not be in the database then why just not put it in there in the first place. For example if someone uploads files to a site you may not want to put it in the database but just store the files on the drive as well regular files. No xml needed :) If you really must have all this stuff in the database and your site is slow you can do many things to improve performance. Here is a few things that come to my mind. 1.rewrite queries to make them faster 2.use application caching for example pear::Cache_Lite 3.pregenerate pages, this can be done like a caching too (i think this is the way very busy sites do it) > i think my design in something might have been flawed ... > > i spent a few days creating a simple DTD/Schema for a site only to go back > to a full database and the resources seems to be bogging down the results > page w/ alot of queries for single pages ... which is fine since it just > started ... but then i realized alot of certain content even though it was > relational was pretty boring and static and when it dropped into an > archive > it was such a "waste" to even have in the db. > > so the question is if alot of people just leave it for the sake of it > being > in the database because it should be there or would it be better to dump > it > all out to XML and parse from there (simple_xml is so fast)? is this a > common scenerio? i dont think this is a db vs. xml discussion but rather > a > "long term thinking" resource strategy question ... > > thanks for any input ... > > pgp key: http://www.jonbaer.net/jonbaer.asc > fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > -- Felix Zaslavskiy felix at bebinary.com (718) 576-1923 http://www.zaslavskiy.net From rinaudom at tiscali.it Fri Apr 2 06:41:58 2004 From: rinaudom at tiscali.it (rinaudom at tiscali.it) Date: Fri, 2 Apr 2004 13:41:58 +0200 (CEST) Subject: [nycphp-talk] automatic translation In-Reply-To: <200404011312.42622.henry@beewh.com> References: <200404011312.42622.henry@beewh.com> Message-ID: You were pretty clear while explaining what you need. Once you are done with auto/manual translation (e.g. you got translated text), you may consider to use my GPL software, PanamaSuite (http://panamasuite.sourceforge.net/), which is REALLY useful in order to manage languages. This software assumes you already got translated text; it is ready for 40 preconfigured languages you can manage via the control-panel. All text is stored in database (MySQL for now); each text region is callable via a needle you define for it, e.g.: echo $panamasuite->getText('WELCOME_TEXT'); where `WELCOME_TEXT' is the text displayed in the active language stored in session. Languages can be deactivated (when you still not have a ready translation), modified (modifying, for istance, the text direction, the code page, etc.) and created. Each needle you plan to insert in your PHP application must be mapped in database via the proper control panel. A `security filter' allows you to switch on/off some actions like delete/modify needle. Last version of PanamaSuite is 0.8.0 (Thu Feb 12 16:34:28 CET 2004). Let me know if you find it useful. Matteo Rinaudo From jonbaer at jonbaer.net Fri Apr 2 08:21:57 2004 From: jonbaer at jonbaer.net (jon baer) Date: Fri, 2 Apr 2004 08:21:57 -0500 Subject: [nycphp-talk] what dev classes do *you* take? Message-ID: <007d01c418b5$7cee0f60$6400a8c0@thinkpad> im just curious, besides the excellent RAMP courses offered by NYPHP ;-) does anyone take any classes that they would recommend for keeping up to date on todays technology? - jon pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 From tgales at tgaconnect.com Fri Apr 2 09:08:44 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 2 Apr 2004 09:08:44 -0500 Subject: [nycphp-talk] what dev classes do *you* take? In-Reply-To: <007d01c418b5$7cee0f60$6400a8c0@thinkpad> Message-ID: <001301c418bc$02c5c410$e98d3818@oberon1> NYPHP is in the process of creating some new seminars in PHP related subjects (in addition to RAMP and the two-day training, which is next scheduled for April 19 - 20 ) One such seminar which is under consideration is a 3-hour seminar ( in the evening ) with Chris Shiflett. Some of the topics covered would be material in Chris's upcoming book -- and a preview (not the whole talk) of some material he will be delivering at OSCON in Portland. If anyone would be interested in attending a seminar like this, email training at nyphp.org with 'Security Seminar' in the subject line. Further, if there is some training that you would like to see given by NYPHP, mail your suggestions to the dev list (NYPHP-Development -- dev at lists.nyphp.org) T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of jon baer > Sent: Friday, April 02, 2004 8:22 AM > To: talk at lists.nyphp.org > Subject: [nycphp-talk] what dev classes do *you* take? > > > im just curious, > > besides the excellent RAMP courses offered by NYPHP ;-) does > anyone take any classes that they would recommend for keeping > up to date on todays technology? > > - jon > > pgp key: http://www.jonbaer.net/jonbaer.asc > fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk > From henry at beewh.com Fri Apr 2 06:44:07 2004 From: henry at beewh.com (Henry Ponce) Date: Fri, 2 Apr 2004 11:44:07 +0000 Subject: [nycphp-talk] ringtones... In-Reply-To: <025e01c41875$204c0630$0300a8c0@STEVEN> References: <025e01c41875$204c0630$0300a8c0@STEVEN> Message-ID: <200404021144.07243.henry@beewh.com> Can you give me more information on 9square? I searched for it on google, and didn't come up with any ringtone related site. Thank You, Henry From rahmin at insite-out.com Fri Apr 2 10:42:43 2004 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Fri, 2 Apr 2004 10:42:43 -0500 Subject: [nycphp-talk] php/mysql topica like boards Message-ID: <200404021542.i32Fgh6K028310@webmail4.megamailservers.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From shiflett at php.net Fri Apr 2 11:05:42 2004 From: shiflett at php.net (Chris Shiflett) Date: Fri, 2 Apr 2004 08:05:42 -0800 (PST) Subject: [nycphp-talk] what dev classes do *you* take? In-Reply-To: <007d01c418b5$7cee0f60$6400a8c0@thinkpad> Message-ID: <20040402160542.51404.qmail@web14310.mail.yahoo.com> --- jon baer wrote: > does anyone take any classes that they would recommend for keeping > up to date on todays technology? No, but if I did, I'd probably use this guy: http://www.sklar.com/page/article/training Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From steven at sohh.com Fri Apr 2 11:18:15 2004 From: steven at sohh.com (Steven Samuel) Date: Fri, 2 Apr 2004 11:18:15 -0500 Subject: [nycphp-talk] ringtones... In-Reply-To: <200404021144.07243.henry@beewh.com> Message-ID: <00e201c418ce$20b3f250$0300a8c0@STEVEN> Sorry about that. It was late. I should have been more thorough... http://www.9squared.com Essentially, I find that going through them cuts a lot of cost. 1. Customer Service. Sometimes people don't receive their ringtones and then you have to help them. Depending on the customer, this can take anywhere from 1 hour to a week before it's determined how to solve the problem. 2. Licensing. If you do the tones, you have to contact each label and publishing company to get a license for the songs. You will be paying royalties per song. I can imagine it would get very techinical if you were dealing with songs that contain samples because now you have to contact a third party for music clearance. One thing I like about 9Squared is that it's seamless. My site is http://www.sohh.com and my ringtone site is http://ringtones.sohh.com. 9Square took my template and wrap their content into it. (I have to update it.) On my end, I just send my users e-mails letting them know that I have new ringtones on my site. 9Squared also sells games and other things for the cellphones. For the work I put into it (30 minutes a week), I make a descent buck. From Thomas.Freedman at ubs.com Fri Apr 2 11:47:52 2004 From: Thomas.Freedman at ubs.com (Freedman, Tom S.) Date: Fri, 2 Apr 2004 11:47:52 -0500 Subject: [nycphp-talk] what dev classes do *you* take? Message-ID: I'm curious as well... I'd like to tap my company's training budget, but I don't know whose courses are worthwhile and whose aren't. Any recommendations would be great. -----Original Message----- From: jon baer [mailto:jonbaer at jonbaer.net] Sent: Friday, April 02, 2004 8:22 AM To: talk at lists.nyphp.org Subject: [nycphp-talk] what dev classes do *you* take? im just curious, besides the excellent RAMP courses offered by NYPHP ;-) does anyone take any classes that they would recommend for keeping up to date on todays technology? - jon Please do not transmit orders or instructions regarding a UBS account by email. The information provided in this email or any attachments is not an official transaction confirmation or account statement. For your protection, do not include account numbers, Social Security numbers, credit card numbers, passwords or other non-public information in your email. Because the information contained in this message may be privileged, confidential, proprietary or otherwise protected from disclosure, please notify us immediately by replying to this message and deleting it from your computer if you have received this communication in error. Thank you. UBS Financial Services Inc. UBS International Inc. From adam at trachtenberg.com Fri Apr 2 12:07:30 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Fri, 2 Apr 2004 12:07:30 -0500 (EST) Subject: [nycphp-talk] what dev classes do *you* take? In-Reply-To: References: Message-ID: On Fri, 2 Apr 2004, Freedman, Tom S. wrote: > I'm curious as well... I'd like to tap my company's training budget, but I > don't know whose courses are worthwhile and whose aren't. Any > recommendations would be great. If you're interested in training, please investigate RAMP. RAMP has been on semi-freeze until we can get enough people to sign up for the courses. Alternatively, many of the RAMP instructors are probably willing to do in house training. If you can gather up enough people, this may be worth your while and provide you with greater control over the material and schedule. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From jlacey at att.net Fri Apr 2 12:42:20 2004 From: jlacey at att.net (John Lacey) Date: Fri, 02 Apr 2004 10:42:20 -0700 Subject: [nycphp-talk] what dev classes do *you* take? In-Reply-To: <20040402160542.51404.qmail@web14310.mail.yahoo.com> References: <20040402160542.51404.qmail@web14310.mail.yahoo.com> Message-ID: <406DA5FC.7070304@att.net> seems Amazon has used the Unix epoch for a pub date on David's book :) http://www.amazon.com/exec/obidos/ASIN/1590592808/sklarcom-20/ref%3Dnosim/104-0040151-1239170 yeah, the URL is fugly John Chris Shiflett wrote: > --- jon baer wrote: > >>does anyone take any classes that they would recommend for keeping >>up to date on todays technology? > > > No, but if I did, I'd probably use this guy: > > http://www.sklar.com/page/article/training > > Chris > > ===== > Chris Shiflett - http://shiflett.org/ > > PHP Security - O'Reilly > Coming Fall 2004 > HTTP Developer's Handbook - Sams > http://httphandbook.org/ > PHP Community Site > http://phpcommunity.org/ > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From adam at trachtenberg.com Fri Apr 2 12:45:57 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Fri, 2 Apr 2004 12:45:57 -0500 (EST) Subject: [nycphp-talk] what dev classes do *you* take? In-Reply-To: <406DA5FC.7070304@att.net> References: <20040402160542.51404.qmail@web14310.mail.yahoo.com> <406DA5FC.7070304@att.net> Message-ID: On Fri, 2 Apr 2004, John Lacey wrote: > seems Amazon has used the Unix epoch for a pub date on David's > book :) > > http://www.amazon.com/exec/obidos/ASIN/1590592808/sklarcom-20/ref%3Dnosim/104-0040151-1239170 Even worse, they're using the current value of seconds since epoch as the sales rank. :) I know the book exists, since I have a copy, but I can't swear it's actually made its way to bookstores from the warehouse. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From jlacey at att.net Fri Apr 2 12:48:31 2004 From: jlacey at att.net (John Lacey) Date: Fri, 02 Apr 2004 10:48:31 -0700 Subject: [nycphp-talk] what dev classes do *you* take? In-Reply-To: References: <20040402160542.51404.qmail@web14310.mail.yahoo.com> <406DA5FC.7070304@att.net> Message-ID: <406DA76F.2060505@att.net> too funny... hope David gets a snapshot of that for posterity Adam Maccabee Trachtenberg wrote: > On Fri, 2 Apr 2004, John Lacey wrote: > > >>seems Amazon has used the Unix epoch for a pub date on David's >>book :) >> >>http://www.amazon.com/exec/obidos/ASIN/1590592808/sklarcom-20/ref%3Dnosim/104-0040151-1239170 > > > Even worse, they're using the current value of seconds since epoch as > the sales rank. :) > > I know the book exists, since I have a copy, but I can't swear it's > actually made its way to bookstores from the warehouse. > > -adam > From dyun at blue-iceberg.com Fri Apr 2 13:31:03 2004 From: dyun at blue-iceberg.com (David Yun) Date: Fri, 02 Apr 2004 13:31:03 -0500 Subject: [nycphp-talk] php authentication and .htaccess protection In-Reply-To: <406DA76F.2060505@att.net> Message-ID: I'm working on developing a client extranet, and I'm having trouble with one key conceptual/technical issue. In the past, our company (we do web design) has uploaded client beta sites to .htaccess - protected directories. We sent the client a link to the beta site with a user name and password to login. Now, we want to send all clients to one site where they can login and be directed to a "project status" page that gives them all the latest info on their project and links to beta pages/sites. For this part, I would like to use some sort of session control/authentication. The problem is that the "beta" sites are not necessarily written in php, and we don't want to have to add an authentication script to every page we upload for a client to view and approve. Furthermore, we don't want to make clients login twice - first to the main extranet page, and second to a password-protected directory. Does anyone know a solution to this problem, or know of a way to pass a userid and password from php to the .htaccess protection? Many thanks, Dave ............................................................... David Yun, Production Manager Blue Iceberg LLC Website Development | Strategic Marketing | Business Solutions http://www.blue-iceberg.com Tel: 212.413.9226 Ext.9238 Fax: 212.413.9201 From keremtuzemen at hotmail.com Fri Apr 2 13:50:53 2004 From: keremtuzemen at hotmail.com (Kerem Tuzemen) Date: Fri, 2 Apr 2004 13:50:53 -0500 Subject: [nycphp-talk] php authentication and .htaccess protection References: Message-ID: Hi David, If you don't want to add any extra script(s) to your demo sites codes to control access to them, unfortunately there's no solution for IE users. Since they couldn't fix a bug in IE (which allows people to change the browsed web site's name appearing in the address bar), Microsoft recently (Feb 04) disabled usage of the addresses of the format http://username:password at www.sitename.com in IE. They have been used to pass username and password to webserver for htaccess based authentication the way you wanted to implement. Kerem ----- Original Message ----- From: "David Yun" To: "NYPHP Talk" Sent: Friday, April 02, 2004 1:31 PM Subject: [nycphp-talk] php authentication and .htaccess protection > I'm working on developing a client extranet, and I'm having trouble with one > key conceptual/technical issue. > > In the past, our company (we do web design) has uploaded client beta sites > to .htaccess - protected directories. We sent the client a link to the beta > site with a user name and password to login. Now, we want to send all > clients to one site where they can login and be directed to a "project > status" page that gives them all the latest info on their project and links > to beta pages/sites. For this part, I would like to use some sort of session > control/authentication. > > The problem is that the "beta" sites are not necessarily written in php, and > we don't want to have to add an authentication script to every page we > upload for a client to view and approve. Furthermore, we don't want to make > clients login twice - first to the main extranet page, and second to a > password-protected directory. > > Does anyone know a solution to this problem, or know of a way to pass a > userid and password from php to the .htaccess protection? > > > Many thanks, > Dave > > > ............................................................... > David Yun, Production Manager > Blue Iceberg LLC > Website Development | Strategic Marketing | Business Solutions > http://www.blue-iceberg.com > Tel: 212.413.9226 Ext.9238 Fax: 212.413.9201 > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From csnyder at chxo.com Fri Apr 2 13:44:22 2004 From: csnyder at chxo.com (Chris Snyder) Date: Fri, 02 Apr 2004 13:44:22 -0500 Subject: [nycphp-talk] php authentication and .htaccess protection In-Reply-To: References: Message-ID: <406DB486.1000103@chxo.com> David Yun wrote: >Now, we want to send all >clients to one site where they can login and be directed to a "project >status" page that gives them all the latest info on their project and links >to beta pages/sites. For this part, I would like to use some sort of session >control/authentication. > > Lately I've been using an Apache SetHandler directive to run all requests through a PHP script that sets up the session, handles authentication, and wraps the requested resource in a dynamic header and footer before sending it to the client (with appropriate Content-type and other headers). >The problem is that the "beta" sites are not necessarily written in php, and >we don't want to have to add an authentication script to every page we >upload for a client to view and approve. > This works even if the resource is a Perl or Python or whatever script-- as long as the PHP handler knows (1) that it's a script and (2) how to execute the script, it can deliver the output back to the client. You can use a $_GET var to request the source instead. >Does anyone know a solution to this problem, or know of a way to pass a >userid and password from php to the .htaccess protection? > There is support in PHP for working with Basic Auth, but I find .htaccess/.htpasswd files tedious to maintain. From jonbaer at jonbaer.net Fri Apr 2 13:47:03 2004 From: jonbaer at jonbaer.net (jon baer) Date: Fri, 2 Apr 2004 13:47:03 -0500 Subject: [nycphp-talk] Security PHP meeting idea ... References: <20040323020413.GA13192@panix.com> Message-ID: <001c01c418e2$e3b87a50$6400a8c0@thinkpad> Its been hard to do, Ive tried on my laptop a few times to setup case scenerios with the SecurityFocus/BugTraq lists ... what Im was thinking was a presentation with the "Top 5 PHP Security Blunders from Popular Packages" and actually show (not just tell) why a patch is in order to better understand how not to create the scenerio in the first place. A little like a before and after ... the only problem being that some of the more dangerous areas in XSS and SQLI have to have specific parameters which goes from hacker scanning to exploit itself. I was only able to setup one in which every users hash of phpbb was exposed and brute cracked but Im not sure if that is interesting enough ... - Jon ----- Original Message ----- From: "Daniel Convissor" To: "NYPHP Talk" Sent: Monday, March 22, 2004 9:04 PM Subject: [nycphp-talk] SecurityFocus Newsletter #241 stuff > PHPBB ViewTopic.PHP "postdays" Cross-Site Scripting Vulnerab... > http://www.securityfocus.com/bid/9865 > The usual suspects, plus a few wannabe's... From shiflett at php.net Fri Apr 2 14:05:21 2004 From: shiflett at php.net (Chris Shiflett) Date: Fri, 2 Apr 2004 11:05:21 -0800 (PST) Subject: [nycphp-talk] Security PHP meeting idea ... In-Reply-To: <001c01c418e2$e3b87a50$6400a8c0@thinkpad> Message-ID: <20040402190521.464.qmail@web14302.mail.yahoo.com> --- jon baer wrote: > I was only able to setup one in which every users hash of phpbb was > exposed and brute cracked but Im not sure if that is interesting > enough ... Sounds interesting to me. You want to be the presenter for this month's meeting? :-) Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From dyun at blue-iceberg.com Fri Apr 2 14:05:31 2004 From: dyun at blue-iceberg.com (David Yun) Date: Fri, 02 Apr 2004 14:05:31 -0500 Subject: [nycphp-talk] php authentication and .htaccess protection In-Reply-To: <406DB486.1000103@chxo.com> Message-ID: Thanks, Chris. A couple questions: Chris Snyder wrote: > Lately I've been using an Apache SetHandler directive to run all > requests through a PHP script that sets up the session, handles > authentication, and wraps the requested resource in a dynamic header and > footer before sending it to the client (with appropriate Content-type > and other headers). Okay, so everything in a given directory gets sent through a script that you specify in the SetHandler, right? > This works even if the resource is a Perl or Python or whatever script-- > as long as the PHP handler knows (1) that it's a script and (2) how to > execute the script, it can deliver the output back to the client. You > can use a $_GET var to request the source instead. > Sorry, I don't follow - what is the "resource" you are referring to? Would this work even if the beta site or page is a web application with authentication scripts of its own? >> Does anyone know a solution to this problem, or know of a way to pass a >> userid and password from php to the .htaccess protection? >> > There is support in PHP for working with Basic Auth, but I find > .htaccess/.htpasswd files tedious to maintain. > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From csnyder at chxo.com Fri Apr 2 14:29:43 2004 From: csnyder at chxo.com (Chris Snyder) Date: Fri, 02 Apr 2004 14:29:43 -0500 Subject: [nycphp-talk] php authentication and .htaccess protection In-Reply-To: References: Message-ID: <406DBF27.1020802@chxo.com> David Yun wrote: > Okay, so everything in a given directory gets sent through a script > that you specify in the SetHandler, right? Yep. The downside is that your script has to be smart enough to reimplement the parts of Apache that it's taking over -- directory listings, file metadata (content-type, size, last-modified, etc). >what is the "resource" you are referring to? > Files in websites are resources, from Uniform Resource Locator. >Would >this work even if the beta site or page is a web application with >authentication scripts of its own? > > > Don't know? Don't see why not, though. Perhaps what you really want in that case is to have the site act as a proxy to your development server. From jonbaer at jonbaer.net Fri Apr 2 14:57:32 2004 From: jonbaer at jonbaer.net (jon baer) Date: Fri, 2 Apr 2004 14:57:32 -0500 Subject: [nycphp-talk] Security PHP meeting idea ... References: <20040402190521.464.qmail@web14302.mail.yahoo.com> Message-ID: <003401c418ec$bcd4d5f0$6400a8c0@thinkpad> > > I was only able to setup one in which every users hash of phpbb was > > exposed and brute cracked but Im not sure if that is interesting > > enough ... > > Sounds interesting to me. You want to be the presenter for this month's > meeting? :-) lol im still trying to figure out how the hack works ... but when i do ill email hans an outline, tuesday nights are hard for me to make meetings unfortunatley ... i will try. - jon From dyun at blue-iceberg.com Fri Apr 2 15:05:34 2004 From: dyun at blue-iceberg.com (David Yun) Date: Fri, 02 Apr 2004 15:05:34 -0500 Subject: [nycphp-talk] php authentication and .htaccess protection In-Reply-To: <406DBF27.1020802@chxo.com> Message-ID: Thanks Chris, I'll give it a try... on 4/2/04 2:29 PM, Chris Snyder at csnyder at chxo.com wrote: > David Yun wrote: > >> Okay, so everything in a given directory gets sent through a script >> that you specify in the SetHandler, right? > > Yep. The downside is that your script has to be smart enough to > reimplement the parts of Apache that it's taking over -- directory > listings, file metadata (content-type, size, last-modified, etc). > >> what is the "resource" you are referring to? >> > Files in websites are resources, from Uniform Resource Locator. > >> Would >> this work even if the beta site or page is a web application with >> authentication scripts of its own? >> >> >> > Don't know? Don't see why not, though. > Perhaps what you really want in that case is to have the site act as a > proxy to your development server. > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk ............................................................... David Yun, Production Manager Blue Iceberg LLC Website Development | Strategic Marketing | Business Solutions http://www.blue-iceberg.com Tel: 212.413.9226 Ext.9238 Fax: 212.413.9201 From joel at tagword.com Fri Apr 2 16:09:19 2004 From: joel at tagword.com (Joel De Gan) Date: Fri, 02 Apr 2004 16:09:19 -0500 Subject: [nycphp-talk] php authentication and .htaccess protection In-Reply-To: <406DB486.1000103@chxo.com> References: <406DB486.1000103@chxo.com> Message-ID: <1080940159.4786.105.camel@bezel> I did something like that just today and used this: http://aspn.activestate.com/ASPN/Cookbook/PHP/Recipe/108479 On Fri, 2004-04-02 at 13:44, Chris Snyder wrote: > David Yun wrote: > > >Now, we want to send all > >clients to one site where they can login and be directed to a "project > >status" page that gives them all the latest info on their project and links > >to beta pages/sites. For this part, I would like to use some sort of session > >control/authentication. > > > > > > Lately I've been using an Apache SetHandler directive to run all > requests through a PHP script that sets up the session, handles > authentication, and wraps the requested resource in a dynamic header and > footer before sending it to the client (with appropriate Content-type > and other headers). > > >The problem is that the "beta" sites are not necessarily written in php, and > >we don't want to have to add an authentication script to every page we > >upload for a client to view and approve. > > > > This works even if the resource is a Perl or Python or whatever script-- > as long as the PHP handler knows (1) that it's a script and (2) how to > execute the script, it can deliver the output back to the client. You > can use a $_GET var to request the source instead. > > >Does anyone know a solution to this problem, or know of a way to pass a > >userid and password from php to the .htaccess protection? > > > There is support in PHP for working with Basic Auth, but I find > .htaccess/.htpasswd files tedious to maintain. > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From sklar at sklar.com Fri Apr 2 17:21:53 2004 From: sklar at sklar.com (David Sklar) Date: Fri, 02 Apr 2004 17:21:53 -0500 Subject: [nycphp-talk] what dev classes do *you* take? In-Reply-To: <406DA5FC.7070304@att.net> References: <20040402160542.51404.qmail@web14310.mail.yahoo.com> <406DA5FC.7070304@att.net> Message-ID: <406DE781.3030809@sklar.com> John Lacey wrote: > seems Amazon has used the Unix epoch for a pub date on David's book :) > > http://www.amazon.com/exec/obidos/ASIN/1590592808/sklarcom-20/ref%3Dnosim/104-0040151-1239170 Ha. Yeah, a PHP book with that publication date couldn't even cover exciting new PHP features like the " References: <20040402160542.51404.qmail@web14310.mail.yahoo.com> <406DA5FC.7070304@att.net> <406DE781.3030809@sklar.com> Message-ID: <406DEAD7.10700@chxo.com> David Sklar wrote: > Ha. Yeah, a PHP book with that publication date couldn't even cover > exciting new PHP features like the " References: Message-ID: On Fri, 2 Apr 2004, David Yun wrote: > Thanks, Chris. A couple questions: > > Chris Snyder wrote: > > > Lately I've been using an Apache SetHandler directive to run all > > requests through a PHP script that sets up the session, handles > > authentication, and wraps the requested resource in a dynamic header and > > footer before sending it to the client (with appropriate Content-type > > and other headers). > > Okay, so everything in a given directory gets sent through a script that you > specify in the SetHandler, right? It sounds he wants what I want, a little walk-through, e.g., in high-level pseudo-code, &/or a URL pointing to a tutorial on Apache handlers. Sounds like an interesting (dare I say cool) technique. --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From sklar at sklar.com Fri Apr 2 17:47:16 2004 From: sklar at sklar.com (David Sklar) Date: Fri, 02 Apr 2004 17:47:16 -0500 Subject: [nycphp-talk] what dev classes do *you* take? In-Reply-To: <406DEAD7.10700@chxo.com> References: <20040402160542.51404.qmail@web14310.mail.yahoo.com> <406DA5FC.7070304@att.net> <406DE781.3030809@sklar.com> <406DEAD7.10700@chxo.com> Message-ID: <406DED74.5060501@sklar.com> >> Ha. Yeah, a PHP book with that publication date couldn't even cover >> exciting new PHP features like the " > > > Just a gleam in Rasmus' eye at that point, eh? I think Rasmus was just slightly beyond the "gleam in somebody's eye" stage at that point! David From felix at bebinary.com Fri Apr 2 18:43:52 2004 From: felix at bebinary.com (felix zaslavskiy) Date: Fri, 2 Apr 2004 18:43:52 -0500 (EST) Subject: [nycphp-talk] php authentication and .htaccess protection In-Reply-To: References: <406DBF27.1020802@chxo.com> Message-ID: <36883.69.31.90.22.1080949432.squirrel@www.bebinary.com> >>> Okay, so everything in a given directory gets sent through a script >>> that you specify in the SetHandler, right? >> >> Yep. The downside is that your script has to be smart enough to >> reimplement the parts of Apache that it's taking over -- directory >> listings, file metadata (content-type, size, last-modified, etc). There is an interesting maybe alternative I have not tried it yet. Using mod_fastcgi write a php stand alone script that does authentication/autherization using these directives: FastCgiAccessChecke FastCgiAuthenticator FastCgiAuthorizer This is basicaly a way to plug into the apache basic authentication without implementing a handler. -- Felix Zaslavskiy http://www.zaslavskiy.net From xml at aumcomputers.com Sat Apr 3 06:22:04 2004 From: xml at aumcomputers.com (Anirudh Zala) Date: Sat, 3 Apr 2004 16:52:04 +0530 Subject: [nycphp-talk] automatic translation References: <200404011312.42622.henry@beewh.com> Message-ID: <031101c4196e$6d142430$0164a8c0@aum1> It is not really advisable to use Database for basic things like Static text and Images where you can effectively use File system. Why do we need to store all translations into DB? Suppose a 100 page website containing 50 lines in each page which is to be displayed in 40 languages, count how many database queries you will need to generate to display for 1 connection only. Even if you have proper load balancing applied to your website, it won't be effective solution. For multilingual websites, core problem is displaying Static text and Images which should load dynamically according to selected language. While user defined Data appear as it is. We had similar problem 4-5 years ago when we started developing websites in PHP especially for European countries. And everybody knows how many type of varieties in Languages available in those countries there are. (We have been using Temple-pHp method which keeps GUI and Logic separate.) We solved our problem in following way. We stored all Static text, which we usually keep embedded with coding, into separate Language files like "1.inc, 2.inc, 3.inc" which can be available in any pHp script. While in coding we used variables of corresponding text/words derived from those language files. For example 1 file called welcome.php displays some word like "Hello" but different words in different languages. //English //Spanish //Some Foo language But you know you need to configure your script in such a way that output will be in different language. Hence extract language specific words from your code and place them into 1.inc, 2.inc, 3.inc to N.inc in form of Array values. Here 1,2, 3 to N you can set in form of variable (mostly as Session Variable) for different languages and can include respective language file in your code just like normal pHp code. See example of 1.inc, 2.inc ... 3.inc below. //1.inc //2.inc //3.inc Do not use separate variables for separate values, instead use Arrays, otherwise your stock of variables in mind will exhaust quickly and it may be possible that at the time of developing code you may not find any variables to use :). Advantage of using Array is, you can properly control your all language specific text/words/sentences if required, and some nasty user can't manipulate your original variables by using browser's GET method. (However, mostly it is not possible, but need to take care well) plus you need not worry about unsetting them 1 by 1. Hence, welcome.php becomes like below. You can apply same solution for displaying images dynamically as well. But for that you need to store language specific images into separate folder like by giving name like 1 2 and 3 and, same we used $LANG above, can display images dynamically like below. .... some code... echo ""; .... some code... There are many advantages of using above system like: # As you keep language specific part separate from Code, you can add/edit/modify your text very easily and you need not to worry abuts mix-up of hard coded text and your code. # Just give print out of your primary language to translator for different languages and he/she can write *Effective* translation in his/her language without any problem. # You are avoiding valuable DB connections and consumption of lot of processing power for displaying static text. # This type of translation, as done by Human, gives you power to display type of text/sentences/phrases of your choice without worrying of Computer Assisted Translation (CAT) tools. Remember Machine level Translations can never take place of Human Translations. # You can add/remove as many languages as possible very quickly and in effective manner. Thanks Anirudh Zala ---------------------------------------------------------------------------- -------------------------- Anirudh Zala (Project Manager), Tel: +91 281 2451894 AUM Computers, Gsm: +91 9898 264911 317, Star Plaza, anirudh at aumcomputers.com Rajkot-360001, Gujarat, INDIA http://www.aumcomputers.com ---------------------------------------------------------------------------- -------------------------- ----- Original Message ----- From: To: "NYPHP Talk" Sent: Friday, 02 April, 2004 5:11 PM Subject: Re: [nycphp-talk] automatic translation > You were pretty clear while explaining what you need. > Once you are done with auto/manual translation (e.g. you got translated > text), you may consider to use my GPL software, PanamaSuite > (http://panamasuite.sourceforge.net/), which is REALLY useful in order to > manage languages. This software assumes you already got translated text; > it is ready for 40 preconfigured languages you can manage via the > control-panel. All text is stored in database (MySQL for now); each text > region is callable via a needle you define for it, e.g.: > echo $panamasuite->getText('WELCOME_TEXT'); > where `WELCOME_TEXT' is the text displayed in the active language stored > in session. Languages can be deactivated (when you still not have a ready > translation), modified (modifying, for istance, the text direction, the > code page, etc.) and created. Each needle you plan to insert in your PHP > application must be mapped in database via the proper control panel. A > `security filter' allows you to switch on/off some actions like > delete/modify needle. > Last version of PanamaSuite is 0.8.0 (Thu Feb 12 16:34:28 CET 2004). > Let me know if you find it useful. > > Matteo Rinaudo > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From southwell at dneba.com Sat Apr 3 09:42:27 2004 From: southwell at dneba.com (Michael Southwell) Date: Sat, 03 Apr 2004 09:42:27 -0500 Subject: [nycphp-talk] what dev classes do *you* take? In-Reply-To: References: Message-ID: <6.0.3.0.2.20040403094007.01edb128@mail.optonline.net> At 12:07 PM 4/2/2004, you wrote: >On Fri, 2 Apr 2004, Freedman, Tom S. wrote: > > > I'm curious as well... I'd like to tap my company's training budget, but I > > don't know whose courses are worthwhile and whose aren't. Any > > recommendations would be great. > >If you're interested in training, please investigate RAMP. RAMP has >been on semi-freeze until we can get enough people to sign up for the >courses. As soon as the dust clears from the training scheduled for 19-20 April, the Education Department hopes to get RAMP training back up and running. Check the website http://nyphp.org for information. Michael Southwell VP, Education Department NYPHP michael.southwell at nyphp.org http://nyphp.org/edu From rinaudom at tiscali.it Sat Apr 3 10:27:26 2004 From: rinaudom at tiscali.it (rinaudom at tiscali.it) Date: Sat, 3 Apr 2004 17:27:26 +0200 (CEST) Subject: [nycphp-talk] automatic translation In-Reply-To: <031101c4196e$6d142430$0164a8c0@aum1> References: <200404011312.42622.henry@beewh.com> <031101c4196e$6d142430$0164a8c0@aum1> Message-ID: I think that a file inclusion based solution for translation is a good choice (like phpMyAdmin does, for istance), but a more flexible way is a DB-based solution. In particular (PanamaSuite): 1) The customer who administers his website/application can operate easily with a secure, DB based control-panel which allows him to easily add new languages, TRANSPARENTLY modifying page contens WITHOUT dealing with the code in include files; PanamaSuite was built with usability in mind, so a PanamaSuite based application can be administered by a non-programmer person; 2) the customer has got an internal, DB based search engine which allows him to find quickly what he is searching for thru a transparent DB query; 3) using a database is really better when you need to add a language, WITHOUT UPLOADING ANYTHING, so you don't need to make a folder writeable by the user/group of e.g. Apache; 4) I have built several web applications with PanamaSuite: none of them were slow. 5) when you add a language (a column in the database) and you make it active, the rest of work is made automatically: the selectboxes are auto-populated, you need only to fill with static text the object-contents in database via the USER FRIENDLY control panel. 6) with PanamaSuite you can customize a language as well. Text direction (`ltr' vs `rtl'), codepages etc. It is more flexible IMHO than a filesystem based translation. PLEASE NOTE: PanamaSuite DOES NOT CREATE AUTO-TRANSLATED TEXT. The static text must be inserted MANUALLY. Thanks a lot for your time, Matteo Rinaudo From rinaudom at tiscali.it Sat Apr 3 10:39:00 2004 From: rinaudom at tiscali.it (rinaudom at tiscali.it) Date: Sat, 3 Apr 2004 17:39:00 +0200 (CEST) Subject: [nycphp-talk] PanamaSuite added to GNU/FSF/UNESCO Free Software Directory Message-ID: Hello, PHP netlanders, PanamaSuite was added to GNU/FSF/UNESCO Free Software Directory. Here is the URL: http://www.gnu.org/directory/PanamaSuite.html Greetings, Matteo Rinaudo From danielc at analysisandsolutions.com Sat Apr 3 11:11:51 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sat, 3 Apr 2004 11:11:51 -0500 Subject: [nycphp-talk] automatic translation In-Reply-To: <031101c4196e$6d142430$0164a8c0@aum1> References: <200404011312.42622.henry@beewh.com> <031101c4196e$6d142430$0164a8c0@aum1> Message-ID: <20040403161151.GA25197@panix.com> On Sat, Apr 03, 2004 at 04:52:04PM +0530, Anirudh Zala wrote: > > We stored all Static text, which we usually keep embedded with coding, into > separate Language files like "1.inc, 2.inc, 3.inc" Or to be more clear and simple, use the language codes. ru.inc, en.inc, de.inc... ... snip ... --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 nyphp at enobrev.com Sat Apr 3 19:53:27 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Sat, 3 Apr 2004 19:53:27 -0500 Subject: [nycphp-talk] PHP server app Message-ID: Anyone have experience running a constantly running 'server' app based on php from a linux server? Basically, I'll need to create a socket server, and I'm most proficient with php so would prefer going that route. I wrote about creating a socket server in php before, but I know very little about making it work as a solid and reliable app on linux. What is there to know / research regarding creating a php based server application? Thanks! Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From felix at bebinary.com Sat Apr 3 23:58:48 2004 From: felix at bebinary.com (felix zaslavskiy) Date: Sat, 3 Apr 2004 23:58:48 -0500 (EST) Subject: [nycphp-talk] PHP server app In-Reply-To: References: Message-ID: <38951.69.31.90.22.1081054728.squirrel@www.bebinary.com> > Anyone have experience running a constantly running 'server' app based on > php from a linux server? > There is nothing that techincaly stops php being used that way. There is sockets api's extensions. I dont know which is most stable though. Memory leaks may be a problem. You can certainly do it but be prepared to restart the thing daily. > Basically, I'll need to create a socket server, and I'm most proficient > with > php so would prefer going that route. I wrote about creating a socket > server in php before, but I know very little about making it work as a > solid > and reliable app on linux. > > What is there to know / research regarding creating a php based server > application? > > Thanks! > > Mark > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > -- Felix Zaslavskiy felix at bebinary.com (718) 576-1923 http://www.zaslavskiy.net From joel at tagword.com Sun Apr 4 01:26:39 2004 From: joel at tagword.com (Joel De Gan) Date: Sun, 04 Apr 2004 01:26:39 -0500 Subject: [nycphp-talk] PHP server app In-Reply-To: <38951.69.31.90.22.1081054728.squirrel@www.bebinary.com> References: <38951.69.31.90.22.1081054728.squirrel@www.bebinary.com> Message-ID: <1081059999.4786.133.camel@bezel> On Sat, 2004-04-03 at 23:58, felix zaslavskiy wrote: > > Anyone have experience running a constantly running 'server' app based on > > php from a linux server? > > > > There is nothing that techincaly stops php being used that way. > There is sockets api's extensions. I dont know which is most stable though. > > Memory leaks may be a problem. You can certainly do it but be prepared to > restart the thing daily. Not so, at least not now: http://www.php.net/ChangeLog-4.php#4.3.5 I have had php server/client apps that have run for over a hundred days, and one of those was a forked mailserver I wrote I called honeymail (see http://lucifer.intercosmos.net/index.php?view=honeymail for incomplete source, I never have released the source in full as it was never finished to where I wanted it to be). Another I have written is a bot that scours the soulseek network and populates soulreactor.com.. (but I have not been keeping up on that recently as that one hogs resources as translating peoples 30,000 MP3 collection has a tendency to take up a lot of memory. It ran for two months solid with no problems.) The main issue with people having to restart is that they are not utilizing posix functions. http://us3.php.net/manual/en/ref.posix.php and are trying to run an app in linear mode vs forked mode (such as how apache and mysql run). Anyway, PHP works just fine for a server apps, it not the "preferred" choice for most, but for me, I like it. -Joel De Gan From joel at tagword.com Sun Apr 4 01:30:41 2004 From: joel at tagword.com (Joel De Gan) Date: Sun, 04 Apr 2004 01:30:41 -0500 Subject: [nycphp-talk] using php for bandwidth mangement.. Message-ID: <1081060241.4895.138.camel@bezel> Hi all, I have released another app you may be interested in if you run a server. It is called tLimit and can be found at tlimit.com Basically, using mod_rewite and .htaccess to build a very nice bandwidth limiter 100% in PHP/MySQL with online demo that you can start downloads and view them from the admin section. You can dynamically throttle the downloads and even kill them in real time. Anyway, as always, any thoughts would be appreciated. --------- http://listbid.com - php freelance http://broadwords.com - get $10 free advertising for your site From adam at trachtenberg.com Sun Apr 4 11:12:12 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Sun, 4 Apr 2004 11:12:12 -0400 (EDT) Subject: [nycphp-talk] automatic translation In-Reply-To: <20040403161151.GA25197@panix.com> References: <200404011312.42622.henry@beewh.com> <031101c4196e$6d142430$0164a8c0@aum1> <20040403161151.GA25197@panix.com> Message-ID: On Sat, 3 Apr 2004, Daniel Convissor wrote: > Or to be more clear and simple, use the language codes. > ru.inc, en.inc, de.inc... Better yet, locales: en_US.inc, en_CA.inc, en_UK.inc. If you're going the array route, I actually prefer storing message catalogs as object properties because you get inheritance for free. Then your en_UK catalog can inherit from en_US and just redefine the works the British misspell, like colour and lift, instead of containing an almost complete duplicate of the American catalog. Jim Winstead (of MySQL, AB and also formerly a big PHP guy) is talking about this topic at OSCon this year: http://trainedmonkey.com/entry/1655 -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From felix at bebinary.com Sun Apr 4 12:53:24 2004 From: felix at bebinary.com (felix zaslavskiy) Date: Sun, 4 Apr 2004 12:53:24 -0400 (EDT) Subject: [nycphp-talk] PHP server app In-Reply-To: <1081059999.4786.133.camel@bezel> References: <38951.69.31.90.22.1081054728.squirrel@www.bebinary.com> <1081059999.4786.133.camel@bezel> Message-ID: <38993.69.31.90.22.1081097604.squirrel@www.bebinary.com> >> >> There is nothing that techincaly stops php being used that way. >> There is sockets api's extensions. I dont know which is most stable >> though. >> >> Memory leaks may be a problem. You can certainly do it but be prepared >> to >> restart the thing daily. > > The main issue with people having to restart is that they are not > utilizing posix functions. > http://us3.php.net/manual/en/ref.posix.php and are trying to run an app in > linear mode vs forked mode > (such as how apache and mysql run). > Anyway, PHP works just fine for a server apps, it not the "preferred" > choice for most, but for me, I like it. > -Joel De Gan Ok what you saying is to use a forking server. Can you say why specificaly why non-forking server is bad ? Is it because the thread support is not as good ? -- Felix Zaslavskiy http://www.zaslavskiy.net >From hans not junk at nyphp.com Sun Apr 4 14:20:20 2004 Return-Path: Received: from ehost011-1.exch011.intermedia.net (unknown [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id 197F0A85F7 for ; Sun, 4 Apr 2004 14:20:20 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Sun, 4 Apr 2004 11:20:18 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870132C3BA at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Authorize.Net's AIM Thread-Index: AcQacXvvrQG/uGdCToaB84cpzkMKKg== From: "Hans Zaunere" To: "NYPHP Talk" Subject: [nycphp-talk] Authorize.Net's AIM X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.2 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Apr 2004 18:20:20 -0000 Hi all, There are loads of Authorize.Net AIM scripts out there - some free, and some commercial. Not being able to find really want I wanted, and not willing to shell out money for a script I've never seen the code of, I'll be writing my own. My implementation will be that of a freely available PCOM (http://pcoms.net) and I wanted to ping this list to get some feedback. For those that have used existing Authorize.Net scripts, what has been lacking? What are good points; bad points? After I'm finished with the PCOM and it's operational, I'll post the code to http://pcomd.net so that anyone is welcome to use it. --- Hans Zaunere President New York PHP http://nyphp.org From joel at tagword.com Sun Apr 4 14:55:00 2004 From: joel at tagword.com (Joel De Gan) Date: Sun, 04 Apr 2004 14:55:00 -0400 Subject: [nycphp-talk] PHP server app In-Reply-To: <38993.69.31.90.22.1081097604.squirrel@www.bebinary.com> References: <38951.69.31.90.22.1081054728.squirrel@www.bebinary.com> <1081059999.4786.133.camel@bezel> <38993.69.31.90.22.1081097604.squirrel@www.bebinary.com> Message-ID: <1081104899.4895.176.camel@bezel> > Ok what you saying is to use a forking server. > Can you say why specificaly why non-forking server is bad ? > Is it because the thread support is not as good ? Hey, A forked server is preferred because of the nature of them and ways to have built-in limits. Sure you have to figure out who is the session leader and child/parent relationships, etc but that setup work is worth it. Using shared memory each instantiation of the program can have mutual access to data and if it fails/dies it has no effect on the others. So I guess the answer is encapsulation and that is why they are used in high-end/high user apps like Apache and MySQL. Threading requires more work to set up than forking, and in my opinion forking is more intuitive for the programmer, so therefore is the better option. ***rant below, feel free to ignore*** PHP handles a most if not all of it's own memory clean-up, and for logging I suggest using register_shutdown_function() and have your main logging and cleanup code there. A long time ago, I used to program in ASP and they had a function called option_explicit which if used, makes you declare variables or would spit out errors. I always felt it made you a better programmer as you kind of need to think ahead a bit and once you do that, cleanup is easier as you can look at your declaratives and you know what to empty. In PHP functions like empty http://us3.php.net/manual/en/function.unset.php Serve this. I also suggest setting error_reporting to E_ALL if you are concerned with looking at your code for memory leaks and finding out just how loose your programming style is. At my work, a lot of the newer PHP guys had never worked with any lower level languages and it amazes me that they are missing a lot of the foundation knowledge for how/why things are a certain way. They have no knowledge of certain base functions and only sketchy data structures understanding. But then this is always the way these things go.. (back in my day: snow both ways uphill etc. or the programmer equiv of PDP, punch cards and assembly on green-line paper). Anyway, I digress. /rant On Sun, 2004-04-04 at 12:53, felix zaslavskiy wrote: > >> > >> There is nothing that techincaly stops php being used that way. > >> There is sockets api's extensions. I dont know which is most stable > >> though. > >> > >> Memory leaks may be a problem. You can certainly do it but be prepared > >> to > >> restart the thing daily. > > > > The main issue with people having to restart is that they are not > > utilizing posix functions. > > http://us3.php.net/manual/en/ref.posix.php and are trying to run an app in > > linear mode vs forked mode > > (such as how apache and mysql run). > > Anyway, PHP works just fine for a server apps, it not the "preferred" > > choice for most, but for me, I like it. > > -Joel De Gan > > Ok what you saying is to use a forking server. > Can you say why specificaly why non-forking server is bad ? > Is it because the thread support is not as good ? -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From felix at bebinary.com Sun Apr 4 16:29:01 2004 From: felix at bebinary.com (felix zaslavskiy) Date: Sun, 4 Apr 2004 16:29:01 -0400 (EDT) Subject: [nycphp-talk] PHP server app In-Reply-To: <1081104899.4895.176.camel@bezel> References: <38951.69.31.90.22.1081054728.squirrel@www.bebinary.com><1081059999.4786.133.camel@bezel><38993.69.31.90.22.1081097604.squirrel@www.bebinary.com> <1081104899.4895.176.camel@bezel> Message-ID: <39350.69.31.90.22.1081110541.squirrel@www.bebinary.com> >> Ok what you saying is to use a forking server. >> Can you say why specificaly why non-forking server is bad ? >> Is it because the thread support is not as good ? > > Hey, > A forked server is preferred because of the nature of them and ways to > have built-in limits. Sure you have to figure out who is the session > leader and child/parent relationships, etc but that setup work is worth > it. Using shared memory each instantiation of the program can have > mutual access to data and if it fails/dies it has no effect on the > others. So I guess the answer is encapsulation and that is why they are > used in high-end/high user apps like Apache and MySQL. I like to correct you if I may on this point. I think and correct me if i am wrong that Mysql uses threading as the basis for handling user connections. Apache defaults to prefork mpm but in Apache2 the worker mpm is thread based. I think threading vs forking is open to debate its not a black and white issue although I dont think its even the issue. Usually the debate of this surrounds event based vs threaded. >Threading > requires more work to set up than forking, and in my opinion forking is > more intuitive for the programmer, so therefore is the better option. > > ***rant below, feel free to ignore*** > > PHP handles a most if not all of it's own memory clean-up, and for > logging I suggest using register_shutdown_function() and have your main > logging and cleanup code there. > A long time ago, I used to program in ASP and they had a function called > option_explicit which if used, makes you declare variables or would spit > out errors. I always felt it made you a better programmer as you kind of > need to think ahead a bit and once you do that, cleanup is easier as you > can look at your declaratives and you know what to empty. > > In PHP functions like empty > http://us3.php.net/manual/en/function.unset.php > Serve this. > > I also suggest setting error_reporting to E_ALL if you are concerned > with looking at your code for memory leaks and finding out just how > loose your programming style is. I belive php uses Garbage Collection which is reference count based. If all references to some variable are lost it will be eventually cleaned up. I dont belive unset() is neccessary in PHP code although at times could be useful maybe. > At my work, a lot of the newer PHP guys had never worked with any lower > level languages and it amazes me that they are missing a lot of the > foundation knowledge for how/why things are a certain way. They have no > knowledge of certain base functions and only sketchy data structures > understanding. But then this is always the way these things go.. (back > in my day: snow both ways uphill etc. or the programmer equiv of PDP, > punch cards and assembly on green-line paper). > Anyway, I digress. > > /rant > > On Sun, 2004-04-04 at 12:53, felix zaslavskiy wrote: >> >> >> >> There is nothing that techincaly stops php being used that way. >> >> There is sockets api's extensions. I dont know which is most stable >> >> though. >> >> >> >> Memory leaks may be a problem. You can certainly do it but be >> prepared >> >> to >> >> restart the thing daily. >> > >> > The main issue with people having to restart is that they are not >> > utilizing posix functions. >> > http://us3.php.net/manual/en/ref.posix.php and are trying to run an >> app in >> > linear mode vs forked mode >> > (such as how apache and mysql run). >> > Anyway, PHP works just fine for a server apps, it not the "preferred" >> > choice for most, but for me, I like it. >> > -Joel De Gan >> >> Ok what you saying is to use a forking server. >> Can you say why specificaly why non-forking server is bad ? >> Is it because the thread support is not as good ? > -- > joeldg - developer, Intercosmos media group. > http://lucifer.intercosmos.net > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > -- Felix Zaslavskiy http://www.zaslavskiy.net From nyphp at enobrev.com Sun Apr 4 17:42:05 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Sun, 4 Apr 2004 17:42:05 -0400 Subject: [nycphp-talk] Authorize.Net's AIM In-Reply-To: <41EE526EC2D3C74286415780D3BA9F870132C3BA@ehost011-1.exch011.intermedia.net> Message-ID: Hey Hans, I have an AIM class if you're interested. From danielc at analysisandsolutions.com Sun Apr 4 20:36:34 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sun, 4 Apr 2004 20:36:34 -0400 Subject: [nycphp-talk] automatic translation In-Reply-To: References: <200404011312.42622.henry@beewh.com> <031101c4196e$6d142430$0164a8c0@aum1> <20040403161151.GA25197@panix.com> Message-ID: <20040405003634.GA694@panix.com> On Sun, Apr 04, 2004 at 11:12:12AM -0400, Adam Maccabee Trachtenberg wrote: > > Better yet, locales: > > en_US.inc, en_CA.inc, en_UK.inc. Yeah. Didn't feel like going overboard, though. :) > If you're going the array route, I actually prefer storing message > catalogs as object properties because you get inheritance for > free. Nice idea! --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 jonbaer at jonbaer.net Sun Apr 4 13:24:29 2004 From: jonbaer at jonbaer.net (jon baer) Date: Sun, 4 Apr 2004 13:24:29 -0400 Subject: [nycphp-talk] froogle ... Message-ID: <004801c41a69$b04d9820$6400a8c0@thinkpad> has anyone yet received word on the data streams you need to provide? ive been waiting for like 2 weeks and an email got no response (kinda odd for google), are there any classes in the works for it or anybody also doing anything w/ it so far? - jon pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 From xml at aumcomputers.com Mon Apr 5 00:25:33 2004 From: xml at aumcomputers.com (Anirudh Zala) Date: Mon, 5 Apr 2004 09:55:33 +0530 Subject: [nycphp-talk] automatic translation References: <200404011312.42622.henry@beewh.com><031101c4196e$6d142430$0164a8c0@aum1> Message-ID: <014801c41ac6$0cfc61d0$0164a8c0@aum1> :) ----- Original Message ----- From: To: "NYPHP Talk" Sent: Saturday, 03 April, 2004 8:57 PM Subject: Re: [nycphp-talk] automatic translation > I think that a file inclusion based solution for translation is a good > choice (like phpMyAdmin does, for istance), but a more flexible way is a > DB-based solution. In particular (PanamaSuite): > > 1) The customer who administers his website/application can operate easily > with a secure, DB based control-panel which allows him to easily add new > languages, TRANSPARENTLY modifying page contens WITHOUT dealing with the > code in include files; PanamaSuite was built with usability in mind, so a > PanamaSuite based application can be administered by a non-programmer > person; > > 2) the customer has got an internal, DB based search engine which allows > him to find quickly what he is searching for thru a transparent DB query; > > 3) using a database is really better when you need to add a language, > WITHOUT UPLOADING ANYTHING, so you don't need to make a folder writeable > by the user/group of e.g. Apache; > > 4) I have built several web applications with PanamaSuite: none of them > were slow. > > 5) when you add a language (a column in the database) and you make it > active, the rest of work is made automatically: the selectboxes are > auto-populated, you need only to fill with static text the object-contents > in database via the USER FRIENDLY control panel. > > 6) with PanamaSuite you can customize a language as well. Text direction > (`ltr' vs `rtl'), codepages etc. It is more flexible IMHO than a > filesystem based translation. > PLEASE NOTE: PanamaSuite DOES NOT CREATE AUTO-TRANSLATED TEXT. The static > text must be inserted MANUALLY. > > Thanks a lot for your time, Matteo Rinaudo > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From shiflett at php.net Mon Apr 5 00:28:44 2004 From: shiflett at php.net (Chris Shiflett) Date: Sun, 4 Apr 2004 21:28:44 -0700 (PDT) Subject: [nycphp-talk] froogle ... In-Reply-To: <004801c41a69$b04d9820$6400a8c0@thinkpad> Message-ID: <20040405042844.45048.qmail@web14305.mail.yahoo.com> --- jon baer wrote: > has anyone yet received word on the data streams you need to provide? I haven't submitted any data, but I did notice I'm for sale for $1600.00: http://www.google.com/froogle?q=chris+shiflett+apachecon&btnG=Search+Froogle Those cheap bastards. :-) Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From rinaudom at tiscali.it Mon Apr 5 04:13:33 2004 From: rinaudom at tiscali.it (Matteo Rinaudo) Date: Mon, 5 Apr 2004 10:13:33 +0200 (CEST) Subject: [nycphp-talk] automatic translation In-Reply-To: <014801c41ac6$0cfc61d0$0164a8c0@aum1> References: <200404011312.42622.henry@beewh.com><031101c4196e$6d142430$0164a8c0@aum1> <014801c41ac6$0cfc61d0$0164a8c0@aum1> Message-ID: ;-) From nonreal at nonreal.ro Mon Apr 5 05:13:20 2004 From: nonreal at nonreal.ro (Ovidiu) Date: Mon, 05 Apr 2004 12:13:20 +0300 Subject: [nycphp-talk] php DATE links Message-ID: <200404051213200781.03FCAAE4@mail.nonreal.ro> have to display workin links for 'today', current month, and all ( on a select where i can play with DATETIME ). witch way will be the best for that ? will have to use if (isSet($today)) { query & display } // for today and another if (isSet($month)) { query for month } and another one for all or it a easy way without using 3 if ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From nyphp at enobrev.com Mon Apr 5 08:16:03 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Mon, 5 Apr 2004 08:16:03 -0400 Subject: [nycphp-talk] PHP server app In-Reply-To: <39350.69.31.90.22.1081110541.squirrel@www.bebinary.com> Message-ID: Thank you guys for a whole slew of reference words to go google mad with. Do any of you have some good resoruces on threading, forking, daemons, etc? I've heard of these things before, but only in passing. I'm gettign bits and pieces, but not enough to feel I 'get it'. Mark >From hans not junk at nyphp.com Mon Apr 5 08:42:55 2004 Return-Path: Received: from ehost011-1.exch011.intermedia.net (unknown [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id 8B8DAA8602 for ; Mon, 5 Apr 2004 08:42:55 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] php DATE links Date: Mon, 5 Apr 2004 05:42:53 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870132C48B at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] php DATE links Thread-Index: AcQa7mVOhVgSZ/cFQG6SuX7+RzZxUgAHQuPw From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.2 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2004 12:42:56 -0000 > have to display workin links for 'today', current month, and=20 > all ( on a select where i can play with DATETIME ). witch way=20 > will be the best for that ? > will have to use if (isSet($today)) { query & display } //=20 > for today and another if (isSet($month)) { query for month }=20 > and another one for all or it a easy way without using 3 if ? Three if statements is how I'd do it. H From rinaudom at tiscali.it Mon Apr 5 09:24:49 2004 From: rinaudom at tiscali.it (Matteo Rinaudo) Date: Mon, 5 Apr 2004 15:24:49 +0200 (CEST) Subject: [nycphp-talk] PanamaSuite 0.8.1 is out! Message-ID: Hello all, PanamaSuite 0.8.1 is out! http://panamasuite.sourceforge.net/ Greetings, Matt >From hans not junk at nyphp.com Mon Apr 5 09:29:31 2004 Return-Path: Received: from ehost011-1.exch011.intermedia.net (unknown [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id 57ACEA8602 for ; Mon, 5 Apr 2004 09:29:31 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] Security PHP meeting idea ... Date: Mon, 5 Apr 2004 06:31:14 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870132C4AF at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] Security PHP meeting idea ... Thread-Index: AcQY7NUx3Ei9uHpOR5aVO1oGJyC0mQCJVadQ From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.2 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2004 13:29:31 -0000 > > > I was only able to setup one in which every users hash of phpbb was > > > exposed and brute cracked but Im not sure if that is interesting > > > enough ... > > > > Sounds interesting to me. You want to be the presenter for this month's > > meeting? :-) >=20 > lol im still trying to figure out how the hack works ... but=20 > when i do ill > email hans an outline, tuesday nights are hard for me to make meetings > unfortunatley ... i will try. I definitely like the idea, and there's still nothing lined up for the April meeting. Jon, let me know ASAP if this is something you could organize - and/or potentially have someone else present :) H >From hans not junk at nyphp.com Mon Apr 5 09:38:23 2004 Return-Path: Received: from ehost011-1.exch011.intermedia.net (unknown [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id 99727A8602 for ; Mon, 5 Apr 2004 09:38:23 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] PHP server app Date: Mon, 5 Apr 2004 06:40:03 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870132C4BC at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] PHP server app Thread-Index: AcQag3if5IbKLaEzSN+E4Zi51/t0RAAg6HAgAAL7umA= From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.2 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2004 13:38:24 -0000 > Thank you guys for a whole slew of reference words to go google mad with. > Do any of you have some good resoruces on threading, forking, daemons, etc? > I've heard of these things before, but only in passing. I'm gettign bits > and pieces, but not enough to feel I 'get it'. http://www.ibrado.com/sock-faq/ http://www.erlenstar.demon.co.uk/unix/faq_toc.html And the bible: http://www.yendor.com/programming/unix/apue/apue.html Threads are a little different because they are newer and not standardized. Google for Linux threads, but you don't want threads anyway :) H From danielc at analysisandsolutions.com Mon Apr 5 11:08:37 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Mon, 5 Apr 2004 11:08:37 -0400 Subject: [nycphp-talk] php DATE links In-Reply-To: <200404051213200781.03FCAAE4@mail.nonreal.ro> References: <200404051213200781.03FCAAE4@mail.nonreal.ro> Message-ID: <20040405150837.GA8032@panix.com> Yo Ovidiu: On Mon, Apr 05, 2004 at 12:13:20PM +0300, Ovidiu wrote: > will have to use if (isSet($today)) { query & display } // for today and > another if (isSet($month)) { query for month } and another one for all > or it a easy way without using 3 if ? I'm not completely clear on what you're trying to do. But perhaps it's something like this? if (isset($today) && preg_match('\d{4}-\d{2}-\d{2}', $today)) { $where = " WHERE date='" . $today . "'"; } elseif (isset($month) && preg_match(...similar to above...)) { $where = " WHERE date='" . $month . "'"; } else { $where = ''; } $sql = 'SELECT * FROM calendar' . $where; See you, --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 felix at bebinary.com Mon Apr 5 12:50:00 2004 From: felix at bebinary.com (felix zaslavskiy) Date: Mon, 5 Apr 2004 12:50:00 -0400 (EDT) Subject: [nycphp-talk] PHP server app In-Reply-To: References: <39350.69.31.90.22.1081110541.squirrel@www.bebinary.com> Message-ID: <43315.69.31.90.22.1081183800.squirrel@www.bebinary.com> > Thank you guys for a whole slew of reference words to go google mad with. > Do any of you have some good resoruces on threading, forking, daemons, > etc? > I've heard of these things before, but only in passing. I'm gettign bits > and pieces, but not enough to feel I 'get it'. C use to be the predominant language of choice for server application. The main reason is performance. C++ and Java also are popular because they can provide performance similar to C but better at managing complexity. As natural progression of things people now want to implement server application in scripting languages because performance is not a probelem anymore since machines are so much faster. Peoples time costs more then hardware. I think this is the right direction. We may not see apache being replaced by an implementation in a scripting language maybe for years it will happen eventually. The question is which scripting language to use? In the begining php was not intended to be used that way. It start out as a simple way to add dynamic content to html. But people like php so much they want to use it for everything. This is why we have extensions that wrap basic system function to give us a way to do anything with the language. Threading is really central to some languages ex Java. In php it is not much important except in situations where php runs as a deamon process. Php has not been used that way in general but now it will be used because people like to. Threading has been around for years except its new to php its not new in general. I am still not convinced PHP is the best scripting language for server tasks. There is other options like Perl,Python,Tcl,Ruby etc. Those languages were general purpose langs from the very begining. I wonder what other people think on this. -- Felix Zaslavskiy http://www.zaslavskiy.net From weyrick at roadsend.com Mon Apr 5 13:24:04 2004 From: weyrick at roadsend.com (Shannon Weyrick) Date: Mon, 05 Apr 2004 13:24:04 -0400 Subject: [nycphp-talk] PHP server app In-Reply-To: <43315.69.31.90.22.1081183800.squirrel@www.bebinary.com> References: <39350.69.31.90.22.1081110541.squirrel@www.bebinary.com> <43315.69.31.90.22.1081183800.squirrel@www.bebinary.com> Message-ID: <40719634.60506@roadsend.com> felix zaslavskiy wrote: > As natural progression of things people now want to implement server > application in scripting languages because performance is not a probelem > anymore since machines are so much faster. .. > > The question is which scripting language to use? In the begining php > was not intended to be used that way. It start out as a simple way to > add dynamic content to html. But people like php so much they want to > use it for everything. ... including not only server tasks, but GUI apps (a la php-gtk) and other more general purpose tasks. This is one of the reasons we started the Roadsend PHP Compiler project (www.roadsend.com). There is more and more demand for using PHP as a general purpose programming language. As you mention there are plenty of other languages (scripting or otherwise) one could use to accomplish these things, but nonetheless the demand to do it in PHP is there. Shannon Weyrick From ashaw at iifwp.org Mon Apr 5 16:30:49 2004 From: ashaw at iifwp.org (Allen Shaw) Date: Mon, 5 Apr 2004 16:30:49 -0400 Subject: [nycphp-talk] hairbrained? Message-ID: <001b01c41b4c$e2606890$7801a8c0@iifwp.local> Hi Folks, My boss got an idea. Somebody suggested to him that our underfunded non-profit should start our own web portal full of news headlines and stories related to the issues we deal with, plus lots of news stories we create about our own work. Then, on top of that, we could also do like free email hosting like Yahoo does, and let people check their email online and whatever. Then, also, we could have free web hosting for people who are affiliated with our organization's work, or people who just like the issues we stand for; we give away the hosting service and then we get people to upgrade to a paid service and -- get this! -- we can actually start making money at this, which is good since we certainly need money, and people will probably be okay to pay us since they already agree with our ideals. The department director who brought this up honestly thinks there's potential here. I, on the other hand, honestly believe that probably 50 people in Westchester county independently "discovered" this same "great plan" on the same day as this person, probably also while in the shower or on the toilet. Would anybody out there like to tell me how wonderful this plan is? I'm already looking for ways to talk my boss down off this ledge before he jumps. - Allen -- =========================================================== Allen Shaw ashaw at iifwp.org IIFWP Data and 914.631.1331 x.106 IT Services http://www.iifwp.org From csnyder at chxo.com Mon Apr 5 16:40:03 2004 From: csnyder at chxo.com (Chris Snyder) Date: Mon, 05 Apr 2004 16:40:03 -0400 Subject: [nycphp-talk] hairbrained? In-Reply-To: <001b01c41b4c$e2606890$7801a8c0@iifwp.local> References: <001b01c41b4c$e2606890$7801a8c0@iifwp.local> Message-ID: <4071C423.6090402@chxo.com> Hmmm, remain calm. Running an ISP is not for the feint of heart. It's a great idea if your mission is to provide support for other non-profits and birds-of-a-feather, because then you can devote the time and energy it will take to actually pull that off in a way that doesn't leave a sour taste in everyone's mouth. In other words, your boss will have no trouble providing for all the staff required to form a profitable service provider with 24 hour support. If that's not in your mission statement, then it could still be a middling idea if you know and trust your own ISP and want to form a partnership with them, and they have the ability to cobrand their services. It's sounds like a lousy idea in any other case. Find good hosting and email, then spread the word to friends. But stay out of selling it without a sober assesment of what's involved. (Read up on griefers and trolls and spammers if you need more cynicism.) From Cbielanski at inta.org Mon Apr 5 16:55:38 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Mon, 5 Apr 2004 16:55:38 -0400 Subject: [nycphp-talk] hairbrained? Message-ID: Also, without knowing the scope of your organization, it may be possible that the information you place in a members-only area could be construed as data that affects business across the entire market you are trying to support as an association/organization - down that road lies lawsuits for anti-trust, monopolistic practices, etc. Fun, huh? So yes, based on the fact that you have no budget to properly address this (and hey, if it was a good idea you'd be asking us how to accomplish it, instead of what was asked), I'd steer clear of the nightmare looming overhead... ~Chris > -----Original Message----- > From: Chris Snyder [mailto:csnyder at chxo.com] > Sent: Monday, April 05, 2004 4:40 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] hairbrained? > > > Hmmm, remain calm. Running an ISP is not for the feint of heart. > > It's a great idea if your mission is to provide support for other > non-profits and birds-of-a-feather, because then you can > devote the time > and energy it will take to actually pull that off in a way > that doesn't > leave a sour taste in everyone's mouth. In other words, your > boss will > have no trouble providing for all the staff required to form a > profitable service provider with 24 hour support. > > If that's not in your mission statement, then it could still be a > middling idea if you know and trust your own ISP and want to form a > partnership with them, and they have the ability to cobrand > their services. > > It's sounds like a lousy idea in any other case. Find good > hosting and > email, then spread the word to friends. But stay out of selling it > without a sober assesment of what's involved. (Read up on > griefers and > trolls and spammers if you need more cynicism.) > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From joel at tagword.com Mon Apr 5 17:34:38 2004 From: joel at tagword.com (Joel De Gan) Date: Mon, 05 Apr 2004 17:34:38 -0400 Subject: [nycphp-talk] hairbrained? In-Reply-To: <001b01c41b4c$e2606890$7801a8c0@iifwp.local> References: <001b01c41b4c$e2606890$7801a8c0@iifwp.local> Message-ID: <1081200878.9064.377.camel@bezel> On Mon, 2004-04-05 at 16:30, Allen Shaw wrote: > Would anybody out there like to tell me how wonderful this plan is? I'm > already looking for ways to talk my boss down off this ledge before he > jumps. > > - Allen I would say your boss, "ask yourself these questions.": 1) Is it reinventing the wheel? 2) Will it really make money? 3) How many other sites are doing 'exactly' this same thing? 4) Is it worth the investment of time and resources, will your return recoup this investment quickly? 5) Are you prepared to invest a lot in advertising to bring the people. 6) Overall, what can you give people that they cannot get elsewhere. Just some ideas that I would bring up in a meeting for a "portal" site. -Joel De Gan From ashaw at iifwp.org Mon Apr 5 17:39:48 2004 From: ashaw at iifwp.org (Allen Shaw) Date: Mon, 5 Apr 2004 17:39:48 -0400 Subject: [nycphp-talk] hairbrained? References: <001b01c41b4c$e2606890$7801a8c0@iifwp.local> <1081200878.9064.377.camel@bezel> Message-ID: <003401c41b56$8570dc00$7801a8c0@iifwp.local> Yeah, I believe he actually knows he doesn't have these answers, he's probably hoping I have some ideas. I think that some of us in the non-profit world hold on to the concept that like-minded people will be willing to part with money for some particular product or service just because we're a "good cause." I personally believe that's a weak position. I think for this I just need to get some clear black-and-white sample numbers together, do the math for him, write down the hard questions, and then give it back to him and let him take it where he wants. Unfortunately I claim zero business accumen, and I have never even looked into a project like this. If anybody wants to suggest some keywords for googling or maybe a link to somebody's experiences with this kind of thing, that would be a good starting place, and anyway he may be satisfied with whatever I come up with out of my own common sense and a little imagination. Thanks, Allen ----- Original Message ----- From: "Joel De Gan" > I would say your boss, "ask yourself these questions.": > > 1) Is it reinventing the wheel? > 2) Will it really make money? > 3) How many other sites are doing 'exactly' this same thing? > 4) Is it worth the investment of time and resources, will your return recoup this investment quickly? > 5) Are you prepared to invest a lot in advertising to bring the people. > 6) Overall, what can you give people that they cannot get elsewhere. > > Just some ideas that I would bring up in a meeting for a "portal" site. > > -Joel De Gan From tgales at tgaconnect.com Mon Apr 5 20:09:18 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Mon, 5 Apr 2004 20:09:18 -0400 Subject: [nycphp-talk] (no subject) Message-ID: <002101c41b6b$6835e670$e98d3818@oberon1> At the Linux User & Developer Expo coming up in London on April 20 & 21 http://www.linuxuser.co.uk/expo/index.php?option=content&task=blogsection& id=8&Itemid=87 The finalists in the category of Best Linux or Open Source Software are: (alphbetically I guess) eGroupWare Firebird SQL KDE Mambo Open Source Two of the finalists were implemented with PHP T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From mitchy at spacemonkeylabs.com Mon Apr 5 21:16:24 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Mon, 05 Apr 2004 21:16:24 -0400 Subject: [nycphp-talk] (no subject) In-Reply-To: <002101c41b6b$6835e670$e98d3818@oberon1> References: <002101c41b6b$6835e670$e98d3818@oberon1> Message-ID: <407204E8.4010306@spacemonkeylabs.com> Tim Gales wrote: >At the Linux User & Developer Expo >coming up in London on April 20 & 21 >http://www.linuxuser.co.uk/expo/index.php?option=content&task=blogsection& >id=8&Itemid=87 > >The finalists in the category >of Best Linux or Open Source Software are: >(alphbetically I guess) > >eGroupWare >Firebird SQL >KDE >Mambo Open Source > >Two of the finalists were implemented with PHP > ...and one of them has a core developer right on this very list ;^P From chubbard at next-online.net Mon Apr 5 20:24:38 2004 From: chubbard at next-online.net (Chris Hubbard) Date: Mon, 5 Apr 2004 17:24:38 -0700 Subject: [nycphp-talk] hairbrained? In-Reply-To: <003401c41b56$8570dc00$7801a8c0@iifwp.local> References: <001b01c41b4c$e2606890$7801a8c0@iifwp.local> <1081200878.9064.377.camel@bezel> <003401c41b56$8570dc00$7801a8c0@iifwp.local> Message-ID: The other angle on this. If it would make money, and it's highly unlikely, and it's got a sufficiently low barrier to entry that your "average" NPO could implement it, then there would be hundreds / thousands of organizations doing this. Free email hosting is a bad idea. You will loose money doing free email hosting. If I was you, I'd ask the boss to state how much s/he is currently spending for a similar service. If the answer is 0 then there's your hard data. If the answer is more than 0, then you can do the work to realize that this would be a big hole in the ground that sucks in money and returns headaches. I have started and run and ISP (not currently doing this) I have started and run a web hosting (not currently doing this) You're not going to make money offering either of the two services. If the content you create is valuable, then you *might* be able to sell it. *might*. Chris On Apr 5, 2004, at 2:39 PM, Allen Shaw wrote: > Yeah, I believe he actually knows he doesn't have these answers, he's > probably hoping I have some ideas. I think that some of us in the > non-profit world hold on to the concept that like-minded people will be > willing to part with money for some particular product or service just > because we're a "good cause." I personally believe that's a weak > position. > > I think for this I just need to get some clear black-and-white sample > numbers together, do the math for him, write down the hard questions, > and > then give it back to him and let him take it where he wants. > Unfortunately > I claim zero business accumen, and I have never even looked into a > project > like this. If anybody wants to suggest some keywords for googling or > maybe > a link to somebody's experiences with this kind of thing, that would > be a > good starting place, and anyway he may be satisfied with whatever I > come up > with out of my own common sense and a little imagination. > > Thanks, > Allen > > ----- Original Message ----- > From: "Joel De Gan" >> I would say your boss, "ask yourself these questions.": >> >> 1) Is it reinventing the wheel? >> 2) Will it really make money? >> 3) How many other sites are doing 'exactly' this same thing? >> 4) Is it worth the investment of time and resources, will your return > recoup this investment quickly? >> 5) Are you prepared to invest a lot in advertising to bring the >> people. >> 6) Overall, what can you give people that they cannot get elsewhere. >> >> Just some ideas that I would bring up in a meeting for a "portal" >> site. >> >> -Joel De Gan > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > Chris Hubbard chubbard at next-online.net 425 563 4153 From felix at bebinary.com Mon Apr 5 20:59:51 2004 From: felix at bebinary.com (felix zaslavskiy) Date: Mon, 5 Apr 2004 20:59:51 -0400 (EDT) Subject: [nycphp-talk] hairbrained? In-Reply-To: <001b01c41b4c$e2606890$7801a8c0@iifwp.local> References: <001b01c41b4c$e2606890$7801a8c0@iifwp.local> Message-ID: <43898.69.31.90.22.1081213191.squirrel@www.bebinary.com> You can't do what yahoo or hotmail does. If you are google you can. You can setup a single email server it will be able to service a couple hundred or more accounts and possibly also web hosting. You will have to pay for server and bandwidth. Server+RAID ~ 2K (dont get cheap on RAID) Bandwidth ~ $100/month Make sure to give the account to people your org knows in person or else you will get spammers. You will need someone tending to the server because some user may catch one of those nasty Windows worms and someone needs to be there to disable their account. Additionaly patching need and other admin taks need done. At small scale there is nothing wrong with doing this service. At Yahoo level that is just dreams. > Hi Folks, > > My boss got an idea. Somebody suggested to him that our underfunded > non-profit should start our own web portal full of news headlines and > stories related to the issues we deal with, plus lots of news stories we > create about our own work. Then, on top of that, we could also do like > free > email hosting like Yahoo does, > and let people check their email online and > whatever. Then, also, we could have free web hosting for people who are > affiliated with our organization's work, or people who just like the > issues > we stand for; we give away the hosting service and then we get people to > upgrade to a paid service and -- get this! -- we can actually start making > money at this, which is good since we certainly need money, and people > will > probably be okay to pay us since they already agree with our ideals. > > The department director who brought this up honestly thinks there's > potential here. I, on the other hand, honestly believe that probably 50 > people in Westchester county independently "discovered" this same "great > plan" on the same day as this person, probably also while in the shower or > on the toilet. > > Would anybody out there like to tell me how wonderful this plan is? I'm > already looking for ways to talk my boss down off this ledge before he > jumps. > > - Allen > > -- > =========================================================== > Allen Shaw ashaw at iifwp.org > IIFWP Data and 914.631.1331 x.106 > IT Services http://www.iifwp.org > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > -- Felix Zaslavskiy felix at bebinary.com (718) 576-1923 http://www.zaslavskiy.net From danielc at analysisandsolutions.com Mon Apr 5 22:42:13 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Mon, 5 Apr 2004 22:42:13 -0400 Subject: [nycphp-talk] hairbrained? In-Reply-To: <001b01c41b4c$e2606890$7801a8c0@iifwp.local> References: <001b01c41b4c$e2606890$7801a8c0@iifwp.local> Message-ID: <20040406024213.GA14345@panix.com> On Mon, Apr 05, 2004 at 04:30:49PM -0400, Allen Shaw wrote: Let's see... How is an "underfunded non-profit" going to pay for the hundreds and hundreds of hours of programming to pull off, plus endless time to support and maintain? Good news and a repository of good articles/research is good for building traffic and getting known. Don't bet on it making money itself, but it could be viewed as an "advertising" "cost." --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 jonbaer at jonbaer.net Tue Apr 6 14:13:48 2004 From: jonbaer at jonbaer.net (jon baer) Date: Tue, 6 Apr 2004 14:13:48 -0400 Subject: [nycphp-talk] phpAdsNew Message-ID: <000501c41c02$e8e6ab00$6400a8c0@thinkpad> is anyone using this package? i installed and played around with it this weekend and was pretty impressed, im tinkering around with it to do adsense-like stuff and analyze profiles for ad keywords ... the installation step on this program was top notch (a little generic but user friendly) ... - jon pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 From pete at npgroup.net Tue Apr 6 14:35:40 2004 From: pete at npgroup.net (Pete Czech - New Possibilities Group, LLC) Date: Tue, 6 Apr 2004 14:35:40 -0400 Subject: [nycphp-talk] phpAdsNew References: <000501c41c02$e8e6ab00$6400a8c0@thinkpad> Message-ID: <007301c41c05$f6c3fc70$0c00a8c0@dimension1> I used that.. does it still add one record per adview to your DB? That adds up after a while.. beware! Cheers, Pete Czech ----- Original Message ----- From: "jon baer" To: Sent: Tuesday, April 06, 2004 2:13 PM Subject: [nycphp-talk] phpAdsNew > is anyone using this package? > > i installed and played around with it this weekend and was pretty impressed, > im tinkering around with it to do adsense-like stuff and analyze profiles > for ad keywords ... the installation step on this program was top notch (a > little generic but user friendly) ... > > - jon > > pgp key: http://www.jonbaer.net/jonbaer.asc > fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From suzerain at suzerain.com Tue Apr 6 14:48:58 2004 From: suzerain at suzerain.com (Marc Antony Vose) Date: Tue, 6 Apr 2004 14:48:58 -0400 Subject: [nycphp-talk] phpMyadmin's dumps won't import into...phpMyAdmin? In-Reply-To: <007301c41c05$f6c3fc70$0c00a8c0@dimension1> References: <000501c41c02$e8e6ab00$6400a8c0@thinkpad> <007301c41c05$f6c3fc70$0c00a8c0@dimension1> Message-ID: Hey there. I am having a frustrating time just moving a site between two servers to which I have no SSH access. So, I have to do all the MySQL stuff through phpMyAdmin. Thing is, phpMyAdmin is dumping things in a format that it itself cannot read! It is not quoting timestamp field values, so the attempt at reimporting through the SQL command feature in phpMyAdmin fails. Am I missing some really obvious option or something? -- Marc Antony Vose http://www.suzerain.com/ "I can imagine a world without war, a world without hate. And I can imagine us attacking that world, because they'd never expect it." - Unknown From yury at heavenspa.com Tue Apr 6 14:48:37 2004 From: yury at heavenspa.com (yury at heavenspa.com) Date: Tue, 6 Apr 2004 14:48:37 -0400 Subject: [nycphp-talk] phpMyadmin's dumps won't import into...phpMyAdmin? References: <000501c41c02$e8e6ab00$6400a8c0@thinkpad><007301c41c05$f6c3fc70$0c00a8c0@dimension1> Message-ID: <00c301c41c07$c553d190$0400a8c0@heavenspanyc> I've had similar issues reuploading the sql from a dump.. try to paste in sections at a time, instead of the whole *.SQL file. hth regards yury ----- Original Message ----- From: "Marc Antony Vose" To: "NYPHP Talk" Sent: Tuesday, April 06, 2004 2:48 PM Subject: [nycphp-talk] phpMyadmin's dumps won't import into...phpMyAdmin? > Hey there. > > I am having a frustrating time just moving a site between two servers > to which I have no SSH access. So, I have to do all the MySQL stuff > through phpMyAdmin. > > Thing is, phpMyAdmin is dumping things in a format that it itself cannot read! > > It is not quoting timestamp field values, so the attempt at > reimporting through the SQL command feature in phpMyAdmin fails. > > Am I missing some really obvious option or something? > > -- > Marc Antony Vose > http://www.suzerain.com/ > > "I can imagine a world without war, a world without hate. And I can > imagine us attacking that world, because they'd never expect it." > - Unknown > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From jonbaer at jonbaer.net Tue Apr 6 14:40:17 2004 From: jonbaer at jonbaer.net (jon baer) Date: Tue, 6 Apr 2004 14:40:17 -0400 Subject: [nycphp-talk] phpMyadmin's dumps won't import into...phpMyAdmin? References: <000501c41c02$e8e6ab00$6400a8c0@thinkpad><007301c41c05$f6c3fc70$0c00a8c0@dimension1> Message-ID: <004101c41c06$9b89d720$6400a8c0@thinkpad> Im not sure which version you are using, I had same issues w/ comments before, might be worth it to upgrade to latest ... but there are 2 options (and some debug options): [ x ] Enclose table and field names with backquotes [ x ] Complete inserts - Jon ----- Original Message ----- From: "Marc Antony Vose" To: "NYPHP Talk" Sent: Tuesday, April 06, 2004 2:48 PM Subject: [nycphp-talk] phpMyadmin's dumps won't import into...phpMyAdmin? > Hey there. > > I am having a frustrating time just moving a site between two servers > to which I have no SSH access. So, I have to do all the MySQL stuff > through phpMyAdmin. > > Thing is, phpMyAdmin is dumping things in a format that it itself cannot read! > > It is not quoting timestamp field values, so the attempt at > reimporting through the SQL command feature in phpMyAdmin fails. > > Am I missing some really obvious option or something? > > -- > Marc Antony Vose > http://www.suzerain.com/ > > "I can imagine a world without war, a world without hate. And I can > imagine us attacking that world, because they'd never expect it." > - Unknown > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From jonbaer at jonbaer.net Tue Apr 6 14:41:29 2004 From: jonbaer at jonbaer.net (jon baer) Date: Tue, 6 Apr 2004 14:41:29 -0400 Subject: [nycphp-talk] phpAdsNew References: <000501c41c02$e8e6ab00$6400a8c0@thinkpad> <007301c41c05$f6c3fc70$0c00a8c0@dimension1> Message-ID: <004f01c41c06$c6963210$6400a8c0@thinkpad> Unfortunaltey I think it does do some funky stuff as you need to run a maintainence cronjob every hour ... :-\ - Jon ----- Original Message ----- From: "Pete Czech - New Possibilities Group, LLC" To: "NYPHP Talk" Sent: Tuesday, April 06, 2004 2:35 PM Subject: Re: [nycphp-talk] phpAdsNew > I used that.. does it still add one record per adview to your DB? That adds > up after a while.. beware! > From steven at sohh.com Tue Apr 6 15:03:25 2004 From: steven at sohh.com (Steven Samuel) Date: Tue, 6 Apr 2004 15:03:25 -0400 Subject: [nycphp-talk] phpAdsNew In-Reply-To: <004f01c41c06$c6963210$6400a8c0@thinkpad> Message-ID: <007101c41c09$dca76da0$0300a8c0@STEVEN> Most program run a maintainence job every so often. Big deal. The question is WHAT IS BETTER THAN PHPADSNEW that you can get for a descent price? S -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of jon baer Sent: Tuesday, April 06, 2004 2:41 PM To: NYPHP Talk Subject: Re: [nycphp-talk] phpAdsNew Unfortunaltey I think it does do some funky stuff as you need to run a maintainence cronjob every hour ... :-\ - Jon ----- Original Message ----- From: "Pete Czech - New Possibilities Group, LLC" To: "NYPHP Talk" Sent: Tuesday, April 06, 2004 2:35 PM Subject: Re: [nycphp-talk] phpAdsNew > I used that.. does it still add one record per adview to your DB? > That adds > up after a while.. beware! > _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk >From hans not junk at nyphp.com Tue Apr 6 15:35:36 2004 Return-Path: Received: from ehost011-1.exch011.intermedia.net (unknown [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id DB5AEA85E9 for ; Tue, 6 Apr 2004 15:35:35 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] phpAdsNew Date: Tue, 6 Apr 2004 12:35:32 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870142789F at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] phpAdsNew Thread-Index: AcQcCauttfr8+ffyQiars/h1eu+1xAABIWLw From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.2 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2004 19:35:36 -0000 > Most program run a maintainence job every so often. > > Big deal. > > The question is WHAT IS BETTER THAN PHPADSNEW that you can get for a > descent price? NYPHP originally implemented this, and it turned out not to be viable... even for the traffic we were getting at the time. It's quite possible it's improved since then... What's better? Nothing that we could find, and thus there's been a long standing project to build a better one. NYPHP... now accepting project managers for development projects like this... H From adam at trachtenberg.com Tue Apr 6 15:44:56 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Tue, 6 Apr 2004 15:44:56 -0400 (EDT) Subject: [nycphp-talk] phpMyadmin's dumps won't import into...phpMyAdmin? In-Reply-To: References: <000501c41c02$e8e6ab00$6400a8c0@thinkpad> <007301c41c05$f6c3fc70$0c00a8c0@dimension1> Message-ID: On Tue, 6 Apr 2004, Marc Antony Vose wrote: > Thing is, phpMyAdmin is dumping things in a format that it itself cannot read! >From what I've heard, (I don't use the program) phpMyAdmin has it's own MySQL parser because you can't dump multiple SQL statements to MySQL using it's client API. This is fixed in PHP 5/MySQL 4.1/mysqli, so eventually this problem will go away. In the meantime, I would try feeding in chunks bit-by-bit, seeing where the SQL causes a barf, and looking if there's something obvious you can fix. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From steven at sohh.com Tue Apr 6 15:52:16 2004 From: steven at sohh.com (Steven Samuel) Date: Tue, 6 Apr 2004 15:52:16 -0400 Subject: [nycphp-talk] phpAdsNew In-Reply-To: <41EE526EC2D3C74286415780D3BA9F870142789F@ehost011-1.exch011.intermedia.net> Message-ID: <008f01c41c10$b002e250$0300a8c0@STEVEN> See, IMO, an ad server would have to save the impressions a row at a time because of how you want the information queried at the end of the day. -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Hans Zaunere Sent: Tuesday, April 06, 2004 3:36 PM To: NYPHP Talk Subject: RE: [nycphp-talk] phpAdsNew > Most program run a maintainence job every so often. > > Big deal. > > The question is WHAT IS BETTER THAN PHPADSNEW that you can get for a > descent price? NYPHP originally implemented this, and it turned out not to be viable... even for the traffic we were getting at the time. It's quite possible it's improved since then... What's better? Nothing that we could find, and thus there's been a long standing project to build a better one. NYPHP... now accepting project managers for development projects like this... H _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From jonbaer at jonbaer.net Tue Apr 6 15:48:19 2004 From: jonbaer at jonbaer.net (jon baer) Date: Tue, 6 Apr 2004 15:48:19 -0400 Subject: [nycphp-talk] phpAdsNew References: <008f01c41c10$b002e250$0300a8c0@STEVEN> Message-ID: <005801c41c10$1c841850$6400a8c0@thinkpad> This was exactly like my question in which it pertains to data which becomes extremely static over time in which case does it make sense that your DB is filling up on your storage vs. having your static files fill up on you. >>> I used that.. does it still add one record per adview to your DB? That adds up after a while.. beware! <<< - Jon ----- Original Message ----- From: "Steven Samuel" To: "'NYPHP Talk'" Sent: Tuesday, April 06, 2004 3:52 PM Subject: RE: [nycphp-talk] phpAdsNew See, IMO, an ad server would have to save the impressions a row at a time because of how you want the information queried at the end of the day. From suzerain at suzerain.com Tue Apr 6 16:07:58 2004 From: suzerain at suzerain.com (Marc Antony Vose) Date: Tue, 6 Apr 2004 16:07:58 -0400 Subject: [nycphp-talk] phpMyadmin's dumps won't import into...phpMyAdmin? In-Reply-To: References: <000501c41c02$e8e6ab00$6400a8c0@thinkpad> <007301c41c05$f6c3fc70$0c00a8c0@dimension1> Message-ID: Hey guys: I don't think I was clear enough in my original email: I know what the problem is. phpMyAdmin isn't spitting out INSERT statements that MySQL accepts. It is spitting out this: INSERT INTO `cat_49` (`cat_49_id`, `cat_49_content_area`, `cat_49_parent`, `cat_49_name`, `cat_49_description`, `cat_49_sort_num`, `cat_49_active`, `cat_49_added`, `cat_49_updated`) VALUES (1, 49, 0, 0x414652494341, '', 0, 'y', '2004-01-05 09:34:22', 2004-01-06 13:03:44); Notice that the last field, a timestamp field, is not quoted. Even if I just paste ONE of these INSERTs into phpMyAdmin on the other side, it fails. If I quote the timestamp value, it works. I have all the options I can find set to quote things. I even looked through the config file. Isn't this a bug? I guess my only option is to just grep search and replace, or wade through the phpMyAdmin source and change how it dumps timestamp fields. I am dealing with the latest "stable" version of phpMyAdmin, which I downloaded and installed today. It is 2.5.6. Marc >On Tue, 6 Apr 2004, Marc Antony Vose wrote: > >> Thing is, phpMyAdmin is dumping things in a format that it itself >>cannot read! > >>From what I've heard, (I don't use the program) phpMyAdmin has it's >own MySQL parser because you can't dump multiple SQL statements to >MySQL using it's client API. > >This is fixed in PHP 5/MySQL 4.1/mysqli, so eventually this problem >will go away. In the meantime, I would try feeding in chunks >bit-by-bit, seeing where the SQL causes a barf, and looking if there's >something obvious you can fix. > >-adam > >-- >adam at trachtenberg.com >author of o'reilly's php cookbook >avoid the holiday rush, buy your copy today! >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk >From hans not junk at nyphp.com Tue Apr 6 16:11:28 2004 Return-Path: Received: from ehost011-1.exch011.intermedia.net (unknown [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id 1E7A4A85F7 for ; Tue, 6 Apr 2004 16:11:28 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] phpAdsNew Date: Tue, 6 Apr 2004 13:11:25 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F87014278D3 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] phpAdsNew Thread-Index: AcQcEIKIOtOQT7YoS3mZT9b7L9y47wAAlpkw From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.2 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2004 20:11:28 -0000 > See, IMO, an ad server would have to save the impressions a row at a > time because of how you want the information queried at the end of the > day. Absolutely... but there are different ways to slice it. 1) cache hits in memory, then batch load them into a DB so that you're not having to hit the DB on every banner load 2) use MySQL's heap tables, then do a batch load 3) cache hits into a file, then batch load Or some variation/combo thereof. All that said, this wasn't our problem, and probably not a problem except for those very highly trafficked sites there seem to be so many of. Our issue was the loading of the actual banner. At the time we deployed phpadsnew, the graphic itself was being streamed out of the database, through php, and finally to the browser. Again, this didn't end up being a performance problem; however, the problem was that the banners had a visible "fill" effect when the page loaded, and it caused a noticeable delay for page loads. This might have been something fixed up in later versions of phpadsnew. H From adam at trachtenberg.com Tue Apr 6 16:20:59 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Tue, 6 Apr 2004 16:20:59 -0400 (EDT) Subject: [nycphp-talk] phpMyadmin's dumps won't import into...phpMyAdmin? In-Reply-To: References: <000501c41c02$e8e6ab00$6400a8c0@thinkpad> <007301c41c05$f6c3fc70$0c00a8c0@dimension1> Message-ID: On Tue, 6 Apr 2004, Marc Antony Vose wrote: > Isn't this a bug? It would seem like it. > I guess my only option is to just grep search and replace, or wade > through the phpMyAdmin source and change how it dumps timestamp > fields. I am dealing with the latest "stable" version of phpMyAdmin, > which I downloaded and installed today. It is 2.5.6. I would try and fix the source code. It can't be too hard to find the part where it gets the dump. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From jonbaer at jonbaer.net Tue Apr 6 16:05:47 2004 From: jonbaer at jonbaer.net (jon baer) Date: Tue, 6 Apr 2004 16:05:47 -0400 Subject: [nycphp-talk] phpMyadmin's dumps won't import into...phpMyAdmin? References: <000501c41c02$e8e6ab00$6400a8c0@thinkpad><007301c41c05$f6c3fc70$0c00a8c0@dimension1> Message-ID: <007101c41c12$8d9e5710$6400a8c0@thinkpad> > Isn't this a bug? > What does the CREATE TABLE look like? (do it anyway) Are you sure the structure is ok? What are the results when you analyze the table? > desc cat_49 Sounds like your table is exporting a different type than expected. - Jon From jonbaer at jonbaer.net Tue Apr 6 16:09:15 2004 From: jonbaer at jonbaer.net (jon baer) Date: Tue, 6 Apr 2004 16:09:15 -0400 Subject: [nycphp-talk] phpAdsNew References: <41EE526EC2D3C74286415780D3BA9F87014278D3@ehost011-1.exch011.intermedia.net> Message-ID: <008801c41c13$096dbe80$6400a8c0@thinkpad> >>> being a performance problem; however, the problem was that the banners had a visible "fill" effect when the page loaded, and it caused a noticeable delay for page loads. This might have been something fixed up in later versions of phpadsnew. <<< You know skip this whole conversation lol, I just realized that the last build was end of Sept 2003 (doh!) ... one of those "dont know what happened" projects that got abandoned I guess ... a shame considering alot of projects are getting into taking PayPal donations now ... >From hans not junk at nyphp.com Tue Apr 6 16:27:58 2004 Return-Path: Received: from ehost011-1.exch011.intermedia.net (unknown [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id F1B2EA85E9 for ; Tue, 6 Apr 2004 16:27:57 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] phpAdsNew Date: Tue, 6 Apr 2004 13:27:55 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F87014278EF at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] phpAdsNew Thread-Index: AcQcFT9kDwioVRlgQUi0k/IUONLKPwAAIgKA From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.2 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2004 20:27:58 -0000 > >>> being a performance problem; however, the problem was=20 > that the banners > had a visible "fill" effect when the page loaded, and it caused a > noticeable delay for page loads. This might have been something fixed > up in later versions of phpadsnew. <<< >=20 > You know skip this whole conversation lol, I just realized that the last > build was end of Sept 2003 (doh!) ... one of those "dont know what happened" > projects that got abandoned I guess ... a shame considering alot of projects > are getting into taking PayPal donations now ... Like I say... >NYPHP... now accepting project managers for development projects :) From suzerain at suzerain.com Tue Apr 6 16:33:59 2004 From: suzerain at suzerain.com (Marc Antony Vose) Date: Tue, 6 Apr 2004 16:33:59 -0400 Subject: [nycphp-talk] phpMyadmin's dumps won't import into...phpMyAdmin? In-Reply-To: <007101c41c12$8d9e5710$6400a8c0@thinkpad> References: <000501c41c02$e8e6ab00$6400a8c0@thinkpad><007301c41c05$f6c3fc70$0c00a8c0@d imension1> <007101c41c12$8d9e5710$6400a8c0@thinkpad> Message-ID: > > Isn't this a bug? >> > >What does the CREATE TABLE look like? (do it anyway) > >Are you sure the structure is ok? What are the results when you analyze the >table? > >> desc cat_49 > >Sounds like your table is exporting a different type than expected. > >- Jon > hmmm...well, php is dumping this create table statement for the same table referenced in my last email: CREATE TABLE `cat_49` ( `cat_49_id` int(11) unsigned NOT NULL auto_increment, `cat_49_content_area` int(11) unsigned NOT NULL default '49', `cat_49_parent` int(11) NOT NULL default '0', `cat_49_name` tinyblob, `cat_49_description` blob, `cat_49_sort_num` tinyint(4) NOT NULL default '0', `cat_49_active` enum('y','n') NOT NULL default 'n', `cat_49_added` datetime default NULL, `cat_49_updated` timestamp(14) NOT NULL, PRIMARY KEY (`cat_49_id`) ) TYPE=MyISAM AUTO_INCREMENT=7 ; i don't see anything particularly strange there. -- Marc Antony Vose http://www.suzerain.com/ I'm looking for something in an *after dinner* burrito. -- Homer Simpson From fb at intldef.org Tue Apr 6 16:44:08 2004 From: fb at intldef.org (FB`) Date: Tue, 6 Apr 2004 16:44:08 -0400 Subject: [nycphp-talk] phpMyadmin's dumps won't import into...phpMyAdmin? References: <000501c41c02$e8e6ab00$6400a8c0@thinkpad><007301c41c05$f6c3fc70$0c00a8c0@dimension1> <007101c41c12$8d9e5710$6400a8c0@thinkpad> Message-ID: <01ab01c41c17$f6bd4080$1901a8c0@ybsweb> Except your last field as you showed it earlier doesn't look like a timestamp(14): INSERT INTO `cat_49` (`cat_49_id`, `cat_49_content_area`, `cat_49_parent`, `cat_49_name`, `cat_49_description`, `cat_49_sort_num`, `cat_49_active`, `cat_49_added`, `cat_49_updated`) VALUES (1, 49, 0, 0x414652494341, '', 0, 'y', '2004-01-05 09:34:22', 2004-01-06 13:03:44); -- i would expect 20040106130344 there... FB` ----- Original Message ----- From: "Marc Antony Vose" To: "NYPHP Talk" Sent: Tuesday, April 06, 2004 4:33 PM Subject: Re: [nycphp-talk] phpMyadmin's dumps won't import into...phpMyAdmin? > > > Isn't this a bug? > >> > > > >What does the CREATE TABLE look like? (do it anyway) > > > >Are you sure the structure is ok? What are the results when you analyze the > >table? > > > >> desc cat_49 > > > >Sounds like your table is exporting a different type than expected. > > > >- Jon > > > > > hmmm...well, php is dumping this create table statement for the same > table referenced in my last email: > > CREATE TABLE `cat_49` ( > `cat_49_id` int(11) unsigned NOT NULL auto_increment, > `cat_49_content_area` int(11) unsigned NOT NULL default '49', > `cat_49_parent` int(11) NOT NULL default '0', > `cat_49_name` tinyblob, > `cat_49_description` blob, > `cat_49_sort_num` tinyint(4) NOT NULL default '0', > `cat_49_active` enum('y','n') NOT NULL default 'n', > `cat_49_added` datetime default NULL, > `cat_49_updated` timestamp(14) NOT NULL, > PRIMARY KEY (`cat_49_id`) > ) TYPE=MyISAM AUTO_INCREMENT=7 ; > > > i don't see anything particularly strange there. > > > -- > Marc Antony Vose > http://www.suzerain.com/ > > I'm looking for something in an *after dinner* burrito. > -- Homer Simpson > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk >From hans not junk at nyphp.com Tue Apr 6 16:42:01 2004 Return-Path: Received: from ehost011-1.exch011.intermedia.net (unknown [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id B3881A85E9 for ; Tue, 6 Apr 2004 16:42:00 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] phpMyadmin's dumps won't import into...phpMyAdmin? Date: Tue, 6 Apr 2004 13:41:55 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870142790D at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] phpMyadmin's dumps won't import into...phpMyAdmin? Thread-Index: AcQcFoTwhkX5tBI2SmO/wSo/2nWboAAAK2IA From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.2 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2004 20:42:01 -0000 > `cat_49_added` datetime default NULL, > `cat_49_updated` timestamp(14) NOT NULL, Here's the problem... The datetime is being exported as a standard datetime string (with the spaces, hypens, etc). The timestamp column should be exported as a number, such as: 20040106130344 This is why it isn't getting quoted. Yet, the format that's being captured by phpMyAdmin is of the string, per above. Spaces, but not quoted, thus your error. Why this is happening I'm not sure. I'd bet it's a bug in phpMyAdmin. To see if it's a problem with mysql or phpmyadmin, run these queries just as testers: SELECT cat_49_added FROM cat_49 LIMIT 1 SELECT cat_49_updated FROM cat_49 LIMIT 1 The results of each should be differently formatted. Are they? H From Cbielanski at inta.org Tue Apr 6 16:47:11 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Tue, 6 Apr 2004 16:47:11 -0400 Subject: [nycphp-talk] phpMyadmin's dumps won't import into...phpMyAdmi n? Message-ID: Does this mean it might be resolved by altering (if possible) the original or destination table structures to use datetime data instead of mixing datetime and timestamp? > -----Original Message----- > From: Hans Zaunere [mailto:hans not junk at nyphp.com] > Sent: Tuesday, April 06, 2004 4:42 PM > To: NYPHP Talk > Subject: RE: [nycphp-talk] phpMyadmin's dumps won't import > into...phpMyAdmin? > > > > > `cat_49_added` datetime default NULL, > > `cat_49_updated` timestamp(14) NOT NULL, > > Here's the problem... > > The datetime is being exported as a standard datetime string (with the > spaces, hypens, etc). > > The timestamp column should be exported as a number, such as: > > 20040106130344 > > This is why it isn't getting quoted. Yet, the format that's being > captured by phpMyAdmin is of the string, per above. Spaces, but not > quoted, thus your error. > > Why this is happening I'm not sure. I'd bet it's a bug in phpMyAdmin. > To see if it's a problem with mysql or phpmyadmin, run these queries > just as testers: > > SELECT cat_49_added FROM cat_49 LIMIT 1 > > SELECT cat_49_updated FROM cat_49 LIMIT 1 > > > The results of each should be differently formatted. Are they? > > H > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > >From hans not junk at nyphp.com Tue Apr 6 16:47:55 2004 Return-Path: Received: from ehost011-1.exch011.intermedia.net (unknown [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id 12752A85E9 for ; Tue, 6 Apr 2004 16:47:55 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] phpMyadmin's dumps won't import into...phpMyAdmi n? Date: Tue, 6 Apr 2004 13:47:41 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870142791B at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] phpMyadmin's dumps won't import into...phpMyAdmi n? Thread-Index: AcQcF+YsAC+2iROdRzOD4LfyZDyGRwAAIzZw From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.2 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2004 20:47:55 -0000 > Does this mean it might be resolved by altering (if possible)=20 > the original > or destination table structures to use datetime data instead of mixing > datetime and timestamp? That would "fix" it but for the wrong reasons, and potentially break other dependencies that the column is expected to be a TIMESTAMP (like timestamping). H From suzerain at suzerain.com Tue Apr 6 16:51:19 2004 From: suzerain at suzerain.com (Marc Antony Vose) Date: Tue, 6 Apr 2004 16:51:19 -0400 Subject: [nycphp-talk] phpMyadmin's dumps won't import into...phpMyAdmin? In-Reply-To: <41EE526EC2D3C74286415780D3BA9F870142790D@ehost011-1.exch011.intermedia.ne t> References: <41EE526EC2D3C74286415780D3BA9F870142790D@ehost011-1.exch011.intermedia.ne t> Message-ID: Hmmm.... So, maybe the bug is not in phpMyAdmin. I also thought the timestamp should be coming out as a timestamp integer, but I figured phpMyAdmin knew more about this stuff than me. Anyway, the two results are NOT differently formatted. I need to investigate this more and find out why the timestamp isn't coming out as a timestamp...maybe I can appeal to the sysadmin to grant me temporary access to this account. Marc > > `cat_49_added` datetime default NULL, >> `cat_49_updated` timestamp(14) NOT NULL, > >Here's the problem... > >The datetime is being exported as a standard datetime string (with the >spaces, hypens, etc). > >The timestamp column should be exported as a number, such as: > >20040106130344 > >This is why it isn't getting quoted. Yet, the format that's being >captured by phpMyAdmin is of the string, per above. Spaces, but not >quoted, thus your error. > >Why this is happening I'm not sure. I'd bet it's a bug in phpMyAdmin. >To see if it's a problem with mysql or phpmyadmin, run these queries >just as testers: > >SELECT cat_49_added FROM cat_49 LIMIT 1 > >SELECT cat_49_updated FROM cat_49 LIMIT 1 > > >The results of each should be differently formatted. Are they? > >H >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk From Cbielanski at inta.org Tue Apr 6 16:55:06 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Tue, 6 Apr 2004 16:55:06 -0400 Subject: [nycphp-talk] phpMyadmin's dumps won't import into...phpMyAdmi n? Message-ID: That's pretty much what I was expecting to hear but I wanted to get the details. Danke :) > -----Original Message----- > From: Hans Zaunere [mailto:hans not junk at nyphp.com] > Sent: Tuesday, April 06, 2004 4:48 PM > To: NYPHP Talk > Subject: RE: [nycphp-talk] phpMyadmin's dumps won't import > into...phpMyAdmi n? > > > > > Does this mean it might be resolved by altering (if possible) > > the original > > or destination table structures to use datetime data > instead of mixing > > datetime and timestamp? > > That would "fix" it but for the wrong reasons, and potentially break > other dependencies that the column is expected to be a TIMESTAMP (like > timestamping). > > H > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > >From hans not junk at nyphp.com Tue Apr 6 16:58:39 2004 Return-Path: Received: from ehost011-1.exch011.intermedia.net (unknown [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id 2AC56A85E9 for ; Tue, 6 Apr 2004 16:58:39 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] phpMyadmin's dumps won't import into...phpMyAdmin? Date: Tue, 6 Apr 2004 13:58:36 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8701427933 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] phpMyadmin's dumps won't import into...phpMyAdmin? Thread-Index: AcQcGPNhL3XQL+B4RCi1S2G5nOANhwAAPiGg From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.2 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2004 20:58:39 -0000 > So, maybe the bug is not in phpMyAdmin. I also thought the timestamp=20 > should be coming out as a timestamp integer, but I figured phpMyAdmin=20 > knew more about this stuff than me. >=20 > Anyway, the two results are NOT differently formatted. Although, you ran the SQL still through phpMyAdmin.... > I need to investigate this more and find out why the timestamp isn't=20 > coming out as a timestamp...maybe I can appeal to the sysadmin to=20 > grant me temporary access to this account. Next step: -- write a tiny PHP script to run those two queries directly against MySQL. -- get on the mysql shell from somewhere and run those queries directly against MySQL Point is, bypass phpmyadmin completely. H From suzerain at suzerain.com Tue Apr 6 17:31:20 2004 From: suzerain at suzerain.com (Marc Antony Vose) Date: Tue, 6 Apr 2004 17:31:20 -0400 Subject: MySQL timestamps' format changed (was RE: [nycphp-talk] phpMyadmin's dumps won't import into...phpMyAdmin?) In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8701427933@ehost011-1.exch011.intermedia.ne t> References: <41EE526EC2D3C74286415780D3BA9F8701427933@ehost011-1.exch011.intermedia.ne t> Message-ID: Well, OK...I have my answer, and this could be useful for everyone else so I am posting here. Thanks to everyone who chimed in. MySQL changed the way timestamp columns behave as of 4.1. The manual says, about timestamps: TIMESTAMP[(M)] A timestamp. The range is '1970-01-01 00:00:00' to sometime in the year 2037. ....[snip]......In MySQL 4.0 and earlier, TIMESTAMP values are displayed in YYYYMMDDHHMMSS, YYMMDDHHMMSS, YYYYMMDD, or YYMMDD format, depending on whether M is 14 (or missing).....[snip] They also offer this section in the manual, to explain for people new to MySQL how timestamps *used to* work. http://www.mysql.com/doc/en/TIMESTAMP_pre-4.1.html This might be useful to any of you dealing with timestamps. This host is using 4.1+, so that's obviously where my problem stems from. IMO this *is* a bug in phpMyAdmin, or, rather, something that ought to be in there. However, it is entirely possible they have already updated some build of phpMyAdmin that they do not consider "stable". I'll look into that now, and notify them if necessary. Cheers, -- Marc Antony Vose http://www.suzerain.com/ The surest way to corrupt a youth is to instruct him to hold in higher esteem those who think alike than those who think differently. -- Nietzsche -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at prusak.com Tue Apr 6 17:36:56 2004 From: lists at prusak.com (Ophir Prusak) Date: Tue, 06 Apr 2004 17:36:56 -0400 Subject: [nycphp-talk] phpAdsNew In-Reply-To: <000501c41c02$e8e6ab00$6400a8c0@thinkpad> References: <000501c41c02$e8e6ab00$6400a8c0@thinkpad> Message-ID: <407322F8.1030207@prusak.com> I tried using phpadsnew a long time ago and it was to much of a load. I installed it again and have been using it for about 3 months now. I did everything the manual said to do for best performance and it's actually been pretty good so far. I have a server at rackshack (ev1 servers now): celeron 1.3 with 1gig ram. The server is running apache, mysql and phpadsnew. Apache is serving about 100k page views a day and phpadsnew is serving about 30k ads a day. I do not notice any slowdown of my pages and the ads appear very fast. (you can see it at http://www.stationplay.com in the left sidebar). The server load usually is between 0.4 to 0.8 If you read the phpadsnew forums (which are still pretty active) you'll see people who server over 1 million ads a day using phpadsnew. How many ads a day do you need to support? Ophir jon baer wrote: >is anyone using this package? > >i installed and played around with it this weekend and was pretty impressed, >im tinkering around with it to do adsense-like stuff and analyze profiles >for ad keywords ... the installation step on this program was top notch (a >little generic but user friendly) ... > >- jon > >pgp key: http://www.jonbaer.net/jonbaer.asc >fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > From steven at sohh.com Tue Apr 6 18:19:55 2004 From: steven at sohh.com (Steven Samuel) Date: Tue, 6 Apr 2004 18:19:55 -0400 Subject: [nycphp-talk] phpAdsNew In-Reply-To: <407322F8.1030207@prusak.com> Message-ID: <011701c41c25$4fe48300$0300a8c0@STEVEN> I'm running phpAdsNew on a dedicated server w/ a single AMD 1.8GHz w/ 512MB RAM. On March 31st, I served 1,130,514 banners. (728s, 468x, 120s, 160s, text and pops.) I'm hosted at Rackspace. My server load is never above 2.0 on a busy day. -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Ophir Prusak Sent: Tuesday, April 06, 2004 5:37 PM To: NYPHP Talk Subject: Re: [nycphp-talk] phpAdsNew I tried using phpadsnew a long time ago and it was to much of a load. I installed it again and have been using it for about 3 months now. I did everything the manual said to do for best performance and it's actually been pretty good so far. I have a server at rackshack (ev1 servers now): celeron 1.3 with 1gig ram. The server is running apache, mysql and phpadsnew. Apache is serving about 100k page views a day and phpadsnew is serving about 30k ads a day. I do not notice any slowdown of my pages and the ads appear very fast. (you can see it at http://www.stationplay.com in the left sidebar). The server load usually is between 0.4 to 0.8 If you read the phpadsnew forums (which are still pretty active) you'll see people who server over 1 million ads a day using phpadsnew. How many ads a day do you need to support? Ophir jon baer wrote: >is anyone using this package? > >i installed and played around with it this weekend and was pretty >impressed, im tinkering around with it to do adsense-like stuff and >analyze profiles for ad keywords ... the installation step on this >program was top notch (a little generic but user friendly) ... > >- jon > >pgp key: http://www.jonbaer.net/jonbaer.asc >fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk > > _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From jonbaer at jonbaer.net Tue Apr 6 22:40:15 2004 From: jonbaer at jonbaer.net (jon baer) Date: Tue, 6 Apr 2004 22:40:15 -0400 Subject: [nycphp-talk] phpAdsNew References: <000501c41c02$e8e6ab00$6400a8c0@thinkpad> <407322F8.1030207@prusak.com> Message-ID: <007201c41c49$a89f0280$6400a8c0@thinkpad> > > If you read the phpadsnew forums (which are still pretty active) you'll > see people who server over 1 million ads a day using phpadsnew. > > How many ads a day do you need to support? Well definetly not a million a day @ the moment :-) Your setup is perfect for an example of what I was looking for ... 100k is ~ where the client is @ but the main setup was for backup for Google AdSense but also for front page links which Im guessing can be track exactly like this ... The deal is that alot of affiliate programs delay alot of their reporting and Im trying to assess if they are @ least 99% accurate since it really conflicts on occassions ... however I don't think a complex adserver would be appropriate for normal hyperlinks :-\ Or maybe Im wrong and can use it. - Jon From jonbaer at jonbaer.net Tue Apr 6 22:57:57 2004 From: jonbaer at jonbaer.net (jon baer) Date: Tue, 6 Apr 2004 22:57:57 -0400 Subject: [nycphp-talk] Re: MySQL timestamps' format changed References: <41EE526EC2D3C74286415780D3BA9F8701427933@ehost011-1.exch011.intermedia.net> Message-ID: <009301c41c4c$21742ad0$6400a8c0@thinkpad> MySQL timestamps' format changed (was RE: [nycphp-talk] phpi looked into the export file (/libraries/export/sql.php) and it seems they have it right (~ line 413 on my copy): if ($type == 'tinyint' || $type == 'smallint' || $type == 'mediumint' || $type == 'int' || $type == 'bigint' || (PMA_MYSQL_INT_VERSION < 40100 && $type == 'timestamp')) { $field_num[$j] = TRUE; } else { $field_num[$j] = FALSE; } its getting passed off as a literal value which should be quoted and not an int. does that part exist in your copy? -------------- next part -------------- An HTML attachment was scrubbed... URL: From suzerain at suzerain.com Wed Apr 7 00:54:11 2004 From: suzerain at suzerain.com (Marc Antony Vose) Date: Wed, 7 Apr 2004 00:54:11 -0400 Subject: [nycphp-talk] Re: MySQL timestamps' format changed In-Reply-To: <009301c41c4c$21742ad0$6400a8c0@thinkpad> References: <41EE526EC2D3C74286415780D3BA9F8701427933@ehost011-1.exch011.intermedia.ne t> <009301c41c4c$21742ad0$6400a8c0@thinkpad> Message-ID: hey jon: thanks for spotting that. yeah, my version of mysql is 4.0.18, yet it is still spitting back timestamps in the NEW way, which mysql says requires 4.1 ditto this web host i am dealing with, who has 4.0.11. (i.e., not "4.1", but behaving like 4.1). i guess the mysql guys have reported this wrong, or there is a discrepancy in the way mysql reports version numbers and the way phpmyadmin handles it. anyway, i'm just glad i know why all this is happening now. it was frustrating the hell out of me. marc >i looked into the export file (/libraries/export/sql.php) and it >seems they have it right (~ line 413 on my copy): > > if ($type == 'tinyint' || $type == 'smallint' || $type == >'mediumint' || $type == 'int' || > $type == 'bigint' || (PMA_MYSQL_INT_VERSION < 40100 >&& $type == 'timestamp')) { > $field_num[$j] = TRUE; >} else { > $field_num[$j] = FALSE; >} > >its getting passed off as a literal value which should be quoted and >not an int. does that part exist in your copy? > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk -------------- next part -------------- An HTML attachment was scrubbed... URL: From alienz at 53cleveland.org Wed Apr 7 10:34:24 2004 From: alienz at 53cleveland.org (alienz at 53cleveland.org) Date: Wed, 7 Apr 2004 10:34:24 -0400 (EDT) Subject: [nycphp-talk] PHPAds New Message-ID: <24266.167.206.206.50.1081348464.squirrel@email.nethosters.com> Although the last build (2.0) was Sept 2003 doesn't mean that the software itself is bad. Just development has stalled. I was looking into ad software and phpadsnew seems to be the best free opensource solution you'll find out there (by far). That said, I haven't deployed it on what is a highly traffic'd site so I don't know what the performance would be. But there are plenty of optimizations you can make. You can store the banners either in the DB or on the HD, you can enable caches to speed up the delivery along with a ton of other tweaks. Statistic reporting is also variable and you can turn off certain logging features if you're worried about large lurking DB's running around. There was a post yesterday in the forums by the lead developer, seems he's simply gotten more involved in writting backends for Groklaw. "I hope to have some more time soon and I am thinking about releasing phpAdsNew 2.01 in the nearby future." Anyway, I'm thinking of still going forward with this software the documention is top-notch for any software (free or not) and makes it hard to believe it couldn't handle a decent amount of traffic. Other than that are there any reccomendations for commercial solutions for ad software? From jonbaer at jonbaer.net Wed Apr 7 10:30:26 2004 From: jonbaer at jonbaer.net (jon baer) Date: Wed, 7 Apr 2004 10:30:26 -0400 Subject: [nycphp-talk] PHPAds New References: <24266.167.206.206.50.1081348464.squirrel@email.nethosters.com> Message-ID: <000701c41cac$deefd9f0$6400a8c0@thinkpad> > Although the last build (2.0) was Sept 2003 doesn't mean that the software > itself is bad. Just development has stalled. > I never said it was bad, I actually just discovered it after googling around and thought it was a new package, searched the archive list here and didnt see too much about it ... Im about to give it a try ... The only last question remaining is if this should go on its own box but people have said overhead was pretty low so far ... thanks for the optimization tips ... - Jon From steven at sohh.com Wed Apr 7 10:54:35 2004 From: steven at sohh.com (Steven Samuel) Date: Wed, 7 Apr 2004 10:54:35 -0400 Subject: [nycphp-talk] PHPAds New In-Reply-To: <000701c41cac$deefd9f0$6400a8c0@thinkpad> Message-ID: <01e501c41cb0$44031110$0300a8c0@STEVEN> Putting phpAdsNew on it's own box depends. In my case, my server was already running vBulletin 2.4.3 and a few minor php script on it, and I'd stall during the day. vBulletin can eat up your resources fast if you don't have MySQL optimized right. I running phpAdsNew on another server to be so much smoother. Plus, I'm hosting banners for some other sites that are not owned by me, so I wanted to sure that if my site went down atleast my ads would server. 2.0.1 is going to be coming out mid-year. The developer said he was working on another project. Sometimes you gotta take time off to get your mind together and come back fresh. -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of jon baer Sent: Wednesday, April 07, 2004 10:30 AM To: NYPHP Talk Subject: Re: [nycphp-talk] PHPAds New > Although the last build (2.0) was Sept 2003 doesn't mean that the > software itself is bad. Just development has stalled. > I never said it was bad, I actually just discovered it after googling around and thought it was a new package, searched the archive list here and didnt see too much about it ... Im about to give it a try ... The only last question remaining is if this should go on its own box but people have said overhead was pretty low so far ... thanks for the optimization tips ... - Jon _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From steven at sohh.com Wed Apr 7 10:58:22 2004 From: steven at sohh.com (Steven Samuel) Date: Wed, 7 Apr 2004 10:58:22 -0400 Subject: [nycphp-talk] PHPAds New In-Reply-To: <24266.167.206.206.50.1081348464.squirrel@email.nethosters.com> Message-ID: <01f301c41cb0$c973ae40$0300a8c0@STEVEN> In all my research for ad serving software, I've found one thing they all have in common. Nothing is guaranteed. I can't see me paying for software with no guarantee that it will work. I've had my issues with phpAdsNew, but I've found it to handle my needs. Like I said, I've served over 1 million banners with it in a day. -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of alienz at 53cleveland.org Sent: Wednesday, April 07, 2004 10:34 AM To: talk at lists.nyphp.org Subject: [nycphp-talk] PHPAds New Although the last build (2.0) was Sept 2003 doesn't mean that the software itself is bad. Just development has stalled. I was looking into ad software and phpadsnew seems to be the best free opensource solution you'll find out there (by far). That said, I haven't deployed it on what is a highly traffic'd site so I don't know what the performance would be. But there are plenty of optimizations you can make. You can store the banners either in the DB or on the HD, you can enable caches to speed up the delivery along with a ton of other tweaks. Statistic reporting is also variable and you can turn off certain logging features if you're worried about large lurking DB's running around. There was a post yesterday in the forums by the lead developer, seems he's simply gotten more involved in writting backends for Groklaw. "I hope to have some more time soon and I am thinking about releasing phpAdsNew 2.01 in the nearby future." Anyway, I'm thinking of still going forward with this software the documention is top-notch for any software (free or not) and makes it hard to believe it couldn't handle a decent amount of traffic. Other than that are there any reccomendations for commercial solutions for ad software? _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From jonbaer at jonbaer.net Wed Apr 7 10:55:00 2004 From: jonbaer at jonbaer.net (jon baer) Date: Wed, 7 Apr 2004 10:55:00 -0400 Subject: [nycphp-talk] PHPAds New References: <01f301c41cb0$c973ae40$0300a8c0@STEVEN> Message-ID: <00bd01c41cb0$4e244c40$6400a8c0@thinkpad> I am actually finding the same problem in re: affiliate software ... it seems that when you need to track large amounts of traffic in such detail that something is bound to stall somewhere and its alot of responsibility for such errors when the programs are complex, I have found that you need to spend a good day just learning the layout of the code and knowing where something has a 90% chance of going wrong, so thank you god once again for open source and mailing lists :-) - Jon ----- Original Message ----- From: "Steven Samuel" To: "'NYPHP Talk'" Sent: Wednesday, April 07, 2004 10:58 AM Subject: RE: [nycphp-talk] PHPAds New In all my research for ad serving software, I've found one thing they all have in common. Nothing is guaranteed. I can't see me paying for software with no guarantee that it will work. I've had my issues with phpAdsNew, but I've found it to handle my needs. Like I said, I've served over 1 million banners with it in a day. From joel at tagword.com Wed Apr 7 12:54:35 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 07 Apr 2004 12:54:35 -0400 Subject: [nycphp-talk] PHPAds New In-Reply-To: <01f301c41cb0$c973ae40$0300a8c0@STEVEN> References: <01f301c41cb0$c973ae40$0300a8c0@STEVEN> Message-ID: <1081356875.4792.67.camel@bezel> On Wed, 2004-04-07 at 10:58, Steven Samuel wrote: > In all my research for ad serving software, I've found one thing they > all have in common. Nothing is guaranteed. I can't see me paying for > software with no guarantee that it will work. I've had my issues with > phpAdsNew, but I've found it to handle my needs. Like I said, I've > served over 1 million banners with it in a day. This thread has gone on for a while.. Wasn't paying much attention until this. We do a lot of freehosting for domains.. (seven virtual hosting servers). We are using OASIS http://oasis.sourceforge.net/ and pushed it to the 500,000 banner impressions per/hour mark with no problems. Open source and it has a lot more functionality than phpadsnew.. Joel De Gan --------- http://listbid.com - php freelance http://broadwords.com - get $10 free advertising for your site From crisscott at netzero.com Wed Apr 7 12:07:04 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Wed, 07 Apr 2004 12:07:04 -0400 Subject: [nycphp-talk] PHP-Gtk Complie Troubles In-Reply-To: <1081356875.4792.67.camel@bezel> References: <01f301c41cb0$c973ae40$0300a8c0@STEVEN> <1081356875.4792.67.camel@bezel> Message-ID: <40742728.7080400@netzero.com> Hello, I am having lots of trouble getting PHP-Gtk 1.0 to compile. I tried to ask this question to the php-gtk-general list but I think gtk hates me cause I can't even subscribe to the list right. Any help would be greatly appreciated. I am pretty sure that it is just my setup but I can't figure it out. I have searched the mail list archives and there doesn't seem to be much help for me there. I am using RedHat Enterprise with PHP 5 RC1. The problems start with configure. If I run configure with no options I get an error saying that it can't find libGlade-config. So I tried to run configure --with-libglad-config="path/libGlade2.0.1/configure" and I get an error saying "libglade is not configured for see path/libGlade2.0.1/configure --help" That isn't a typo on my part. It says "...configured for" but doesn't say configured for what! When I look at the libglade config help I don't see anything remotely helpful. Configure works if I use the --disable-libglade option but then I get issues with make. After configuring without libglade I run make and get a PHP error in generator/scheme.php. The error is on line 117 where it tries to do $this = unserialize ($this->parseTree); Not really knowing what is going on there, I tried changing that line to $this->parseTree = unserialize ($this->parseTree); That gets me further but then I get a large formatted error saying that my php.ini file should have register_argc_argv = On. But it does have it set to on! If anyone has hany suggestions I would love to hear them. I have been fighting with this for three days now and it is really frustrating. I was able to run everything flawlessly in one attempt on a server at work which runs RHEL and PHP 4.3.2. Thanks Scott Mattocks From steven at sohh.com Wed Apr 7 12:07:17 2004 From: steven at sohh.com (Steven Samuel) Date: Wed, 7 Apr 2004 12:07:17 -0400 Subject: [nycphp-talk] PHPAds New In-Reply-To: <1081356875.4792.67.camel@bezel> Message-ID: <023b01c41cba$6ca58c60$0300a8c0@STEVEN> Yea, it does appear to have more functionality than phpAdsNew...except: Impression capping: set limits on the number of impressions to be delivered to a user within a specific timeframe Companion sections: prevent the same creative from appearing twice on a page This comes with Oasis Professional which is $695.00. But this comes standard w/ phpAdsNew and it's actually something I use everyday. -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Joel De Gan Sent: Wednesday, April 07, 2004 12:55 PM To: NYPHP Talk Subject: RE: [nycphp-talk] PHPAds New On Wed, 2004-04-07 at 10:58, Steven Samuel wrote: > In all my research for ad serving software, I've found one thing they > all have in common. Nothing is guaranteed. I can't see me paying for > software with no guarantee that it will work. I've had my issues with > phpAdsNew, but I've found it to handle my needs. Like I said, I've > served over 1 million banners with it in a day. This thread has gone on for a while.. Wasn't paying much attention until this. We do a lot of freehosting for domains.. (seven virtual hosting servers). We are using OASIS http://oasis.sourceforge.net/ and pushed it to the 500,000 banner impressions per/hour mark with no problems. Open source and it has a lot more functionality than phpadsnew.. Joel De Gan --------- http://listbid.com - php freelance http://broadwords.com - get $10 free advertising for your site _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From joel at tagword.com Wed Apr 7 13:57:43 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 07 Apr 2004 13:57:43 -0400 Subject: [nycphp-talk] PHPAds New In-Reply-To: <023b01c41cba$6ca58c60$0300a8c0@STEVEN> References: <023b01c41cba$6ca58c60$0300a8c0@STEVEN> Message-ID: <1081360663.4949.80.camel@bezel> On Wed, 2004-04-07 at 12:07, Steven Samuel wrote: > Yea, it does appear to have more functionality than phpAdsNew...except: > > Impression capping: set limits on the number of impressions to be > delivered to a user within a specific timeframe > Companion sections: prevent the same creative from appearing twice on a > page > > This comes with Oasis Professional which is $695.00. But this comes > standard w/ phpAdsNew and it's actually something I use everyday. Here is a screencap (of the free version) for the traffic-shaping.. http://oasis.sourceforge.net/screenshots/version1.0/ad-6.gif so, yes on a per-ad basis you can set limits. As for companion sections, we have not had an issue with that. Though we generally don't have multiple ads on freehosted pages. For high-end, this is by far the best system we have seen. The funny thing is, that I found this by reading an article about spammers and how they needed the monster systems to handle the images back before email clients stopped displaying remote images in emails. They tracked everything even if a user moused-over an image. This professional stuff is new, they didn't have that before, guess they decided to make a buck or two off of it for the newer features. Joel De Gan --------- http://listbid.com - php freelance http://broadwords.com - get $10 free advertising for your site From adam at trachtenberg.com Wed Apr 7 12:50:13 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Wed, 7 Apr 2004 12:50:13 -0400 (EDT) Subject: [nycphp-talk] PHP-Gtk Complie Troubles In-Reply-To: <40742728.7080400@netzero.com> References: <01f301c41cb0$c973ae40$0300a8c0@STEVEN> <1081356875.4792.67.camel@bezel> <40742728.7080400@netzero.com> Message-ID: On Wed, 7 Apr 2004, Scott Mattocks wrote: > I am having lots of trouble getting PHP-Gtk 1.0 to compile. I tried to > ask this question to the php-gtk-general list but I think gtk hates me > cause I can't even subscribe to the list right. Any help would be > greatly appreciated. I am pretty sure that it is just my setup but I > can't figure it out. I have searched the mail list archives and there > doesn't seem to be much help for me there. I am using RedHat Enterprise > with PHP 5 RC1. I don't believe PHP-Gtk 1 works with PHP 5. > After configuring without libglade I run make and get a PHP error in > generator/scheme.php. The error is on line 117 where it tries to do > $this = unserialize ($this->parseTree); Not really knowing what is > going on there, I tried changing that line to $this->parseTree = > unserialize ($this->parseTree); That gets me further but then I get a > large formatted error saying that my php.ini file should have > register_argc_argv = On. But it does have it set to on! You can't reassign the value of $this in PHP 5. This is a change from PHP 4. Also, there were some changes with how argc/argv are handles in PHP 5. They may need to be accessed differently, depending on your set up. > If anyone has hany suggestions I would love to hear them. I have been > fighting with this for three days now and it is really frustrating. I > was able to run everything flawlessly in one attempt on a server at work > which runs RHEL and PHP 4.3.2. Stick with PHP 4.3? -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From crisscott at netzero.com Wed Apr 7 13:10:50 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Wed, 07 Apr 2004 13:10:50 -0400 Subject: [nycphp-talk] PHP-Gtk Complie Troubles In-Reply-To: References: <01f301c41cb0$c973ae40$0300a8c0@STEVEN> <1081356875.4792.67.camel@bezel> <40742728.7080400@netzero.com> Message-ID: <4074361A.5030305@netzero.com> Thanks Adam. I'll try going back to 4.3 Scott Mattocks From leam at reuel.net Wed Apr 7 17:37:53 2004 From: leam at reuel.net (leam) Date: Wed, 07 Apr 2004 17:37:53 -0400 Subject: [nycphp-talk] what dev classes do *you* take? In-Reply-To: <007d01c418b5$7cee0f60$6400a8c0@thinkpad> References: <007d01c418b5$7cee0f60$6400a8c0@thinkpad> Message-ID: <407474B1.3000902@reuel.net> jon baer wrote: > im just curious, > > besides the excellent RAMP courses offered by NYPHP ;-) does anyone take > any classes that they would recommend for keeping up to date on todays > technology? > > - jon Late response, we're moving house. Personally I find classes or new projects *outside* of my field the most mentally invigorating. Last year I learned sailing, for example. I find myself fixing things just to the point I need at the moment and sometimes it takes that whole new need to see new ways to use what I'm already aware of. ciao! leam From southwell at dneba.com Wed Apr 7 20:52:51 2004 From: southwell at dneba.com (Michael Southwell) Date: Wed, 07 Apr 2004 20:52:51 -0400 Subject: [nycphp-talk] Fwd: O'Reilly Looking for GNOME Hacks Message-ID: <6.0.3.0.2.20040407205153.01ea7338@mail.optonline.net> >Date: Wed, 07 Apr 2004 14:47:14 -0700 >From: Marsee Henon >Subject: O'Reilly Looking for GNOME Hacks >To: news at nyphp.org >X-ClientAddr: 206.252.198.83 >List-Unsubscribe: >Original-recipient: rfc822;MSouthwe at optonline.net > >Hi Linux UG Leader, > >We're looking for GNOME hacks for our upcoming book, "Linux Desktop >Hacks." We already have half of the book filled with KDE hacks, but no >GNOME hacks! Do you know of any GNOME Hackers who could help us out? >Please forward this email along. > >If you have a hack to share, please send 'em our way by having your >members email me (marsee at oreilly.com) with "GNOME hacks" in the subject >line. Don't let KDE hacks take over this book! > >As thanks for sharing, we'll make sure to get copies of "Linux Desktop >Hacks" sent to your group shortly after publication. > > >--Marsee Michael Southwell VP, Education Department NYPHP michael.southwell at nyphp.org http://nyphp.org/edu From dmintz at davidmintz.org Wed Apr 7 21:25:03 2004 From: dmintz at davidmintz.org (David Mintz) Date: Wed, 7 Apr 2004 21:25:03 -0400 (EDT) Subject: [nycphp-talk] what dev classes do *you* take? In-Reply-To: <407474B1.3000902@reuel.net> References: <007d01c418b5$7cee0f60$6400a8c0@thinkpad> <407474B1.3000902@reuel.net> Message-ID: On Wed, 7 Apr 2004, leam wrote: > Late response, we're moving house. > > Personally I find classes or new projects *outside* of my field the most > mentally invigorating. Last year I learned sailing, for example. I find > myself fixing things just to the point I need at the moment and > sometimes it takes that whole new need to see new ways to use what I'm > already aware of. Hmmm, me too, I guess. That must be why I study computer programming. (-: --- David Mintz http://sdnyinterpreters.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From tgales at tgaconnect.com Wed Apr 7 22:26:57 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 7 Apr 2004 22:26:57 -0400 Subject: [nycphp-talk] (no subject) Message-ID: <007401c41d10$f7be90c0$e98d3818@oberon1> Hello ops, Can someone update the calendar to mention training on April 19-20 TIA Tim G. From tgales at tgaconnect.com Wed Apr 7 22:33:57 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 7 Apr 2004 22:33:57 -0400 Subject: [nycphp-talk] Next Training will be April 19-20 In-Reply-To: <007401c41d10$f7be90c0$e98d3818@oberon1> Message-ID: <007501c41d11$f1e36e40$e98d3818@oberon1> woops sorry wrong list -- meant dev list > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Tim Gales > Sent: Wednesday, April 07, 2004 10:27 PM > To: talk at lists.nyphp.org > Subject: [nycphp-talk] (no subject) > > > > > Hello ops, > > Can someone update the calendar > to mention training on April 19-20 > > > TIA > > Tim G. > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk > From lists at prusak.com Thu Apr 8 16:43:18 2004 From: lists at prusak.com (Ophir Prusak) Date: Thu, 08 Apr 2004 16:43:18 -0400 Subject: [nycphp-talk] Mambo users? In-Reply-To: <007501c41d11$f1e36e40$e98d3818@oberon1> References: <007501c41d11$f1e36e40$e98d3818@oberon1> Message-ID: <4075B966.9040608@prusak.com> Hi All, I'm looking into setting up a site with a CMS for a change, and not hand written php :) I remember hearing some people say that Mambo was great so I just downloaded and installed it. Seems to be very cool. I was wondering if there are any Mambo users here that I could chat with (AIM, MSN) to ask a couple of questions if needed. Thanks, Ophir From yury at heavenspa.com Thu Apr 8 16:54:41 2004 From: yury at heavenspa.com (yury at heavenspa.com) Date: Thu, 8 Apr 2004 16:54:41 -0400 Subject: [nycphp-talk] Mambo users? References: <007501c41d11$f1e36e40$e98d3818@oberon1> <4075B966.9040608@prusak.com> Message-ID: <03fc01c41dab$b6b70f80$0400a8c0@heavenspanyc> I use it with out to many hacks right out of the box. Strictly grpahical changes. whats the question>? regards ----- Original Message ----- From: "Ophir Prusak" To: "NYPHP Talk" Sent: Thursday, April 08, 2004 4:43 PM Subject: [nycphp-talk] Mambo users? > Hi All, > > I'm looking into setting up a site with a CMS for a change, and not hand > written php :) > I remember hearing some people say that Mambo was great so I just > downloaded and installed it. > > Seems to be very cool. > > I was wondering if there are any Mambo users here that I could chat with > (AIM, MSN) to ask a couple of questions if needed. > > Thanks, > Ophir > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From danielc at analysisandsolutions.com Fri Apr 9 02:10:37 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 9 Apr 2004 02:10:37 -0400 Subject: [nycphp-talk] snippets from SecurityFocus Newsletter #243 Message-ID: <20040409061037.GA23438@panix.com> XMB Forum Multiple Vulnerabilities http://www.securityfocus.com/bid/9983 PHPBB Privmsg.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/9984 EZ Publish Unspecified Template Editor Vulnerability http://www.securityfocus.com/bid/9987 All Enthusiast Photopost PHP Pro Multiple Input Validation V... http://www.securityfocus.com/bid/9994 PHPKit Multiple HTML Injection Vulnerabilities http://www.securityfocus.com/bid/10013 JamesOff QuoteEngine Multiple Parameter Unspecified SQL Inje... [has a PHP component, but it's not clear if that's the problem] http://www.securityfocus.com/bid/10017 -- 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 mitchy at spacemonkeylabs.com Fri Apr 9 11:58:20 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Fri, 09 Apr 2004 11:58:20 -0400 Subject: [nycphp-talk] Mambo users? In-Reply-To: <4075B966.9040608@prusak.com> References: <007501c41d11$f1e36e40$e98d3818@oberon1> <4075B966.9040608@prusak.com> Message-ID: <4076C81C.3050506@spacemonkeylabs.com> Ophir Prusak wrote: > Hi All, > > I'm looking into setting up a site with a CMS for a change, and not > hand written php :) > I remember hearing some people say that Mambo was great so I just > downloaded and installed it. > > Seems to be very cool. > > I was wondering if there are any Mambo users here that I could chat > with (AIM, MSN) to ask a couple of questions if needed. You got one of the core developers on the line ;) BTW the forums at www.mamboserver.com are also an excellent place to hang out for information. -- Mitch Recovering from a dead server :^/ From mikeh at dtev.com Fri Apr 9 12:02:01 2004 From: mikeh at dtev.com (mike hjorleifsson) Date: Fri, 09 Apr 2004 12:02:01 -0400 Subject: [nycphp-talk] Mambo users? In-Reply-To: <4076C81C.3050506@spacemonkeylabs.com> References: <007501c41d11$f1e36e40$e98d3818@oberon1> <4075B966.9040608@prusak.com> <4076C81C.3050506@spacemonkeylabs.com> Message-ID: <4076C8F9.2000602@dtev.com> We use mambo...drop me a line Mitch Pirtle wrote: > Ophir Prusak wrote: > >> Hi All, >> >> I'm looking into setting up a site with a CMS for a change, and not >> hand written php :) >> I remember hearing some people say that Mambo was great so I just >> downloaded and installed it. >> >> Seems to be very cool. >> >> I was wondering if there are any Mambo users here that I could chat >> with (AIM, MSN) to ask a couple of questions if needed. > > > You got one of the core developers on the line ;) > > BTW the forums at www.mamboserver.com are also an excellent place to > hang out for information. > > -- Mitch > Recovering from a dead server :^/ > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > > -- ======================= Mike Hjorleifsson 1110 South Ave Staten Island, NY 10314 Direct Ph: 718-247-4263 Fx: 718-247-1673 Online Store: http://www.elementcomputer.com PLEASE NOTE: This e-mail message may contain confidential and privileged material for the sole use of the intended recipient(s). If you are not the intended recipient you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error,please contact me immediately by e-mail or by telephone at (888) 858-4ION and delete the original message and any copies. Thank you. From dmintz at davidmintz.org Fri Apr 9 10:27:09 2004 From: dmintz at davidmintz.org (David Mintz) Date: Fri, 9 Apr 2004 10:27:09 -0400 (EDT) Subject: [nycphp-talk] password strength enforcement In-Reply-To: <20040329000049.15054.qmail@web14306.mail.yahoo.com> References: <20040329000049.15054.qmail@web14306.mail.yahoo.com> Message-ID: Just wondering what techniques you guys use for enforcing password strength on users when they create their own. I'm considering requiring as a mimimum eight characters including at least one digit but I might decide to do more. Anybody have any good snippets or tips? Thanks, --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From greg at click3x.com Fri Apr 9 13:09:16 2004 From: greg at click3x.com (Greg Faber) Date: Fri, 9 Apr 2004 13:09:16 -0400 Subject: [nycphp-talk] problems with pear stuff Message-ID: hey pallies! I just tried to implement recipe # 12.11 from Adam's Cookbook re: RSS feeds. I downloaded the following php files from pear: parser.php, tree.php, tree/node.php and rss.php but I get the following errors: Warning: main(PEAR.php): failed to open stream: No such file or directory in /var/www/html/XML/Parser.php on line 21 Fatal error: main(): Failed opening required 'PEAR.php' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/XML/Parser.php on line 21 now, I checked and the pear.php is in usr/share not usr/share/php , but I don't know if that's necessarily the cause of the error. If you have any idea (which, honestly, I bet you do) please help me. This is my first incursion into pear territory... thanks for your time! greg -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 994 bytes Desc: not available URL: From jonbaer at jonbaer.net Fri Apr 9 12:57:57 2004 From: jonbaer at jonbaer.net (jon baer) Date: Fri, 9 Apr 2004 12:57:57 -0400 Subject: [nycphp-talk] password strength enforcement References: <20040329000049.15054.qmail@web14306.mail.yahoo.com> Message-ID: <000501c41e53$cf10f390$6400a8c0@thinkpad> You should check out the CrackLib functions ... http://us3.php.net/manual/en/ref.crack.php - Jon ----- Original Message ----- From: "David Mintz" To: "NYPHP Talk" Sent: Friday, April 09, 2004 10:27 AM Subject: [nycphp-talk] password strength enforcement > > > Just wondering what techniques you guys use for enforcing password > strength on users when they create their own. I'm considering requiring as > a mimimum eight characters including at least one digit but I might decide > to do more. > > Anybody have any good snippets or tips? From danielc at analysisandsolutions.com Fri Apr 9 13:17:59 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 9 Apr 2004 13:17:59 -0400 Subject: [nycphp-talk] problems with pear stuff In-Reply-To: References: Message-ID: <20040409171759.GA10515@panix.com> On Fri, Apr 09, 2004 at 01:09:16PM -0400, Greg Faber wrote: > > Fatal error: main(): Failed opening required 'PEAR.php' > (include_path='.:/php/includes:/usr/share/php') in > /var/www/html/XML/Parser.php on line 21 > > now, I checked and the pear.php is in usr/share not usr/share/php So, either move the files to /usr/share/php or fix your include_path: ini_set('include_path', '/usr/share:.:blahblahblah'); --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 adam at trachtenberg.com Fri Apr 9 13:19:07 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Fri, 9 Apr 2004 13:19:07 -0400 (EDT) Subject: [nycphp-talk] problems with pear stuff In-Reply-To: References: Message-ID: On Fri, 9 Apr 2004, Greg Faber wrote: > I just tried to implement recipe # 12.11 from Adam's Cookbook re: RSS > feeds. Excellent. (BTW, it's actually Adam and David's Cookbook, but I wrote the RSS Recipe.) > I downloaded the following php files from pear: > parser.php, tree.php, tree/node.php and rss.php but I get the following > errors: Did you use the PEAR package manager? (i.e. did you do "pear get XML_RSS") Or did you somehow install the files manually? I presume you used the package manager, but I want to be sure. > Warning: main(PEAR.php): failed to open stream: No such file or > directory in /var/www/html/XML/Parser.php on line 21 > > Fatal error: main(): Failed opening required 'PEAR.php' > (include_path='.:/php/includes:/usr/share/php') in > /var/www/html/XML/Parser.php on line 21 > > now, I checked and the pear.php is in usr/share not usr/share/php , but > I don't know if that's necessarily the cause of the error. If you have > any idea (which, honestly, I bet you do) please help me. This is my > first incursion into pear territory... Well, it looks like pear installed them in /usr/share instead of /usr/share/php. That seems odd. What is the output of: $ pear config-get php_dir If it's /usr/share, you may want to change it to be /usr/share/php by doing: $ pear config-set php_dir /usr/share/php Of course, this requires you to make the extra directory. Alternatively, you can modify your include_path to add /usr/share, but that seems sloppy because you don't want to dump all your PHP files in /usr/share. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From jonbaer at jonbaer.net Fri Apr 9 13:04:52 2004 From: jonbaer at jonbaer.net (jon baer) Date: Fri, 9 Apr 2004 13:04:52 -0400 Subject: [nycphp-talk] problems with pear stuff References: Message-ID: <003401c41e54$c6ae14c0$6400a8c0@thinkpad> Fatal error: main(): Failed opening required 'PEAR.php' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/XML/Parser.php on line 21 Try to edit you php.ini file to read: include_path='.:/php/includes:/usr/share/php:/usr/share/php/PEAR/pear' (or whatever the path to PEAR.php actually is) And make sure permission are set correctly. - Jon -------------- next part -------------- An HTML attachment was scrubbed... URL: From ashaw at iifwp.org Fri Apr 9 13:29:08 2004 From: ashaw at iifwp.org (Allen Shaw) Date: Fri, 9 Apr 2004 13:29:08 -0400 Subject: [nycphp-talk] password strength enforcement References: <20040329000049.15054.qmail@web14306.mail.yahoo.com> <000501c41e53$cf10f390$6400a8c0@thinkpad> Message-ID: <003a01c41e58$2a5bef80$7801a8c0@iifwp.local> I'll quote you this from a design doc we're about to implement. We have about 5 users now, basically our own internal team, so I did not originally place much restriction at all on password format. But we're about to open big doors, and this is one of the guidelins we're planning to use. Since we haven't implemented it, though, I can't tell you how much or little complaint I get from users about it. ? A password must meet these criteria: ? Must contain at least 6 characters ? Must contain both letters and numbers ? Must not begin or end with a number ? May also contain US-English keyboard numbers and letters, spaces, and any of these characters: ~ ` ! @ # $ % ^ & * ( ) _ - + = | : ; ' " . , Jon's point is intriguing, though, and I want to make time to investigate CrackLib also. - Allen ----- Original Message ----- From: "jon baer" To: "NYPHP Talk" Sent: Friday, April 09, 2004 12:57 PM Subject: Re: [nycphp-talk] password strength enforcement > You should check out the CrackLib functions ... > > http://us3.php.net/manual/en/ref.crack.php > > - Jon > -- =========================================================== Allen Shaw ashaw at iifwp.org IIFWP Data and IT Services http://www.iifwp.org From csnyder at chxo.com Fri Apr 9 13:30:14 2004 From: csnyder at chxo.com (Chris Snyder) Date: Fri, 09 Apr 2004 13:30:14 -0400 Subject: [nycphp-talk] password strength enforcement In-Reply-To: References: <20040329000049.15054.qmail@web14306.mail.yahoo.com> Message-ID: <4076DDA6.4050906@chxo.com> David Mintz wrote: >Anybody have any good snippets or tips? > > I send people to http://tinyurl.com/3797n (GeodSoft) and ask them to pick one of the generated passwords there. They are generated using patterns that make them easier for humans to remember than random strings, but almost as hard to crack. From jonbaer at jonbaer.net Fri Apr 9 13:27:40 2004 From: jonbaer at jonbaer.net (jon baer) Date: Fri, 9 Apr 2004 13:27:40 -0400 Subject: [nycphp-talk] password strength enforcement References: <20040329000049.15054.qmail@web14306.mail.yahoo.com><000501c41e53$cf10f390$6400a8c0@thinkpad> <003a01c41e58$2a5bef80$7801a8c0@iifwp.local> Message-ID: <004b01c41e57$fdbbfc40$6400a8c0@thinkpad> Staying a little with the topic ... Does anyone here implement any security beyond brute-force detection for their PHP apps? I used to think using Snort for anomaly detection in web applications was a great idea but kinda overkill for people to understand how to use ... (writing a signature *with* your apps error handling) You mainly use this libraries (CrackLib) for really checking "bad passwords" but what is a bad password normally translate to how fast a script kiddy can load up jtr or cain & abel and bypass what you thought was impossible. Not alot of developers go off and monitor their traffic as it pertains to their application (or do they?) Its usually pretty easy to detect someone bruteforcing an app from the outside but does anyone do honeypot stuff to actually check? Just curious. I know they are making firewalls a bit "snort-like" these days but Im *sure* not everyone can afford those solutions :-) - Jon From mitchy at spacemonkeylabs.com Fri Apr 9 13:58:51 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Fri, 09 Apr 2004 13:58:51 -0400 Subject: [nycphp-talk] password strength enforcement In-Reply-To: References: <20040329000049.15054.qmail@web14306.mail.yahoo.com> Message-ID: <4076E45B.9090300@spacemonkeylabs.com> David Mintz wrote: >Just wondering what techniques you guys use for enforcing password >strength on users when they create their own. I'm considering requiring as >a mimimum eight characters including at least one digit but I might decide >to do more. > >Anybody have any good snippets or tips? > Yeah - use PEAR::HTML_QuickForm for the password management screens, and use the provided rules to ensure alphanumeric-ness and so on. Makes it easy. If password changes occur outside of PHP, then we are into a whole different realm... Some databases have the means of enforcing these types of rules, not sure about MySQL- this could at least throw an error if the proposed password was not compliant. -- Mitch From dmintz at davidmintz.org Fri Apr 9 16:12:47 2004 From: dmintz at davidmintz.org (David Mintz) Date: Fri, 9 Apr 2004 16:12:47 -0400 (EDT) Subject: [nycphp-talk] password strength enforcement In-Reply-To: <4076E45B.9090300@spacemonkeylabs.com> References: <20040329000049.15054.qmail@web14306.mail.yahoo.com> <4076E45B.9090300@spacemonkeylabs.com> Message-ID: On Fri, 9 Apr 2004, Mitch Pirtle wrote: > David Mintz wrote: > > > >Anybody have any good snippets or tips? > > > Yeah - use PEAR::HTML_QuickForm for the password management screens, and > use the provided rules to ensure alphanumeric-ness and so on. Makes it > easy. > Nice thread here, as usual. I was thinking about HTML_QuickForm and I'm not sure how the built in 'alphanumeric' would ensure that they ~did~ use both letters and numbers, it only returns true if they didn't put anything that ~wasn't~. Or have I been hitting the old crack pipe again? I'm considering something like function isStrongPassword($pwd) { return 2 <= preg_match_all('/\d/',$pwd,$matches) && strlen($pwd) >= 8 && preg_match('/[a-z].*[A-Z]|[A-Z].*[a-z]/',$pwd); } which you could readily plug in as a HMTL_QuickForm validation rule. This, obviously, makes them use both upper and lower case letters, two numbers, and no fewer than 8 characters, but it doesn't care about the "cannot begin or end with a number" which Allen Shaw proposed. Which by the way sounds like a good way to discourage passwords like Debbie16, which this function would permit. Hmmm... I imagine one of you d00ds will want to improve my regex. I want to say "it should have an upper case letter and a lower case letter and it doesn't matter which comes first." Thank you C Snyder for the URL, That looks like a site where I could happily kill a couple hours. Thanks Jon B for the tip about crack (the other kind). Looks like my ISP's PHP is compiled without out it.... guess I'd have to compile my own PHP and run it a la CGI if it's worth the effort. --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From greg at click3x.com Fri Apr 9 16:14:24 2004 From: greg at click3x.com (Greg Faber) Date: Fri, 9 Apr 2004 16:14:24 -0400 Subject: [nycphp-talk] problems with pear stuff In-Reply-To: References: Message-ID: <7EF4D2AD-8A62-11D8-9010-000502F1DDFC@click3x.com> um, well actually no, I didn't do pear get XML_RSS, I just went to the pear website and downloaded XML_RSS, XML_TREE and XML_PARSER. Upon closer examination I saw that parser.php was already installed. I tried doing "pear get XML_RSS" but I get "no such command" (the shell is bash-2.05a, btw). Thanks for taking the time to help me out. On Apr 9, 2004, at 1:19 PM, Adam Maccabee Trachtenberg wrote: > On Fri, 9 Apr 2004, Greg Faber wrote: > >> I just tried to implement recipe # 12.11 from Adam's Cookbook re: RSS >> feeds. > > Excellent. (BTW, it's actually Adam and David's Cookbook, but I wrote > the RSS Recipe.) > >> I downloaded the following php files from pear: >> parser.php, tree.php, tree/node.php and rss.php but I get the >> following >> errors: > > Did you use the PEAR package manager? (i.e. did you do "pear get > XML_RSS") Or did you somehow install the files manually? > > I presume you used the package manager, but I want to be sure. > >> Warning: main(PEAR.php): failed to open stream: No such file or >> directory in /var/www/html/XML/Parser.php on line 21 >> >> Fatal error: main(): Failed opening required 'PEAR.php' >> (include_path='.:/php/includes:/usr/share/php') in >> /var/www/html/XML/Parser.php on line 21 >> >> now, I checked and the pear.php is in usr/share not usr/share/php , >> but >> I don't know if that's necessarily the cause of the error. If you have >> any idea (which, honestly, I bet you do) please help me. This is my >> first incursion into pear territory... > > Well, it looks like pear installed them in /usr/share instead of > /usr/share/php. That seems odd. What is the output of: > > $ pear config-get php_dir > > If it's /usr/share, you may want to change it to be /usr/share/php by > doing: > > $ pear config-set php_dir /usr/share/php > > Of course, this requires you to make the extra > directory. Alternatively, you can modify your include_path to add > /usr/share, but that seems sloppy because you don't want to dump all > your PHP files in /usr/share. > > -adam > > -- > adam at trachtenberg.com > author of o'reilly's php cookbook > avoid the holiday rush, buy your copy today! > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From adam at trachtenberg.com Fri Apr 9 17:30:52 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Fri, 9 Apr 2004 17:30:52 -0400 (EDT) Subject: [nycphp-talk] problems with pear stuff In-Reply-To: <7EF4D2AD-8A62-11D8-9010-000502F1DDFC@click3x.com> References: <7EF4D2AD-8A62-11D8-9010-000502F1DDFC@click3x.com> Message-ID: On Fri, 9 Apr 2004, Greg Faber wrote: > um, well actually no, I didn't do pear get XML_RSS, I just went to the > pear website and downloaded XML_RSS, XML_TREE and XML_PARSER. Upon > closer examination I saw that parser.php was already installed. I tried > doing "pear get XML_RSS" but I get "no such command" (the shell is > bash-2.05a, btw). Thanks for taking the time to help me out. That's not the best way to manage PEAR packages. You should either read the final chapter of PHP Cookbook or consult the online PEAR documentation at http://pear.php.net. This show you how to install "pear" and PEAR packages the correct way and will save you a lot of time in the long run. (You may have some initial troubles getting it to work, but once it's going everything should be smooth sailing.) -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From mitchy at spacemonkeylabs.com Fri Apr 9 17:43:09 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Fri, 09 Apr 2004 17:43:09 -0400 Subject: [nycphp-talk] problems with pear stuff In-Reply-To: References: <7EF4D2AD-8A62-11D8-9010-000502F1DDFC@click3x.com> Message-ID: <407718ED.6030506@spacemonkeylabs.com> Adam Maccabee Trachtenberg wrote: > This show you how to install "pear" and PEAR packages the correct way > >and will save you a lot of time in the long run. (You may have some >initial troubles getting it to work, but once it's going everything >should be smooth sailing.) > > I've said this very same thing, and in practice, it is correct. However... I had a server die with a dead disk yesterday, and got the server 'restored' to a shiny new RedHat 8. (grumble grumble) I'm moving to a new host next week (dual Xeons, yippee!) but still need to serve for the next few days. Updating PHP beyond 4.2.2 is going to be a significant pain, as anyone with RH8 experience will attest ;) Is it possible to upgrade PEAR or just install from downloads? My existing setup only needs to run for 3-5 days, so I really don't want to go into gcc oblivion... -- Mitch From adam at trachtenberg.com Fri Apr 9 17:48:42 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Fri, 9 Apr 2004 17:48:42 -0400 (EDT) Subject: [nycphp-talk] problems with pear stuff In-Reply-To: <407718ED.6030506@spacemonkeylabs.com> References: <7EF4D2AD-8A62-11D8-9010-000502F1DDFC@click3x.com> <407718ED.6030506@spacemonkeylabs.com> Message-ID: On Fri, 9 Apr 2004, Mitch Pirtle wrote: > Is it possible to upgrade PEAR or just install from downloads? My > existing setup only needs to run for 3-5 days, so I really don't want to > go into gcc oblivion... My answer to the last message applies here, too. :) PEAR is a PHP-based solution, so as long as you have a the CGI or CLI version of PHP on your machine, it should be easy to install, first pear, and then use pear to install PEAR packages. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From jonbaer at jonbaer.net Fri Apr 9 17:37:38 2004 From: jonbaer at jonbaer.net (jon baer) Date: Fri, 9 Apr 2004 17:37:38 -0400 Subject: [nycphp-talk] problems with pear stuff References: <7EF4D2AD-8A62-11D8-9010-000502F1DDFC@click3x.com><407718ED.6030506@spacemonkeylabs.com> Message-ID: <011f01c41e7a$e12d9200$6400a8c0@thinkpad> > PEAR is a PHP-based solution, so as long as you have a the CGI or CLI > version of PHP on your machine, it should be easy to install, first > pear, and then use pear to install PEAR packages. FWIRIW, I wish more people knew this ... I notice alot of questions / what-ifs / code based on reinventing the wheel for some stuff that are already solid PEAR classes ... or I wish they would just call it "PHP Extensions" instead of making it sound like a completely different product, same thing with Smarty ... "PHP Template System" would be nice, damn acronyms :-) - Jon From adam at trachtenberg.com Fri Apr 9 18:57:21 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Fri, 9 Apr 2004 18:57:21 -0400 (EDT) Subject: [nycphp-talk] problems with pear stuff In-Reply-To: <011f01c41e7a$e12d9200$6400a8c0@thinkpad> References: <7EF4D2AD-8A62-11D8-9010-000502F1DDFC@click3x.com><407718ED.6030506@spacemonkeylabs.com> <011f01c41e7a$e12d9200$6400a8c0@thinkpad> Message-ID: On Fri, 9 Apr 2004, jon baer wrote: > > PEAR is a PHP-based solution, so as long as you have a the CGI or CLI > > version of PHP on your machine, it should be easy to install, first > > pear, and then use pear to install PEAR packages. > > FWIRIW, I wish more people knew this ... I notice alot of questions / > what-ifs / code based on reinventing the wheel for some stuff that are > already solid PEAR classes For a language that has excellent online documentation, the online PEAR documentation is surprisingly subpar. It is incomplete, out-dated, and often missing completely. This is a shame. I wish more people used PEAR the same way Perl programmers used CPAN. I know there's some philosophical differences between the two, but I really wish there was a centralized way to find all PHP packages, whether they're part of PEAR or just a useful library. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From epaul at speakeasy.net Fri Apr 9 20:29:05 2004 From: epaul at speakeasy.net (EPAUL) Date: Fri, 9 Apr 2004 20:29:05 -0400 Subject: [nycphp-talk] Mambo users? References: <007501c41d11$f1e36e40$e98d3818@oberon1> <4075B966.9040608@prusak.com> Message-ID: <005701c41e92$d4ef7d60$0a0aa8c0@78CRGWF> Hi All, I am looking into several types of CMS myself. I am interested in knowing how many people from this list are using or have used CMSs and which ones you like or dislike. Evan ----- Original Message ----- From: "Ophir Prusak" To: "NYPHP Talk" Sent: Thursday, April 08, 2004 4:43 PM Subject: [nycphp-talk] Mambo users? > Hi All, > > I'm looking into setting up a site with a CMS for a change, and not hand > written php :) > I remember hearing some people say that Mambo was great so I just > downloaded and installed it. > > Seems to be very cool. > > I was wondering if there are any Mambo users here that I could chat with > (AIM, MSN) to ask a couple of questions if needed. > > Thanks, > Ophir > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From mitchy at spacemonkeylabs.com Fri Apr 9 20:40:15 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Fri, 09 Apr 2004 20:40:15 -0400 Subject: [nycphp-talk] Mambo users? In-Reply-To: <005701c41e92$d4ef7d60$0a0aa8c0@78CRGWF> References: <007501c41d11$f1e36e40$e98d3818@oberon1> <4075B966.9040608@prusak.com> <005701c41e92$d4ef7d60$0a0aa8c0@78CRGWF> Message-ID: <4077426F.2000805@spacemonkeylabs.com> EPAUL wrote: >Hi All, > >I am looking into several types of CMS myself. I am interested in knowing >how many people from this list are using or have used CMSs and which ones >you like or dislike. > The easiest CMS I have ever worked with (from the front-end perspective) was Plone, which unfortunately was a huge beast and required running Zope as well. The best I could find in the PHP world was Mambo, which I am helping migrate to database independence because I want to use PostgreSQL, and am annoyed at folks telling me I have to use MySQL or risk not being one of the kewl kids. I tried maybe twenty others in a week's time, and all either had poor administration, difficult-to-impossible installation, or significant bugs er, features. The things that I find unique with Mambo is a super light distribution, simple install, awesome administration interface, and an established community providing add-on modules and templates (both free and commercial). The latest few releases added some excellent performance increases, so Mambo portals are very snappy. Also interesting to note is different content types (or views of content, if you will) - you can group your content as articles, blog-style, or whatever you want. The code is very easy to work with, and is all OO-based. So you can jump in and make any changes that you want. (As a new initiate into serious OO usage in PHP4, this has been an excellent learning experience for me as well.) The next major release is going to really do amazing things, and will raise everyone's expectations about what an open source CMS should be capable of. http://www.opensourcecms.com/ will give you the chance to test drive many CMS before a single download. Highly recommended. -- Mitch From epaul at speakeasy.net Fri Apr 9 21:05:28 2004 From: epaul at speakeasy.net (EPAUL) Date: Fri, 9 Apr 2004 21:05:28 -0400 Subject: [nycphp-talk] Mambo users? References: <007501c41d11$f1e36e40$e98d3818@oberon1> <4075B966.9040608@prusak.com><005701c41e92$d4ef7d60$0a0aa8c0@78CRGWF> <4077426F.2000805@spacemonkeylabs.com> Message-ID: <008201c41e97$ea672620$0a0aa8c0@78CRGWF> Mitch, thanks for your comments below! Have you tryed out tikiwiki (tikiwiki.org), and if so, what's your 2 cents on it? I am also looking for some feedback on xaraya and the *nukes type CMSs Any info will be appreciated! Evan ----- Original Message ----- From: "Mitch Pirtle" To: "NYPHP Talk" Sent: Friday, April 09, 2004 8:40 PM Subject: Re: [nycphp-talk] Mambo users? > EPAUL wrote: > > >Hi All, > > > >I am looking into several types of CMS myself. I am interested in knowing > >how many people from this list are using or have used CMSs and which ones > >you like or dislike. > > > The easiest CMS I have ever worked with (from the front-end perspective) > was Plone, which unfortunately was a huge beast and required running > Zope as well. > > The best I could find in the PHP world was Mambo, which I am helping > migrate to database independence because I want to use PostgreSQL, and > am annoyed at folks telling me I have to use MySQL or risk not being one > of the kewl kids. I tried maybe twenty others in a week's time, and all > either had poor administration, difficult-to-impossible installation, or > significant bugs er, features. > > > > The things that I find unique with Mambo is a super light distribution, > simple install, awesome administration interface, and an established > community providing add-on modules and templates (both free and > commercial). The latest few releases added some excellent performance > increases, so Mambo portals are very snappy. Also interesting to note > is different content types (or views of content, if you will) - you can > group your content as articles, blog-style, or whatever you want. The > code is very easy to work with, and is all OO-based. So you can jump in > and make any changes that you want. > > (As a new initiate into serious OO usage in PHP4, this has been an > excellent learning experience for me as well.) > > The next major release is going to really do amazing things, and will > raise everyone's expectations about what an open source CMS should be > capable of. > > > > http://www.opensourcecms.com/ will give you the chance to test drive > many CMS before a single download. Highly recommended. > > -- Mitch > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From mitchy at spacemonkeylabs.com Fri Apr 9 21:51:01 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Fri, 09 Apr 2004 21:51:01 -0400 Subject: [nycphp-talk] Mambo users? In-Reply-To: <008201c41e97$ea672620$0a0aa8c0@78CRGWF> References: <007501c41d11$f1e36e40$e98d3818@oberon1> <4075B966.9040608@prusak.com><005701c41e92$d4ef7d60$0a0aa8c0@78CRGWF> <4077426F.2000805@spacemonkeylabs.com> <008201c41e97$ea672620$0a0aa8c0@78CRGWF> Message-ID: <40775305.90509@spacemonkeylabs.com> EPAUL wrote: >Mitch, thanks for your comments below! Have you tryed out tikiwiki >(tikiwiki.org), and if so, what's your 2 cents on it? > > Yeah, I remember that one. Not a wiki fan, and needed something that was multi-purpose (personal sites, community portals, business sites). I tried to get the layouts that I wanted, but they just didn't work like I wanted them to. But I never did get the whole wiki craze either (shrug) >I am also looking for some feedback on xaraya and the *nukes type CMSs >Any info will be appreciated! > Xaraya is pretty good, I especially like the 'view article map' feature (I'm currently working on a portal with a lot of content!)... The *nukes have a rep of always looking like *nukes, no matter what you do - but I'm not sure if that is due to lazy layout efforts or technical limitations. Seems like all of the CMS are implementing TTW (Through The Web) editors like HTMLArea, so non-HTML folks can manage their own sites with a simple install and provided template. For me that was the biggest shortcoming. Perhaps we are seeing the maturation of this environment, where consolidation will take place - similar to the linux desktop being dominated by GNOME/KDE, editors being vi/emacs, etc.? In twelve months, I'll wager that there will be five major players in the FOSS/CMS space, and they will be almost identical in features. If you are planning on settling down with a particular CMS that will need to serve many purposes, then put a lot of research into what it takes to create a layout/template. For example, Mambo even has a Dreamweaver extension where a graphical layout person can 'program' a template, complete with dynamic content. This may be an important factor to you, as it was to me! -- Mitch From felix at bebinary.com Sat Apr 10 12:09:49 2004 From: felix at bebinary.com (felix zaslavskiy) Date: Sat, 10 Apr 2004 12:09:49 -0400 (EDT) Subject: [nycphp-talk] Mambo users? In-Reply-To: <40775305.90509@spacemonkeylabs.com> References: <007501c41d11$f1e36e40$e98d3818@oberon1> <4075B966.9040608@prusak.com><005701c41e92$d4ef7d60$0a0aa8c0@78CRGWF> <4077426F.2000805@spacemonkeylabs.com><008201c41e97$ea672620$0a0aa8c0@78CRGWF> <40775305.90509@spacemonkeylabs.com> Message-ID: <35169.69.31.90.22.1081613389.squirrel@www.bebinary.com> I use drupal for my personal site. It has a way to go but I seen lots of improvement in last release. The cvs version maybe the best state of the project. It certainly is not unlike other cmses. The only thing i dont like about it for development is constantly changing api's ( or improvements ) depends how you look at it. > EPAUL wrote: > >>Mitch, thanks for your comments below! Have you tryed out tikiwiki >>(tikiwiki.org), and if so, what's your 2 cents on it? >> >> > Yeah, I remember that one. Not a wiki fan, and needed something that > was multi-purpose (personal sites, community portals, business sites). > I tried to get the layouts that I wanted, but they just didn't work like > I wanted them to. But I never did get the whole wiki craze either (shrug) > >>I am also looking for some feedback on xaraya and the *nukes type CMSs >>Any info will be appreciated! >> > Xaraya is pretty good, I especially like the 'view article map' feature > (I'm currently working on a portal with a lot of content!)... The > *nukes have a rep of always looking like *nukes, no matter what you do - > but I'm not sure if that is due to lazy layout efforts or technical > limitations. > > Seems like all of the CMS are implementing TTW (Through The Web) editors > like HTMLArea, so non-HTML folks can manage their own sites with a > simple install and provided template. For me that was the biggest > shortcoming. Perhaps we are seeing the maturation of this environment, > where consolidation will take place - similar to the linux desktop being > dominated by GNOME/KDE, editors being vi/emacs, etc.? > > In twelve months, I'll wager that there will be five major players in > the FOSS/CMS space, and they will be almost identical in features. > > If you are planning on settling down with a particular CMS that will > need to serve many purposes, then put a lot of research into what it > takes to create a layout/template. For example, Mambo even has a > Dreamweaver extension where a graphical layout person can 'program' a > template, complete with dynamic content. This may be an important > factor to you, as it was to me! > > -- Mitch > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > -- Felix Zaslavskiy felix at bebinary.com (718) 576-1923 http://www.zaslavskiy.net From dmintz at davidmintz.org Sat Apr 10 19:05:46 2004 From: dmintz at davidmintz.org (David Mintz) Date: Sat, 10 Apr 2004 19:05:46 -0400 (EDT) Subject: [nycphp-talk] spelling: log-in or login In-Reply-To: <40775305.90509@spacemonkeylabs.com> References: <007501c41d11$f1e36e40$e98d3818@oberon1> <4075B966.9040608@prusak.com><005701c41e92$d4ef7d60$0a0aa8c0@78CRGWF> <4077426F.2000805@spacemonkeylabs.com> <008201c41e97$ea672620$0a0aa8c0@78CRGWF> <40775305.90509@spacemonkeylabs.com> Message-ID: I got a client who thinks the word should be spelled 'log-in'. I think 'login' predominates and should be preferred. I tried to google the issue and whenever I used log-in as a search term is says, "did you mean 'login'?" I should rest my case on that but... somebody back me up here. (-: --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From agfische at email.smith.edu Sat Apr 10 19:11:45 2004 From: agfische at email.smith.edu (Aaron Fischer) Date: Sat, 10 Apr 2004 19:11:45 -0400 Subject: [nycphp-talk] spelling: log-in or login In-Reply-To: References: <007501c41d11$f1e36e40$e98d3818@oberon1> <4075B966.9040608@prusak.com><005701c41e92$d4ef7d60$0a0aa8c0@78CRGWF> <4077426F.2000805@spacemonkeylabs.com> <008201c41e97$ea672620$0a0aa8c0@78CRGWF> <40775305.90509@spacemonkeylabs.com> Message-ID: <6FD8BAAE-8B44-11D8-AD0A-000A95AF225A@email.smith.edu> I think login is the more commonly accepted term. I also think it's more aesthetically pleasing to look at. =) Sometimes in text I'll say something like "In order to log in to the system...", but if you're referring to the actual box, it's a login box. Sort of like website and web site. I still use both but more commonly use website. However, I have never used log-in. Don't know where it comes from... HTH, -Aaron On Apr 10, 2004, at 7:05 PM, David Mintz wrote: > I got a client who thinks the word should be spelled 'log-in'. I think > 'login' predominates and should be preferred. I tried to google the > issue > and whenever I used log-in as a search term is says, "did you mean > 'login'?" > > I should rest my case on that but... somebody back me up here. > > (-: From mitchy at spacemonkeylabs.com Sat Apr 10 20:10:47 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Sat, 10 Apr 2004 20:10:47 -0400 Subject: [nycphp-talk] spelling: log-in or login In-Reply-To: References: <007501c41d11$f1e36e40$e98d3818@oberon1> <4075B966.9040608@prusak.com><005701c41e92$d4ef7d60$0a0aa8c0@78CRGWF> <4077426F.2000805@spacemonkeylabs.com> <008201c41e97$ea672620$0a0aa8c0@78CRGWF> <40775305.90509@spacemonkeylabs.com> Message-ID: <40788D07.4070709@spacemonkeylabs.com> David Mintz wrote: >I got a client who thinks the word should be spelled 'log-in'. I think >'login' predominates and should be preferred. I tried to google the issue >and whenever I used log-in as a search term is says, "did you mean >'login'?" > >I should rest my case on that but... somebody back me up here. > > Well, some of the, uh, er, 'seasoned veterans' probably remember when it was really called 'logon'. For me that was around 1984 or so... From southwell at dneba.com Sat Apr 10 20:31:58 2004 From: southwell at dneba.com (Michael Southwell) Date: Sat, 10 Apr 2004 20:31:58 -0400 Subject: [nycphp-talk] spelling: log-in or login In-Reply-To: <40788D07.4070709@spacemonkeylabs.com> References: <007501c41d11$f1e36e40$e98d3818@oberon1> <4075B966.9040608@prusak.com> <005701c41e92$d4ef7d60$0a0aa8c0@78CRGWF> <4077426F.2000805@spacemonkeylabs.com> <008201c41e97$ea672620$0a0aa8c0@78CRGWF> <40775305.90509@spacemonkeylabs.com> <40788D07.4070709@spacemonkeylabs.com> Message-ID: <6.0.3.0.2.20040410203025.01ee85b0@mail.optonline.net> At 08:10 PM 4/10/2004, you wrote: >Well, some of the, uh, er, 'seasoned veterans' probably remember when it >was really called 'logon'. For me that was around 1984 or so... right, with IBM big iron you would logon and logoff with WYLBUR, but with DEC it was in and out Michael G. Southwell ================================= DNEBA Enterprises 81 South Road Bloomingdale, NJ 07403-1419 973/492-7873 (voice and fax) southwell at dneba.com http://www.dneba.com ====================================================== From mitchy at spacemonkeylabs.com Sat Apr 10 20:44:49 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Sat, 10 Apr 2004 20:44:49 -0400 Subject: [nycphp-talk] spelling: log-in or login In-Reply-To: <6.0.3.0.2.20040410203025.01ee85b0@mail.optonline.net> References: <007501c41d11$f1e36e40$e98d3818@oberon1> <4075B966.9040608@prusak.com> <005701c41e92$d4ef7d60$0a0aa8c0@78CRGWF> <4077426F.2000805@spacemonkeylabs.com> <008201c41e97$ea672620$0a0aa8c0@78CRGWF> <40775305.90509@spacemonkeylabs.com> <40788D07.4070709@spacemonkeylabs.com> <6.0.3.0.2.20040410203025.01ee85b0@mail.optonline.net> Message-ID: <40789501.1080709@spacemonkeylabs.com> Michael Southwell wrote: > At 08:10 PM 4/10/2004, you wrote: > >> Well, some of the, uh, er, 'seasoned veterans' probably remember when >> it was really called 'logon'. For me that was around 1984 or so... > > > right, with IBM big iron you would logon and logoff with WYLBUR, but > with DEC it was in and out Man, was it ever! (rimshot) From jsiegel1 at optonline.net Sat Apr 10 21:14:39 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Sat, 10 Apr 2004 21:14:39 -0400 Subject: [nycphp-talk] spelling: log-in or login In-Reply-To: <6.0.3.0.2.20040410203025.01ee85b0@mail.optonline.net> References: <007501c41d11$f1e36e40$e98d3818@oberon1> <4075B966.9040608@prusak.com> <005701c41e92$d4ef7d60$0a0aa8c0@78CRGWF> <4077426F.2000805@spacemonkeylabs.com> <008201c41e97$ea672620$0a0aa8c0@78CRGWF> <40775305.90509@spacemonkeylabs.com> <40788D07.4070709@spacemonkeylabs.com> <6.0.3.0.2.20040410203025.01ee85b0@mail.optonline.net> Message-ID: <40789BFF.6070005@optonline.net> WYLBUR!! Yech! I was a Kermit man, myself. Jeff Siegel ------------- Michael Southwell wrote: > At 08:10 PM 4/10/2004, you wrote: > >> Well, some of the, uh, er, 'seasoned veterans' probably remember when >> it was really called 'logon'. For me that was around 1984 or so... > > > right, with IBM big iron you would logon and logoff with WYLBUR, but > with DEC it was in and out > > > Michael G. Southwell ================================= > DNEBA Enterprises > 81 South Road > Bloomingdale, NJ 07403-1419 > 973/492-7873 (voice and fax) > southwell at dneba.com > http://www.dneba.com > ====================================================== > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From adam at trachtenberg.com Sun Apr 11 02:42:55 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Sun, 11 Apr 2004 02:42:55 -0400 (EDT) Subject: [nycphp-talk] spelling: log-in or login In-Reply-To: References: <007501c41d11$f1e36e40$e98d3818@oberon1> <4075B966.9040608@prusak.com><005701c41e92$d4ef7d60$0a0aa8c0@78CRGWF> <4077426F.2000805@spacemonkeylabs.com> <008201c41e97$ea672620$0a0aa8c0@78CRGWF> <40775305.90509@spacemonkeylabs.com> Message-ID: On Sat, 10 Apr 2004, David Mintz wrote: > I got a client who thinks the word should be spelled 'log-in'. I think > 'login' predominates and should be preferred. I tried to google the issue > and whenever I used log-in as a search term is says, "did you mean > 'login'?" See about halfway down the page: http://blogs.officezealot.com/spiller/archives/000557.html This blog has lots of useful information about writing, particularly technical writing. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From tgales at tgaconnect.com Sun Apr 11 06:29:20 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Sun, 11 Apr 2004 06:29:20 -0400 Subject: [nycphp-talk] spelling: log-in or login In-Reply-To: Message-ID: <001301c41faf$da0f7340$e98d3818@oberon1> David Mintz writes: " I got a client who thinks the word should be spelled 'log-in'. I think 'login' predominates and should be preferred... somebody back me up here" I don't know what your relationship is with your client, but my immediate reaction is: if the client wants it spelled 'log-in' spell it the way the client wants. I mean its not like people won't know how to use the website, if you don't spell 'login' in the generally accepted way. In the future, if your client is in favor of making a major design blunder which would make the site very hard to use, and you want to persuade him/her not to, you don't want the client to view your suggestion as yet another 'nit-picking' suggestion to alter the design. Again, since I don't know what your relation- ship is with the client, I don't know how applicable this line of reasoning is. This is just 'food for thought'. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From dmintz at davidmintz.org Sun Apr 11 08:57:05 2004 From: dmintz at davidmintz.org (David Mintz) Date: Sun, 11 Apr 2004 08:57:05 -0400 (EDT) Subject: [nycphp-talk] spelling: log-in or login In-Reply-To: <001301c41faf$da0f7340$e98d3818@oberon1> References: <001301c41faf$da0f7340$e98d3818@oberon1> Message-ID: Thanks all. I did a little more research, including checking the page Adam pointed me to. It seems that the proper verb, or verb phrase, as the case may be, is "log in", and the noun is "login". Tim's points about not haggling unecessarily with the client over minutiae are well taken. She says she prefers "log-in" because "login" looks "weird" to her. --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From mitchy at spacemonkeylabs.com Sun Apr 11 09:21:14 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Sun, 11 Apr 2004 09:21:14 -0400 Subject: [nycphp-talk] spelling: log-in or login In-Reply-To: References: <001301c41faf$da0f7340$e98d3818@oberon1> Message-ID: <4079464A.7030307@spacemonkeylabs.com> David Mintz wrote: >Thanks all. > >I did a little more research, including checking the page Adam pointed me >to. It seems that the proper verb, or verb phrase, as the case may be, is >"log in", and the noun is "login". Tim's points about not haggling >unecessarily with the client over minutiae are well taken. She says she >prefers "log-in" because "login" looks "weird" to her. > You could follow the hint from PEAR::Auth and just use 'username'... :^P From jonbaer at jonbaer.net Sun Apr 11 11:31:22 2004 From: jonbaer at jonbaer.net (jon baer) Date: Sun, 11 Apr 2004 11:31:22 -0400 Subject: [nycphp-talk] Fw: phpFlashMyAdmin - a Flash client for MySQL database administration Message-ID: <000a01c41fda$0c6984f0$6400a8c0@thinkpad> ----- Original Message ----- From: "Darren Gates" To: Sent: Sunday, April 11, 2004 2:41 AM Subject: phpFlashMyAdmin - a Flash client for MySQL database administration > > Dear TUFaT.com user, > > I am pleased to announce the release of a new product at TUFaT.com: > > phpFlashMyAdmin > > These are exciting times for Flash/PHP development. With the release of Flash 2004 last year, a flurry of so-called "Rich Internet Applications" (RIAs) have been introduced to the marketplace. phpFlashMyAdmin is one such application. > > Now, you might wonder: why should I replace phpMyAdmin with a Flash version? Two reasons: > > 1) no annoying page refreshes > 2) intuitive, visual interface for creating, updating, and deleting table relationships > > If you've ever used a database tool like Microsoft Access or FileMaker Pro, you are no doubt familiar with the table relationship tools which come with those programs. Such a tool has never existed for MySQL. In part, this is because versions of MySQL prior to 4.0 did not support foreign key relationships. But with MySQL 4.0, this is now possible, and phpFlashMyAdmin is the first to take advantage of this new capability. Enforce referential integrity among tables, cascade updates and deletes... and do it all visually! > > For MySQL users who need to rapidly browse through hundreds of database records, page refreshes quickly go from a minor annoyance to a major headache. With its sleek Flash 7 interface, phpFlashMyAdmin minimizes the amount of traffic between client and server, keeping the client .swf file in memory while decreasing bandwidth. > > The best part is that phpFlashMyAdmin costs only $5, and upgrades are free! So you can be assured of the continued value of your investment. phpFlashMyAdmin supports the most commonly-used features of phpMyAdmin, while simplifying the interface somewhat. > > You can read more about phpFlashMyAdmin at: > > http://www.tufat.com/phpflashmyadmin.php > > Thanks for your interest in TUFaT.com! > > Darren > From nyphp at enobrev.com Sun Apr 11 11:54:36 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Sun, 11 Apr 2004 11:54:36 -0400 Subject: [nycphp-talk] Fw: phpFlashMyAdmin - a Flash client for MySQLdatabase administration In-Reply-To: <000a01c41fda$0c6984f0$6400a8c0@thinkpad> Message-ID: > > I am pleased to announce the release of a new product at TUFaT.com: > > You can read more about phpFlashMyAdmin at: > > > > http://www.tufat.com/phpflashmyadmin.php I was looking over this on Thursday. Incredibly well done. Try the demo if you get a chance. Mark From southwell at dneba.com Sun Apr 11 12:48:38 2004 From: southwell at dneba.com (Michael Southwell) Date: Sun, 11 Apr 2004 12:48:38 -0400 Subject: [nycphp-talk] log-in Message-ID: <6.0.3.0.2.20040411124739.01e86b40@mail.optonline.net> http://www.tiaa-cref.com uses "log-in" Michael G. Southwell ================================= DNEBA Enterprises 81 South Road Bloomingdale, NJ 07403-1419 973/492-7873 (voice and fax) southwell at dneba.com http://www.dneba.com ====================================================== From lists at mx2pro.com Sun Apr 11 12:57:52 2004 From: lists at mx2pro.com (Dan Horning) Date: Sun, 11 Apr 2004 12:57:52 -0400 Subject: [nycphp-talk] Fw: phpFlashMyAdmin - a Flash client forMySQLdatabase administration In-Reply-To: Message-ID: <200404111657.i3BGvvMY016745@ms-smtp-04.nyroc.rr.com> I have to say wow myself - nice work I bought that thing within like 5 minutes of hiting the site. source included too!!!!! that's awesome b/c most of these flash based systems don't want you to have their source code Dan Horning - Technical Systems Administration http://www.mx2pro.com/ http://dan.mx2pro.com/ 1-866-AVID-150 (Personal Direct Line) > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Mark Armendariz > Sent: Sunday, April 11, 2004 11:55 AM > To: 'NYPHP Talk' > Subject: RE: [nycphp-talk] Fw: phpFlashMyAdmin - a Flash > client forMySQLdatabase administration > > > > I am pleased to announce the release of a new product at > TUFaT.com: > > > > You can read more about phpFlashMyAdmin at: > > > > > > http://www.tufat.com/phpflashmyadmin.php > > I was looking over this on Thursday. Incredibly well done. > Try the demo if > you get a chance. > > Mark > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From agfische at email.smith.edu Sun Apr 11 13:06:57 2004 From: agfische at email.smith.edu (Aaron Fischer) Date: Sun, 11 Apr 2004 13:06:57 -0400 Subject: [nycphp-talk] log-in In-Reply-To: <6.0.3.0.2.20040411124739.01e86b40@mail.optonline.net> References: <6.0.3.0.2.20040411124739.01e86b40@mail.optonline.net> Message-ID: Wouldn't put much stock in that, no pun intended. I'm a client of theirs and I'm constantly frustrated by their web user interface. It's a bit archaic, IMO. -Aaron On Apr 11, 2004, at 12:48 PM, Michael Southwell wrote: > http://www.tiaa-cref.com uses "log-in" From jonbaer at jonbaer.net Sun Apr 11 12:59:25 2004 From: jonbaer at jonbaer.net (jon baer) Date: Sun, 11 Apr 2004 12:59:25 -0400 Subject: [nycphp-talk] Fw: phpFlashMyAdmin - a Flash clientforMySQLdatabase administration References: <200404111657.i3BGvvMY016745@ms-smtp-04.nyroc.rr.com> Message-ID: <001901c41fe6$5a00fd90$6400a8c0@thinkpad> > > source included too!!!!! > > that's awesome b/c most of these flash based systems don't want you to have > their source code Yeah that's the key, did you dump it into Flash and recompile? ... nothing like PHP trojan applications in the wild :-) - Jon From lists at mx2pro.com Sun Apr 11 13:18:02 2004 From: lists at mx2pro.com (Dan Horning) Date: Sun, 11 Apr 2004 13:18:02 -0400 Subject: [nycphp-talk] Fw: phpFlashMyAdmin - a Flash clientforMySQLdatabaseadministration In-Reply-To: <001901c41fe6$5a00fd90$6400a8c0@thinkpad> Message-ID: <200404111718.i3BHI8uV016559@ms-smtp-02.nyroc.rr.com> actually I reviewed the code - so far it's crystal clear clean - but I've not yet had the fine tooth to it ;-) I'll do that tomorrow when I'm bored out of my mind > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of jon baer > Sent: Sunday, April 11, 2004 12:59 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Fw: phpFlashMyAdmin - a Flash > clientforMySQLdatabaseadministration > > > > > source included too!!!!! > > > > that's awesome b/c most of these flash based systems don't > want you to > have > > their source code > > Yeah that's the key, did you dump it into Flash and > recompile? ... nothing > like PHP trojan applications in the wild :-) > > - Jon > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From danielc at analysisandsolutions.com Sun Apr 11 13:50:04 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sun, 11 Apr 2004 13:50:04 -0400 Subject: [nycphp-talk] password strength enforcement In-Reply-To: <003a01c41e58$2a5bef80$7801a8c0@iifwp.local> References: <000501c41e53$cf10f390$6400a8c0@thinkpad> <003a01c41e58$2a5bef80$7801a8c0@iifwp.local> Message-ID: <20040411175004.GA2267@panix.com> On Fri, Apr 09, 2004 at 01:29:08PM -0400, Allen Shaw wrote: > > ? Must not begin or end with a number Why? --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 ashaw at iifwp.org Sun Apr 11 15:27:16 2004 From: ashaw at iifwp.org (Allen Shaw) Date: Sun, 11 Apr 2004 15:27:16 -0400 Subject: [nycphp-talk] password strength enforcement References: <000501c41e53$cf10f390$6400a8c0@thinkpad><003a01c41e58$2a5bef80$7801a8c0@iifwp.local> <20040411175004.GA2267@panix.com> Message-ID: <003101c41ffb$034f5680$2102a8c0@WorkGroup> Idea was just to prevent passwords like "mouse98" which -- I've read -- are easily cracked: dictionary words with a number added at the beginning or end. Honestly, I'm curious to hear how effective or lame you think such a requirement might be, since I'm pretty new to the topic. - Allen ----- Original Message ----- From: "Daniel Convissor" To: "NYPHP Talk" Sent: Sunday, April 11, 2004 1:50 PM Subject: Re: [nycphp-talk] password strength enforcement > On Fri, Apr 09, 2004 at 01:29:08PM -0400, Allen Shaw wrote: > > > > ? Must not begin or end with a number > > Why? > > --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 > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From southwell at dneba.com Sun Apr 11 18:33:07 2004 From: southwell at dneba.com (Michael Southwell) Date: Sun, 11 Apr 2004 18:33:07 -0400 Subject: [nycphp-talk] log-in In-Reply-To: References: <6.0.3.0.2.20040411124739.01e86b40@mail.optonline.net> Message-ID: <6.0.3.0.2.20040411183203.01ea1b78@mail.optonline.net> At 01:06 PM 4/11/2004, you wrote: >Wouldn't put much stock in that, no pun intended. I'm a client of theirs >and I'm constantly frustrated by their web user interface. It's a bit >archaic, IMO. thus proving what has been said several times already, that "log-in" is the one that's weird Michael G. Southwell ================================= DNEBA Enterprises 81 South Road Bloomingdale, NJ 07403-1419 973/492-7873 (voice and fax) southwell at dneba.com http://www.dneba.com ====================================================== From jonbaer at jonbaer.net Sun Apr 11 18:17:16 2004 From: jonbaer at jonbaer.net (jon baer) Date: Sun, 11 Apr 2004 18:17:16 -0400 Subject: [nycphp-talk] password strength enforcement References: <000501c41e53$cf10f390$6400a8c0@thinkpad><003a01c41e58$2a5bef80$7801a8c0@iifwp.local><20040411175004.GA2267@panix.com> <003101c41ffb$034f5680$2102a8c0@WorkGroup> Message-ID: <002901c42012$bf734800$6400a8c0@thinkpad> Just FYI, this is what is meant by "brute force" and you are right alot of *crackers* allow you to adjust the amount of digits which *must* appear in the password, BUT to prevent this type of cracking you do *not* want to publicize what your password policy is ... alot of signup forms make this terrible presumption that guys signing up to a form are legit people when in fact if you have an error message like: password: * must use 3 digits * must be 6 - 8 characters long (or max) You kinda give away alot of info :-) ----- Original Message ----- From: "Allen Shaw" To: "NYPHP Talk" Sent: Sunday, April 11, 2004 3:27 PM Subject: Re: [nycphp-talk] password strength enforcement > Idea was just to prevent passwords like "mouse98" which -- I've read -- are > easily cracked: dictionary words with a number added at the beginning or > end. Honestly, I'm curious to hear how effective or lame you think such a > requirement might be, since I'm pretty new to the topic. From jlacey at att.net Sun Apr 11 19:46:40 2004 From: jlacey at att.net (John Lacey) Date: Sun, 11 Apr 2004 17:46:40 -0600 Subject: [nycphp-talk] log-in In-Reply-To: <6.0.3.0.2.20040411183203.01ea1b78@mail.optonline.net> References: <6.0.3.0.2.20040411124739.01e86b40@mail.optonline.net> <6.0.3.0.2.20040411183203.01ea1b78@mail.optonline.net> Message-ID: <4079D8E0.9050000@att.net> Michael Southwell wrote: > At 01:06 PM 4/11/2004, you wrote: > >> Wouldn't put much stock in that, no pun intended. I'm a client of >> theirs and I'm constantly frustrated by their web user interface. >> It's a bit archaic, IMO. > > > thus proving what has been said several times already, that "log-in" is > the one that's weird > > I prefer Username: [text box] and Password: [text box] with the submit button reading "Login" my $0.02 John From agfische at email.smith.edu Sun Apr 11 20:08:09 2004 From: agfische at email.smith.edu (Aaron Fischer) Date: Sun, 11 Apr 2004 20:08:09 -0400 Subject: [nycphp-talk] log-in In-Reply-To: <4079D8E0.9050000@att.net> References: <6.0.3.0.2.20040411124739.01e86b40@mail.optonline.net> <6.0.3.0.2.20040411183203.01ea1b78@mail.optonline.net> <4079D8E0.9050000@att.net> Message-ID: <7B11CA88-8C15-11D8-9ECE-000A95AF225A@email.smith.edu> Ditto. -Aaron On Apr 11, 2004, at 7:46 PM, John Lacey wrote: > I prefer Username: [text box] and Password: [text box] with the submit > button reading "Login" From adam at trachtenberg.com Sun Apr 11 20:32:09 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Sun, 11 Apr 2004 20:32:09 -0400 (EDT) Subject: [nycphp-talk] password strength enforcement In-Reply-To: <002901c42012$bf734800$6400a8c0@thinkpad> References: <000501c41e53$cf10f390$6400a8c0@thinkpad><003a01c41e58$2a5bef80$7801a8c0@iifwp.local><20040411175004.GA2267@panix.com> <003101c41ffb$034f5680$2102a8c0@WorkGroup> <002901c42012$bf734800$6400a8c0@thinkpad> Message-ID: On Sun, 11 Apr 2004, jon baer wrote: > Just FYI, this is what is meant by "brute force" and you are right alot of > *crackers* allow you to adjust the amount of digits which *must* appear in > the password, BUT to prevent this type of cracking you do *not* want to > publicize what your password policy is ... alot of signup forms make this > terrible presumption that guys signing up to a form are legit people when in > fact if you have an error message like: > > password: > * must use 3 digits > * must be 6 - 8 characters long (or max) > > You kinda give away alot of info :-) I don't know. Do you really think it's better to make the user guess through trial and error? If I was signing up for your site, I'd get frustrated pretty quickly. Besides, it's not that hard for a cracker to try a few sample passwords and generalize what does and doesn't make it through your filters. The real purpose of enforcing these types of rules is to push your passwords into a statespace large enough to make brute force attacks computationally expensive. There are more potential passwords of exactly six letters than there are of any number between one and five letters combined! So, letting a cracker know he can skip short passwords doesn't really help him out all that much. (Likewise, for skipping dictionary attacks.) Plus, if you can't detect someone trying to sign in to an account over a billion times, you've got a much larger problem. :) -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From suzerain at suzerain.com Sun Apr 11 20:48:21 2004 From: suzerain at suzerain.com (Marc Antony Vose) Date: Sun, 11 Apr 2004 20:48:21 -0400 Subject: [nycphp-talk] JPEGs and metadata In-Reply-To: <7B11CA88-8C15-11D8-9ECE-000A95AF225A@email.smith.edu> References: <6.0.3.0.2.20040411124739.01e86b40@mail.optonline.net> <6.0.3.0.2.20040411183203.01ea1b78@mail.optonline.net> <4079D8E0.9050000@att.net> <7B11CA88-8C15-11D8-9ECE-000A95AF225A@email.smith.edu> Message-ID: Hi there: This really only marginally has anything to do with PHP, although I will want to read this stuff in PHP. I know Photoshop (and other image editors) are capable of adding metadata to images, kind of like ID3 tags, but I'm not sure if that is proprietary. I've done a bit of research, and I can't seem to tell if there is an industry standard for this sort of thing. I need to build multiple galleries as part of an archival project, and normally I have been storing credit/caption/copyright as separate data in a database or a serialized text file, but I am wondering if there is a way I can just tag that data onto the file itself? It seems to me that would be much slicker, in some ways... Any thoughts? -- Marc Antony Vose http://www.suzerain.com/ Life is a sexually transmitted disease with a 100% mortality rate. -- David Shaw From jeffknight at mac.com Sun Apr 11 21:04:10 2004 From: jeffknight at mac.com (putamare) Date: Sun, 11 Apr 2004 21:04:10 -0400 Subject: [nycphp-talk] JPEGs and metadata In-Reply-To: References: <6.0.3.0.2.20040411124739.01e86b40@mail.optonline.net> <6.0.3.0.2.20040411183203.01ea1b78@mail.optonline.net> <4079D8E0.9050000@att.net> <7B11CA88-8C15-11D8-9ECE-000A95AF225A@email.smith.edu> Message-ID: <4E7C8A92-8C1D-11D8-AD23-003065F9A07A@mac.com> IPTC http://www.nyphp.org/content/presentations/GDintro/gd28.php http://us3.php.net/manual/en/function.iptcparse.php On Apr 11, 2004, at 8:48 PM, Marc Antony Vose wrote: > Hi there: > > This really only marginally has anything to do with PHP, although I > will want to read this stuff in PHP. > > I know Photoshop (and other image editors) are capable of adding > metadata to images, kind of like ID3 tags, but I'm not sure if that is > proprietary. I've done a bit of research, and I can't seem to tell if > there is an industry standard for this sort of thing. > > I need to build multiple galleries as part of an archival project, and > normally I have been storing credit/caption/copyright as separate data > in a database or a serialized text file, but I am wondering if there > is a way I can just tag that data onto the file itself? It seems to > me that would be much slicker, in some ways... > > Any thoughts? > > -- > Marc Antony Vose > http://www.suzerain.com/ > > Life is a sexually transmitted disease with a 100% mortality rate. > -- David Shaw > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From adam at trachtenberg.com Sun Apr 11 21:06:24 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Sun, 11 Apr 2004 21:06:24 -0400 (EDT) Subject: [nycphp-talk] JPEGs and metadata In-Reply-To: References: <6.0.3.0.2.20040411124739.01e86b40@mail.optonline.net> <6.0.3.0.2.20040411183203.01ea1b78@mail.optonline.net> <4079D8E0.9050000@att.net> <7B11CA88-8C15-11D8-9ECE-000A95AF225A@email.smith.edu> Message-ID: On Sun, 11 Apr 2004, Marc Antony Vose wrote: > I know Photoshop (and other image editors) are capable of adding > metadata to images, kind of like ID3 tags, but I'm not sure if that > is proprietary. I've done a bit of research, and I can't seem to > tell if there is an industry standard for this sort of thing. The pseudo-standard is called EXIF. Googling for it should give you some useful links. PHP has built-in support for reading EXIF files, but it's not enabled by default. Start with http://www.php.net/exif-read-data and go from there. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From bill at ilovett.com Sun Apr 11 21:09:27 2004 From: bill at ilovett.com (Bill Lovett) Date: Sun, 11 Apr 2004 21:09:27 -0400 Subject: [nycphp-talk] JPEGs and metadata In-Reply-To: References: <6.0.3.0.2.20040411124739.01e86b40@mail.optonline.net> <6.0.3.0.2.20040411183203.01ea1b78@mail.optonline.net> <4079D8E0.9050000@att.net> <7B11CA88-8C15-11D8-9ECE-000A95AF225A@email.smith.edu> Message-ID: <4079EC47.2000405@ilovett.com> From http://us4.php.net/manual/en/function.exif-read-data.php "Exif headers tend to be present in JPEG/TIFF images generated by digital cameras, but unfortunately each digital camera maker has a different idea of how to actually tag their images, so you can't always rely on a specific Exif header being present." But further down it also mentions the "Exif 2.10 standard". I know you can read the metadata via php, not sure about writing it. -bill Marc Antony Vose wrote: > Hi there: > > This really only marginally has anything to do with PHP, although I will > want to read this stuff in PHP. > > I know Photoshop (and other image editors) are capable of adding > metadata to images, kind of like ID3 tags, but I'm not sure if that is > proprietary. I've done a bit of research, and I can't seem to tell if > there is an industry standard for this sort of thing. > > I need to build multiple galleries as part of an archival project, and > normally I have been storing credit/caption/copyright as separate data > in a database or a serialized text file, but I am wondering if there is > a way I can just tag that data onto the file itself? It seems to me > that would be much slicker, in some ways... > > Any thoughts? > -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 5194 bytes Desc: S/MIME Cryptographic Signature URL: From csnyder at chxo.com Sun Apr 11 21:09:59 2004 From: csnyder at chxo.com (Chris Snyder) Date: Sun, 11 Apr 2004 21:09:59 -0400 Subject: [nycphp-talk] JPEGs and metadata In-Reply-To: References: <6.0.3.0.2.20040411124739.01e86b40@mail.optonline.net> <6.0.3.0.2.20040411183203.01ea1b78@mail.optonline.net> <4079D8E0.9050000@att.net> <7B11CA88-8C15-11D8-9ECE-000A95AF225A@email.smith.edu> Message-ID: <4079EC67.7030800@chxo.com> Photoshop (and presumably Acrobat?) use an Adobe technology called XMP, documented here: http://www.adobe.com/products/xmp/main.html As I recall, you could build XMP with PHP and put it into any binary file, as long as you were willing to do some bit-level manipulation. It's been a while since I looked at it. Having a PHP class that handled this for JPEGs would be pretty excellent... anybody know of one? From csnyder at chxo.com Sun Apr 11 21:15:09 2004 From: csnyder at chxo.com (Chris Snyder) Date: Sun, 11 Apr 2004 21:15:09 -0400 Subject: [nycphp-talk] JPEGs and metadata In-Reply-To: <4079EC67.7030800@chxo.com> References: <6.0.3.0.2.20040411124739.01e86b40@mail.optonline.net> <6.0.3.0.2.20040411183203.01ea1b78@mail.optonline.net> <4079D8E0.9050000@att.net> <7B11CA88-8C15-11D8-9ECE-000A95AF225A@email.smith.edu> <4079EC67.7030800@chxo.com> Message-ID: <4079ED9D.6020902@chxo.com> I've seen a couple different methods mentioned in this thread: EXIF, IPTC tags, XMP... Additionally Creative Commons recommends using the Copyright tag for a URL pointing to metadata (license info in their case, of course). Has anyone seen any images with xml or rdf metadata embedded? How was it stored? From nyphp at enobrev.com Sun Apr 11 21:16:21 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Sun, 11 Apr 2004 21:16:21 -0400 Subject: [nycphp-talk] JPEGs and metadata In-Reply-To: Message-ID: > I need to build multiple galleries as part of an archival > project, and normally I have been storing > credit/caption/copyright as separate data in a database or a > serialized text file, but I am wondering if there is a way I > can just tag that data onto the file itself? It seems to me > that would be much slicker, in some ways... > > Any thoughts? Very interesting idea. So interesting I did some looking as well... Here's what I came up with: Php function to grab the meta data: http://www.php.net/manual/en/function.exif-read-data.php "EXIF.org is a site dedicated to EXIF and related resources. EXIF stands for Exchangeable Image File Format, and is a standard for storing interchange information in image files, especially those using JPEG compression." http://www.exif.org/ Mmm.. I smell a few image management objects in the oven. Oh, and look.. A beer!! Good luck! Mark From jonbaer at jonbaer.net Mon Apr 12 00:46:58 2004 From: jonbaer at jonbaer.net (jon baer) Date: Mon, 12 Apr 2004 00:46:58 -0400 Subject: [nycphp-talk] password strength enforcement References: <000501c41e53$cf10f390$6400a8c0@thinkpad><003a01c41e58$2a5bef80$7801a8c0@iifwp.local><20040411175004.GA2267@panix.com><003101c41ffb$034f5680$2102a8c0@WorkGroup><002901c42012$bf734800$6400a8c0@thinkpad> Message-ID: <005a01c42049$304116d0$6400a8c0@thinkpad> > I don't know. Do you really think it's better to make the user guess > through trial and error? If I was signing up for your site, I'd get > frustrated pretty quickly. Well it was mainly referring to the point of spilling *all* your beans @ the point of error ... and if you are not tough on your app's password policy then why even have rules to begin with? > The real purpose of enforcing these types of rules is to push your > passwords into a statespace large enough to make brute force attacks > computationally expensive. There are more potential passwords of > exactly six letters than there are of any number between one and five > letters combined! While Im not a cryptology expert, nor do I play one on TV (or probably shouldnt even comment ), I think brute force attacks on todays PCs will defeat alot of well thought out apps ... and you are going to be relying on multiple passwords for one app (but thats another discussion :-) > So, letting a cracker know he can skip short passwords doesn't really > help him out all that much. (Likewise, for skipping dictionary > attacks.) Plus, if you can't detect someone trying to sign in to an > account over a billion times, you've got a much larger problem. :) Good point :-) So has anyone here ever been the *victim* of BF attacks? From felix at bebinary.com Mon Apr 12 02:12:00 2004 From: felix at bebinary.com (felix zaslavskiy) Date: Mon, 12 Apr 2004 02:12:00 -0400 (EDT) Subject: [nycphp-talk] password strength enforcement In-Reply-To: <005a01c42049$304116d0$6400a8c0@thinkpad> References: <000501c41e53$cf10f390$6400a8c0@thinkpad><003a01c41e58$2a5bef80$7801a8c0@iifwp.local><20040411175004.GA2267@panix.com><003101c41ffb$034f5680$2102a8c0@WorkGroup><002901c42012$bf734800$6400a8c0@thinkpad> <005a01c42049$304116d0$6400a8c0@thinkpad> Message-ID: <34502.69.31.90.22.1081750320.squirrel@www.bebinary.com> >> The real purpose of enforcing these types of rules is to push your >> passwords into a statespace large enough to make brute force attacks >> computationally expensive. There are more potential passwords of >> exactly six letters than there are of any number between one and five >> letters combined! More sensible way of preventing brute force password attack is to prevent someone from automating trying all the password possibilities. Unix like login program has always had backoffs. It would be tricky to implement in web environment. The shortcut that I seen web apps take is just lock out the ip for a day after couple of tries. I think that solution is not ideal because sometimes someone may not exactly remember the password but has mental picture of it and may get it after maybe even 10 tries. > > While Im not a cryptology expert, nor do I play one on TV (or probably > shouldnt even comment ), I think brute force attacks on todays PCs will > defeat alot of well thought out apps ... and you are going to be relying Crypto is the art of scrabling bits so that one cant figure out the original message without the key. Application security is an engineering discipline of writing secure application under which the password issue falls. Remember brute force is only possilbe if the advesary can actually performe many tests in an automated way. In the web environment this attack will generate millions of hits to the login page which any good sys admin should be able to spot eventually. -- Felix Zaslavskiy http://www.zaslavskiy.net From mitchy at spacemonkeylabs.com Mon Apr 12 07:01:18 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Mon, 12 Apr 2004 07:01:18 -0400 Subject: [nycphp-talk] password strength enforcement In-Reply-To: <005a01c42049$304116d0$6400a8c0@thinkpad> References: <000501c41e53$cf10f390$6400a8c0@thinkpad><003a01c41e58$2a5bef80$7801a8c0@iifwp.local><20040411175004.GA2267@panix.com><003101c41ffb$034f5680$2102a8c0@WorkGroup><002901c42012$bf734800$6400a8c0@thinkpad> <005a01c42049$304116d0$6400a8c0@thinkpad> Message-ID: <407A76FE.4020805@spacemonkeylabs.com> jon baer wrote: > Good point :-) So has anyone here ever been the *victim* of BF attacks? The only server I have ever had compromised was via brute force - that is, he used 'brute force' in an office environment to crawl through the ceiling tiles... (rimshot) Not a bad record for 15 years, though. If you wanna hack me, ya gotta do it in person! -- Mitch From dmintz at davidmintz.org Mon Apr 12 09:47:23 2004 From: dmintz at davidmintz.org (David Mintz) Date: Mon, 12 Apr 2004 09:47:23 -0400 (EDT) Subject: [nycphp-talk] log-in In-Reply-To: <7B11CA88-8C15-11D8-9ECE-000A95AF225A@email.smith.edu> References: <6.0.3.0.2.20040411124739.01e86b40@mail.optonline.net> <6.0.3.0.2.20040411183203.01ea1b78@mail.optonline.net> <4079D8E0.9050000@att.net> <7B11CA88-8C15-11D8-9ECE-000A95AF225A@email.smith.edu> Message-ID: Agreed: form elements username and password should have labels "Username" and "Password." But it's awkward if not impossible to avoid the L-word forever. For example this site has navigation thingies that say something like "Members Only (Login Required)", or help file with a section headed "Login Assistance." True, you could substitute "Username/Password" in each of the above cases but you see my point. Especially where page layout is a consideration and terse label texts are desirable. I hear TIAA-CREF does a great job of managing people's money, though, no matter how they spell /^log-?in$/ $$$ (-: $$$ > > On Apr 11, 2004, at 7:46 PM, John Lacey wrote: > > > I prefer Username: [text box] and Password: [text box] with the submit > > button reading "Login" --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From agfische at email.smith.edu Mon Apr 12 09:48:23 2004 From: agfische at email.smith.edu (Aaron Fischer) Date: Mon, 12 Apr 2004 09:48:23 -0400 Subject: [nycphp-talk] log-in In-Reply-To: References: <6.0.3.0.2.20040411124739.01e86b40@mail.optonline.net> <6.0.3.0.2.20040411183203.01ea1b78@mail.optonline.net> <4079D8E0.9050000@att.net> <7B11CA88-8C15-11D8-9ECE-000A95AF225A@email.smith.edu> Message-ID: <10CEC5F3-8C88-11D8-9DFA-0003930D07F2@email.smith.edu> Agreed, I'm quite happy with that part. Just wish their site reflected their money management skills. =) -A On Apr 12, 2004, at 9:47 AM, David Mintz wrote: > I hear TIAA-CREF does a great job of managing people's money, though, > no > matter how they spell /^log-?in$/ $$$ (-: $$$ From Cbielanski at inta.org Mon Apr 12 10:01:54 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Mon, 12 Apr 2004 10:01:54 -0400 Subject: [nycphp-talk] log-in Message-ID: Just because it's so fun to hear myself talk (and I'm on cold meds): I would wager "login" came about because "log-in" has that evil dash in it. While that's not a problem these days, perhaps there was something evil (or lazy, or (evil && lazy)) about the systems or sysadmins (this goes to you, "back in the day" crew) that required the authentication to have no non-alpha chars in it. Discuss! Or don't. Chalk it up to Tylenol Cold. While technically not on topic, I recall an amusing graphic used to commit a form on the M$ website, it was titled simply: "SUBMIT" Now that's pretty effin' funny. But go with the client's spec, of course. After all, it doesn't matter until they get enough hate-mail about it, right? 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: Aaron Fischer [mailto:agfische at email.smith.edu] > Sent: Monday, April 12, 2004 9:48 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] log-in > > > Agreed, I'm quite happy with that part. Just wish their site > reflected > their money management skills. =) > > -A > > On Apr 12, 2004, at 9:47 AM, David Mintz wrote: > > > I hear TIAA-CREF does a great job of managing people's > money, though, > > no > > matter how they spell /^log-?in$/ $$$ (-: $$$ > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From wkamm at att.com Mon Apr 12 10:03:07 2004 From: wkamm at att.com (Kamm, William R (Bill), ALABS) Date: Mon, 12 Apr 2004 09:03:07 -0500 Subject: [nycphp-talk] log-in Message-ID: I agree with one of the early replies saying that "log in" is a verb, and "login" is a noun. "Log in to the server." "Click the login button." Now why do some people use "email", and others use "e-mail"??? Bill -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Chris Bielanski Sent: Monday, April 12, 2004 10:02 AM To: 'NYPHP Talk' Subject: RE: [nycphp-talk] log-in Just because it's so fun to hear myself talk (and I'm on cold meds): I would wager "login" came about because "log-in" has that evil dash in it. While that's not a problem these days, perhaps there was something evil (or lazy, or (evil && lazy)) about the systems or sysadmins (this goes to you, "back in the day" crew) that required the authentication to have no non-alpha chars in it. Discuss! Or don't. Chalk it up to Tylenol Cold. While technically not on topic, I recall an amusing graphic used to commit a form on the M$ website, it was titled simply: "SUBMIT" Now that's pretty effin' funny. But go with the client's spec, of course. After all, it doesn't matter until they get enough hate-mail about it, right? 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: Aaron Fischer [mailto:agfische at email.smith.edu] > Sent: Monday, April 12, 2004 9:48 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] log-in > > > Agreed, I'm quite happy with that part. Just wish their site > reflected > their money management skills. =) > > -A > > On Apr 12, 2004, at 9:47 AM, David Mintz wrote: > > > I hear TIAA-CREF does a great job of managing people's > money, though, > > no > > matter how they spell /^log-?in$/ $$$ (-: $$$ > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk > _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From ashaw at iifwp.org Mon Apr 12 10:05:38 2004 From: ashaw at iifwp.org (Allen Shaw) Date: Mon, 12 Apr 2004 10:05:38 -0400 Subject: [nycphp-talk] log-in References: <6.0.3.0.2.20040411124739.01e86b40@mail.optonline.net><6.0.3.0.2.20040411183203.01ea1b78@mail.optonline.net><4079D8E0.9050000@att.net><7B11CA88-8C15-11D8-9ECE-000A95AF225A@email.smith.edu> Message-ID: <003201c42097$3cec82e0$7801a8c0@iifwp.local> I recently fought this one with myself (not sure who won...) and then decided to look at some popular non-technical sites, since mine is a site aimed at folks with little to no technical background, more a community site. MSN/Hotmail, yahoo.com, and netscape.com all use the phrase "Sign In" to describe the act of providing account credentials. I've done away with the word "log" and all its variants altogether, so that the site now has "Username" and "Password" fields, and any helpful text refers to "signing in." This seems to me to match culturally with non-computer activities; the only time I can think of that people do anything similar in the "real world" is when they sign themselves in and out of a guest book or security log-book at an office building, etc. So, I figure the phrase is less techie and more familiar to more people. Either way, it seems right that "Sign in" and "Log in" are verbs, and "Sign-in" and "Log-in" are nouns and/or adjectives. - Allen ----- Original Message ----- From: "David Mintz" To: "NYPHP Talk" Sent: Monday, April 12, 2004 9:47 AM Subject: Re: [nycphp-talk] log-in > > > Agreed: form elements username and password should have labels "Username" > and "Password." But it's awkward if not impossible to avoid the L-word > forever. For example this site has navigation thingies that say something > like "Members Only (Login Required)", or help file with a section headed > "Login Assistance." True, you could substitute "Username/Password" in > each of the above cases but you see my point. Especially where page > layout is a consideration and terse label texts are desirable. > > > --- > David Mintz > http://davidmintz.org/ > From jonbaer at jonbaer.net Mon Apr 12 10:54:33 2004 From: jonbaer at jonbaer.net (jon baer) Date: Mon, 12 Apr 2004 10:54:33 -0400 Subject: [nycphp-talk] log-in References: Message-ID: <002b01c4209e$11010e60$6400a8c0@thinkpad> I think it was "LOGON:" in Wargames and TRS80 :-) Performing both a verb and a noun @ the same time. :-) - Jon ----- Original Message ----- From: "Kamm, William R (Bill), ALABS" To: "NYPHP Talk" Sent: Monday, April 12, 2004 10:03 AM Subject: RE: [nycphp-talk] log-in I agree with one of the early replies saying that "log in" is a verb, and "login" is a noun. From jonbaer at jonbaer.net Mon Apr 12 11:00:17 2004 From: jonbaer at jonbaer.net (jon baer) Date: Mon, 12 Apr 2004 11:00:17 -0400 Subject: [nycphp-talk] password strength enforcement References: <000501c41e53$cf10f390$6400a8c0@thinkpad><003a01c41e58$2a5bef80$7801a8c0@iifwp.local><20040411175004.GA2267@panix.com><003101c41ffb$034f5680$2102a8c0@WorkGroup><002901c42012$bf734800$6400a8c0@thinkpad> <005a01c42049$304116d0$6400a8c0@thinkpad> <407A76FE.4020805@spacemonkeylabs.com> Message-ID: <005c01c4209e$de9d2a20$6400a8c0@thinkpad> > The only server I have ever had compromised was via brute force - that > is, he used 'brute force' in an office environment to crawl through the > ceiling tiles... > > (rimshot) > > Not a bad record for 15 years, though. If you wanna hack me, ya gotta > do it in person! LOL ... ah yes, the infamous "$piderman" hack ... - Jon From worldmedia2010 at yahoo.com Mon Apr 12 11:27:15 2004 From: worldmedia2010 at yahoo.com (World Media) Date: Mon, 12 Apr 2004 08:27:15 -0700 (PDT) Subject: [nycphp-talk] Permission to use 'AMP' and 'New York PHP' Message-ID: <20040412152715.86108.qmail@web41409.mail.yahoo.com> Hi Group, I am writting an article about PHP User Groups and would like to include "New York PHP" and "AMP" technology. I noticed that both of these terms are trademarked (http://tess2.uspto.gov/bin/gate.exe?f=search&state=65lj0u.1.1) to a person named Zaunere. Is this a part of NYPHP and where can I get written permission to use these terms? Thank you in advance, Robert --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online by April 15th -------------- next part -------------- An HTML attachment was scrubbed... URL: From ashaw at iifwp.org Mon Apr 12 16:39:39 2004 From: ashaw at iifwp.org (Allen Shaw) Date: Mon, 12 Apr 2004 16:39:39 -0400 Subject: [nycphp-talk] password strength enforcement References: <000501c41e53$cf10f390$6400a8c0@thinkpad><003a01c41e58$2a5bef80$7801a8c0@iifwp.local><20040411175004.GA2267@panix.com><003101c41ffb$034f5680$2102a8c0@WorkGroup><002901c42012$bf734800$6400a8c0@thinkpad> Message-ID: <005c01c420ce$46fa3110$7801a8c0@iifwp.local> You know it seems like all this must have surely been discussed hundreds of times by other people, maybe even by us, before. Wouldn't this all be somewhat generally understood by now, and maybe even written down in some reliable source? I've found lots of "advice" on good password policy, but nothing that claimed or seemed to be vaguely authoritative. Are there just too many variables to generalize about, or maybe people aren't interested in really understanding the issue? - Al ----- Original Message ----- From: "Adam Maccabee Trachtenberg" To: "NYPHP Talk" Sent: Sunday, April 11, 2004 8:32 PM Subject: Re: [nycphp-talk] password strength enforcement > On Sun, 11 Apr 2004, jon baer wrote: > > > Just FYI, this is what is meant by "brute force" and you are right alot of > > *crackers* allow you to adjust the amount of digits which *must* appear in > > the password, BUT to prevent this type of cracking you do *not* want to > > publicize what your password policy is ... alot of signup forms make this > > terrible presumption that guys signing up to a form are legit people when in > > fact if you have an error message like: > > > > password: > > * must use 3 digits > > * must be 6 - 8 characters long (or max) > > > > You kinda give away alot of info :-) > > I don't know. Do you really think it's better to make the user guess > through trial and error? If I was signing up for your site, I'd get > frustrated pretty quickly. > > Besides, it's not that hard for a cracker to try a few sample > passwords and generalize what does and doesn't make it through your > filters. > > The real purpose of enforcing these types of rules is to push your > passwords into a statespace large enough to make brute force attacks > computationally expensive. There are more potential passwords of > exactly six letters than there are of any number between one and five > letters combined! > > So, letting a cracker know he can skip short passwords doesn't really > help him out all that much. (Likewise, for skipping dictionary > attacks.) Plus, if you can't detect someone trying to sign in to an > account over a billion times, you've got a much larger problem. :) > > -adam > > -- > adam at trachtenberg.com > author of o'reilly's php cookbook > avoid the holiday rush, buy your copy today! > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From jonbaer at jonbaer.net Mon Apr 12 16:39:30 2004 From: jonbaer at jonbaer.net (jon baer) Date: Mon, 12 Apr 2004 16:39:30 -0400 Subject: [nycphp-talk] password strength enforcement References: <000501c41e53$cf10f390$6400a8c0@thinkpad><003a01c41e58$2a5bef80$7801a8c0@iifwp.local><20040411175004.GA2267@panix.com><003101c41ffb$034f5680$2102a8c0@WorkGroup><002901c42012$bf734800$6400a8c0@thinkpad> <005c01c420ce$46fa3110$7801a8c0@iifwp.local> Message-ID: <003401c420ce$41c3f690$6400a8c0@thinkpad> That is a good point, the question is *who* would be deemed the authoritative figure when it comes to web application security? Micro$oft? $un? Id like to see a Security section on http://phundamentals.nyphp.org/ covering it and other topics (XSS, Passwords, Authentication, CrackLib, etc) ... There are some called Authentication Policies that are good reads: http://www.sans.org/resources/policies/Password_Policy.pdf http://www.ietf.org/rfc/rfc2196.txt?Number=2196 http://www.sans.org/resources/policies/?printer=Y#primer Im sure some information can also be abstracted from Security+/CISSP exam guides. - Jon ----- Original Message ----- From: "Allen Shaw" To: "NYPHP Talk" Sent: Monday, April 12, 2004 4:39 PM Subject: Re: [nycphp-talk] password strength enforcement > You know it seems like all this must have surely been discussed hundreds of > times by other people, maybe even by us, before. Wouldn't this all be > somewhat generally understood by now, and maybe even written down in some > reliable source? I've found lots of "advice" on good password policy, but > nothing that claimed or seemed to be vaguely authoritative. Are there just > too many variables to generalize about, or maybe people aren't interested in > really understanding the issue? From ashaw at iifwp.org Mon Apr 12 17:18:54 2004 From: ashaw at iifwp.org (Allen Shaw) Date: Mon, 12 Apr 2004 17:18:54 -0400 Subject: [nycphp-talk] password strength enforcement References: <000501c41e53$cf10f390$6400a8c0@thinkpad><003a01c41e58$2a5bef80$7801a8c0@iifwp.local><20040411175004.GA2267@panix.com><003101c41ffb$034f5680$2102a8c0@WorkGroup><002901c42012$bf734800$6400a8c0@thinkpad><005c01c420ce$46fa3110$7801a8c0@iifwp.local> <003401c420ce$41c3f690$6400a8c0@thinkpad> Message-ID: <006f01c420d3$c2df2a10$7801a8c0@iifwp.local> Jon, These are great. I'll be giving these some attention before moving on with password guidelines I mentioned before. Thanks for the tip. - Allen ----- Original Message ----- From: "jon baer" To: "NYPHP Talk" Sent: Monday, April 12, 2004 4:39 PM Subject: Re: [nycphp-talk] password strength enforcement > http://www.sans.org/resources/policies/Password_Policy.pdf > > http://www.ietf.org/rfc/rfc2196.txt?Number=2196 > http://www.sans.org/resources/policies/?printer=Y#primer > > Im sure some information can also be abstracted from Security+/CISSP exam > guides. > > - Jon From leam at reuel.net Mon Apr 12 17:25:04 2004 From: leam at reuel.net (leam) Date: Mon, 12 Apr 2004 17:25:04 -0400 Subject: [nycphp-talk] PHP security Message-ID: <407B0930.5090908@reuel.net> I keep seeing the php security vulnerabilities posted here; is that a problem with PHP itself or that people have coded with PHP and not done a secure job of it? ciao! leam From adam at trachtenberg.com Mon Apr 12 17:34:28 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 12 Apr 2004 17:34:28 -0400 (EDT) Subject: [nycphp-talk] PHP security In-Reply-To: <407B0930.5090908@reuel.net> References: <407B0930.5090908@reuel.net> Message-ID: On Mon, 12 Apr 2004, leam wrote: > I keep seeing the php security vulnerabilities posted here; is that a > problem with PHP itself or that people have coded with PHP and not done > a secure job of it? The second. There are occasional bugs in PHP itself, but those are rare compared to PHP application vulnerabilities. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From danielc at analysisandsolutions.com Mon Apr 12 17:35:40 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Mon, 12 Apr 2004 17:35:40 -0400 Subject: [nycphp-talk] PHP security In-Reply-To: <407B0930.5090908@reuel.net> References: <407B0930.5090908@reuel.net> Message-ID: <20040412213540.GA6152@panix.com> On Mon, Apr 12, 2004 at 05:25:04PM -0400, leam wrote: > that people have coded with PHP and not done a secure job of it? Ding. -- 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 jlacey at att.net Mon Apr 12 19:55:28 2004 From: jlacey at att.net (John Lacey) Date: Mon, 12 Apr 2004 17:55:28 -0600 Subject: [nycphp-talk] new book Message-ID: <407B2C70.7050904@att.net> Hello all, Just received a copy David Sklar's new "Essential PHP Tools" book and one of the first things I noticed about it was it contains things you can *use*... ok, I haven't done any web services related work yet, but I may get that call tomorrow :) it's worth checking out... John (and he didn't pay me to say this, although I'm expecting a case of mini-donuts in the mail any day now) From mitchy at spacemonkeylabs.com Mon Apr 12 22:57:20 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Mon, 12 Apr 2004 22:57:20 -0400 Subject: [nycphp-talk] Permission to use 'AMP' and 'New York PHP' In-Reply-To: <20040412152715.86108.qmail@web41409.mail.yahoo.com> References: <20040412152715.86108.qmail@web41409.mail.yahoo.com> Message-ID: <407B5710.7080104@spacemonkeylabs.com> World Media wrote: > Hi Group, > > I am writting an article about PHP User Groups and would like to > include "New York PHP" and "AMP" technology. I noticed that both of > these terms are trademarked > (http://tess2.uspto.gov/bin/gate.exe?f=search&state=65lj0u.1.1 > ) to a > person named Zaunere. Is this a part of NYPHP and where can I get > written permission to use these terms? Hey Hans, Just to confirm, 'AMP' stands for: Apache Mod_php Postgres ...right? (evil grin) -- Mitch From pl at eskimo.com Mon Apr 12 23:38:08 2004 From: pl at eskimo.com (Peter Lehrer) Date: Mon, 12 Apr 2004 23:38:08 -0400 Subject: [nycphp-talk] Permission to use 'AMP' and 'New York PHP' References: <20040412152715.86108.qmail@web41409.mail.yahoo.com> <407B5710.7080104@spacemonkeylabs.com> Message-ID: <001e01c42108$bf2144a0$432c0242@default> did you mean mod_pearl? p lehrer ----- Original Message ----- From: "Mitch Pirtle" To: "NYPHP Talk" Sent: Monday, April 12, 2004 10:57 PM Subject: Re: [nycphp-talk] Permission to use 'AMP' and 'New York PHP' > World Media wrote: > > > Hi Group, > > > > I am writting an article about PHP User Groups and would like to > > include "New York PHP" and "AMP" technology. I noticed that both of > > these terms are trademarked > > (http://tess2.uspto.gov/bin/gate.exe?f=search&state=65lj0u.1.1 > > ) to a > > person named Zaunere. Is this a part of NYPHP and where can I get > > written permission to use these terms? > > Hey Hans, > > Just to confirm, 'AMP' stands for: > > Apache > Mod_php > Postgres > > ...right? (evil grin) > > -- Mitch > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From danielc at analysisandsolutions.com Mon Apr 12 23:38:04 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Mon, 12 Apr 2004 23:38:04 -0400 Subject: [nycphp-talk] Permission to use 'AMP' and 'New York PHP' In-Reply-To: <001e01c42108$bf2144a0$432c0242@default> References: <20040412152715.86108.qmail@web41409.mail.yahoo.com> <407B5710.7080104@spacemonkeylabs.com> <001e01c42108$bf2144a0$432c0242@default> Message-ID: <20040413033804.GA18097@panix.com> On Mon, Apr 12, 2004 at 11:38:08PM -0400, Peter Lehrer wrote: > did you mean mod_pearl? Which program is that? Sounds like a piece of vaporware put forth as a get rich quick scheme. Put sand into the cd drive and it'll burn it into pearls. --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 pl at eskimo.com Tue Apr 13 00:13:59 2004 From: pl at eskimo.com (Peter Lehrer) Date: Tue, 13 Apr 2004 00:13:59 -0400 Subject: [nycphp-talk] Permission to use 'AMP' and 'New York PHP' References: <20040412152715.86108.qmail@web41409.mail.yahoo.com><407B5710.7080104@spacemonkeylabs.com><001e01c42108$bf2144a0$432c0242@default> <20040413033804.GA18097@panix.com> Message-ID: <010701c4210d$c045ae20$432c0242@default> mod_perl ----- Original Message ----- From: "Daniel Convissor" To: "NYPHP Talk" Sent: Monday, April 12, 2004 11:38 PM Subject: Re: [nycphp-talk] Permission to use 'AMP' and 'New York PHP' > On Mon, Apr 12, 2004 at 11:38:08PM -0400, Peter Lehrer wrote: > > did you mean mod_pearl? > > Which program is that? Sounds like a piece of vaporware put forth as > a get rich quick scheme. Put sand into the cd drive and it'll burn it > into pearls. > > --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 > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From danielc at analysisandsolutions.com Tue Apr 13 00:28:22 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Tue, 13 Apr 2004 00:28:22 -0400 Subject: [nycphp-talk] Permission to use 'AMP' and 'New York PHP' In-Reply-To: <010701c4210d$c045ae20$432c0242@default> References: <20040413033804.GA18097@panix.com> <010701c4210d$c045ae20$432c0242@default> Message-ID: <20040413042822.GA21099@panix.com> On Tue, Apr 13, 2004 at 12:13:59AM -0400, Peter Lehrer wrote: > mod_perl Man, cheer up! What?! Do you have the sense of humor of an oyster?! --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 nonreal at nonreal.ro Tue Apr 13 08:37:45 2004 From: nonreal at nonreal.ro (Ovidiu) Date: Tue, 13 Apr 2004 15:37:45 +0300 Subject: [nycphp-talk] A CMS question Message-ID: <200404131537450859.1AA4EA7A@mail.nonreal.ro> In fact not quite about a CMS unless you know some CMS capable to do what i want. I want to have a site that supports mini-sites. For example some user subscribe and afterwards he can edit his text, add some contact infos and upload a few pictures. And all new users be listed by categories or by name, no matter. I installed 4-5 CMS but no luck untill now. If any of you know something witch can help me on that please tell -------------- next part -------------- An HTML attachment was scrubbed... URL: From yury at heavenspa.com Tue Apr 13 08:40:10 2004 From: yury at heavenspa.com (yury at heavenspa.com) Date: Tue, 13 Apr 2004 08:40:10 -0400 Subject: [nycphp-talk] A CMS question References: <200404131537450859.1AA4EA7A@mail.nonreal.ro> Message-ID: <005e01c42154$76fda3c0$0400a8c0@heavenspanyc> This is not really a CMS, you need a directory that has individual users with individual pages that are only editable by that user/user group. This might not even be called a directory... If you find anything, please let me know too. ciao yury ----- Original Message ----- From: Ovidiu To: talk at lists.nyphp.org Sent: Tuesday, April 13, 2004 8:37 AM Subject: [nycphp-talk] A CMS question In fact not quite about a CMS unless you know some CMS capable to do what i want. I want to have a site that supports mini-sites. For example some user subscribe and afterwards he can edit his text, add some contact infos and upload a few pictures. And all new users be listed by categories or by name, no matter. I installed 4-5 CMS but no luck untill now. If any of you know something witch can help me on that please tell ------------------------------------------------------------------------------ _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk -------------- next part -------------- An HTML attachment was scrubbed... URL: From epaul at speakeasy.net Tue Apr 13 09:31:58 2004 From: epaul at speakeasy.net (epaul at speakeasy.net) Date: Tue, 13 Apr 2004 13:31:58 +0000 Subject: [nycphp-talk] External Hard Drive! Message-ID: Hi all, I am looking to buy an external hd (the smaller the better with good performance). Any suggestions as to the best price/performance ext hd out there? Looking for drive to support both USB & Firewire! Evan -------------- next part -------------- An HTML attachment was scrubbed... URL: From mwithington at PLMresearch.com Tue Apr 13 09:38:27 2004 From: mwithington at PLMresearch.com (Mark L. Withington) Date: Tue, 13 Apr 2004 09:38:27 -0400 Subject: [nycphp-talk] External Hard Drive! In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3589C18C2@network.PLMresearch.com> Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3589A1E91@network.PLMresearch.com> I use a BUSLINK USB 2.0/1394 Combo. Seems to do fine. -------------------------- Mark L. Withington PLMresearch "eBusiness for the Midsize Enterprise" PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 http://www.PLMresearch.com Netscape/AOL/MSN IM: PLMresearch mwithington at plmresearch.com Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmresearch.com/calendar.php -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of epaul at speakeasy.net Sent: Tuesday, April 13, 2004 9:32 AM To: NYPHP Talk Subject: [nycphp-talk] External Hard Drive! Hi all, I am looking to buy an external hd (the smaller the better with good performance). Any suggestions as to the best price/performance ext hd out there? Looking for drive to support both USB & Firewire! Evan -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonbaer at jonbaer.net Tue Apr 13 09:44:46 2004 From: jonbaer at jonbaer.net (jon baer) Date: Tue, 13 Apr 2004 09:44:46 -0400 Subject: [nycphp-talk] External Hard Drive! References: Message-ID: <00e901c4215d$7c324180$6500a8c0@thinkpad> I am also researching these drives (wound up @ J&R over last weekend looking at what they had on the 3rd floor by the digital camera section and found good prices - $89 for 40 gigs) ... http://www.jandr.com/JRSectionView.process?RestartFlow=t&EndecaURL=t&InSearch=t&N=0&Ntt=external+hard+drive&Ntk=All_Record_Search&lastSearch= (copy + paste) The Lacie model @ 120GB for $159 looks like a great buy too ... anyone have one? I have been trying to sneak on a hard drive as expense for clients for site backups ... good investment I think. - Jon ----- Original Message ----- From: epaul at speakeasy.net To: NYPHP Talk Sent: Tuesday, April 13, 2004 9:31 AM Subject: [nycphp-talk] External Hard Drive! Hi all, I am looking to buy an external hd (the smaller the better with good performance). Any suggestions as to the best price/performance ext hd out there? Looking for drive to support both USB & Firewire! Evan -------------- next part -------------- An HTML attachment was scrubbed... URL: From sklar at sklar.com Tue Apr 13 09:51:36 2004 From: sklar at sklar.com (David Sklar) Date: Tue, 13 Apr 2004 09:51:36 -0400 Subject: [nycphp-talk] new book In-Reply-To: <407B2C70.7050904@att.net> References: <407B2C70.7050904@att.net> Message-ID: <407BF068.5000703@sklar.com> > Just received a copy David Sklar's new "Essential PHP Tools" book and > one of the first things I noticed about it was it contains things you > can *use*... ok, I haven't done any web services related work yet, but > I may get that call tomorrow :) > > it's worth checking out... Thanks! > (and he didn't pay me to say this, although I'm expecting a case of > mini-donuts in the mail any day now) Ha! Although, I suppose if I mailed them they would get cold and stale. For the good stuff you'll have to visit the MN state fair (or http://www.lilorbits.com/). David From Cbielanski at inta.org Tue Apr 13 09:56:17 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Tue, 13 Apr 2004 09:56:17 -0400 Subject: [nycphp-talk] new book Message-ID: Two things to say: 1) Kudos on the Title, Your Mighty Sklarness! 2) Brrrrr... Eagan. > -----Original Message----- > From: David Sklar [mailto:sklar at sklar.com] > Sent: Tuesday, April 13, 2004 9:52 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] new book > > > > Just received a copy David Sklar's new "Essential PHP > Tools" book and > > one of the first things I noticed about it was it contains > things you > > can *use*... ok, I haven't done any web services related > work yet, but > > I may get that call tomorrow :) > > > > it's worth checking out... > > Thanks! > > > (and he didn't pay me to say this, although I'm expecting a case of > > mini-donuts in the mail any day now) > > Ha! Although, I suppose if I mailed them they would get cold > and stale. > For the good stuff you'll have to visit the MN state fair (or > http://www.lilorbits.com/). > > David > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From stephen at musgrave.org Tue Apr 13 10:06:38 2004 From: stephen at musgrave.org (Stephen Musgrave) Date: Tue, 13 Apr 2004 10:06:38 -0400 Subject: [nycphp-talk] phundamentals - OS X virtual hosting Message-ID: i hadn't been to the phundamentals page in a while, but noticed that the virtual hosting directions for MAC OS X have disappeared. the last i knew, it was under review: http://phundamentals.nyphp.org/ From tgales at tgaconnect.com Tue Apr 13 10:07:22 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Tue, 13 Apr 2004 10:07:22 -0400 Subject: [nycphp-talk] A CMS question In-Reply-To: <005e01c42154$76fda3c0$0400a8c0@heavenspanyc> Message-ID: <001101c42160$a4e7fae0$e98d3818@oberon1> -----Original Message----- From: On Behalf Of yury at heavenspa.com Sent: Tuesday, April 13, 2004 8:40 AM To: NYPHP Talk Subject: Re: [nycphp-talk] A CMS question This is not really a CMS, you need a directory that has individual users with individual pages that are only editable by that user/user group. This might not even be called a directory... If you find anything, please let me know too. ciao yury ----------------------------- phpWebsite at: http://phpwebsite.appstate.edu/ might be of some use to you. It has modules which (as I recall)include a document management module and a photo gallery T. Gales & Associates Helping People Connect with Technology http://www.tgaconnect.com From ez at ericzander.com Tue Apr 13 12:51:48 2004 From: ez at ericzander.com (EZ) Date: Tue, 13 Apr 2004 12:51:48 -0400 Subject: [nycphp-talk] Planning/design question In-Reply-To: <20040412160003.4AA83A87A8@virtu.nyphp.org> References: <20040412160003.4AA83A87A8@virtu.nyphp.org> Message-ID: <407C1AA4.7030101@ericzander.com> Hi all, Thanks for your input into the use of " and ' - I had figured out places where I should use one or the other but never understood WHY. Now I do. :-) I have a new question which is a little more complex.... I have been working with a running club to bring them into the 20th century (we'll worry about the 21st century in a year or two, just getting them out of the 19th century is difficult enough!). They have a basic website with a large amount of content which is just crying out for a CMS. They also have a brand-spanking-new membership management system with a PHP front-end and MySQL backend (shameless plug: It's an open source project I've begun at http://ericzander.com/ZebraZ ). This system replaced a flat-file MS Access "database" (I tell you that for your laughter and enjoyment). So, with that background, I'd like to do some longer term planning and figure out a roadmap on where to take the club's IT structure. I would like to continue to develop their "specialized" functions - like the membership system, develop a race results system, on-line training logs, etc. all from a single login (note I did not say log-in ;-) ) And I would like to help them simplify their website management by implementing a CMS. But, I am worried about the two systems being incompatible or having difficulties in tying the two together. I am looking at the next 1-3 years as a time frame for implementing all of this for the club so if there is a solution that is "not there yet but will be in a year", I would be happy to look at and watch it. Since this is all in very early stages, I could also aim development of systems towards a certain common standard. Can anyone shed light on these future issues? Would I be better served developing two systems? How about authentication and such between systems? Am I in for a LOT of customization of existing projects over time? Many thanks in advance for your advice! EZ From jonbaer at jonbaer.net Tue Apr 13 12:44:37 2004 From: jonbaer at jonbaer.net (jon baer) Date: Tue, 13 Apr 2004 12:44:37 -0400 Subject: [nycphp-talk] Planning/design question References: <20040412160003.4AA83A87A8@virtu.nyphp.org> <407C1AA4.7030101@ericzander.com> Message-ID: <018901c42176$9c0de3b0$6500a8c0@thinkpad> Sure would make for a nice test case scenerio implementation for PHP4 -> PHP5 :-) Id vote for seperate, modular + integrate slowly ... > I am looking at the next 1-3 years as a time frame for implementing all > of this for the club so if there is a solution that is "not there yet > but will be in a year", I would be happy to look at and watch it. Since > this is all in very early stages, I could also aim development of > systems towards a certain common standard. - Jon From tgales at tgaconnect.com Tue Apr 13 13:10:35 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Tue, 13 Apr 2004 13:10:35 -0400 Subject: [nycphp-talk] Planning/design question In-Reply-To: <407C1AA4.7030101@ericzander.com> Message-ID: <005301c4217a$3d0c9ce0$e98d3818@oberon1> > I am looking at the next 1-3 years as a time frame for > implementing all > of this for the club so if there is a solution that is "not there yet > but will be in a year", I would be happy to look at and watch > it. You might consider looking at and watching CLEW (Conversationally Linked Email and other Writings) which is being developed by NYPHP. I would wager that it will be 'ready for primetime' in less than a year. If you are not already subscribed to the 'dev' list -- sign up. (you don't have to subscribe to the 'dev' list. You can view the code at: http://cvs.nyphp.org/cvsweb.cgi/clew/) Another reason you might want to watch the development of CLEW is that you can see practical examples of how to make use of some of the PCOM (phpComponent Architecture) modules. the source for PCOMs can be found at: http://cvs.nyphp.org/cvsweb.cgi/pcoms/ T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From copyboy992000 at yahoo.com Tue Apr 13 13:52:04 2004 From: copyboy992000 at yahoo.com (Andy Crain) Date: Tue, 13 Apr 2004 10:52:04 -0700 (PDT) Subject: [nycphp-talk] DB-independent fulltext indexing--help! Message-ID: <20040413175204.25894.qmail@web41414.mail.yahoo.com> Everyone, My problem in a nutshell: How do I use, or at least roughly emulate, fulltext indexing in a db-portable way? My project requires near perfect portability, so I?m already using PEAR::DB and standard ansi sql extensively, but I need to provide the ability to search large text fields. It seems to me there are two possible routes, but each has its drawbacks. I could: 1) ignore the variety of proprietary implementations and roll my own solution. This I suspect would involve a keyword table and a mapping table that would track occurrences of keywords in text records. This has the benefit of being entirely db-independent, as well as allowing me to add soundex or synonym lookups or whatever else I might want to do. Reading/selecting is nice and fast, but the downside, and it seems to me to be a big one, is on inserts/updates. I can?t conceive of a way to do this that does not involve inserting the large text field (one query), splitting the text field and, for _each word_ in the text field: -check the keyword table for that word and get its id (1 query), and if it?s not already in the keyword table, insert it and get its id (possibly another query) -insert the keyword id and the text record id into a mapping table (another query) So, to insert, say, a 500-word string of text, that's 1001 (best case) or 1501 (worst case) queries! (Duplicate and junk words would make this number a bit smaller, but you get the point.) (Oh, and I'm hoping the only answer isn't to run a cron job to do inserts/keyword table updates overnight, because I need the "index" to be current in real time.) 2) Or, since I'm already using PEAR DB, maybe I should extend it, or maybe extend each of the drivers, to somehow modify where clauses to have a particular rdms's fulltext syntax (e.g. "WHERE MATCH(cols) AGAINST('searchString')" for mysql, "WHERE CONTAINS(cols, 'searchString')" for mssql, "WHERE CONTAINS(cols, 'searchString') > 0" for oracle, etc.) This seems really kludgy, though, and it also means that, for oracle and mssql at least, there's an additional wrinkle of having to schedule regular index refreshes/updates. Any ideas? I prefer option one, if only I could somehow reduce the processing work on inserts/updates. Thanks, Andy __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ From csnyder at chxo.com Tue Apr 13 14:23:39 2004 From: csnyder at chxo.com (Chris Snyder) Date: Tue, 13 Apr 2004 14:23:39 -0400 Subject: [nycphp-talk] DB-independent fulltext indexing--help! In-Reply-To: <20040413175204.25894.qmail@web41414.mail.yahoo.com> References: <20040413175204.25894.qmail@web41414.mail.yahoo.com> Message-ID: <407C302B.20100@chxo.com> Andy Crain wrote: >My problem in a nutshell: How do I use, or at least >roughly emulate, fulltext indexing in a db-portable >way? > You could implement search as a web service (pretend it's a google appliance), thus easing the requirement for db portability. You don't even need a crawler since it's your own system: documents can request re-indexing whenever they change. I like the idea of extending the PEAR classes, too. From apcrain at fuse.net Tue Apr 13 14:38:50 2004 From: apcrain at fuse.net (Andy Crain) Date: Tue, 13 Apr 2004 14:38:50 -0400 Subject: [nycphp-talk] DB-independent fulltext indexing--help! In-Reply-To: <407C302B.20100@chxo.com> Message-ID: <005d01c42186$93dd3aa0$650aa8c0@newslogiyn65wg> Chris, > You could implement search as a web service (pretend it's a google > appliance), thus easing the requirement for db portability. You don't > even need a crawler since it's your own system: documents can request > re-indexing whenever they change. But wrapping it in a web service would still leave the original problem, wouldn't it (the db will be specific to each installation, a part of the application)? Andy From sklar at sklar.com Tue Apr 13 14:42:09 2004 From: sklar at sklar.com (David Sklar) Date: Tue, 13 Apr 2004 14:42:09 -0400 Subject: [nycphp-talk] password strength enforcement In-Reply-To: <005c01c420ce$46fa3110$7801a8c0@iifwp.local> References: <000501c41e53$cf10f390$6400a8c0@thinkpad><003a01c41e58$2a5bef80$7801a8c0@iifwp.local><20040411175004.GA2267@panix.com><003101c41ffb$034f5680$2102a8c0@WorkGroup><002901c42012$bf734800$6400a8c0@thinkpad> <005c01c420ce$46fa3110$7801a8c0@iifwp.local> Message-ID: <407C3481.60304@sklar.com> Allen Shaw wrote: > You know it seems like all this must have surely been discussed hundreds of > times by other people, maybe even by us, before. Wouldn't this all be > somewhat generally understood by now, and maybe even written down in some > reliable source? I've found lots of "advice" on good password policy, but > nothing that claimed or seemed to be vaguely authoritative. One of my favorite resources for this sort of thing is the book "Practical Unix Security" by Simson Garfinkel and Gene Spafford. > Are there just too many variables to generalize about, > or maybe people aren't interested in really understanding the > issue? I think both are true (most of the time). It's a waste of your time to spend many hours coming up with lots of rules that filter out bad passwords (can't begin or end with a number, must have at least 3 uppercase and 3 lowercase chars, etc.) if what results is that acceptable passwords are so complicated so that people can't remember them and end up writing them down on the dreaded "sticky note attached to the monitor." Same with overly stringent policies on how frequently passwords must be changed, how many passwords the change cycle must go through before you can re-use a password, etc. Security is a process, not an end state. You must constantly make decisions that balance robustness with convenience and risk of attack with severity of attack. So, sure, there are some guidelines that just about always make sense ("your password can't be your username or a dictionary word") but much beyond that is all situational. Stopping brute force attacks on a web application's login page (say, more than 50 requests per second for the login page from the same IP or same cookie or whatever) is a much easier, legitimate-user friendly, and effective mechanism than making users who wish you no harm cycle through the account signup page six times because they can't think of a sufficiently obfuscated password. Some applications don't need passwords at all. Witness the zillion wikis around the web that mostly let anyone do anything and (perhaps) have a squad of janitors who clean up the mess if someone does something bad. (Another nice thing about this model is that it promotes the use of version control.) This essay has some interesting points about designing software for specific, small, linked-offline communities: --> http://www.shirky.com/writings/situated_software.html Many of the points in there apply to how you make security decisions, too. David From phillip.powell at adnet-sys.com Tue Apr 13 15:31:48 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 13 Apr 2004 15:31:48 -0400 Subject: [nycphp-talk] Javascript "select all" feature? Message-ID: <407C4024.5080306@adnet-sys.com> I am producing a form using PHP on the back end and Javascript on the front end. The resulting script will come to the browser as follows: [Code] [/Code] This will work with a checkbox group that has to have this naming convention for PHP: [Code] - Move? [/Code] I will also have a checkbox that will "select all" and "de-select all": [Code] - Select All   - De-select All [/Code] I am not familiar at how Javascript can work with non-standard naming conventions for event actions, can someone tell me what I'm doing wrong? This fails at least in Mozilla 1.6 Thanx Phil From felix at bebinary.com Tue Apr 13 15:53:09 2004 From: felix at bebinary.com (felix zaslavskiy) Date: Tue, 13 Apr 2004 15:53:09 -0400 (EDT) Subject: [nycphp-talk] Javascript "select all" feature? In-Reply-To: <407C4024.5080306@adnet-sys.com> References: <407C4024.5080306@adnet-sys.com> Message-ID: <36461.69.31.90.22.1081885989.squirrel@www.bebinary.com> Try this: for (var i = 0; i < document.imageForm.elements.length; i++){ if(document.imageForm.elements[i].type == 'checkbox'){ document.imageForm.elements[i].checked = true; } } > I am producing a form using PHP on the back end and Javascript on the > front end. The resulting script will come to the browser as follows: > > [Code] > > [/Code] > > This will work with a checkbox group that has to have this naming > convention for PHP: > > [Code] > - Move? > [/Code] > > I will also have a checkbox that will "select all" and "de-select all": > > [Code] > - > Select All > > - De-select All > [/Code] > > I am not familiar at how Javascript can work with non-standard naming > conventions for event actions, can someone tell me what I'm doing > wrong? This fails at least in Mozilla 1.6 > > Thanx > Phil > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > -- Felix Zaslavskiy http://www.zaslavskiy.net From phillip.powell at adnet-sys.com Tue Apr 13 16:04:27 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 13 Apr 2004 16:04:27 -0400 Subject: [nycphp-talk] Javascript "select all" feature? In-Reply-To: <36461.69.31.90.22.1081885989.squirrel@www.bebinary.com> References: <407C4024.5080306@adnet-sys.com> <36461.69.31.90.22.1081885989.squirrel@www.bebinary.com> Message-ID: <407C47CB.3060802@adnet-sys.com> What about the other checkboxes, "select_all" and "deselect_all", along with other dynamically-generated checkbox groups that may also exist within this HTML resultset? Phil felix zaslavskiy wrote: >Try this: >for (var i = 0; i < document.imageForm.elements.length; i++){ >if(document.imageForm.elements[i].type == 'checkbox'){ > document.imageForm.elements[i].checked = true; >} >} > > >>I am producing a form using PHP on the back end and Javascript on the >>front end. The resulting script will come to the browser as follows: >> >>[Code] >> >>[/Code] >> >>This will work with a checkbox group that has to have this naming >>convention for PHP: >> >>[Code] >> - Move? >>[/Code] >> >>I will also have a checkbox that will "select all" and "de-select all": >> >>[Code] >> - >>Select All >> >>- De-select All >>[/Code] >> >>I am not familiar at how Javascript can work with non-standard naming >>conventions for event actions, can someone tell me what I'm doing >>wrong? This fails at least in Mozilla 1.6 >> >>Thanx >>Phil >> >>_______________________________________________ >>talk mailing list >>talk at lists.nyphp.org >>http://lists.nyphp.org/mailman/listinfo/talk >> >> >> > > > > From ashaw at iifwp.org Tue Apr 13 16:19:36 2004 From: ashaw at iifwp.org (Allen Shaw) Date: Tue, 13 Apr 2004 16:19:36 -0400 Subject: [nycphp-talk] password strength enforcement References: <000501c41e53$cf10f390$6400a8c0@thinkpad><003a01c41e58$2a5bef80$7801a8c0@iifwp.local><20040411175004.GA2267@panix.com><003101c41ffb$034f5680$2102a8c0@WorkGroup><002901c42012$bf734800$6400a8c0@thinkpad> <005c01c420ce$46fa3110$7801a8c0@iifwp.local> <407C3481.60304@sklar.com> Message-ID: <003501c42194$a4625280$7801a8c0@iifwp.local> Thanks to David for a clear and patient explanation of the practical side of password strength enforcement. Reading that sure seemed to be a lot more useful than all the white papers and RFCs I could read on the topic (and which I'll probably still read). And, what a great essay from Clay Shirky. Worth reading 2 or 3 times. In my non-profit world, where the bottom line is not measured in dollars generated from a generalized customer base, but in serving the needs of an existing group, this kind of philosophy is exactly what we're already applying to our software tools, as with most of the other tools and solutions we use. It's the reason we have very frequently chosen to roll our own sometimes clunky solutions, rather than hiring a service or buying some "super-program" that's bigger, more expensive, and more complex than we need. To be honest, I believe the data management app that we're constantly developing would fail most "Web School" tests of design quality or success, but it functions well for its intended group, is easy to maintain and develop, and will probably wind up lasting us for quite a while, as long as it can change as quickly as our needs do. Thanks for a great read. - Allen > This essay has some interesting points about designing software for > specific, small, linked-offline communities: > --> http://www.shirky.com/writings/situated_software.html > > Many of the points in there apply to how you make security decisions, too. > > David From rahmin at insite-out.com Tue Apr 13 16:37:54 2004 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Tue, 13 Apr 2004 16:37:54 -0400 Subject: [nycphp-talk] strings: adding tokens Message-ID: <200404132037.i3DKbsx7031430@webmail2.megamailservers.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From dmintz at davidmintz.org Tue Apr 13 16:38:32 2004 From: dmintz at davidmintz.org (David Mintz) Date: Tue, 13 Apr 2004 16:38:32 -0400 (EDT) Subject: [nycphp-talk] A CMS question In-Reply-To: <200404131537450859.1AA4EA7A@mail.nonreal.ro> References: <200404131537450859.1AA4EA7A@mail.nonreal.ro> Message-ID: On Tue, 13 Apr 2004, Ovidiu wrote: > If any of you know something witch can help me on that please tell Sounds like a witch hunt to me. --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From wfan at encogent.com Tue Apr 13 16:39:02 2004 From: wfan at encogent.com (Wellington Fan) Date: Tue, 13 Apr 2004 16:39:02 -0400 Subject: [nycphp-talk] Javascript "select all" feature? In-Reply-To: <407C47CB.3060802@adnet-sys.com> Message-ID: <000c01c42197$5b743fe0$6400a8c0@lorimervmware> Try this:










So selectAll(this.form,'move[]',false) can take 2 or 3 args: 1. - reference to the form 2. - the 'name' of the checkboxes to be set/cleared 3. - false to clear the checkboxes -- Wellington > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Phillip Powell > Sent: Tuesday, April 13, 2004 4:04 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Javascript "select all" feature? > > > What about the other checkboxes, "select_all" and > "deselect_all", along > with other dynamically-generated checkbox groups that may also exist > within this HTML resultset? > > Phil > > felix zaslavskiy wrote: > > >Try this: > >for (var i = 0; i < document.imageForm.elements.length; i++){ > >if(document.imageForm.elements[i].type == 'checkbox'){ > > document.imageForm.elements[i].checked = true; > >} > >} > > > > > >>I am producing a form using PHP on the back end and > Javascript on the > >>front end. The resulting script will come to the browser > as follows: > >> > >>[Code] > >> > >>[/Code] > >> > >>This will work with a checkbox group that has to have this naming > >>convention for PHP: > >> > >>[Code] > >> - > Move? [/Code] > >> > >>I will also have a checkbox that will "select all" and "de-select > >>all": > >> > >>[Code] > >> onChange="selectAll()"> - > >>Select All >>onChange="deSelectAll()"> > >>- De-select All > >>[/Code] > >> > >>I am not familiar at how Javascript can work with > non-standard naming > >>conventions for event actions, can someone tell me what I'm doing > >>wrong? This fails at least in Mozilla 1.6 > >> > >>Thanx > >>Phil > >> > >>_______________________________________________ > >>talk mailing list > >>talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk > >> > >> > >> > > > > > > > > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk > From sklar at sklar.com Tue Apr 13 16:43:23 2004 From: sklar at sklar.com (David Sklar) Date: Tue, 13 Apr 2004 16:43:23 -0400 Subject: [nycphp-talk] strings: adding tokens In-Reply-To: <200404132037.i3DKbsx7031430@webmail2.megamailservers.com> References: <200404132037.i3DKbsx7031430@webmail2.megamailservers.com> Message-ID: <407C50EB.6030801@sklar.com> > I'm trying to take a string like: 'abcd' and add a fwd slash every other char, like: 'a/b/c/d/' - $str = implode('/',preg_split('/\b|\B/',$str,-1,PREG_SPLIT_NO_EMPTY)).'/'; David From jonbaer at jonbaer.net Tue Apr 13 16:45:21 2004 From: jonbaer at jonbaer.net (jon baer) Date: Tue, 13 Apr 2004 16:45:21 -0400 Subject: [nycphp-talk] strings: adding tokens References: <200404132037.i3DKbsx7031430@webmail2.megamailservers.com> Message-ID: <01ff01c42198$3d77bf20$6500a8c0@thinkpad> chunk_split($string, 1, '/'); - Jon ----- Original Message ----- From: "Rahmin Pavlovic" To: Sent: Tuesday, April 13, 2004 4:37 PM Subject: [nycphp-talk] strings: adding tokens > Hm, my brain seems to be hitting a roadbloack - > > I'm trying to take a string like: 'abcd' and add a fwd slash every other char, like: 'a/b/c/d/' - From Cbielanski at inta.org Tue Apr 13 16:53:07 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Tue, 13 Apr 2004 16:53:07 -0400 Subject: [nycphp-talk] strings: adding tokens Message-ID: Winner! hehe ~C > -----Original Message----- > From: jon baer [mailto:jonbaer at jonbaer.net] > Sent: Tuesday, April 13, 2004 4:45 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] strings: adding tokens > > > chunk_split($string, 1, '/'); > > - Jon > > ----- Original Message ----- > From: "Rahmin Pavlovic" > To: > Sent: Tuesday, April 13, 2004 4:37 PM > Subject: [nycphp-talk] strings: adding tokens > > > > Hm, my brain seems to be hitting a roadbloack - > > > > I'm trying to take a string like: 'abcd' and add a fwd > slash every other > char, like: 'a/b/c/d/' - > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From rahmin at insite-out.com Tue Apr 13 16:54:49 2004 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Tue, 13 Apr 2004 16:54:49 -0400 Subject: [nycphp-talk] strings: adding tokens Message-ID: <200404132054.i3DKsnx7001254@webmail2.megamailservers.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From phillip.powell at adnet-sys.com Tue Apr 13 17:18:33 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 13 Apr 2004 17:18:33 -0400 Subject: [nycphp-talk] Javascript "select all" feature? In-Reply-To: <000c01c42197$5b743fe0$6400a8c0@lorimervmware> References: <000c01c42197$5b743fe0$6400a8c0@lorimervmware> Message-ID: <407C5929.8020901@adnet-sys.com> Your code implementations work! In Mozilla only.. :( Fails in IE, Opera and Konqueror.. :( Apparently IE, Opera and Konqueror look for a form element name to be alphanumeric construct only (e.g. "move", "move0", "move_move", "move-move"), but not "move[]", whereas Mozilla (and I believe Netscape but can't test that to know) are more forgiving of "move[]".. I've tried numerous script examples and they all work in Mozilla and fail in IE the moment I use "move[]" instead of "move". Phil Wellington Fan wrote: >Try this: > > > > >
>
>
>
>
>
>
>
>
>
>
>value="check em"> >name="butt" value="clear em"> >
> > >So selectAll(this.form,'move[]',false) can take 2 or 3 args: > >1. - reference to the form >2. - the 'name' of the checkboxes to be set/cleared >3. - false to clear the checkboxes > >-- >Wellington > > > > > > > > > > >>-----Original Message----- >>From: talk-bounces at lists.nyphp.org >>[mailto:talk-bounces at lists.nyphp.org] On Behalf Of Phillip Powell >>Sent: Tuesday, April 13, 2004 4:04 PM >>To: NYPHP Talk >>Subject: Re: [nycphp-talk] Javascript "select all" feature? >> >> >>What about the other checkboxes, "select_all" and >>"deselect_all", along >>with other dynamically-generated checkbox groups that may also exist >>within this HTML resultset? >> >>Phil >> >>felix zaslavskiy wrote: >> >> >> >>>Try this: >>>for (var i = 0; i < document.imageForm.elements.length; i++){ >>>if(document.imageForm.elements[i].type == 'checkbox'){ >>> document.imageForm.elements[i].checked = true; >>>} >>>} >>> >>> >>> >>> >>>>I am producing a form using PHP on the back end and >>>> >>>> >>Javascript on the >> >> >>>>front end. The resulting script will come to the browser >>>> >>>> >>as follows: >> >> >>>>[Code] >>>> >>>>[/Code] >>>> >>>>This will work with a checkbox group that has to have this naming >>>>convention for PHP: >>>> >>>>[Code] >>>> - >>>> >>>> >>Move? [/Code] >> >> >>>>I will also have a checkbox that will "select all" and "de-select >>>>all": >>>> >>>>[Code] >>>>>>> >>>> >>onChange="selectAll()"> - >> >> >>>>Select All >>>onChange="deSelectAll()"> >>>>- De-select All >>>>[/Code] >>>> >>>>I am not familiar at how Javascript can work with >>>> >>>> >>non-standard naming >> >> >>>>conventions for event actions, can someone tell me what I'm doing >>>>wrong? This fails at least in Mozilla 1.6 >>>> >>>>Thanx >>>>Phil >>>> >>>>_______________________________________________ >>>>talk mailing list >>>>talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>talk mailing list >>talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk >> >> >> > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > From jonbaer at jonbaer.net Tue Apr 13 17:18:58 2004 From: jonbaer at jonbaer.net (jon baer) Date: Tue, 13 Apr 2004 17:18:58 -0400 Subject: [nycphp-talk] strings: adding tokens References: Message-ID: <022101c4219c$ef747ca0$6500a8c0@thinkpad> lol ... not a bad idea ... PHPJeopardy .... Alex Trebek ... uhh I mean Hans, how about it? I could use some new books ... :-) ----- Original Message ----- From: "Chris Bielanski" To: "'NYPHP Talk'" Sent: Tuesday, April 13, 2004 4:53 PM Subject: RE: [nycphp-talk] strings: adding tokens > Winner! > > hehe From Cbielanski at inta.org Tue Apr 13 17:21:48 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Tue, 13 Apr 2004 17:21:48 -0400 Subject: [nycphp-talk] Javascript "select all" feature? Message-ID: If that didn't work, then I think the next step on the road to salvation lies in the precipitous use of the eval() function within a for loop: for(var i; i < something; i++) { var obj = eval('document.forms[0].move'+i); // etc etc... } This is an evil slimy hack but so long as you're in control of the form variables, it will take the tedium out of catching each form element. ~C > -----Original Message----- > From: Phillip Powell [mailto:phillip.powell at adnet-sys.com] > Sent: Tuesday, April 13, 2004 5:19 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Javascript "select all" feature? > > > Your code implementations work! In Mozilla only.. :( Fails in IE, > Opera and Konqueror.. :( > > Apparently IE, Opera and Konqueror look for a form element name to be > alphanumeric construct only (e.g. "move", "move0", "move_move", > "move-move"), but not "move[]", whereas Mozilla (and I > believe Netscape > but can't test that to know) are more forgiving of "move[]".. > > I've tried numerous script examples and they all work in Mozilla and > fail in IE the moment I use "move[]" instead of "move". > > Phil > > > > > > > > Wellington Fan wrote: > > >Try this: > > > > > > > > > >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > name="butt" > >value="check em"> > > >name="butt" value="clear em"> > >
> > > > > >So selectAll(this.form,'move[]',false) can take 2 or 3 args: > > > >1. - reference to the form > >2. - the 'name' of the checkboxes to be set/cleared > >3. - false to clear the checkboxes > > > >-- > >Wellington > > > > > > > > > > > > > > > > > > > > > >>-----Original Message----- > >>From: talk-bounces at lists.nyphp.org > >>[mailto:talk-bounces at lists.nyphp.org] On Behalf Of Phillip Powell > >>Sent: Tuesday, April 13, 2004 4:04 PM > >>To: NYPHP Talk > >>Subject: Re: [nycphp-talk] Javascript "select all" feature? > >> > >> > >>What about the other checkboxes, "select_all" and > >>"deselect_all", along > >>with other dynamically-generated checkbox groups that may > also exist > >>within this HTML resultset? > >> > >>Phil > >> > >>felix zaslavskiy wrote: > >> > >> > >> > >>>Try this: > >>>for (var i = 0; i < document.imageForm.elements.length; i++){ > >>>if(document.imageForm.elements[i].type == 'checkbox'){ > >>> document.imageForm.elements[i].checked = true; > >>>} > >>>} > >>> > >>> > >>> > >>> > >>>>I am producing a form using PHP on the back end and > >>>> > >>>> > >>Javascript on the > >> > >> > >>>>front end. The resulting script will come to the browser > >>>> > >>>> > >>as follows: > >> > >> > >>>>[Code] > >>>> > >>>>[/Code] > >>>> > >>>>This will work with a checkbox group that has to have this naming > >>>>convention for PHP: > >>>> > >>>>[Code] > >>>> - > >>>> > >>>> > >>Move? [/Code] > >> > >> > >>>>I will also have a checkbox that will "select all" and "de-select > >>>>all": > >>>> > >>>>[Code] > >>>> >>>> > >>>> > >>onChange="selectAll()"> - > >> > >> > >>>>Select All >>>>onChange="deSelectAll()"> > >>>>- De-select All > >>>>[/Code] > >>>> > >>>>I am not familiar at how Javascript can work with > >>>> > >>>> > >>non-standard naming > >> > >> > >>>>conventions for event actions, can someone tell me what I'm doing > >>>>wrong? This fails at least in Mozilla 1.6 > >>>> > >>>>Thanx > >>>>Phil > >>>> > >>>>_______________________________________________ > >>>>talk mailing list > >>>>talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk > >>>> > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>talk mailing list > >>talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk > >> > >> > >> > > > >_______________________________________________ > >talk mailing list > >talk at lists.nyphp.org > >http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From Cbielanski at inta.org Tue Apr 13 17:22:35 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Tue, 13 Apr 2004 17:22:35 -0400 Subject: [nycphp-talk] strings: adding tokens Message-ID: You would have lost, then Jon - you neglected to phrase it as a question... > -----Original Message----- > From: jon baer [mailto:jonbaer at jonbaer.net] > Sent: Tuesday, April 13, 2004 5:19 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] strings: adding tokens > > > lol ... not a bad idea ... PHPJeopardy .... > > Alex Trebek ... uhh I mean Hans, how about it? I could use > some new books > ... > > :-) > > ----- Original Message ----- > From: "Chris Bielanski" > To: "'NYPHP Talk'" > Sent: Tuesday, April 13, 2004 4:53 PM > Subject: RE: [nycphp-talk] strings: adding tokens > > > > Winner! > > > > hehe > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From phillip.powell at adnet-sys.com Tue Apr 13 17:38:43 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 13 Apr 2004 17:38:43 -0400 Subject: [nycphp-talk] Javascript "select all" feature? In-Reply-To: References: Message-ID: <407C5DE3.4090600@adnet-sys.com> Following are all of the variations I tried using Javascript: [Quote] [/Quote] Every single one of these failed. The alert() didn't even show up. Failed in all browsers including Mozilla. The following *works*.. but only in Mozilla and not in IE, Opera nor Konqueror: [Quote] [/Quote] I'm beginning to believe that the PHP array form element construct works only in Mozilla because it's non-M$. Phil Chris Bielanski wrote: >If that didn't work, then I think the next step on the road to salvation >lies in the precipitous use of the eval() function within a for loop: >for(var i; i < something; i++) >{ > var obj = eval('document.forms[0].move'+i); > // etc etc... >} > >This is an evil slimy hack but so long as you're in control of the form >variables, it will take the tedium out of catching each form element. > >~C > > >>-----Original Message----- >>From: Phillip Powell [mailto:phillip.powell at adnet-sys.com] >>Sent: Tuesday, April 13, 2004 5:19 PM >>To: NYPHP Talk >>Subject: Re: [nycphp-talk] Javascript "select all" feature? >> >> >>Your code implementations work! In Mozilla only.. :( Fails in IE, >>Opera and Konqueror.. :( >> >>Apparently IE, Opera and Konqueror look for a form element name to be >>alphanumeric construct only (e.g. "move", "move0", "move_move", >>"move-move"), but not "move[]", whereas Mozilla (and I >>believe Netscape >>but can't test that to know) are more forgiving of "move[]".. >> >>I've tried numerous script examples and they all work in Mozilla and >>fail in IE the moment I use "move[]" instead of "move". >> >>Phil >> >> >> >> >> >> >> >>Wellington Fan wrote: >> >> >> >>>Try this: >>> >>> >>> >>> >>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>>> >>> >>name="butt" >> >> >>>value="check em"> >>>>>name="butt" value="clear em"> >>>
>>> >>> >>>So selectAll(this.form,'move[]',false) can take 2 or 3 args: >>> >>>1. - reference to the form >>>2. - the 'name' of the checkboxes to be set/cleared >>>3. - false to clear the checkboxes >>> >>>-- >>>Wellington >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>>>-----Original Message----- >>>>From: talk-bounces at lists.nyphp.org >>>>[mailto:talk-bounces at lists.nyphp.org] On Behalf Of Phillip Powell >>>>Sent: Tuesday, April 13, 2004 4:04 PM >>>>To: NYPHP Talk >>>>Subject: Re: [nycphp-talk] Javascript "select all" feature? >>>> >>>> >>>>What about the other checkboxes, "select_all" and >>>>"deselect_all", along >>>>with other dynamically-generated checkbox groups that may >>>> >>>> >>also exist >> >> >>>>within this HTML resultset? >>>> >>>>Phil >>>> >>>>felix zaslavskiy wrote: >>>> >>>> >>>> >>>> >>>> >>>>>Try this: >>>>>for (var i = 0; i < document.imageForm.elements.length; i++){ >>>>>if(document.imageForm.elements[i].type == 'checkbox'){ >>>>> document.imageForm.elements[i].checked = true; >>>>>} >>>>>} >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>I am producing a form using PHP on the back end and >>>>>> >>>>>> >>>>>> >>>>>> >>>>Javascript on the >>>> >>>> >>>> >>>> >>>>>>front end. The resulting script will come to the browser >>>>>> >>>>>> >>>>>> >>>>>> >>>>as follows: >>>> >>>> >>>> >>>> >>>>>>[Code] >>>>>> >>>>>>[/Code] >>>>>> >>>>>>This will work with a checkbox group that has to have this naming >>>>>>convention for PHP: >>>>>> >>>>>>[Code] >>>>>> - >>>>>> >>>>>> >>>>>> >>>>>> >>>>Move? [/Code] >>>> >>>> >>>> >>>> >>>>>>I will also have a checkbox that will "select all" and "de-select >>>>>>all": >>>>>> >>>>>>[Code] >>>>>>>>>>> >>>>>> >>>>>> >>>>>> >>>>onChange="selectAll()"> - >>>> >>>> >>>> >>>> >>>>>>Select All >>>>>onChange="deSelectAll()"> >>>>>>- De-select All >>>>>>[/Code] >>>>>> >>>>>>I am not familiar at how Javascript can work with >>>>>> >>>>>> >>>>>> >>>>>> >>>>non-standard naming >>>> >>>> >>>> >>>> >>>>>>conventions for event actions, can someone tell me what I'm doing >>>>>>wrong? This fails at least in Mozilla 1.6 >>>>>> >>>>>>Thanx >>>>>>Phil >>>>>> >>>>>>_______________________________________________ >>>>>>talk mailing list >>>>>>talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>talk mailing list >>>>talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk >>>> >>>> >>>> >>>> >>>> >>>_______________________________________________ >>>talk mailing list >>>talk at lists.nyphp.org >>>http://lists.nyphp.org/mailman/listinfo/talk >>> >>> >>> >>> >>> >>_______________________________________________ >>talk mailing list >>talk at lists.nyphp.org >>http://lists.nyphp.org/mailman/listinfo/talk >> >> >> >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > From wfan at encogent.com Tue Apr 13 17:38:06 2004 From: wfan at encogent.com (Wellington Fan) Date: Tue, 13 Apr 2004 17:38:06 -0400 Subject: [nycphp-talk] Javascript "select all" feature? In-Reply-To: <407C5929.8020901@adnet-sys.com> Message-ID: <000e01c4219f$9bb71480$6400a8c0@lorimervmware> > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Phillip Powell > Your code implementations work! In Mozilla only.. :( Fails in IE, > Opera and Konqueror.. :( I tested on IE 6 and it worked fine, with 'move[]' as the name passed in... Phil, what version of IE did you use? -- Wellington From Cbielanski at inta.org Tue Apr 13 17:43:14 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Tue, 13 Apr 2004 17:43:14 -0400 Subject: [nycphp-talk] Javascript "select all" feature? Message-ID: Oops, once again I provide an unclear example... what I meant is that move[] becomes move1, move2, move3,..moveN when you output to the browser, and the same upon receipt from the client. let me rearrange: See how that treats you... ~C > -----Original Message----- > From: Phillip Powell [mailto:phillip.powell at adnet-sys.com] > Sent: Tuesday, April 13, 2004 5:39 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Javascript "select all" feature? > > > Following are all of the variations I tried using Javascript: > [Quote] > > > > > > > > [/Quote] > > Every single one of these failed. The alert() didn't even show up. > Failed in all browsers including Mozilla. > > The following *works*.. but only in Mozilla and not in IE, Opera nor > Konqueror: > > [Quote] > > [/Quote] > > I'm beginning to believe that the PHP array form element > construct works > only in Mozilla because it's non-M$. > > Phil > > Chris Bielanski wrote: > > >If that didn't work, then I think the next step on the road > to salvation > >lies in the precipitous use of the eval() function within a for loop: > >for(var i; i < something; i++) > >{ > > var obj = eval('document.forms[0].move'+i); > > // etc etc... > >} > > > >This is an evil slimy hack but so long as you're in control > of the form > >variables, it will take the tedium out of catching each form element. > > > >~C > > > > > >>-----Original Message----- > >>From: Phillip Powell [mailto:phillip.powell at adnet-sys.com] > >>Sent: Tuesday, April 13, 2004 5:19 PM > >>To: NYPHP Talk > >>Subject: Re: [nycphp-talk] Javascript "select all" feature? > >> > >> > >>Your code implementations work! In Mozilla only.. :( Fails in IE, > >>Opera and Konqueror.. :( > >> > >>Apparently IE, Opera and Konqueror look for a form element > name to be > >>alphanumeric construct only (e.g. "move", "move0", "move_move", > >>"move-move"), but not "move[]", whereas Mozilla (and I > >>believe Netscape > >>but can't test that to know) are more forgiving of "move[]".. > >> > >>I've tried numerous script examples and they all work in > Mozilla and > >>fail in IE the moment I use "move[]" instead of "move". > >> > >>Phil > >> > >> > >> > >> > >> > >> > >> > >>Wellington Fan wrote: > >> > >> > >> > >>>Try this: > >>> > >>> > >>> > >>> > >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> >>> > >>> > >>name="butt" > >> > >> > >>>value="check em"> > >>> >>>name="butt" value="clear em"> > >>>
> >>> > >>> > >>>So selectAll(this.form,'move[]',false) can take 2 or 3 args: > >>> > >>>1. - reference to the form > >>>2. - the 'name' of the checkboxes to be set/cleared > >>>3. - false to clear the checkboxes > >>> > >>>-- > >>>Wellington > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>>>-----Original Message----- > >>>>From: talk-bounces at lists.nyphp.org > >>>>[mailto:talk-bounces at lists.nyphp.org] On Behalf Of Phillip Powell > >>>>Sent: Tuesday, April 13, 2004 4:04 PM > >>>>To: NYPHP Talk > >>>>Subject: Re: [nycphp-talk] Javascript "select all" feature? > >>>> > >>>> > >>>>What about the other checkboxes, "select_all" and > >>>>"deselect_all", along > >>>>with other dynamically-generated checkbox groups that may > >>>> > >>>> > >>also exist > >> > >> > >>>>within this HTML resultset? > >>>> > >>>>Phil > >>>> > >>>>felix zaslavskiy wrote: > >>>> > >>>> > >>>> > >>>> > >>>> > >>>>>Try this: > >>>>>for (var i = 0; i < document.imageForm.elements.length; i++){ > >>>>>if(document.imageForm.elements[i].type == 'checkbox'){ > >>>>> document.imageForm.elements[i].checked = true; > >>>>>} > >>>>>} > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>I am producing a form using PHP on the back end and > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>Javascript on the > >>>> > >>>> > >>>> > >>>> > >>>>>>front end. The resulting script will come to the browser > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>as follows: > >>>> > >>>> > >>>> > >>>> > >>>>>>[Code] > >>>>>> > >>>>>>[/Code] > >>>>>> > >>>>>>This will work with a checkbox group that has to have > this naming > >>>>>>convention for PHP: > >>>>>> > >>>>>>[Code] > >>>>>> - > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>Move? [/Code] > >>>> > >>>> > >>>> > >>>> > >>>>>>I will also have a checkbox that will "select all" and > "de-select > >>>>>>all": > >>>>>> > >>>>>>[Code] > >>>>>> >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>onChange="selectAll()"> - > >>>> > >>>> > >>>> > >>>> > >>>>>>Select All >>>>>>onChange="deSelectAll()"> > >>>>>>- De-select All > >>>>>>[/Code] > >>>>>> > >>>>>>I am not familiar at how Javascript can work with > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>non-standard naming > >>>> > >>>> > >>>> > >>>> > >>>>>>conventions for event actions, can someone tell me what > I'm doing > >>>>>>wrong? This fails at least in Mozilla 1.6 > >>>>>> > >>>>>>Thanx > >>>>>>Phil > >>>>>> > >>>>>>_______________________________________________ > >>>>>>talk mailing list > >>>>>>talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>_______________________________________________ > >>>>talk mailing list > >>>>talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk > >>>> > >>>> > >>>> > >>>> > >>>> > >>>_______________________________________________ > >>>talk mailing list > >>>talk at lists.nyphp.org > >>>http://lists.nyphp.org/mailman/listinfo/talk > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>talk mailing list > >>talk at lists.nyphp.org > >>http://lists.nyphp.org/mailman/listinfo/talk > >> > >> > >> > >_______________________________________________ > >talk mailing list > >talk at lists.nyphp.org > >http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From Cbielanski at inta.org Tue Apr 13 17:44:32 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Tue, 13 Apr 2004 17:44:32 -0400 Subject: [nycphp-talk] Javascript "select all" feature? Message-ID: Errrgh I'm just going to stop posting code snippets until I test them (and have time for all that) Obviously in my last example, moveElement.length in the for() statement has to be replaced with some other value. > -----Original Message----- > From: Chris Bielanski [mailto:Cbielanski at inta.org] > Sent: Tuesday, April 13, 2004 5:43 PM > To: 'NYPHP Talk' > Subject: RE: [nycphp-talk] Javascript "select all" feature? > > > Oops, once again I provide an unclear example... what I meant > is that move[] > becomes move1, move2, move3,..moveN when you output to the > browser, and the > same upon receipt from the client. let me rearrange: > > > > See how that treats you... > > ~C > > > -----Original Message----- > > From: Phillip Powell [mailto:phillip.powell at adnet-sys.com] > > Sent: Tuesday, April 13, 2004 5:39 PM > > To: NYPHP Talk > > Subject: Re: [nycphp-talk] Javascript "select all" feature? > > > > > > Following are all of the variations I tried using Javascript: > > [Quote] > > > > > > > > > > > > > > > > [/Quote] > > > > Every single one of these failed. The alert() didn't even > show up. > > Failed in all browsers including Mozilla. > > > > The following *works*.. but only in Mozilla and not in IE, > Opera nor > > Konqueror: > > > > [Quote] > > > > [/Quote] > > > > I'm beginning to believe that the PHP array form element > > construct works > > only in Mozilla because it's non-M$. > > > > Phil > > > > Chris Bielanski wrote: > > > > >If that didn't work, then I think the next step on the road > > to salvation > > >lies in the precipitous use of the eval() function within > a for loop: > > >for(var i; i < something; i++) > > >{ > > > var obj = eval('document.forms[0].move'+i); > > > // etc etc... > > >} > > > > > >This is an evil slimy hack but so long as you're in control > > of the form > > >variables, it will take the tedium out of catching each > form element. > > > > > >~C > > > > > > > > >>-----Original Message----- > > >>From: Phillip Powell [mailto:phillip.powell at adnet-sys.com] > > >>Sent: Tuesday, April 13, 2004 5:19 PM > > >>To: NYPHP Talk > > >>Subject: Re: [nycphp-talk] Javascript "select all" feature? > > >> > > >> > > >>Your code implementations work! In Mozilla only.. :( > Fails in IE, > > >>Opera and Konqueror.. :( > > >> > > >>Apparently IE, Opera and Konqueror look for a form element > > name to be > > >>alphanumeric construct only (e.g. "move", "move0", "move_move", > > >>"move-move"), but not "move[]", whereas Mozilla (and I > > >>believe Netscape > > >>but can't test that to know) are more forgiving of "move[]".. > > >> > > >>I've tried numerous script examples and they all work in > > Mozilla and > > >>fail in IE the moment I use "move[]" instead of "move". > > >> > > >>Phil > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >>Wellington Fan wrote: > > >> > > >> > > >> > > >>>Try this: > > >>> > > >>> > > >>> > > >>> > > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>> > >>> > > >>> > > >>name="butt" > > >> > > >> > > >>>value="check em"> > > >>> onClick="selectAll(this.form,'move[]',false)" > > >>>name="butt" value="clear em"> > > >>>
> > >>> > > >>> > > >>>So selectAll(this.form,'move[]',false) can take 2 or 3 args: > > >>> > > >>>1. - reference to the form > > >>>2. - the 'name' of the checkboxes to be set/cleared > > >>>3. - false to clear the checkboxes > > >>> > > >>>-- > > >>>Wellington > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>-----Original Message----- > > >>>>From: talk-bounces at lists.nyphp.org > > >>>>[mailto:talk-bounces at lists.nyphp.org] On Behalf Of > Phillip Powell > > >>>>Sent: Tuesday, April 13, 2004 4:04 PM > > >>>>To: NYPHP Talk > > >>>>Subject: Re: [nycphp-talk] Javascript "select all" feature? > > >>>> > > >>>> > > >>>>What about the other checkboxes, "select_all" and > > >>>>"deselect_all", along > > >>>>with other dynamically-generated checkbox groups that may > > >>>> > > >>>> > > >>also exist > > >> > > >> > > >>>>within this HTML resultset? > > >>>> > > >>>>Phil > > >>>> > > >>>>felix zaslavskiy wrote: > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>>>Try this: > > >>>>>for (var i = 0; i < document.imageForm.elements.length; i++){ > > >>>>>if(document.imageForm.elements[i].type == 'checkbox'){ > > >>>>> document.imageForm.elements[i].checked = true; > > >>>>>} > > >>>>>} > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>>>I am producing a form using PHP on the back end and > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>Javascript on the > > >>>> > > >>>> > > >>>> > > >>>> > > >>>>>>front end. The resulting script will come to the browser > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>as follows: > > >>>> > > >>>> > > >>>> > > >>>> > > >>>>>>[Code] > > >>>>>> > > >>>>>>[/Code] > > >>>>>> > > >>>>>>This will work with a checkbox group that has to have > > this naming > > >>>>>>convention for PHP: > > >>>>>> > > >>>>>>[Code] > > >>>>>> - > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>Move? [/Code] > > >>>> > > >>>> > > >>>> > > >>>> > > >>>>>>I will also have a checkbox that will "select all" and > > "de-select > > >>>>>>all": > > >>>>>> > > >>>>>>[Code] > > >>>>>> > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>onChange="selectAll()"> - > > >>>> > > >>>> > > >>>> > > >>>> > > >>>>>>Select All > >>>>>>onChange="deSelectAll()"> > > >>>>>>- De-select All > > >>>>>>[/Code] > > >>>>>> > > >>>>>>I am not familiar at how Javascript can work with > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>non-standard naming > > >>>> > > >>>> > > >>>> > > >>>> > > >>>>>>conventions for event actions, can someone tell me what > > I'm doing > > >>>>>>wrong? This fails at least in Mozilla 1.6 > > >>>>>> > > >>>>>>Thanx > > >>>>>>Phil > > >>>>>> > > >>>>>>_______________________________________________ > > >>>>>>talk mailing list > > >>>>>>talk at lists.nyphp.org > > http://lists.nyphp.org/mailman/listinfo/talk > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>_______________________________________________ > > >>>>talk mailing list > > >>>>talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>_______________________________________________ > > >>>talk mailing list > > >>>talk at lists.nyphp.org > > >>>http://lists.nyphp.org/mailman/listinfo/talk > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>talk mailing list > > >>talk at lists.nyphp.org > > >>http://lists.nyphp.org/mailman/listinfo/talk > > >> > > >> > > >> > > >_______________________________________________ > > >talk mailing list > > >talk at lists.nyphp.org > > >http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > > > > > > > > _______________________________________________ > > talk mailing list > > talk at lists.nyphp.org > > http://lists.nyphp.org/mailman/listinfo/talk > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From wfan at encogent.com Tue Apr 13 17:41:32 2004 From: wfan at encogent.com (Wellington Fan) Date: Tue, 13 Apr 2004 17:41:32 -0400 Subject: [nycphp-talk] Javascript "select all" feature? In-Reply-To: <407C5929.8020901@adnet-sys.com> Message-ID: <000f01c421a0$167f9340$6400a8c0@lorimervmware> Ummm... I just ran my code on Mozilla 1.2.1 and Konqueror 3.1-15 and it works fine... -- Wellington From drydell at att.net Tue Apr 13 17:44:03 2004 From: drydell at att.net (drydell at att.net) Date: Tue, 13 Apr 2004 21:44:03 +0000 Subject: [nycphp-talk] Javascript "select all" feature? Message-ID: <041320042144.5791.407C5F22000BFB500000169F2160280748FF93939A9B868D@att.net> an array construct should work on all browsers... this html works fine on IE and Netscape: States
Select State:   select all   select none
Alaska
Alabama
Arkansas
Arizona
California
Colorado
Connecticut
Washington, DC
Delaware
Florida
Georgia
Hawaii
Iowa
Idaho
Illinois
Indiana
Kansas
Kentucky
Louisiana
Massachusetts
Maryland
Maine
Michigan
Minnesota
Missouri
Mississippi
Montana
N. Carolina
North Dakota
Nebraska
New Hampshire
New Jersey
New Mexico
Nevada
New York
Ohio
Oklahoma
Oregon
Pennsylvania
Rhode Island
South Carolina
S. Dakota
Tennessee
Texas
Utah
Virginia
Vermont
Washington
Wisconsin
West Virginia
Wyoming
From phillip.powell at adnet-sys.com Tue Apr 13 17:48:59 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 13 Apr 2004 17:48:59 -0400 Subject: [nycphp-talk] Javascript "select all" feature? In-Reply-To: <000e01c4219f$9bb71480$6400a8c0@lorimervmware> References: <000e01c4219f$9bb71480$6400a8c0@lorimervmware> Message-ID: <407C604B.2070302@adnet-sys.com> Using IE 6.0.2800.1106 on a Win2K Pro SP4 machine with Javascript enabled - Javascript 1.2 Still fails in IE, Opera and Konqueror every variation I could think of Phil Wellington Fan wrote: >>[mailto:talk-bounces at lists.nyphp.org] On Behalf Of Phillip Powell >>Your code implementations work! In Mozilla only.. :( Fails in IE, >>Opera and Konqueror.. :( >> >> > > >I tested on IE 6 and it worked fine, with 'move[]' as the name passed >in... Phil, what version of IE did you use? > > >-- >Wellington > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > From wfan at encogent.com Tue Apr 13 17:47:11 2004 From: wfan at encogent.com (Wellington Fan) Date: Tue, 13 Apr 2004 17:47:11 -0400 Subject: [nycphp-talk] Javascript "select all" feature? In-Reply-To: <041320042144.5791.407C5F22000BFB500000169F2160280748FF93939A9B868D@att.net> Message-ID: <001001c421a0$e2141f30$6400a8c0@lorimervmware> Sweet! Nice and tidy... > function allstates(state, o) { > > var i; > > for (i = 0; i< o.length; i++) { > o[i].checked = state; > } > > } From phillip.powell at adnet-sys.com Tue Apr 13 17:52:30 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 13 Apr 2004 17:52:30 -0400 Subject: [nycphp-talk] Javascript "select all" feature? In-Reply-To: <041320042144.5791.407C5F22000BFB500000169F2160280748FF93939A9B868D@att.net> References: <041320042144.5791.407C5F22000BFB500000169F2160280748FF93939A9B868D@att.net> Message-ID: <407C611E.6080009@adnet-sys.com> You absolutely confused me! How does this work, even works in Konqueror, I'm totally baffled! Phil drydell at att.net wrote: >an array construct should work on all browsers... this html works fine on IE and Netscape: > > > > >States > > >
> >
> > > > > > > >
Select State:   select all   select none
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
Alaska
Alabama
Arkansas
Arizona
California
Colorado
Connecticut
Washington, DC
Delaware
Florida
Georgia
Hawaii
Iowa
Idaho
Illinois
Indiana
Kansas
Kentucky
Louisiana
Massachusetts
Maryland
Maine
Michigan
Minnesota
Missouri
Mississippi
Montana
N. Carolina
North Dakota
Nebraska
New Hampshire
New Jersey
New Mexico
Nevada
New York
Ohio
Oklahoma
Oregon
Pennsylvania
Rhode Island
South Carolina
S. Dakota
Tennessee
Texas
Utah
Virginia
Vermont
Washington
Wisconsin
West Virginia
Wyoming
>
> >
> > > > > > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > From phillip.powell at adnet-sys.com Tue Apr 13 17:53:04 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 13 Apr 2004 17:53:04 -0400 Subject: [nycphp-talk] Javascript "select all" feature? In-Reply-To: <000f01c421a0$167f9340$6400a8c0@lorimervmware> References: <000f01c421a0$167f9340$6400a8c0@lorimervmware> Message-ID: <407C6140.2090500@adnet-sys.com> Worked in Mozilla 1.6, failed in Konqueror 3.1-15 on mine. Phil Wellington Fan wrote: >Ummm... I just ran my code on Mozilla 1.2.1 and Konqueror 3.1-15 and it >works fine... > >-- >Wellington > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > From phillip.powell at adnet-sys.com Tue Apr 13 18:03:12 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 13 Apr 2004 18:03:12 -0400 Subject: [nycphp-talk] Javascript "select all" feature? In-Reply-To: <001001c421a0$e2141f30$6400a8c0@lorimervmware> References: <001001c421a0$e2141f30$6400a8c0@lorimervmware> Message-ID: <407C63A0.1030809@adnet-sys.com> This is maddening! STILL fails!!!! I can't still get it to work in any browser!!! kyrka.jpg Show Metadata - Move? banner.jpg.jpeg Show Metadata - Move? kyrka_gray.jpg Show Metadata - Move? - Select All   - De-Select All Wellington Fan wrote: >Sweet! Nice and tidy... > > > > >>function allstates(state, o) { >> >> var i; >> >> for (i = 0; i< o.length; i++) { >> o[i].checked = state; >> } >> >>} >> >> > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > From Cbielanski at inta.org Tue Apr 13 18:04:20 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Tue, 13 Apr 2004 18:04:20 -0400 Subject: [nycphp-talk] Javascript "select all" feature? Message-ID: try enquoting your name variables... From wfan at encogent.com Tue Apr 13 18:05:44 2004 From: wfan at encogent.com (Wellington Fan) Date: Tue, 13 Apr 2004 18:05:44 -0400 Subject: [nycphp-talk] Javascript "select all" feature? In-Reply-To: <407C63A0.1030809@adnet-sys.com> Message-ID: <001301c421a3$78212340$6400a8c0@lorimervmware> Calm down, Phil, it'll be alright... I would try the code alone, nothing else on the page. Use drydell at att.net's code (I haven't tested it but it looks great). Often a syntax error -- a missing brace, etc. -- in javascript will cause all kinds of silent havoc on yer code. Then paste back in, function by function, testing after each one to make sure nothing breaks. -- W From phillip.powell at adnet-sys.com Tue Apr 13 18:09:27 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 13 Apr 2004 18:09:27 -0400 Subject: [nycphp-talk] Javascript "select all" feature? In-Reply-To: References: Message-ID: <407C6517.8020109@adnet-sys.com> Fails in IE, Opera and Konqueror, acts very buggy in Mozilla but slightly works: kyrka.jpg Show Metadata - Move? banner.jpg.jpeg Show Metadata - Move? kyrka_gray.jpg Show Metadata - Move? - Select All   - De-Select All Phil Chris Bielanski wrote: >try enquoting your name variables... >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > From drydell at att.net Tue Apr 13 18:11:37 2004 From: drydell at att.net (drydell at att.net) Date: Tue, 13 Apr 2004 22:11:37 +0000 Subject: [nycphp-talk] Javascript "select all" feature? Message-ID: <041320042211.4555.407C65990006431B000011CB2160280748FF93939A9B868D@att.net> Wellington, give it a shot... it'll work in any browser, AFAIK > Calm down, Phil, it'll be alright... > > I would try the code alone, nothing else on the page. Use > drydell at att.net's code (I haven't tested it but it looks great). > > Often a syntax error -- a missing brace, etc. -- in javascript will > cause all kinds of silent havoc on yer code. Then paste back in, > function by function, testing after each one to make sure nothing > breaks. > > -- > W > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From phillip.powell at adnet-sys.com Tue Apr 13 18:24:32 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 13 Apr 2004 18:24:32 -0400 Subject: [nycphp-talk] Javascript "select all" feature? In-Reply-To: <041320042211.4555.407C65990006431B000011CB2160280748FF93939A9B868D@att.net> References: <041320042211.4555.407C65990006431B000011CB2160280748FF93939A9B868D@att.net> Message-ID: <407C68A0.1010109@adnet-sys.com> Well the good news is that it [sort of] works in all browsers.. bad news is that it [sort of] works in all browsers.. sometimes it selects all, sometimes it does not... The only major change was that I changed "onChange" to "onClick" kyrka.jpg Show Metadata - Move? banner.jpg.jpeg Show Metadata - Move? kyrka_gray.jpg Show Metadata - Move? - Select All   - De-Select All Phil drydell at att.net wrote: >Wellington, give it a shot... it'll work in any browser, AFAIK > > > > >>Calm down, Phil, it'll be alright... >> >>I would try the code alone, nothing else on the page. Use >>drydell at att.net's code (I haven't tested it but it looks great). >> >>Often a syntax error -- a missing brace, etc. -- in javascript will >>cause all kinds of silent havoc on yer code. Then paste back in, >>function by function, testing after each one to make sure nothing >>breaks. >> >>-- >>W >> >>_______________________________________________ >>talk mailing list >>talk at lists.nyphp.org >>http://lists.nyphp.org/mailman/listinfo/talk >> >> >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > From phillip.powell at adnet-sys.com Tue Apr 13 18:30:39 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 13 Apr 2004 18:30:39 -0400 Subject: [nycphp-talk] Javascript "select all" feature? In-Reply-To: <407C68A0.1010109@adnet-sys.com> References: <041320042211.4555.407C65990006431B000011CB2160280748FF93939A9B868D@att.net> <407C68A0.1010109@adnet-sys.com> Message-ID: <407C6A0F.3060304@adnet-sys.com> Works on my machine's browsers now, all of them, the right way, I hacked it: kyrka.jpg Show Metadata - Move? banner.jpg.jpeg Show Metadata - Move? kyrka_gray.jpg Show Metadata - Move? - Select All   - De-Select All Phil Phillip Powell wrote: > Well the good news is that it [sort of] works in all browsers.. bad > news is that it [sort of] works in all browsers.. sometimes it selects > all, sometimes it does not... > > The only major change was that I changed "onChange" to "onClick" > > > > > href="./images/mu-spin/kyrka.jpg">kyrka.jpg > Show Metadata > value="kyrka.jpg"> - Move? > > > > href="./images/mu-spin/banner.jpg.jpeg">banner.jpg.jpeg > href=index.php?section=image&action=edit&chooseAlbum=1&album=mu-spin&id=147>Show > Metadata > value="banner.jpg.jpeg"> - Move? > > > > href="./images/mu-spin/kyrka_gray.jpg">kyrka_gray.jpg > href=index.php?section=image&action=edit&chooseAlbum=1&album=mu-spin&id=145>Show > Metadata > value="kyrka_gray.jpg"> - Move? > > > > onClick="selectAll(true, document.imageForm['move[]'])"> - Select > All   onClick="selectAll(false, document.imageForm['move[]'])"> - De-Select > All > > > > > Phil > > > > drydell at att.net wrote: > >> Wellington, give it a shot... it'll work in any browser, AFAIK >> >> >> >> >>> Calm down, Phil, it'll be alright... >>> >>> I would try the code alone, nothing else on the page. Use >>> drydell at att.net's code (I haven't tested it but it looks great). >>> >>> Often a syntax error -- a missing brace, etc. -- in javascript will >>> cause all kinds of silent havoc on yer code. Then paste back in, >>> function by function, testing after each one to make sure nothing >>> breaks. >>> >>> -- >>> W >>> >>> _______________________________________________ >>> talk mailing list >>> talk at lists.nyphp.org >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >> >> _______________________________________________ >> talk mailing list >> talk at lists.nyphp.org >> http://lists.nyphp.org/mailman/listinfo/talk >> >> >> > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From jsiegel1 at optonline.net Tue Apr 13 19:25:19 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Tue, 13 Apr 2004 19:25:19 -0400 Subject: [nycphp-talk] phundamentals - OS X virtual hosting In-Reply-To: References: Message-ID: <407C76DF.1080209@optonline.net> We're in the midst of a lot of changes but if you need to access it here's the URL: http://phundamentals.nyphp.org/PH_virtualhosting_mac.php Jeff Stephen Musgrave wrote: > i hadn't been to the phundamentals page in a while, but noticed that the > virtual hosting directions for MAC OS X have disappeared. the last i knew, > it was under review: > > http://phundamentals.nyphp.org/ > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From sol2ray at yahoo.fr Wed Apr 14 00:12:01 2004 From: sol2ray at yahoo.fr (Beach Sun) Date: Tue, 13 Apr 2004 21:12:01 -0700 (PDT) Subject: [nycphp-talk] Javascript "select all" feature? In-Reply-To: <407C6A0F.3060304@adnet-sys.com> Message-ID: <20040414041201.42682.qmail@web40210.mail.yahoo.com> This select all thing has been going on for a little while now. Here is a more simple and elegant function. This should work in all browsers. By the way if you are using phpbtree my php btree code. I suggest you get the newer version. I keeps getting better. sol ______ PHPBTREE _______________ "when flat text is not smart enough and database server is overkill..." http://www.phpbtree.com --- Phillip Powell wrote: > Works on my machine's browsers now, all of them, the > right way, I hacked it: > > > > > href="./images/mu-spin/kyrka.jpg">kyrka.jpg > Show Metadata > name="move[]" value="kyrka.jpg"> - Move? > > > > href="./images/mu-spin/banner.jpg.jpeg">banner.jpg.jpeg > href=index.php?section=image&action=edit&chooseAlbum=1&album=mu-spin&id=147>Show > Metadata > name="move[]" value="banner.jpg.jpeg"> - Move? > > > > href="./images/mu-spin/kyrka_gray.jpg">kyrka_gray.jpg > href=index.php?section=image&action=edit&chooseAlbum=1&album=mu-spin&id=145>Show > Metadata > name="move[]" value="kyrka_gray.jpg"> - Move? > > > > onClick="selectAll(true, 'select', > document.imageForm['move[]'])"> - Select > All   name="deselect_all" value=1 > onClick="selectAll(false, 'deselect', > document.imageForm['move[]'])"> - De-Select All > > > Phil > > Phillip Powell wrote: > > > Well the good news is that it [sort of] works in > all browsers.. bad > > news is that it [sort of] works in all browsers.. > sometimes it selects > > all, sometimes it does not... > > > > The only major change was that I changed > "onChange" to "onClick" > > > > > > > > > > > > href="./images/mu-spin/kyrka.jpg">kyrka.jpg > > Show Metadata > > name="move[]" > > value="kyrka.jpg"> - Move? > > > > > > > > > > href="./images/mu-spin/banner.jpg.jpeg">banner.jpg.jpeg > > > > href=index.php?section=image&action=edit&chooseAlbum=1&album=mu-spin&id=147>Show > > > Metadata > > name="move[]" > > value="banner.jpg.jpeg"> - Move? > > > > > > > > > > href="./images/mu-spin/kyrka_gray.jpg">kyrka_gray.jpg > > > > href=index.php?section=image&action=edit&chooseAlbum=1&album=mu-spin&id=145>Show > > > Metadata > > name="move[]" > > value="kyrka_gray.jpg"> - Move? > > > > > > > > > onClick="selectAll(true, > document.imageForm['move[]'])"> - Select > > All   name="deselect_all" value=1 > > onClick="selectAll(false, > document.imageForm['move[]'])"> - De-Select > > All > > > > > > > > > > Phil > > > > > > > > drydell at att.net wrote: > > > >> Wellington, give it a shot... it'll work in any > browser, AFAIK > >> > >> > >> > >> > >>> Calm down, Phil, it'll be alright... > >>> > >>> I would try the code alone, nothing else on the > page. Use > >>> drydell at att.net's code (I haven't tested it but > it looks great). > >>> > >>> Often a syntax error -- a missing brace, etc. -- > in javascript will > >>> cause all kinds of silent havoc on yer code. > Then paste back in, > >>> function by function, testing after each one to > make sure nothing > >>> breaks. > >>> > >>> -- > >>> W > >>> > >>> _______________________________________________ > >>> talk mailing list > >>> talk at lists.nyphp.org > >>> http://lists.nyphp.org/mailman/listinfo/talk > >>> > >> > >> _______________________________________________ > >> talk mailing list > >> talk at lists.nyphp.org > >> http://lists.nyphp.org/mailman/listinfo/talk > >> > >> > >> > > > > > > _______________________________________________ > > talk mailing list > > talk at lists.nyphp.org > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk ===== Sol Tour? PHPBTREE http://phpbtree.com __________________________________ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html From danielc at analysisandsolutions.com Wed Apr 14 03:03:19 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 14 Apr 2004 03:03:19 -0400 Subject: [nycphp-talk] paging Tim Gales Message-ID: <20040414070318.GA18233@panix.com> Hi Folks: I'm trying to get in touch with Tim Gales, but the emails keep bouncing back to me saying the host can't be found. What's his phone number or perhaps he'll see this and give me a call. --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 nonreal at nonreal.ro Wed Apr 14 04:10:58 2004 From: nonreal at nonreal.ro (Ovidiu) Date: Wed, 14 Apr 2004 11:10:58 +0300 Subject: [nycphp-talk] php with GD like mrtg - possible ? Message-ID: <200404141110580515.1ED705CB@mail.nonreal.ro> Hello. I have a voice software witch enter in mySQL 5 new rows each minute: +----------------+-------------+---------------------+ | BoardID | ActiveCalls | CurrentTime | +----------------+-------------+---------------------+ | dti(RTC SS7 2) | 0 | 2004-03-16 19:47:44 | | dti(RTC SS7 1) | 0 | 2004-03-16 19:47:44 | | dti(ALCATEL) | 0 | 2004-03-16 19:47:44 | | dti(ORANGE) | 1 | 2004-03-16 19:47:44 | | dti(RT-ISDN) | 2 | 2004-03-16 19:47:44 | +----------------+-------------+---------------------+ 5 rows in set (0.54 sec) Those rows are repeated each minute with new values for ActiveCalls. Anyone know a class or something capable to generate something just like mrtg. One chart for hour, another for day or week, month and so on for each dti ? I was searching google and looking on thobias ( rrd tool ) for this but no luck. Any suggestion will be more than welcome. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonbaer at jonbaer.net Wed Apr 14 07:52:46 2004 From: jonbaer at jonbaer.net (jon baer) Date: Wed, 14 Apr 2004 07:52:46 -0400 Subject: [nycphp-talk] php with GD like mrtg - possible ? References: <200404141110580515.1ED705CB@mail.nonreal.ro> Message-ID: <00c201c42217$0603efd0$6400a8c0@thinkpad> The only class/package I know of is called "JpGraph" ... Tutorial: http://www.zend.com/zend/tut/tutsweat3.php Package: http://www.aditus.nu/jpgraph/index.php And the highly recommended Jeff Knight presentation on GD: http://www.nyphp.org/content/presentations/GDintro/ - Jon ----- Original Message ----- From: Ovidiu To: talk at lists.nyphp.org Sent: Wednesday, April 14, 2004 4:10 AM Subject: [nycphp-talk] php with GD like mrtg - possible ? Hello. I have a voice software witch enter in mySQL 5 new rows each minute: +----------------+-------------+---------------------+ | BoardID | ActiveCalls | CurrentTime | +----------------+-------------+---------------------+ | dti(RTC SS7 2) | 0 | 2004-03-16 19:47:44 | | dti(RTC SS7 1) | 0 | 2004-03-16 19:47:44 | | dti(ALCATEL) | 0 | 2004-03-16 19:47:44 | | dti(ORANGE) | 1 | 2004-03-16 19:47:44 | | dti(RT-ISDN) | 2 | 2004-03-16 19:47:44 | +----------------+-------------+---------------------+ 5 rows in set (0.54 sec) Those rows are repeated each minute with new values for ActiveCalls. Anyone know a class or something capable to generate something just like mrtg. One chart for hour, another for day or week, month and so on for each dti ? I was searching google and looking on thobias ( rrd tool ) for this but no luck. Any suggestion will be more than welcome. Thank you ------------------------------------------------------------------------------ _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk -------------- next part -------------- An HTML attachment was scrubbed... URL: From phillip.powell at adnet-sys.com Wed Apr 14 09:32:53 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Wed, 14 Apr 2004 09:32:53 -0400 Subject: [nycphp-talk] Javascript "select all" feature? In-Reply-To: <407C6A0F.3060304@adnet-sys.com> References: <041320042211.4555.407C65990006431B000011CB2160280748FF93939A9B868D@att.net> <407C68A0.1010109@adnet-sys.com> <407C6A0F.3060304@adnet-sys.com> Message-ID: <407D3D85.5060903@adnet-sys.com> Ok, back to the drawing board, it didn't work when my colleague tested on his machine using IE 6.0 SP4 for Win2K: I tried with the HTML code below, but IE spat out the following: Line: 42 Char: 1 Error: 'document.imageForm.move[]' is null or not an object Code: 0 URL: file://C:\Documents and Settings\eduardo\Desktop\test.html HTML code: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
kyrka.jpgShow Metadata - Move?
banner.jpg.jpegShow Metadata - Move?
kyrka_gray.jpgShow Metadata - Move?
~ - Select All   - De-Select All
From jonbaer at jonbaer.net Wed Apr 14 09:36:03 2004 From: jonbaer at jonbaer.net (jon baer) Date: Wed, 14 Apr 2004 09:36:03 -0400 Subject: [nycphp-talk] Javascript "select all" feature? References: <041320042211.4555.407C65990006431B000011CB2160280748FF93939A9B868D@att.net> <407C68A0.1010109@adnet-sys.com><407C6A0F.3060304@adnet-sys.com> <407D3D85.5060903@adnet-sys.com> Message-ID: <014001c42225$6eea9c20$6400a8c0@thinkpad> Might be a misprint but I did not see a
in the document you just posted. Which would mean unfortunatley IE is right to crap out :-\ ----- Original Message ----- From: "Phillip Powell" To: "NYPHP Talk" Sent: Wednesday, April 14, 2004 9:32 AM Subject: Re: [nycphp-talk] Javascript "select all" feature? > Ok, back to the drawing board, it didn't work when my colleague tested > on his machine using IE 6.0 SP4 for Win2K: > > I tried with the HTML code below, but IE spat out the following: > > Line: 42 > Char: 1 > Error: 'document.imageForm.move[]' is null or not an object > Code: 0 > URL: file://C:\Documents and Settings\eduardo\Desktop\test.html From phillip.powell at adnet-sys.com Wed Apr 14 09:43:56 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Wed, 14 Apr 2004 09:43:56 -0400 Subject: [nycphp-talk] Javascript "select all" feature? In-Reply-To: <014001c42225$6eea9c20$6400a8c0@thinkpad> References: <041320042211.4555.407C65990006431B000011CB2160280748FF93939A9B868D@att.net> <407C68A0.1010109@adnet-sys.com><407C6A0F.3060304@adnet-sys.com> <407D3D85.5060903@adnet-sys.com> <014001c42225$6eea9c20$6400a8c0@thinkpad> Message-ID: <407D401C.1030509@adnet-sys.com> It was a misprint, sorry.. here is more of the code snippet including the tag: Phil jon baer wrote: >Might be a misprint but I did not see a in the >document you just posted. Which would mean unfortunatley IE is right to >crap out :-\ > >----- Original Message ----- >From: "Phillip Powell" >To: "NYPHP Talk" >Sent: Wednesday, April 14, 2004 9:32 AM >Subject: Re: [nycphp-talk] Javascript "select all" feature? > > > > >>Ok, back to the drawing board, it didn't work when my colleague tested >>on his machine using IE 6.0 SP4 for Win2K: >> >>I tried with the HTML code below, but IE spat out the following: >> >>Line: 42 >>Char: 1 >>Error: 'document.imageForm.move[]' is null or not an object >>Code: 0 >>URL: file://C:\Documents and Settings\eduardo\Desktop\test.html >> >> > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > From jonbaer at jonbaer.net Wed Apr 14 10:22:20 2004 From: jonbaer at jonbaer.net (jon baer) Date: Wed, 14 Apr 2004 10:22:20 -0400 Subject: [nycphp-talk] Javascript "select all" feature? References: <041320042211.4555.407C65990006431B000011CB2160280748FF93939A9B868D@att.net> <407C68A0.1010109@adnet-sys.com><407C6A0F.3060304@adnet-sys.com> <407D3D85.5060903@adnet-sys.com><014001c42225$6eea9c20$6400a8c0@thinkpad> <407D401C.1030509@adnet-sys.com> Message-ID: <018c01c4222b$e5ff04d0$6400a8c0@thinkpad> try this snippet ...




Select All/None From adam at trachtenberg.com Wed Apr 14 10:24:02 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Wed, 14 Apr 2004 10:24:02 -0400 (EDT) Subject: [nycphp-talk] Javascript "select all" feature? In-Reply-To: <407D3D85.5060903@adnet-sys.com> References: <041320042211.4555.407C65990006431B000011CB2160280748FF93939A9B868D@att.net> <407C68A0.1010109@adnet-sys.com> <407C6A0F.3060304@adnet-sys.com> <407D3D85.5060903@adnet-sys.com> Message-ID: On Wed, 14 Apr 2004, Phillip Powell wrote: > Ok, back to the drawing board, it didn't work when my colleague tested > on his machine using IE 6.0 SP4 for Win2K: Guys -- Can the people involved in this thread please take it off-list? This has dragged on for a while and we've moved on from whatever PHP connection there once was to a JavaScript tutorial. JavaScript is a topic more suited for a general Web development list (or private e-mail among yourselves) than NYPHP. When you finally come up with the right answer, I'm sure everyone will be happy to read about it, but I don't think we need all the intermediate steps. Thanks. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From danielk at us.ibm.com Wed Apr 14 10:31:23 2004 From: danielk at us.ibm.com (Daniel Krook) Date: Wed, 14 Apr 2004 10:31:23 -0400 Subject: [nycphp-talk] NYFE list (was: Javascript "select all" feature?) In-Reply-To: Message-ID: > JavaScript is a topic more suited for a general Web development list > (or private e-mail among yourselves) than NYPHP. Or for the NYPHP Front End list. http://lists.nyphp.org/mailman/listinfo/front-end That list is meant for client-side technologies in general, and their use within the context of PHP applications in particular. Daniel Krook, Application Developer WW Web Production Services North 2, ibm.com 1133 Westchester Avenue, White Plains, NY 10604 danielk at us.ibm.com Personal: http://info.krook.org/ Persona: http://w3.ibm.com/eworkplace/persona_bp_finder.jsp?CNUM=C-0M7P897 From jonbaer at jonbaer.net Wed Apr 14 10:56:51 2004 From: jonbaer at jonbaer.net (jon baer) Date: Wed, 14 Apr 2004 10:56:51 -0400 Subject: [nycphp-talk] Is it worth learning Python too? Message-ID: <01fc01c42230$b835ba80$6400a8c0@thinkpad> Everyone seems to talk about Zope/Plone/Python and im trying to figure out if its worth learning and worth applying to CMS-based stuff I have now ... Do they still have user group meetings @ Superfine? The cms-list seems to be down ... - Jon pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 From joel at tagword.com Wed Apr 14 12:18:59 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 14 Apr 2004 12:18:59 -0400 Subject: [nycphp-talk] Is it worth learning Python too? In-Reply-To: <01fc01c42230$b835ba80$6400a8c0@thinkpad> References: <01fc01c42230$b835ba80$6400a8c0@thinkpad> Message-ID: <1081959539.4839.65.camel@bezel> On Wed, 2004-04-14 at 10:56, jon baer wrote: > Everyone seems to talk about Zope/Plone/Python and im trying to figure out > if its worth learning and worth applying to CMS-based stuff I have now ... I would say that is not a good "reason" to learn. I got interested in python by seeing the gentoo portage system and it is a very powerful language. In my experience though, I would recommend learning "lower" level languages instead of additional higher level languages. I.e. learn c, it is not a far shot once you have php down. -joel From dmintz at davidmintz.org Wed Apr 14 11:20:54 2004 From: dmintz at davidmintz.org (David Mintz) Date: Wed, 14 Apr 2004 11:20:54 -0400 (EDT) Subject: [nycphp-talk] Is it worth learning Python too? In-Reply-To: <1081959539.4839.65.camel@bezel> References: <01fc01c42230$b835ba80$6400a8c0@thinkpad> <1081959539.4839.65.camel@bezel> Message-ID: On Wed, 14 Apr 2004, Joel De Gan wrote: > On Wed, 2004-04-14 at 10:56, jon baer wrote: > > Everyone seems to talk about Zope/Plone/Python and im trying to figure out > > if its worth learning and worth applying to CMS-based stuff I have now ... > > I would say that is not a good "reason" to learn. > > I got interested in python by seeing the gentoo portage system and it is a very powerful language. > In my experience though, I would recommend learning "lower" level languages instead of additional > higher level languages. I.e. learn c, it is not a far shot once you have php down. I sometimes assume that a lot of the advanced programmers on this list already speak C. I wonder if that's so -- maybe I should put a survey on the forum. Anyway I've been looking for a good excuse to study C, having come at this wonderful world from the top -- one of those non-programmer people who started marking up HTML in the mid 90s, then got curious about how forms get processed, and one thing led to another (and another, and another...) Python looks like great fun, though. --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From felix at bebinary.com Wed Apr 14 11:30:37 2004 From: felix at bebinary.com (felix zaslavskiy) Date: Wed, 14 Apr 2004 11:30:37 -0400 (EDT) Subject: [nycphp-talk] Is it worth learning Python too? In-Reply-To: References: <01fc01c42230$b835ba80$6400a8c0@thinkpad><1081959539.4839.65.camel@bezel> Message-ID: <37565.69.31.90.22.1081956637.squirrel@www.bebinary.com> > > I sometimes assume that a lot of the advanced programmers on this list > already speak C. I wonder if that's so -- maybe I should put a survey on > the forum. > Back in school I done C,C++ a bit of Java and even some assembly. For open source hackers C is a must because it increases once potential at solving really tricky problems that cannot be done with a scripting language alone. I am playing around with a bit Ruby right now (similar to Python). I also like to learn some Prolog in the future maybe even Lisp. Yea Python is another language with the Object Oriented in it. PHP will have the Object thing too very soon. I dont seen nothing revolutionary in it. > Anyway I've been looking for a good excuse to study C, having come at this > wonderful world from the top -- one of those non-programmer people who > started marking up HTML in the mid 90s, then got curious about how forms > get processed, and one thing led to another (and another, and another...) > > Python looks like great fun, though. > > --- > David Mintz > http://davidmintz.org/ > > "Anybody else got a problem with Webistics?" -- Sopranos 24:17 > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > -- Felix Zaslavskiy felix at bebinary.com (718) 576-1923 http://www.zaslavskiy.net From jonbaer at jonbaer.net Wed Apr 14 11:33:30 2004 From: jonbaer at jonbaer.net (jon baer) Date: Wed, 14 Apr 2004 11:33:30 -0400 Subject: [nycphp-talk] Is it worth learning Python too? References: <01fc01c42230$b835ba80$6400a8c0@thinkpad> <1081959539.4839.65.camel@bezel> Message-ID: <022f01c42235$d6c014a0$6400a8c0@thinkpad> Low level C socket programming without a sandbox is complex + extremely interesting to learn I must admit ... The annoyances about a language are usually the things surrounding them, for example the Python interpreter ... you can type "help", "copyright", "credits", or "license" but to exit the thing you have to hit Ctl+Z+Enter @ exactly the same time a few times to break out ... :-) and typing "from X import Y" can get tiresome ... - Jon From jonbaer at jonbaer.net Wed Apr 14 11:46:19 2004 From: jonbaer at jonbaer.net (jon baer) Date: Wed, 14 Apr 2004 11:46:19 -0400 Subject: [nycphp-talk] MySQL takes cue from the master Message-ID: <024801c42237$a33b88b0$6400a8c0@thinkpad> im guessing whats good for mysql is good for php eh? http://news.com.com/2100-7344_3-5190975.html?tag=nefd.lede -snip- MySQL, which sells an open-source database of the same name, was nearly unheard of in corporate technology circles a few years ago. Now the company's competitively priced, easy-to-use database is becoming increasingly popular with business customers looking for smaller, less-expensive options. -snip- did anyone go for the mysql dba certs yet? - Jon pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 From dmintz at davidmintz.org Wed Apr 14 11:53:10 2004 From: dmintz at davidmintz.org (David Mintz) Date: Wed, 14 Apr 2004 11:53:10 -0400 (EDT) Subject: [nycphp-talk] Is it worth learning Python too? In-Reply-To: <022f01c42235$d6c014a0$6400a8c0@thinkpad> References: <01fc01c42230$b835ba80$6400a8c0@thinkpad> <1081959539.4839.65.camel@bezel> <022f01c42235$d6c014a0$6400a8c0@thinkpad> Message-ID: On Wed, 14 Apr 2004, jon baer wrote: > Low level C socket programming without a sandbox is complex + extremely > interesting to learn I must admit ... Meandering on....I have a book that refers to C as a "high level" language. What's lower than C? (The book is "The Art of Hacking" and it describes stuff like, what a bytecode injection attack actually *is*.) --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From joel at tagword.com Wed Apr 14 13:12:30 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 14 Apr 2004 13:12:30 -0400 Subject: [nycphp-talk] MySQL takes cue from the master In-Reply-To: <024801c42237$a33b88b0$6400a8c0@thinkpad> References: <024801c42237$a33b88b0$6400a8c0@thinkpad> Message-ID: <1081962750.4836.68.camel@bezel> On Wed, 2004-04-14 at 11:46, jon baer wrote: > did anyone go for the mysql dba certs yet? > > - Jon Sitting right here :) Been using it for a long time and I actually walked away feeling I had learned a lot.. -Joel From danielk at us.ibm.com Wed Apr 14 12:04:40 2004 From: danielk at us.ibm.com (Daniel Krook) Date: Wed, 14 Apr 2004 12:04:40 -0400 Subject: [nycphp-talk] Is it worth learning Python too? In-Reply-To: Message-ID: > Meandering on....I have a book that refers to C as a "high level" > language. What's lower than C? High-level essentially means that you're writing your program in a human readable format, and that what you're writing is abstracted from how the machine will understand it, which is why it goes through the process of compilation. Assembly code and raw machine code are low-level languages. http://en.wikipedia.org/wiki/Assembly_language http://en.wikipedia.org/wiki/High_level_language http://en.wikipedia.org/wiki/Low-level_programming_language 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=C-0M7P897 From jonbaer at jonbaer.net Wed Apr 14 12:15:55 2004 From: jonbaer at jonbaer.net (jon baer) Date: Wed, 14 Apr 2004 12:15:55 -0400 Subject: [nycphp-talk] MySQL takes cue from the master References: <024801c42237$a33b88b0$6400a8c0@thinkpad> <1081962750.4836.68.camel@bezel> Message-ID: <028a01c4223b$c6e02650$6400a8c0@thinkpad> Congrats, can I ask what you used for study guide? If any ... ----- Original Message ----- From: "Joel De Gan" To: "NYPHP Talk" Sent: Wednesday, April 14, 2004 1:12 PM Subject: Re: [nycphp-talk] MySQL takes cue from the master > On Wed, 2004-04-14 at 11:46, jon baer wrote: > > did anyone go for the mysql dba certs yet? > > > > - Jon > > Sitting right here :) > Been using it for a long time and I actually walked away feeling I had > learned a lot.. From dmintz at davidmintz.org Wed Apr 14 12:17:02 2004 From: dmintz at davidmintz.org (David Mintz) Date: Wed, 14 Apr 2004 12:17:02 -0400 (EDT) Subject: [nycphp-talk] Is it worth learning Python too? In-Reply-To: References: Message-ID: On Wed, 14 Apr 2004, Daniel Krook wrote: > > > Meandering on....I have a book that refers to C as a "high level" > > language. What's lower than C? > [snip] > http://en.wikipedia.org/wiki/Assembly_language > http://en.wikipedia.org/wiki/High_level_language > http://en.wikipedia.org/wiki/Low-level_programming_language Mmmmm, head's hurting already. Thanks (-: --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From cmerlo at ncc.edu Wed Apr 14 12:21:36 2004 From: cmerlo at ncc.edu (Christopher R. Merlo) Date: Wed, 14 Apr 2004 12:21:36 -0400 Subject: [nycphp-talk] Is it worth learning Python too? In-Reply-To: <01fc01c42230$b835ba80$6400a8c0@thinkpad> References: <01fc01c42230$b835ba80$6400a8c0@thinkpad> Message-ID: <20040414162136.GA10102@ncc.edu> (Warning: I teach CS.) Yes, it's worth it to learn Python. As much as it is to learn C, Java, Ruby, Smalltalk, Prolog, etc... The more languages you know, the closer you come to understanding how programs (and therefore computers) really work. Also, from a practical standpoint, the more skills you have, the more hireable you are. When an employer is looking for two people with PHP and Python skills, and he's already found the PHP coder, you still have a shot at getting the gig. Then again, I'm a Computer Scientist, and I think programming and learning new languages is as fun as, say, going to a ball game. You may choose to spend your free time other ways. -c -- cmerlo at ncc.edu http://turing.matcmp.ncc.edu/~cmerlo It's not easy to juggle a pregnant wife and a troubled child, but somehow I managed to fit in eight hours of TV a day. - Homer Simpson -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 232 bytes Desc: not available URL: From joel at tagword.com Wed Apr 14 13:37:28 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 14 Apr 2004 13:37:28 -0400 Subject: [nycphp-talk] MySQL takes cue from the master In-Reply-To: <028a01c4223b$c6e02650$6400a8c0@thinkpad> References: <024801c42237$a33b88b0$6400a8c0@thinkpad> <1081962750.4836.68.camel@bezel> <028a01c4223b$c6e02650$6400a8c0@thinkpad> Message-ID: <1081964248.4836.79.camel@bezel> On Wed, 2004-04-14 at 12:15, jon baer wrote: > Congrats, can I ask what you used for study guide? If any ... Our company has a small conference center in New Orleans and we brought Jeremy from MySQL in. So, it was a little more hands-on. -joel From jonbaer at jonbaer.net Wed Apr 14 12:28:35 2004 From: jonbaer at jonbaer.net (jon baer) Date: Wed, 14 Apr 2004 12:28:35 -0400 Subject: [nycphp-talk] Is it worth learning Python too? References: <01fc01c42230$b835ba80$6400a8c0@thinkpad> <20040414162136.GA10102@ncc.edu> Message-ID: <02af01c4223d$9d580f80$6400a8c0@thinkpad> >>> Also, from a practical standpoint, the more skills you have, the more hireable you are. When an employer is looking for two people with PHP and Python skills, and he's already found the PHP coder, you still have a shot at getting the gig. <<< Point well taken ... although I always find people hesitant to hire the person knowing 10% ASP, 10% JSP, 10% HTML, 10% Python, 10% C, 10% PHP, 10% XML, 10% DHTML, 10% SQL 10% Come in on time. :-) Looks like the average request these days ... Thank god for crash courses ... From jlacey at att.net Wed Apr 14 12:31:16 2004 From: jlacey at att.net (John Lacey) Date: Wed, 14 Apr 2004 10:31:16 -0600 Subject: [nycphp-talk] MySQL takes cue from the master In-Reply-To: <024801c42237$a33b88b0$6400a8c0@thinkpad> References: <024801c42237$a33b88b0$6400a8c0@thinkpad> Message-ID: <407D6754.2000104@att.net> jon baer wrote: > did anyone go for the mysql dba certs yet? > if I may be so bold to post a short caution so long as Jon brought up the subject of certs, I think this list wants to stay away from discussing "cert test questions and contents". Bad juju man... we don't want to get that sort of reputation. After all, a "don't discuss contents" statement was agreed to before taking the exam. btw, I took the Core cert exam. sorry if I'm being a lil paranoid here, but I think this needs to be communicated to the list members. John From Cbielanski at inta.org Wed Apr 14 12:35:05 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Wed, 14 Apr 2004 12:35:05 -0400 Subject: [nycphp-talk] Is it worth learning Python too? Message-ID: You've described anyone that's worked in these field for more than a few years, I think. > although I always find people hesitant > to hire the > person knowing 10% ASP, 10% JSP, 10% HTML, 10% Python, 10% C, > 10% PHP, 10% > XML, 10% DHTML, 10% SQL 10% Come in on time. :-) Looks like > the average > request these days ... Goes back to a joke I like to use: "If you speak a dozen languages, and half of them require a compiler... You Might Be A Geek" 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 tgales at tgaconnect.com Wed Apr 14 12:39:41 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 14 Apr 2004 12:39:41 -0400 Subject: [nycphp-talk] Is it worth learning Python too? In-Reply-To: Message-ID: <001601c4223f$1679edb0$e98d3818@oberon1> Daniel Krook writes: " High-level essentially means that you're writing your program in a human readable format, and that what you're writing is abstracted from how the machine will understand it, which is why it goes through the process of compilation. Assembly code and raw machine code are low-level languages...." There is a difference also in the abstraction level of the different languages -- even amongst the 'high-level' languages. I often hear people say things like: "C is a lot more powerful, but then that's because it a low level language". C is not really a 'low-level' language (as explained in the earlier post). T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From jonbaer at jonbaer.net Wed Apr 14 12:40:23 2004 From: jonbaer at jonbaer.net (jon baer) Date: Wed, 14 Apr 2004 12:40:23 -0400 Subject: [nycphp-talk] MySQL takes cue from the master References: <024801c42237$a33b88b0$6400a8c0@thinkpad> <407D6754.2000104@att.net> Message-ID: <02c901c4223f$2f01d5f0$6400a8c0@thinkpad> > btw, I took the Core cert exam. > > sorry if I'm being a lil paranoid here, but I think this needs > to be communicated to the list members. i agree ... thanks, just wanted to find out if it was worth it, certs pop up all the time and when they first come out + you take the exam, 2 months later the same exam is pretty much voided by new topics or an incomplete/inadequate study guide ... - jon From jlacey at att.net Wed Apr 14 12:43:35 2004 From: jlacey at att.net (John Lacey) Date: Wed, 14 Apr 2004 10:43:35 -0600 Subject: [nycphp-talk] MySQL takes cue from the master In-Reply-To: <02c901c4223f$2f01d5f0$6400a8c0@thinkpad> References: <024801c42237$a33b88b0$6400a8c0@thinkpad> <407D6754.2000104@att.net> <02c901c4223f$2f01d5f0$6400a8c0@thinkpad> Message-ID: <407D6A37.2080400@att.net> jon baer wrote: > > i agree ... thanks, just wanted to find out if it was worth it, certs pop up > all the time and when they first come out + you take the exam, 2 months > later the same exam is pretty much voided by new topics or an > incomplete/inadequate study guide ... > with the continuing adoption of MySQL database products -- and it's one open source company I wouldn't hesitate to describe as "first class", I think it's worth taking the certs -- my $0.02 From james at surgam.net Wed Apr 14 12:47:07 2004 From: james at surgam.net (James Wetterau) Date: Wed, 14 Apr 2004 12:47:07 -0400 Subject: [nycphp-talk] Is it worth learning Python too? In-Reply-To: Message from talk-owner@lists.nyphp.org of "Wed, 14 Apr 2004 12:38:55 EDT." Message-ID: <200404141647.i3EGl7Q29672@panix2.panix.com> Daniel Krook says: > > > > > > Meandering on....I have a book that refers to C as a "high level" > > language. What's lower than C? > > High-level essentially means that you're writing your program in a human > readable format, and that what you're writing is abstracted from how the > machine will understand it, which is why it goes through the process of > compilation. Assembly code and raw machine code are low-level languages. ... Another important practical distinction is that a high-level language is presumably portable between different computers. A C program can be written so that it will compile for any computer architecture. (It's not necessarily the case that it will compile cleanly, or work correctly, but it should be possible to write it so that it can, as long as a C compiler and standard C libraries exist for the computer or operating system in question.) A low-level language from this perspective is fundamentally different. If you write an assembly language program that will assemble correctly for one computer, no matter how carefully you do it it generally will not work correctly for a different kind of computer and probably could not be made to work correctly for both different kinds of computer. The only exception might occur if it were an extremely trivial program and the two computers were quite similar, or coincidentally shared very similar assembly languages. The definition of a compiler or interpreter or virtual machine includes the ability to read source code in a high-level language and generate correct executable programs for different kinds of computers. From mitchy at spacemonkeylabs.com Wed Apr 14 12:51:47 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Wed, 14 Apr 2004 12:51:47 -0400 Subject: [nycphp-talk] Is it worth learning Python too? In-Reply-To: <02af01c4223d$9d580f80$6400a8c0@thinkpad> References: <01fc01c42230$b835ba80$6400a8c0@thinkpad> <20040414162136.GA10102@ncc.edu> <02af01c4223d$9d580f80$6400a8c0@thinkpad> Message-ID: <407D6C23.3090608@spacemonkeylabs.com> jon baer wrote: >Also, from a practical standpoint, the more skills you have, the more >hireable you are. When an employer is looking for two people with PHP >and Python skills, and he's already found the PHP coder, you still >have a shot at getting the gig. ><<< > >Point well taken ... although I always find people hesitant to hire the >person knowing 10% ASP, 10% JSP, 10% HTML, 10% Python, 10% C, 10% PHP, 10% >XML, 10% DHTML, 10% SQL 10% Come in on time. :-) Looks like the average >request these days ... > Whoah, I gotta debate that one. (pulls up a stool) I started as a 'jack of all trades, master of none. And not just languages, but jobs too - hardware engineer, warehouse inventory management, truck driver for manufacturing, graphics artist/animator, accounting systems migration, information security, business development... Fifteen years later I'm a 'jack of all trades, master of many'. And when many are looking for work, I'm cutting projects loose for lack of time. I credit this on my being both broad AND deep. I wouldn't change a thing if I could, as it has been a remarkable, exciting, thrill-ride of a career! Remember the kid who carried his new skateboard around all summer because he didn't want anyone to see how bad he sucked at it? He ended up giving it to a buddy, as he never spent enough time on the thing to ever pull that 'backside roast beef' that he always wanted. Don't lose the skateboard, man!!! Besides, the scabs don't last long... -- Mitch From james at surgam.net Wed Apr 14 13:16:47 2004 From: james at surgam.net (James Wetterau) Date: Wed, 14 Apr 2004 13:16:47 -0400 Subject: [nycphp-talk] Is it worth learning Python too? In-Reply-To: Message from Mitch Pirtle of "Wed, 14 Apr 2004 12:51:47 EDT." <407D6C23.3090608@spacemonkeylabs.com> Message-ID: <200404141716.i3EHGlp26366@panix2.panix.com> Mitch Pirtle says: ... > (pulls up a stool) > > I started as a 'jack of all trades, master of none. And not just > languages, but jobs too - hardware engineer, warehouse inventory > management, truck driver for manufacturing, graphics artist/animator, > accounting systems migration, information security, business > development... Fifteen years later I'm a 'jack of all trades, master of > many'. And when many are looking for work, I'm cutting projects loose > for lack of time. I credit this on my being both broad AND deep. I > wouldn't change a thing if I could, as it has been a remarkable, > exciting, thrill-ride of a career! ... I totally agree with this perspective. I have a similar experience: almost all of my applicable technical skills I learned by doing. The important thing is to be completely realistic and honest with your clients and yourself about what you can and can't do. What I find best about broadening my experience across different fields is when experience with one thing unexpectedly pays off for something else. "Wait a minute, I've seen something just like this before!" you realize, only it involved a different language/OS/computer architecture/disk type than the one you're dealing with *but the same general type of solution* applies in both cases. You could search Google all day and you'd never find the answer because the answer comes from a parallel but different line of work. I love it when that happens, because the customer is really getting what they paid for -- experience. I also like the sense of comfort it gives you when plunging into oddball tasks where no one's the expert, e.g. "Can you make this 25-year-old unsupported APL program running on an old mainframe using EBCDIC character encoding work correctly with data coming from a custom VB COM component running on NT4 that interoperates with and relies on stored procedures in a Sybase database hosted on SunOS 4.1.4? We upgraded the environment and something broke." I enjoy those kinds of questions. There are no experts for that sort of thing, and only breadth of experience really counts and really helps. The cost is that it takes time to build up experience. From jonbaer at jonbaer.net Wed Apr 14 13:27:24 2004 From: jonbaer at jonbaer.net (jon baer) Date: Wed, 14 Apr 2004 13:27:24 -0400 Subject: [nycphp-talk] Is it worth learning Python too? References: <200404141716.i3EHGlp26366@panix2.panix.com> Message-ID: <032801c42245$c096e9a0$6400a8c0@thinkpad> only it involved a different > language/OS/computer architecture/disk type than the one you're > dealing with *but the same general type of solution* applies in both > cases. You could search Google all day and you'd never find the Thank you for all your your perspectives, very interesting ... this kinda reminds me of ejecting a disk on a Mac for the first time :-) - Jon From ashaw at iifwp.org Wed Apr 14 13:27:11 2004 From: ashaw at iifwp.org (Allen Shaw) Date: Wed, 14 Apr 2004 13:27:11 -0400 Subject: [nycphp-talk] Is it worth learning Python too? References: <200404141716.i3EHGlp26366@panix2.panix.com> Message-ID: <003a01c42245$b8c56ad0$7801a8c0@iifwp.local> >There are no experts for that sort of > thing, and only breadth of experience really counts and really helps. > > The cost is that it takes time to build up experience. And a decision to do solve problems as they come up, instead of saying, "Hey, that's not my field." - Allen From tgales at tgaconnect.com Wed Apr 14 13:31:49 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 14 Apr 2004 13:31:49 -0400 Subject: [nycphp-talk] Is it worth learning Python too? In-Reply-To: <200404141647.i3EGl7Q29672@panix2.panix.com> Message-ID: <001701c42246$5edf3cc0$e98d3818@oberon1> > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of James Wetterau > Sent: Wednesday, April 14, 2004 12:47 PM > To: talk at lists.nyphp.org > Subject: Re: [nycphp-talk] Is it worth learning Python too? > > > > Daniel Krook says: > > > > > > > > > > > Meandering on....I have a book that refers to C as a "high level" > > > language. What's lower than C? > > > > High-level essentially means that you're writing your program in a > > human readable format, and that what you're writing is > abstracted from > > how the machine will understand it, which is why it goes > through the process of > > compilation. Assembly code and raw machine code are > low-level languages. > ... > > Another important practical distinction is that a high-level > language is presumably portable between different computers. Who is doing the presuming in your view? A language author creates a language to be useful. If he/she is successful, i.e. the language proves to be useful, other people port it to their systems so they can also take advantage of it. Maybe some authors of languages have a design goal of not burning any bridges when it comes to portability -- since they are confident their new language will be needed on many different types of systems, but by and large computer languages are created to get something done in one environment. Even Java, which now even runs on my cell phone, was designed to run in a closed environment -- namely set top boxes. (also consider the roots of PHP) > A C program can be written so that it will compile for any > computer architecture. (It's not necessarily the case that it > will compile cleanly, or work correctly, but it should be > possible to write it so that it can, as long as a C compiler > and standard C libraries exist for the computer or operating > system in question.) > > A low-level language from this perspective is fundamentally > different. If you write an assembly language program that > will assemble correctly for one computer, no matter how > carefully you do it generally will not work correctly for > a different kind of computer and probably could not be made > to work correctly for both different kinds of computer. The > only exception might occur if it were an extremely trivial > program and the two computers were quite similar, or > coincidentally shared very similar assembly languages. > > The definition of a compiler or interpreter or virtual > machine includes the ability to read source code in a > high-level language and generate correct executable programs > for different kinds of computers. > No, I don't think portability has anything to do with being a high-level language. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From james at surgam.net Wed Apr 14 14:34:58 2004 From: james at surgam.net (James Wetterau) Date: Wed, 14 Apr 2004 14:34:58 -0400 Subject: [nycphp-talk] Is it worth learning Python too? In-Reply-To: Message from "Tim Gales" of "Wed, 14 Apr 2004 13:31:49 EDT." <001701c42246$5edf3cc0$e98d3818@oberon1> Message-ID: <200404141834.i3EIYwI25872@panix2.panix.com> "Tim Gales" says: ... > > Another important practical distinction is that a high-level > > language is presumably portable between different computers. > > Who is doing the presuming in your view? I am, but I think this is not an uncommon view of a key advantage of high-level languages. > A language author creates a language to be useful. At least in the case of C, a component of that usefulness was portability across platforms, and I think today it is commonly expected that portability across platforms is a key aspect of the utility of high-level languages. Kernighan and Ritchie, the authors of C say about C in their classic book "The C Programming Languages", 2nd ed., in the introduction: "Although C matches the capabilities of many computers, it is independent of any particular machine architecture. With a little care, it is easy to write portable programs, that is, programs that can be run without change on a variety of hardware. The standard makes portability issues explicit, and prescribes a set of constants that characterize the machine on which the program is run." I think the last sentence pertinent to the ANSI standard is particularly telling -- portability, which was implicit in the language from very early on was made explicit in the standardization process of the 70s - 80s. I am humbled to report, in the spirit of full disclosure, that the text in the preface describes C as 'not a "very high level" language', and the text in the introduction describes it thus: "C is a relatively 'low level' language." So we seem to be in a semantic muddle. Perhaps the correct description would be: C is a standardized, portable relatively low level language for a high level language which is not a very high level language. Maybe C would best be thought of as a middle level language; we could call it a "mezzanine" language. > If he/she is successful, i.e. the language proves to be > useful, other people port it to their systems so they > can also take advantage of it. Or in the caes of K&R, I believe they did the first couple of ports themselves. > Maybe some authors of languages have a design goal of not > burning any bridges when it comes to portability -- since In the case of K&R they were going for portability from early on so that they could easily move this large program they had written called "Unix" from one computer to another without having to rewrite huge chunks of it ever time. ... > different types of systems, but by and large computer languages > are created to get something done in one environment. You may be right, but I don't believe that's the case with C/C++ and Perl, to name just a few. > Even Java, which now even runs on my cell phone, was designed to > run in a closed environment -- namely set top boxes. Well, this is a simplification. The first prototype of Java (called "Oak") was meant to run on a variety of set-top boxes (to get ready for the coming "digital convergence"). It was meant to be processor independent but to present a consistent programming environment and language. Evidently a contingent at Sun expected that something that would be sort of a hybrid between cable modems, web tv, movies-on-demand, and TiVO, probably working over the internet, was going to be the next big thing in 1991. Not completely wrong, but not exactly right. ... > > The definition of a compiler or interpreter or virtual > > machine includes the ability to read source code in a > > high-level language and generate correct executable programs > > for different kinds of computers. > > > > No, I don't think portability has anything to do > with being a high-level language. Well, I think it's a commonly associated feature, and a non-portable high-level language would be a gross exception. I suppose a vehicle doesn't have to have seats to be a car, and I don't know if the definition of "car" should include the idea that there are seats in it, but it seems to me to be the convention. Similarly, I think portability is a commonly expected advantage to high level languages. Of course none of this applies to C, since we have established, from the words of its creators, that it is a mezzanine language. From james at surgam.net Wed Apr 14 14:45:51 2004 From: james at surgam.net (James Wetterau) Date: Wed, 14 Apr 2004 14:45:51 -0400 Subject: [nycphp-talk] Is it worth learning Python too? In-Reply-To: Message from "James Wetterau" of "Wed, 14 Apr 2004 14:34:58 EDT." <200404141834.i3EIYwI25872@panix2.panix.com> Message-ID: <200404141845.i3EIjpI03477@panix2.panix.com> "James Wetterau" says: ...> > In the case of K&R they were going for portability from early on so > that they could easily move this large program they had written called > "Unix" from one computer to another without having to rewrite huge > chunks of it ever time. Correction! Sorry. Only Dennis Ritche (not Brian Kernighan) was involved in co-writing Unix at this point. Of course his co-author was one Ken Thompson. However, all three worked at Bell Labs and surely shared many common concerns and goals. Some evidence exists that Ritchie thought about portability of both C and Unix early. Here's a web page linking to a paper on the issue: http://cm.bell-labs.com/cm/cs/who/dmr/portpapers.html "Papers about Unix Portability In 1976-1977 the Unix system was rendered portable, thus starting a continuing industry. The account by Steve Johnson and me, `Portability of C Programs and the UNIX System,' was published in the Bell System Technical Journal; it is now on-line as PDF, Postscript, or HTML formats." Note the title talks about both C and Unix, pretty early on in the life of the language. From andrew at digitalpulp.com Wed Apr 14 15:30:25 2004 From: andrew at digitalpulp.com (Andrew Yochum) Date: Wed, 14 Apr 2004 15:30:25 -0400 Subject: [nycphp-talk] Is it worth learning Python too? In-Reply-To: <1081959539.4839.65.camel@bezel> References: <01fc01c42230$b835ba80$6400a8c0@thinkpad> <1081959539.4839.65.camel@bezel> Message-ID: <20040414193017.GB17969@thighmaster.digitalpulp.com> On Wed, Apr 14, 2004 at 12:18:59PM -0400, Joel De Gan wrote: > On Wed, 2004-04-14 at 10:56, jon baer wrote: > > Everyone seems to talk about Zope/Plone/Python and im trying to figure out > > if its worth learning and worth applying to CMS-based stuff I have now ... > > I would say that is not a good "reason" to learn. The rest of this thread has focused on Python, and is ignoring the CMS part of your question so I'll try to address that a bit... Zope/Plone/CMF has a lot of ideas and techniques to offer you in terms of frameworks and CMSs. Zope provides a application framework to build applications, which is an area that PHP distinctly lacks a strong leader in. You may get hooked on Zope features like granular permissioning, acquisition, automatically persistent objects, and built-in templating (ZPT) and try to replicate them in PHP. CMF/Plone is a nice CMS app built on that framework, taking advantage of Zope's facilities while at the same time putting a user-friendly face on the not-so-user-friendly ZMI. The functionality it provides or can provide with some additional work is far beyond anything that I've seen accomplished with open sources PHP CMSs as easily, such as powerful workflows, versioning, roles, etc. Custom Zope/CMF/Plone development can be hard to break into. In addition to learning Python, you're learning a whole new method of building applications in Zope's framework and integrating with Zope products. Some of Zope and Zope products are poorly documented, if at all, which can be very aggravating and time-consuming. How much of this affects you depends on what you wish to do with Zope/CMF/Plone. If you use it out of the box, you may not have much difficulty at all, otherwise be prepared for the possibility of some long archaeological digs through source. Overall, I'd answer your question with a "Yes", with the above warning. HTH, Andrew From adam at digitalpulp.com Wed Apr 14 15:37:45 2004 From: adam at digitalpulp.com (Adam Fields) Date: Wed, 14 Apr 2004 15:37:45 -0400 Subject: [nycphp-talk] Is it worth learning Python too? In-Reply-To: <200404141716.i3EHGlp26366@panix2.panix.com> References: <200404141716.i3EHGlp26366@panix2.panix.com> Message-ID: <407D9309.3060603@digitalpulp.com> James Wetterau wrote: [...] > I also like the sense of comfort it gives you when plunging into > oddball tasks where no one's the expert, e.g. "Can you make this > 25-year-old unsupported APL program running on an old mainframe using > EBCDIC character encoding work correctly with data coming from a > custom VB COM component running on NT4 that interoperates with and > relies on stored procedures in a Sybase database hosted on SunOS > 4.1.4? We upgraded the environment and something broke." I enjoy > those kinds of questions. There are no experts for that sort of > thing, and only breadth of experience really counts and really helps. Hey! I wrote that! There was some FAME 4GL in there too... Man, I hate APL. From james at surgam.net Wed Apr 14 16:06:10 2004 From: james at surgam.net (James Wetterau) Date: Wed, 14 Apr 2004 16:06:10 -0400 Subject: [nycphp-talk] Is it worth learning Python too? In-Reply-To: Message from Adam Fields of "Wed, 14 Apr 2004 15:37:45 EDT." <407D9309.3060603@digitalpulp.com> Message-ID: <200404142006.i3EK6BG23337@panix3.panix.com> Adam Fields says: > James Wetterau wrote: > [...] > > I also like the sense of comfort it gives you when plunging into > > oddball tasks where no one's the expert, e.g. "Can you make this > > 25-year-old unsupported APL program running on an old mainframe using > > EBCDIC character encoding work correctly with data coming from a > > custom VB COM component running on NT4 that interoperates with and > > relies on stored procedures in a Sybase database hosted on SunOS > > 4.1.4? We upgraded the environment and something broke." I enjoy > > those kinds of questions. There are no experts for that sort of > > thing, and only breadth of experience really counts and really helps. > > Hey! I wrote that! There was some FAME 4GL in there too... > > Man, I hate APL. ... I was actually creating a composite picture of some of the most, uh, interesting projects that I and my colleagues (including you) have worked on. I don't think that exact combination ever showed up, but every single one of the pieces, and several in combination, down to EBCDIC - ASCII translation/communication with NT 4, has been a piece of a project that I or my teammates working with me have dealt with. APL seems to attract a "special" kind of programmer. I'll never forget some wildly beaming A-plus enthusiasts at Usenix handing me a sticker for it. (A-plus is an APL related/derivative/mutant offshoot from Morgan Stanley.) The sticker was in psychedelic colors and letters and said "A-plus: Awk on Crack". You just don't see that kind of marketing much. You can find out all about A-plus here: http://www.aplusdev.org/ Here's a cool-looking example program: http://www.aplusdev.org/About/unique.html I always thought programming languages needed more Greek letters, arrows, and math symbols. PHP would really take off it it would only start using them. :-) From csnyder at chxo.com Wed Apr 14 17:27:50 2004 From: csnyder at chxo.com (Chris Snyder) Date: Wed, 14 Apr 2004 17:27:50 -0400 Subject: [nycphp-talk] mysql over ssl using php Message-ID: <407DACD6.4010203@chxo.com> I need to set up some remote database connections, and I'm not so keen on transmitting passwords and data in the clear. Has anyone used the |CLIENT_SSL |flag with mysql_connect() ? Googling the archives turned up a similar message from Jon Baer a few months ago: http://lists.nyphp.org/pipermail/talk/2003-November/006336.html ... any luck with that Jon? csnyder || From tgales at tgaconnect.com Wed Apr 14 21:36:24 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 14 Apr 2004 21:36:24 -0400 Subject: [nycphp-talk] Is it worth learning Python too? In-Reply-To: <200404141834.i3EIYwI25872@panix2.panix.com> Message-ID: <001e01c4228a$1101ac10$e98d3818@oberon1> > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of James Wetterau > Sent: Wednesday, April 14, 2004 2:35 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Is it worth learning Python too? > > "Tim Gales" says: > ... > > > Another important practical distinction is that a high-level > > > language is presumably portable between different computers. > > > > Who is doing the presuming in your view? > > I am, but I think this is not an uncommon view of a key advantage of > high-level languages. > > > A language author creates a language to be useful. > > At least in the case of C, a component of that usefulness was > portability across platforms, and I think today it is commonly > expected that portability across platforms is a key aspect of the > utility of high-level languages. > > Kernighan and Ritchie, the authors of C say about C in their Kernigan has said, "C is entirely the work of Dennis Ritchie, I am but a popularizer..." (http://www-2.cs.cmu.edu/~mihaib/kernighan-interview/) > classic book "The C Programming Languages", 2nd ed., in the > introduction: "Although C matches the capabilities of many computers, > it is independent of any particular machine architecture. With a > little care, it is easy to write portable programs, that is, programs > that can be run without change on a variety of hardware. The standard > makes portability issues explicit, and prescribes a set of > constants that characterize the machine on which the program is run." Early C certainly did match the capabilities of the 'Digital Equipment Corp.'-like machines of its day on which the Unix operating system was born. C operators bear such an uncanny resemblance to the underlying DEC assembly language instruction set, that an experienced Macro-11 programmer (again of that time) might have tried looking up information on the SWAPB operator in the C language reference manual. C was popularly thought of in its early days as a special-purpose language for Ken Thompson's experimental operating system. I think most people agree that this proved eventually to be a misconception. Perhaps what clouded things was the way C seemed to evolve from Thompson's B language (which really was a special purpose language). I am guessing at this, but I think that by the time the the book came out, the authors realized the C language could have more applications than just facilitating the porting of Unix. Either way, C was ported to other Non-DEC like hardware and OSs, but only by creating what approaches being a Unix emulation layer in the runtime library for the different architectures. Early C developers on non-unix platforms often used to say that they got NUXI 'd when their runtime implementation didn't implement the proper Unix (DEC) byte ordering. My point here is that Ritchie may well have discovered the more general nature that C could become when he tried to implement the runtime library on different architectures. (this is just conjecture on my part of course) > > I think the last sentence pertinent to the ANSI standard is > particularly telling -- portability, which was implicit in the > language from very early on was made explicit in the standardization > process of the 70s - 80s. > > I am humbled to report, in the spirit of full disclosure, that the > text in the preface describes C as 'not a "very high level" language', > and the text in the introduction describes it thus: "C is a relatively > 'low level' language." > > So we seem to be in a semantic muddle. Perhaps the correct > description would be: C is a standardized, portable relatively low > level language for a high level language which is not a very high > level language. > > Maybe C would best be thought of as a middle level language; we could > call it a "mezzanine" language. > > > If he/she is successful, i.e. the language proves to be useful, > > other people port it to their systems so they can also take > > advantage of it. > > Or in the caes of K&R, I believe they did the first couple of ports > themselves. > > > Maybe some authors of languages have a design goal of not burning > > any bridges when it comes to portability -- since > > In the case of K&R they were going for portability from early on so > that they could easily move this large program Now who's guilty of over-simplification (just joking) -- but there exits more than one layer to an operating system (hardly one program now matter how large). You know, like Linux is a kernel not an operating system. > they had > written called "Unix" from one computer to another without having to > rewrite huge chunks of it ever time. > > ... > > different types of systems, but by and large computer languages are > > created to get something done in one environment. > > You may be right, but I don't believe that's the case with C/C++ and > Perl, to name just a few. > > > Even Java, which now even runs on my cell phone, was designed to run > > in a closed environment -- namely set top boxes. > > Well, this is a simplification. The first prototype of Java (called > "Oak") was meant to run on a variety of set-top boxes (to get ready > for the coming "digital convergence"). It was meant to be processor > independent but to present a consistent programming environment and > language. Here again though, the runtime environment would provide a layer of abstraction -- this time as byte codes in a virtual machine. > Evidently a contingent > at Sun expected that something that would be sort of a hybrid between > cable modems, web tv, movies-on-demand, and TiVO, probably working > over the internet, was going to be the next big thing in 1991. Not > completely wrong, but not exactly right. > Okay. The waters *are* rather murky here. But maybe there is some relationship like: B is to C as Oak is to Java. If so, both roots of the languages seem to have started to help solve a specific problem as their main purpose for being, regardless of any later metamorphosis. > ... > > > The definition of a compiler or interpreter or virtual machine > > > includes the ability to read source code in a high-level language > > > and generate correct executable programs for different kinds of > > > computers. > > > > > > > No, I don't think portability has anything to do > > with being a high-level language. > > Well, I think it's a commonly associated feature, and a > non-portable high-level language would be a gross exception. > I suppose a vehicle doesn't have to have seats to be a car, > and I don't know if the definition of "car" should include > the idea that there are seats in it, but it seems to me to be > the convention. Similarly, I think portability is a commonly > expected advantage to high level languages. I would agree that people have come to expect a portable library with modern languages -- which in effect makes them portable. It just strikes me that it is the level of abstraction or the distance from the hardware that is the main determining factor in where to place a language in terms of it being high level or low level. And it was probably too harsh of me to say: "I don't think portability has anything to do with being a high-level language." Sorry 'bout that. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From james at surgam.net Wed Apr 14 23:13:27 2004 From: james at surgam.net (James Wetterau) Date: Wed, 14 Apr 2004 23:13:27 -0400 Subject: [nycphp-talk] Is it worth learning Python too? In-Reply-To: Message from "Tim Gales" of "Wed, 14 Apr 2004 21:36:24 EDT." <001e01c4228a$1101ac10$e98d3818@oberon1> Message-ID: <200404150313.i3F3DR612692@panix2.panix.com> "Tim Gales" says: ... > And it was probably too harsh of me to say: > "I don't think portability has anything to do > with being a high-level language." > > Sorry 'bout that. ... Hey, nothing to be sorry about -- I enjoyed the conversation and I it made me go and read something interesting about the history of C from which I learned the story wasn't as simple as I thought. I just hope we didn't bore everybody with all this non-PHP stuff. From jonbaer at jonbaer.net Wed Apr 14 23:32:52 2004 From: jonbaer at jonbaer.net (jon baer) Date: Wed, 14 Apr 2004 23:32:52 -0400 Subject: [nycphp-talk] mysql over ssl using php References: <407DACD6.4010203@chxo.com> Message-ID: <009601c4229a$555a3660$6500a8c0@thinkpad> I actually couldnt get it compiled + ended up tunneling 3306 instead w/ ssh ... I cant remember what the exact problem was but someone said the flag was inoperable (< 4.0) and that the mysqli extension in PHP5 w/ > 4.1 was the way (only way I think) to go ... which I still find kinda odd because Im *sure* someone setups up MySQL w/ SSL (or everyone installs it localhost) ... I had the same problem, an admin tool installed locally on a laptop -> remote server and just opened the tunnel before running the tool. I think there are just presumptions that the db and scripting language will end up on the same box :-\ - Jon ----- Original Message ----- From: "Chris Snyder" To: "NYPHP Talk" Sent: Wednesday, April 14, 2004 5:27 PM Subject: [nycphp-talk] mysql over ssl using php > I need to set up some remote database connections, and I'm not so keen > on transmitting passwords and data in the clear. > > Has anyone used the |CLIENT_SSL |flag with mysql_connect() ? > > Googling the archives turned up a similar message from Jon Baer a few > months ago: > http://lists.nyphp.org/pipermail/talk/2003-November/006336.html ... any > luck with that Jon? From jonbaer at jonbaer.net Wed Apr 14 23:36:13 2004 From: jonbaer at jonbaer.net (jon baer) Date: Wed, 14 Apr 2004 23:36:13 -0400 Subject: [nycphp-talk] Is it worth learning Python too? References: <200404150313.i3F3DR612692@panix2.panix.com> Message-ID: <00a001c4229a$cd3c0ff0$6500a8c0@thinkpad> > Hey, nothing to be sorry about -- I enjoyed the conversation and I it > made me go and read something interesting about the history of C from > which I learned the story wasn't as simple as I thought. I just hope > we didn't bore everybody with all this non-PHP stuff. What do you mean? You can't find *that* type of info and conversation in any book, its enjoyable, entertaining and educational. (EEE+) :-) The only problem is if me or my future grandkids years from now are still programming in C/C++ will it be a *bad* thing? :-\ - Jon From crisscott at netzero.com Thu Apr 15 08:55:59 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Thu, 15 Apr 2004 08:55:59 -0400 Subject: [nycphp-talk] OO PHP-Gtk Message-ID: <407E865F.7060101@netzero.com> Hello, I know that there is a list dedicated to this kind of stuff but apparently the folks at php-gtk don't like me very much because I can't post to their list and haven't heard back from the list administrator. Anyway, I figure there has to be some one on this list who can help me. I have been trying to get an object oriented php-gtk app working but I am running into some problems. It appears that if you connect a widget to a method, the method is called statically. My problem is that I want the methods to set member vars. Is there any way to get something like this to work: class clicky { var $wasClicked = FALSE; function clicky() { $button = &new GtkButton('Clicky!'); $button->connect('clicked', array(&$this, 'clickied')); } function clickied() { if ($this->wasClicked) { echo 'The button was already clickied!'; } else { echo 'This is the first time the button was clicked!'; $this->wasClicked = TRUE; } } } $clicky = new clicky; Thanks, Scott Mattocks From dmintz at davidmintz.org Thu Apr 15 10:18:36 2004 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 15 Apr 2004 10:18:36 -0400 (EDT) Subject: [nycphp-talk] Smarty + HTML_QuickForm_Controller: problem and solution In-Reply-To: <407D6C23.3090608@spacemonkeylabs.com> References: <01fc01c42230$b835ba80$6400a8c0@thinkpad> <20040414162136.GA10102@ncc.edu> <02af01c4223d$9d580f80$6400a8c0@thinkpad> <407D6C23.3090608@spacemonkeylabs.com> Message-ID: I've just started playing with HTML_QuickForm_Controller and was wondering how to get it to play nicely with Smarty. [raises garbage can lid to deflect flying tomatoes from Smarty- and PEAR-bashers] I googled around and found nothing but people asking the same question. So I waded in and (more or less) figured it out by examining the source and the examples and experimenting. Now I'm wondering if there'd be interest in a little tutorial and/or presentation on this topic. (Although I'd really need a more experienced (than me) volunteer editor to review my spiel before I inflict it on live people.) --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From csnyder at chxo.com Thu Apr 15 10:43:07 2004 From: csnyder at chxo.com (Chris Snyder) Date: Thu, 15 Apr 2004 10:43:07 -0400 Subject: [nycphp-talk] OO PHP-Gtk In-Reply-To: <407E865F.7060101@netzero.com> References: <407E865F.7060101@netzero.com> Message-ID: <407E9F7B.4080308@chxo.com> Php-gtk is not my area (tho I was able to successfully install it once). Your code works in a non-gtk context, given the following pseudo-object (php 4.3.2 on osx): class GtkButton { function GtkButton($name) { $this->name = $name; } function connect ($event, $callback) { $callback[0]->{$callback[1]}(); } } Not sure if that helps or not, but if you can get a fake GtkButton to behave like the real GtkButton, maybe you can figure out why it doesn't work and route around the problem? From crisscott at netzero.com Thu Apr 15 10:55:45 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Thu, 15 Apr 2004 10:55:45 -0400 Subject: [nycphp-talk] OO PHP-Gtk In-Reply-To: <407E9F7B.4080308@chxo.com> References: <407E865F.7060101@netzero.com> <407E9F7B.4080308@chxo.com> Message-ID: <407EA271.7080803@netzero.com> > function connect ($event, $callback) { > $callback[0]->{$callback[1]}(); > } Is this how php-gtk handles callbacks? I was under the impression that it was done statically. So that with your example it would look more like: function connect ($event, $callback) { $callback[0]::{$callback[1]}(); } I think it has to be calling the methods statically because if I have two methods, one that sets the member var and the other that checks the value and reacts, I get very confusing results. ... var $memberVar = FALSE; ... $button->connect('event', array($this, 'method1')); $button->connect_after('event', array($this, 'method2')); ... function method1() { echo $this->memberVar; $this->memberVar = TRUE; echo $this->memberVar; } funciton method2() { if ($this->memberVar) { echo 'It worked'; } else { echo 'It didn't work'; } ... Method one will print exactly what you would expect, but when I get to method2, memberVar is FALSE again and I get 'It didn't work.' Thanks, Scott Mattocks From dcech at phpwerx.net Thu Apr 15 11:20:06 2004 From: dcech at phpwerx.net (Dan Cech) Date: Thu, 15 Apr 2004 11:20:06 -0400 Subject: [nycphp-talk] OO PHP-Gtk In-Reply-To: <407EA271.7080803@netzero.com> References: <407E865F.7060101@netzero.com> <407E9F7B.4080308@chxo.com> <407EA271.7080803@netzero.com> Message-ID: <407EA826.3040205@phpwerx.net> Scott Mattocks wrote: > >> function connect ($event, $callback) { >> $callback[0]->{$callback[1]}(); >> } > > Is this how php-gtk handles callbacks? I was under the impression that > it was done statically. So that with your example it would look more like: > > function connect ($event, $callback) { > $callback[0]::{$callback[1]}(); > } > > I think it has to be calling the methods statically because if I have > two methods, one that sets the member var and the other that checks the > value and reacts, I get very confusing results. > > ... > var $memberVar = FALSE; > ... > $button->connect('event', array($this, 'method1')); > $button->connect_after('event', array($this, 'method2')); > ... > function method1() { > echo $this->memberVar; > $this->memberVar = TRUE; > echo $this->memberVar; > } > funciton method2() { > if ($this->memberVar) { > echo 'It worked'; > } else { > echo 'It didn't work'; > } > ... > > Method one will print exactly what you would expect, but when I get to > method2, memberVar is FALSE again and I get 'It didn't work.' My guess would be that you need to set the callback functions like: $button->connect('event', array(&$this, 'method1')); $button->connect_after('event', array(&$this, 'method2')); With the ampersand they *should* be called correctly, whereas without the ampersand each will work on it's own *copy* of $this. Hope this helps, Dan > Thanks, > Scott Mattocks From crisscott at netzero.com Thu Apr 15 11:23:05 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Thu, 15 Apr 2004 11:23:05 -0400 Subject: [nycphp-talk] OO PHP-Gtk In-Reply-To: <407EA826.3040205@phpwerx.net> References: <407E865F.7060101@netzero.com> <407E9F7B.4080308@chxo.com> <407EA271.7080803@netzero.com> <407EA826.3040205@phpwerx.net> Message-ID: <407EA8D9.1050808@netzero.com> > My guess would be that you need to set the callback functions like: > > $button->connect('event', array(&$this, 'method1')); > $button->connect_after('event', array(&$this, 'method2')); > > With the ampersand they *should* be called correctly, whereas without > the ampersand each will work on it's own *copy* of $this. I hope that I am doing that otherwise I am going to feel like a big dummy. I don't have the code with me now but I will try that when I get back in front of it. Thanks for the help, Scott Mattocks From csnyder at chxo.com Thu Apr 15 11:31:21 2004 From: csnyder at chxo.com (Chris Snyder) Date: Thu, 15 Apr 2004 11:31:21 -0400 Subject: [nycphp-talk] OO PHP-Gtk In-Reply-To: <407EA271.7080803@netzero.com> References: <407E865F.7060101@netzero.com> <407E9F7B.4080308@chxo.com> <407EA271.7080803@netzero.com> Message-ID: <407EAAC9.2050207@chxo.com> Scott Mattocks wrote: > Is this how php-gtk handles callbacks? I was under the impression > that it was done statically. So that with your example it would look > more like: > > function connect ($event, $callback) { > $callback[0]::{$callback[1]}(); > } Could be, don't know. I can see how that would be less than useful. In that case you may need to use yet another object to track state (blech): function clickied() { global $state; if ($state->wasClicked) { echo 'The button was already clickied!'; } else { echo 'This is the first time the button was clicked!'; $state->wasClicked = TRUE; } } From csnyder at chxo.com Thu Apr 15 11:43:41 2004 From: csnyder at chxo.com (Chris Snyder) Date: Thu, 15 Apr 2004 11:43:41 -0400 Subject: [nycphp-talk] mysql over ssl using php In-Reply-To: <009601c4229a$555a3660$6500a8c0@thinkpad> References: <407DACD6.4010203@chxo.com> <009601c4229a$555a3660$6500a8c0@thinkpad> Message-ID: <407EADAD.2040700@chxo.com> jon baer wrote: >I actually couldnt get it compiled + ended up tunneling 3306 instead w/ ssh > > Thanks for the followup. If you have time, I'd love to see your notes on setting this up -- a quick Google revealed a lot of doc, most of it related to tunneling using a Windows client. From jonbaer at jonbaer.net Thu Apr 15 14:00:08 2004 From: jonbaer at jonbaer.net (jon baer) Date: Thu, 15 Apr 2004 14:00:08 -0400 Subject: [nycphp-talk] mysql over ssl using php References: <407DACD6.4010203@chxo.com><009601c4229a$555a3660$6500a8c0@thinkpad> <407EADAD.2040700@chxo.com> Message-ID: <007401c42313$7d914640$6500a8c0@thinkpad> Were you looking for just how to do it? ssh -fNg -L 3307:127.0.0.1:3307 user at host.com mysql -h 127.0.0.1 -P 3307 -u user -pPASS db * use IP not name, use different port so not to conflict w/ possible local instal or kill mysqld before hand If you do this on an ISP it may or may not work depending on how their fw is setup in which case you may get an error stating the channel could not be openned. - Jon ----- Original Message ----- From: "Chris Snyder" To: "NYPHP Talk" Sent: Thursday, April 15, 2004 11:43 AM Subject: Re: [nycphp-talk] mysql over ssl using php > If you have time, I'd love to see your notes on setting this up -- a > quick Google revealed a lot of doc, most of it related to tunneling > using a Windows client. From Cbielanski at inta.org Thu Apr 15 14:04:44 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Thu, 15 Apr 2004 14:04:44 -0400 Subject: [nycphp-talk] mysql over ssl using php Message-ID: Is there a KB somewhere we can file this? I foresee it being a oft-used solution, if available. Hooray for Jon :) > -----Original Message----- > From: jon baer [mailto:jonbaer at jonbaer.net] > Sent: Thursday, April 15, 2004 2:00 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] mysql over ssl using php > > > Were you looking for just how to do it? > > ssh -fNg -L 3307:127.0.0.1:3307 user at host.com > mysql -h 127.0.0.1 -P 3307 -u user -pPASS db > > * use IP not name, use different port so not to conflict w/ > possible local > instal or kill mysqld before hand > > If you do this on an ISP it may or may not work depending on > how their fw is > setup in which case you may get an error stating the channel > could not be > openned. > > - Jon > > ----- Original Message ----- > From: "Chris Snyder" > To: "NYPHP Talk" > Sent: Thursday, April 15, 2004 11:43 AM > Subject: Re: [nycphp-talk] mysql over ssl using php > > > If you have time, I'd love to see your notes on setting this up -- a > > quick Google revealed a lot of doc, most of it related to tunneling > > using a Windows client. > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From jonbaer at jonbaer.net Thu Apr 15 17:22:18 2004 From: jonbaer at jonbaer.net (jon baer) Date: Thu, 15 Apr 2004 17:22:18 -0400 Subject: [nycphp-talk] Still no way to PGP content directly? Message-ID: <000901c4232f$d4855740$6500a8c0@thinkpad> Is it still not possible to use something like: header ("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename=Private.xml.enc"); header("Cache-control: private"); // encrypt + export exit; w/ a few known public keys? Or do you still have to pipe w/ popen()? Im not sure mcrypt would help me here w/ incompatible keys ... I could have sworn there was an extension made for it (or in the making) ... - Jon pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 From lists at neoncowboy.com Thu Apr 15 18:51:40 2004 From: lists at neoncowboy.com (John Corry) Date: Thu, 15 Apr 2004 12:51:40 -1000 Subject: [nycphp-talk] Please excuse me In-Reply-To: <000901c4232f$d4855740$6500a8c0@thinkpad> Message-ID: <20040415225144.D6B5DA85E9@virtu.nyphp.org> Email filter test From suzerain at suzerain.com Thu Apr 15 19:37:07 2004 From: suzerain at suzerain.com (Marc Antony Vose) Date: Thu, 15 Apr 2004 19:37:07 -0400 Subject: [nycphp-talk] PHP5 and SQL Lite...thoughts? In-Reply-To: <200404132037.i3DKbsx7031430@webmail2.megamailservers.com> References: <200404132037.i3DKbsx7031430@webmail2.megamailservers.com> Message-ID: Hey everyone: Just beginning to think about this stuff as I will probably take the opportunity to make my classes more rigid inside the new PHP5 class structure, and think a little better about how they're set up, and so forth. Unlike many of you, I don't have the luxuries of large development teams inside a large organization, because I am dealing with very small clients (usually non-profit), and so I have to structure things as simply as possible for myself, to just save myself time. I am not using PHP5, nor will I until the actual final version has been out for quite a while. But, I stay on top of what's happening and had some questions for people who have played with a little. Specifically, what does everyone think of the bundling of SQL Lite into PHP5? My own publishing framework has been based on MySQL/PHP, but I was beginning to investigate the advantages of SQL Lite for small projects, and specifically how it integrates with PHP5. Cheers, -- Marc Antony Vose http://www.suzerain.com/ The surest way to corrupt a youth is to instruct him to hold in higher esteem those who think alike than those who think differently. -- Nietzsche From jonbaer at jonbaer.net Thu Apr 15 20:22:16 2004 From: jonbaer at jonbaer.net (jon baer) Date: Thu, 15 Apr 2004 20:22:16 -0400 Subject: [nycphp-talk] PHP5 and SQL Lite...thoughts? References: <200404132037.i3DKbsx7031430@webmail2.megamailservers.com> Message-ID: <002701c42348$dfe26470$6500a8c0@thinkpad> I am in the same boat for a non-profit, my feelings are that MySQL is a great product, however even with long term data it can be extremely overkill. And the worst part is when it goes down unexpected and you are left with an app and no db. SQL Lite does solve that problem. ----- Original Message ----- From: "Marc Antony Vose" To: "NYPHP Talk" Sent: Thursday, April 15, 2004 7:37 PM Subject: [nycphp-talk] PHP5 and SQL Lite...thoughts? > Specifically, what does everyone think of the bundling of SQL Lite > into PHP5? My own publishing framework has been based on MySQL/PHP, > but I was beginning to investigate the advantages of SQL Lite for > small projects, and specifically how it integrates with PHP5. > From webmaster at localnotion.com Thu Apr 15 20:31:14 2004 From: webmaster at localnotion.com (Matthew Terenzio) Date: Thu, 15 Apr 2004 20:31:14 -0400 Subject: [nycphp-talk] PHP5 and SQL Lite...thoughts? In-Reply-To: <002701c42348$dfe26470$6500a8c0@thinkpad> References: <200404132037.i3DKbsx7031430@webmail2.megamailservers.com> <002701c42348$dfe26470$6500a8c0@thinkpad> Message-ID: <5E10E456-8F3D-11D8-BA14-0003938BDF32@localnotion.com> Can it not be said that in some ways SQLLite is more advanced than MySQL? Does MySQL support transactions, for instance? (Don't flame me, I'm here for PHP but use Postgres, and I haven't kept up with MySQL over the last two years). On Apr 15, 2004, at 8:22 PM, jon baer wrote: > I am in the same boat for a non-profit, my feelings are that MySQL is a > great product, however even with long term data it can be extremely > overkill. And the worst part is when it goes down unexpected and you > are > left with an app and no db. SQL Lite does solve that problem. > > ----- Original Message ----- > From: "Marc Antony Vose" > To: "NYPHP Talk" > Sent: Thursday, April 15, 2004 7:37 PM > Subject: [nycphp-talk] PHP5 and SQL Lite...thoughts? > > >> Specifically, what does everyone think of the bundling of SQL Lite >> into PHP5? My own publishing framework has been based on MySQL/PHP, >> but I was beginning to investigate the advantages of SQL Lite for >> small projects, and specifically how it integrates with PHP5. >> > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From adam at trachtenberg.com Thu Apr 15 20:34:41 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Thu, 15 Apr 2004 20:34:41 -0400 (EDT) Subject: [nycphp-talk] PHP5 and SQL Lite...thoughts? In-Reply-To: References: <200404132037.i3DKbsx7031430@webmail2.megamailservers.com> Message-ID: On Thu, 15 Apr 2004, Marc Antony Vose wrote: > Specifically, what does everyone think of the bundling of SQL Lite > into PHP5? My own publishing framework has been based on MySQL/PHP, > but I was beginning to investigate the advantages of SQL Lite for > small projects, and specifically how it integrates with PHP5. SQLite is great when you're doing mostly database reads. If you're writing lots of data, then it's not so hot. The big advantage of SQLite is that there's no database to administer, so it's always available. If you want to try it out, there's a version in PECL that works with PHP 4.3. Sorry I can't write more right now, but I'm using a weird keyboard, so typing is slow. :) -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From adam at trachtenberg.com Thu Apr 15 20:37:34 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Thu, 15 Apr 2004 20:37:34 -0400 (EDT) Subject: [nycphp-talk] PHP5 and SQL Lite...thoughts? In-Reply-To: <5E10E456-8F3D-11D8-BA14-0003938BDF32@localnotion.com> References: <200404132037.i3DKbsx7031430@webmail2.megamailservers.com> <002701c42348$dfe26470$6500a8c0@thinkpad> <5E10E456-8F3D-11D8-BA14-0003938BDF32@localnotion.com> Message-ID: On Thu, 15 Apr 2004, Matthew Terenzio wrote: > Can it not be said that in some ways SQLLite is more advanced than > MySQL? > Does MySQL support transactions, for instance? (Don't flame me, I'm > here for PHP but use Postgres, and I haven't kept up with MySQL over > the last two years). Yea, MySQL does support transactions. Don't be put off my the "Lite" in SQLite. It's full featured, but you're essentially accessing a flatfile, so you can't do things like replication and GRANTs. Other than that, SQLite supports transactions, triggers, UDFs (written in PHP! This is wicked awesome!), subselects, and many other advanced features. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From jonbaer at jonbaer.net Thu Apr 15 20:38:35 2004 From: jonbaer at jonbaer.net (jon baer) Date: Thu, 15 Apr 2004 20:38:35 -0400 Subject: [nycphp-talk] PHP5 and SQL Lite...thoughts? References: <200404132037.i3DKbsx7031430@webmail2.megamailservers.com> Message-ID: <004b01c4234b$26ede220$6500a8c0@thinkpad> > so it's always available. If you want to try it out, there's a version > in PECL that works with PHP 4.3. That's http://pecl.php.net/package/SQLite for us lazies :-) - Jon From jonbaer at jonbaer.net Thu Apr 15 20:53:12 2004 From: jonbaer at jonbaer.net (jon baer) Date: Thu, 15 Apr 2004 20:53:12 -0400 Subject: [nycphp-talk] PHP5 and SQL Lite...thoughts? References: <200404132037.i3DKbsx7031430@webmail2.megamailservers.com><002701c42348$dfe26470$6500a8c0@thinkpad><5E10E456-8F3D-11D8-BA14-0003938BDF32@localnotion.com> Message-ID: <006501c4234d$32532420$6500a8c0@thinkpad> > Other than that, SQLite supports transactions, triggers, UDFs (written in > PHP! This is wicked awesome!), subselects, and many other advanced > features. > > -adam Are there any type of easy admin tools for working with the file (either web or gui based) that you know of? I read once that you could not get metadata info from it, has that changed? - Jon From adam at trachtenberg.com Thu Apr 15 21:28:12 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Thu, 15 Apr 2004 21:28:12 -0400 (EDT) Subject: [nycphp-talk] PHP5 and SQL Lite...thoughts? In-Reply-To: <006501c4234d$32532420$6500a8c0@thinkpad> References: <200404132037.i3DKbsx7031430@webmail2.megamailservers.com><002701c42348$dfe26470$6500a8c0@thinkpad><5E10E456-8F3D-11D8-BA14-0003938BDF32@localnotion.com> <006501c4234d$32532420$6500a8c0@thinkpad> Message-ID: On Thu, 15 Apr 2004, jon baer wrote: > Are there any type of easy admin tools for working with the file (either web > or gui based) that you know of? I read once that you could not get metadata > info from it, has that changed? I've only used the command line interface. I've gotten meta data from the command line monitor tool, but I've never tried to get it using PHP. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From crisscott at netzero.com Fri Apr 16 08:02:57 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Fri, 16 Apr 2004 08:02:57 -0400 Subject: [nycphp-talk] OO PHP-Gtk In-Reply-To: <407EA826.3040205@phpwerx.net> References: <407E865F.7060101@netzero.com> <407E9F7B.4080308@chxo.com> <407EA271.7080803@netzero.com> <407EA826.3040205@phpwerx.net> Message-ID: <407FCB71.3000406@netzero.com> > With the ampersand they *should* be called correctly, whereas without > the ampersand each will work on it's own *copy* of $this. Yup, that was the problem. I was passing $this by reference to the two methods I thought were misbehaving but not to the methods that was being used to call those two methods. So they were working on references of copies of my class. Thanks for the help Dan and Chris. Scott Mattocks From tgales at tgaconnect.com Fri Apr 16 08:36:17 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 16 Apr 2004 08:36:17 -0400 Subject: [nycphp-talk] New Beta IDE 3.5 (at zend.com) Message-ID: <000f01c423af$6a5c4f60$e98d3818@oberon1> There's a new ZEND IDE (3.5 Beta) at zend.com. (which you can tryout for free) There are some new features -- but the reason I am going to try it is that it has support for PHP 5. Zend calls it "cutting edge PHP 5 development support". I always say if you're going to use 'cutting edge' technology, be sure to pack plenty of band-aids. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From Cbielanski at inta.org Fri Apr 16 08:52:32 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Fri, 16 Apr 2004 08:52:32 -0400 Subject: [nycphp-talk] New Beta IDE 3.5 (at zend.com) Message-ID: > I always say if you're going to use 'cutting edge' > technology, be sure to pack plenty of band-aids. So, so true. I very much like that and will be printing it and putting it on my wall (with credits, natch ;) ) also: outlook sucks for replies to lists. :P Too much editing to make it look nice. 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 jeffknight at mac.com Fri Apr 16 10:39:29 2004 From: jeffknight at mac.com (putamare) Date: Fri, 16 Apr 2004 10:39:29 -0400 Subject: [nycphp-talk] New Beta IDE 3.5 (at zend.com) In-Reply-To: <000f01c423af$6a5c4f60$e98d3818@oberon1> References: <000f01c423af$6a5c4f60$e98d3818@oberon1> Message-ID: On Apr 16, 2004, at 8:36 AM, Tim Gales wrote: > There's a new ZEND IDE (3.5 Beta) at zend.com. Only for Windows... On Apr 16, 2004, at 8:52 AM, Chris Bielanski wrote: > also: outlook sucks for replies to lists. :P C'mon, to be fair, outlook sucks for so many other reasons too. jeff.knight not junkmail at nyphp.org From Cbielanski at inta.org Fri Apr 16 10:44:07 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Fri, 16 Apr 2004 10:44:07 -0400 Subject: OT: RE: [nycphp-talk] New Beta IDE 3.5 (at zend.com) Message-ID: That would require one to have a desire to be fair where Outlook is concerned. However, this renders you no less correct! ;) > -----Original Message----- > From: putamare [mailto:jeffknight at mac.com] > Sent: Friday, April 16, 2004 10:39 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] New Beta IDE 3.5 (at zend.com) > > > On Apr 16, 2004, at 8:36 AM, Tim Gales wrote: > > There's a new ZEND IDE (3.5 Beta) at zend.com. > Only for Windows... > > On Apr 16, 2004, at 8:52 AM, Chris Bielanski wrote: > > also: outlook sucks for replies to lists. :P > C'mon, to be fair, outlook sucks for so many other reasons too. > > jeff.knight not junkmail at nyphp.org > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From geek at invisiblemute.com Fri Apr 16 13:59:09 2004 From: geek at invisiblemute.com (invisiblemute) Date: Fri, 16 Apr 2004 12:59:09 -0500 Subject: [nycphp-talk] Week # and Corresponding Start and End Dates Message-ID: <20040416175909.6853.qmail@hosting33.com> I have a list of date entries in a DB and I am able to pull them out nicely by week with MySQL. I can't seem to find if there is then a good solution with MySQL, PHP or some combination of the two for me to display the results like this: Week 1 (Jan 1 - 7, 04) ---------- Jan 1, 04 Jan 3, 04 Week 2 (Jan 8 - 15, 04) ---------- Jan 8, 04 Jan 9, 04 Jan 11, 04 I'm just missing the part in parentheses so I can display start and end times for the weeks. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonbaer at jonbaer.net Fri Apr 16 14:19:55 2004 From: jonbaer at jonbaer.net (jon baer) Date: Fri, 16 Apr 2004 14:19:55 -0400 Subject: [nycphp-talk] Week # and Corresponding Start and End Dates References: <20040416175909.6853.qmail@hosting33.com> Message-ID: <01a401c423df$6b7eae80$6500a8c0@thinkpad> I beleive you can test the week with "W" in date, so you would do something like: $week = date("W", $mydate); - Jon ----- Original Message ----- From: invisiblemute To: talk at lists.nyphp.org Sent: Friday, April 16, 2004 1:59 PM Subject: [nycphp-talk] Week # and Corresponding Start and End Dates I have a list of date entries in a DB and I am able to pull them out nicely by week with MySQL. I can't seem to find if there is then a good solution with MySQL, PHP or some combination of the two for me to display the results like this: Week 1 (Jan 1 - 7, 04) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cbielanski at inta.org Fri Apr 16 14:33:49 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Fri, 16 Apr 2004 14:33:49 -0400 Subject: [nycphp-talk] Week # and Corresponding Start and End Dates Message-ID: Jon, I think the questioner wants an inverse of that function - given a numeric week of the year (and the year), return the numeric weekdays contained within. I looked around and MCAL doesn't do it (can't get MCAL for wind0ze anyway). I believe Java has a function for this, but I don't know its source offhand. However, restructuring the code such that the dates are returned via DB query and programatically organized by their weeks using date() seems to be the way to go, IMHO. 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: jon baer [mailto:jonbaer at jonbaer.net] Sent: Friday, April 16, 2004 2:20 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Week # and Corresponding Start and End Dates I beleive you can test the week with "W" in date, so you would do something like: $week = date("W", $mydate); - Jon ----- Original Message ----- From: invisiblemute To: talk at lists.nyphp.org Sent: Friday, April 16, 2004 1:59 PM Subject: [nycphp-talk] Week # and Corresponding Start and End Dates I have a list of date entries in a DB and I am able to pull them out nicely by week with MySQL. I can't seem to find if there is then a good solution with MySQL, PHP or some combination of the two for me to display the results like this: Week 1 (Jan 1 - 7, 04) -------------- next part -------------- An HTML attachment was scrubbed... URL: From nyphp at enobrev.com Fri Apr 16 14:33:54 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 16 Apr 2004 14:33:54 -0400 Subject: [nycphp-talk] Week # and Corresponding Start and End Dates In-Reply-To: <20040416175909.6853.qmail@hosting33.com> Message-ID: Well, you could add a week_of_year column and a day_of_week column to your sql: SELECT *, DATE_FORMAT(date_column, '%y') as year, // for the 2 digit year DATE_FORMAT(date_column, '%b') as month, // for the 3 letter month DATE_FORMAT(date_column, '%e') as day DAYOFWEEK(date_column) as day_of_week, WEEK(date_column) as week_of_year, DATE_FORMAT(DATE_ADD(date_column, INTERVAL 6 DAY), '%e') as last_day FROM my_table ORDER BY date_column DESC And then in your code, if the day of week is 0, you show the week number and add 7 for the date of the last day of the week: Week ( - ,
------------------------
, Haven't tested it, but that's how I would probably go about it (maybe combine a couple date formats for a long and short format or something, but i figured split them in case the end of the week date happens to be in the next month, then you would want to add another column for that month and show it when necessary. Good Luck Mark _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of invisiblemute Sent: Friday, April 16, 2004 1:59 PM To: talk at lists.nyphp.org Subject: [nycphp-talk] Week # and Corresponding Start and End Dates I have a list of date entries in a DB and I am able to pull them out nicely by week with MySQL. I can't seem to find if there is then a good solution with MySQL, PHP or some combination of the two for me to display the results like this: Week 1 (Jan 1 - 7, 04) ---------- Jan 1, 04 Jan 3, 04 Week 2 (Jan 8 - 15, 04) ---------- Jan 8, 04 Jan 9, 04 Jan 11, 04 I'm just missing the part in parentheses so I can display start and end times for the weeks. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at neoncowboy.com Fri Apr 16 14:50:55 2004 From: lists at neoncowboy.com (John Corry) Date: Fri, 16 Apr 2004 08:50:55 -1000 Subject: [nycphp-talk] PEAR: HTML_QuickForm In-Reply-To: Message-ID: <20040416185059.C8E82A85E9@virtu.nyphp.org> I am just starting to dig into the PEAR packages. I was looking at David Sklar's "essential tools" book at Border's the other day (after reading about it here) and noticed the section about QuickForm. I didn't buy the book yet (it's in my cart at Amazon.com, should get it next week), but have a quick question. I have a bunch of sites that use very similar forms. It would be really advantageous to me to write a class or functions to automate the generation of these forms, hence I'm looking at QuickForm. All of these forms submit to a form processor script called Phorm. I can't find anywhere in the QuickForm docs how to generate a form that submits to a script, or how to set the action attribute...it looks like QuickForm wants to be the form generator and processor all at once. Does anyone know of essential reading for QuickForm before my new book gets here? Thanks, John Corry From sklar at sklar.com Fri Apr 16 15:22:05 2004 From: sklar at sklar.com (David Sklar) Date: Fri, 16 Apr 2004 15:22:05 -0400 Subject: [nycphp-talk] PEAR: HTML_QuickForm In-Reply-To: <20040416185059.C8E82A85E9@virtu.nyphp.org> References: <20040416185059.C8E82A85E9@virtu.nyphp.org> Message-ID: <4080325D.40808@sklar.com> > I can't find anywhere in the QuickForm docs how to generate a form that > submits to a script, or how to set the action attribute...it looks like > QuickForm wants to be the form generator and processor all at once. You're right -- normally QuickForm wants to be the generator and processor all at once. You can change the action of the form by passing a new action as the third argument to the HTML_QuickForm constructor, though. For example: $form = new HTML_QuickForm('myform','POST','/cgi-bin/phorm'); This makes "/cgi-bin/phorm" the action of the form printed by $form->display(). David From cmerlo at ncc.edu Fri Apr 16 15:53:35 2004 From: cmerlo at ncc.edu (Christopher R. Merlo) Date: Fri, 16 Apr 2004 15:53:35 -0400 Subject: [nycphp-talk] PEAR: HTML_QuickForm In-Reply-To: <4080325D.40808@sklar.com> References: <20040416185059.C8E82A85E9@virtu.nyphp.org> <4080325D.40808@sklar.com> Message-ID: <20040416195335.GA14989@ncc.edu> On 2004-04-16 15:22 -0400, David Sklar wrote: > You're right -- normally QuickForm wants to be the generator and > processor all at once. You can change the action of the form by passing > a new action as the third argument to the HTML_QuickForm constructor, > though. For example: > > $form = new HTML_QuickForm('myform','POST','/cgi-bin/phorm'); > > This makes "/cgi-bin/phorm" the action of the form printed by > $form->display(). That's a huge hint, especially considering how sparse the documentation is on the PEAR site. Thanks, David. -- cmerlo at ncc.edu http://turing.matcmp.ncc.edu/~cmerlo There is no spoon. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 232 bytes Desc: not available URL: From sklar at sklar.com Fri Apr 16 15:58:28 2004 From: sklar at sklar.com (David Sklar) Date: Fri, 16 Apr 2004 15:58:28 -0400 Subject: [nycphp-talk] PEAR: HTML_QuickForm In-Reply-To: <20040416195335.GA14989@ncc.edu> References: <20040416185059.C8E82A85E9@virtu.nyphp.org> <4080325D.40808@sklar.com> <20040416195335.GA14989@ncc.edu> Message-ID: <40803AE4.5000600@sklar.com> Christopher R. Merlo wrote: > > On 2004-04-16 15:22 -0400, David Sklar wrote: > >>$form = new HTML_QuickForm('myform','POST','/cgi-bin/phorm'); >> >>This makes "/cgi-bin/phorm" the action of the form printed by >>$form->display(). > > That's a huge hint, especially considering how sparse the > documentation is on the PEAR site. Thanks, David. No problem. Note that in the absence of documentation, the source code is the place to go. Sometimes that can be pretty hairy, but QuickForm is pretty good with its source comments. For example, the HTML_QuickForm class constructor (in QuickForm.php) starts out like this: // {{{ constructor /** * Class constructor * @param string $formName Form's name. * @param string $method (optional)Form's method defaults to 'POST' * @param string $action (optional)Form's action * @param string $target (optional)Form's target defaults to '_self' * @param mixed $attributes (optional)Extra attributes for
tag * @param bool $trackSubmit (optional)Whether to track if the form was submitted by adding a special hidden field * @access public */ function HTML_QuickForm($formName='', $method='post', $action='', $target='_self', $attributes=null, $trackSubmit = false) { So you can sort of easily see what each argument does. Of course, you have to know that the constructor is where to look in the first place. It'd be much nicer to be able to look at pretty docs like PEAR DB has, but as hunting-through-source-code-to-see-how-something-works goes, QuickForm's not bad. David From jlacey at att.net Fri Apr 16 16:19:30 2004 From: jlacey at att.net (John Lacey) Date: Fri, 16 Apr 2004 14:19:30 -0600 Subject: [nycphp-talk] PEAR: HTML_QuickForm In-Reply-To: <20040416195335.GA14989@ncc.edu> References: <20040416185059.C8E82A85E9@virtu.nyphp.org> <4080325D.40808@sklar.com> <20040416195335.GA14989@ncc.edu> Message-ID: <40803FD2.5050807@att.net> Christopher R. Merlo wrote: > On 2004-04-16 15:22 -0400, David Sklar wrote: > > >>You're right -- normally QuickForm wants to be the generator and >>processor all at once. You can change the action of the form by passing >>a new action as the third argument to the HTML_QuickForm constructor, >>though. For example: >> >>$form = new HTML_QuickForm('myform','POST','/cgi-bin/phorm'); >> >>This makes "/cgi-bin/phorm" the action of the form printed by >>$form->display(). > > > That's a huge hint, especially considering how sparse the > documentation is on the PEAR site. Thanks, David. > Chris, just for curiousity, I looked your question up in David's new Essential PHP Tools book -- chapter 3 is dedicated to html_quickform... as it turns out, the answer to that question is on the top of page 60 :) John From dmintz at davidmintz.org Fri Apr 16 16:23:41 2004 From: dmintz at davidmintz.org (David Mintz) Date: Fri, 16 Apr 2004 16:23:41 -0400 (EDT) Subject: [nycphp-talk] book shopping (was PEAR: HTML_QuickForm) In-Reply-To: <20040416185059.C8E82A85E9@virtu.nyphp.org> References: <20040416185059.C8E82A85E9@virtu.nyphp.org> Message-ID: OK, my "Essential PHP Tools" is in my cart now, too, and I thought I'd pick up "Design Patterns: Elements of Reusable Object-Oriented Software" (Gamma ,et al) while I was at it. That is The One, is it not? See, truth is I don't know a Visitor from a Decorator, but I'd like to do something about it. Visitors drink your beer, I know that much. --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From geek at invisiblemute.com Fri Apr 16 16:31:50 2004 From: geek at invisiblemute.com (invisiblemute) Date: Fri, 16 Apr 2004 15:31:50 -0500 Subject: [nycphp-talk] SPAM Killing, Invisible to Spiders - Dynamic Image Creation? Message-ID: <20040416203150.29305.qmail@hosting33.com> Trying to catch up on 800+ NYPHP listserve messages not including the individual ones since I switched to digest a couple of weeks ago. This list is VERY prolific but still manages VERY high ratio of gold to junk. Hope this wasn't discussed already but people were discussing ways of dealing with SPAM once you've been targetted and sighted. As a web developer I would very much like to know what you are doing so you don't get SPAM in the _first place_. Method 1 - - - JavaScript assembles the email address so it displays to screen normally but a spider going through source code has more difficult time finding an email pattern. Are any of you data miners? Are spiders smart enough to get around this these days? Method 2 - - - Use PHP to split an email address into parts and display as: Joe_Smith AT nyphp DOT com Though I see this often on techy sites I am almost certain that spiders can easily figure this one out. Guess one could play around with the permutation to stay ahead of the spiders but that's kind of annoying to do. Method 3 - - - Construct email as images. http://www.phpbuilder.com/columns/rasmus19990124.php3 This seems to be the most secure method but is most annoying for legitamate users who would have to manually read and enter in an address to email someone with the highest possibility for user input error. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From danielc at analysisandsolutions.com Fri Apr 16 18:02:36 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 16 Apr 2004 18:02:36 -0400 Subject: [nycphp-talk] PEAR: HTML_QuickForm In-Reply-To: <40803AE4.5000600@sklar.com> References: <20040416185059.C8E82A85E9@virtu.nyphp.org> <4080325D.40808@sklar.com> <20040416195335.GA14989@ncc.edu> <40803AE4.5000600@sklar.com> Message-ID: <20040416220236.GA20467@panix.com> Hi David: On Fri, Apr 16, 2004 at 03:58:28PM -0400, David Sklar wrote: > It'd be much nicer to be able to look at pretty docs like PEAR DB has, And just wait till this Sunday, when the docs get rebuilt. I've done a MASSIVE overhaul to make them even better. Thanks, --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 felix at bebinary.com Fri Apr 16 18:12:21 2004 From: felix at bebinary.com (felix zaslavskiy) Date: Fri, 16 Apr 2004 18:12:21 -0400 (EDT) Subject: [nycphp-talk] SPAM Killing, Invisible to Spiders - Dynamic Image Creation? In-Reply-To: <20040416203150.29305.qmail@hosting33.com> References: <20040416203150.29305.qmail@hosting33.com> Message-ID: <33922.69.31.90.22.1082153541.squirrel@www.bebinary.com> > > > Method 3 > - - - > Construct email as images. > http://www.phpbuilder.com/columns/rasmus19990124.php3 > > This seems to be the most secure method but is most annoying for > legitamate users who would have to manually read and enter in an address > to email someone with the highest possibility for user input error I did this but I also added a contact form so someone can email without typing the address if they didnt want to. I had not had people use the online form so I guess they dont mind typing the email address. -- Felix Zaslavskiy http://www.zaslavskiy.net From cmerlo at ncc.edu Fri Apr 16 18:46:29 2004 From: cmerlo at ncc.edu (Christopher R. Merlo) Date: Fri, 16 Apr 2004 18:46:29 -0400 Subject: [nycphp-talk] PEAR: HTML_QuickForm In-Reply-To: <40803FD2.5050807@att.net> References: <20040416185059.C8E82A85E9@virtu.nyphp.org> <4080325D.40808@sklar.com> <20040416195335.GA14989@ncc.edu> <40803FD2.5050807@att.net> Message-ID: <20040416224629.GA19178@ncc.edu> On 2004-04-16 14:19 -0600, John Lacey wrote: > just for curiousity, I looked your question up in David's new > Essential PHP Tools book -- chapter 3 is dedicated to > html_quickform... > > as it turns out, the answer to that question is on the top of > page 60 :) Sounds like there's a trip to Borders in my future this weekend. :) -- cmerlo at ncc.edu http://turing.matcmp.ncc.edu/~cmerlo There is no spoon. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 232 bytes Desc: not available URL: From jonbaer at jonbaer.net Fri Apr 16 19:17:38 2004 From: jonbaer at jonbaer.net (jon baer) Date: Fri, 16 Apr 2004 19:17:38 -0400 Subject: [nycphp-talk] SPAM Killing, Invisible to Spiders - Dynamic Image Creation? References: <20040416203150.29305.qmail@hosting33.com> Message-ID: <00cf01c42409$03643160$6400a8c0@thinkpad> If you attempt this with Referrer/URL checking (per your own domain) and list of known browsers it has been kind of effective although I don't do it 100% of the time. At one time I was rewritting code as such to just post e-mail: E-mail: If the request didnt come from my own domain it would be blank (although bookmarking + other quirks didn't work). On the flipside, I find stripping emails from craigslist XML to be rather trivial ... its the only list I really data mine from. As for spam killing once you have been targeting Im trying to write or figure out if bouncing the email manualy w/ a script can get you off some of these. - Jon Method 2 - - - Use PHP to split an email address into parts and display as: Joe_Smith AT nyphp DOT com Though I see this often on techy sites I am almost certain that spiders can easily figure this one out. Guess one could play around with the permutation to stay ahead of the spiders but that's kind of annoying to do. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sklar at sklar.com Fri Apr 16 16:42:18 2004 From: sklar at sklar.com (David Sklar) Date: Fri, 16 Apr 2004 16:42:18 -0400 Subject: [nycphp-talk] book shopping (was PEAR: HTML_QuickForm) In-Reply-To: References: <20040416185059.C8E82A85E9@virtu.nyphp.org> Message-ID: <4080452A.500@sklar.com> > OK, my "Essential PHP Tools" is in my cart now, too, and I thought I'd > pick up "Design Patterns: Elements of Reusable Object-Oriented Software" > (Gamma ,et al) while I was at it. That is The One, is it not? See, truth > is I don't know a Visitor from a Decorator, but I'd like to do something > about it. Visitors drink your beer, I know that much. Visitors drink your beer and Decorators drink your Kir? David ... White wine? Guinness? There's got to be some hard-drinking interior decorators out there... From derek at sportspyder.com Sat Apr 17 02:50:24 2004 From: derek at sportspyder.com (Derek DeVries) Date: Sat, 17 Apr 2004 02:50:24 -0400 Subject: [nycphp-talk] book shopping (was PEAR: HTML_QuickForm) References: <20040416185059.C8E82A85E9@virtu.nyphp.org> <4080452A.500@sklar.com> Message-ID: <00c401c425b3$fbacdc40$6501a8c0@m3> This is a link I use often as reference for design patterns. The examples are in C# but are commented well and translate to PHP quite easily. A good learning method is to just rewrite the patterns in php. http://www.dofactory.com/Patterns/Patterns.aspx --------------- Derek DeVries http://www.sportspyder.com > > OK, my "Essential PHP Tools" is in my cart now, too, and I thought I'd > > pick up "Design Patterns: Elements of Reusable Object-Oriented Software" > > (Gamma ,et al) while I was at it. That is The One, is it not? See, truth > > is I don't know a Visitor from a Decorator, but I'd like to do something > > about it. Visitors drink your beer, I know that much. > > Visitors drink your beer and Decorators drink your Kir? > > David > > ... White wine? Guinness? There's got to be some hard-drinking interior > decorators out there... > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From dmintz at davidmintz.org Sun Apr 18 22:54:27 2004 From: dmintz at davidmintz.org (David Mintz) Date: Sun, 18 Apr 2004 22:54:27 -0400 (EDT) Subject: [nycphp-talk] book shopping (was PEAR: HTML_QuickForm) In-Reply-To: <00c401c425b3$fbacdc40$6501a8c0@m3> References: <20040416185059.C8E82A85E9@virtu.nyphp.org> <4080452A.500@sklar.com> <00c401c425b3$fbacdc40$6501a8c0@m3> Message-ID: On Sat, 17 Apr 2004, Derek DeVries wrote: > This is a link I use often as reference for design patterns. The examples > are in C# but are commented well and translate to PHP quite easily. A good > learning method is to just rewrite the patterns in php. > http://www.dofactory.com/Patterns/Patterns.aspx Good advice, no doubt. Thanks. But I have kind of a book addiction, so I'll probably go out there anyway and score a book as well. --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From nonreal at nonreal.ro Mon Apr 19 06:25:14 2004 From: nonreal at nonreal.ro (Ovidiu) Date: Mon, 19 Apr 2004 13:25:14 +0300 Subject: [nycphp-talk] encrypt php Message-ID: <200404191325140015.008FFE1F@mail.nonreal.ro> Hello. What will be the best metod to encrypt some php files ? I want to put on a webserver a few files but i'm not sure about the security on the server so i want to crypt my files. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nyphp at websapp.com Mon Apr 19 07:15:38 2004 From: nyphp at websapp.com (Daniel Kushner) Date: Mon, 19 Apr 2004 07:15:38 -0400 Subject: [nycphp-talk] Discount on Zend Studio Message-ID: <200404191115.i3JBFeIR020296@ns5.oddcast.com> There is a 25% discount on the Zend Studio (from the MySQL conference). Use code 25mysql04 http://zend.com/store/ Best, Daniel From adam at trachtenberg.com Mon Apr 19 10:00:04 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 19 Apr 2004 10:00:04 -0400 (EDT) Subject: [nycphp-talk] PHP5 and SQL Lite...thoughts? In-Reply-To: References: <200404132037.i3DKbsx7031430@webmail2.megamailservers.com><002701c42348$dfe26470$6500a8c0@thinkpad><5E10E456-8F3D-11D8-BA14-0003938BDF32@localnotion.com> <006501c4234d$32532420$6500a8c0@thinkpad> Message-ID: On Thu, 15 Apr 2004, Adam Maccabee Trachtenberg wrote: > On Thu, 15 Apr 2004, jon baer wrote: > > > Are there any type of easy admin tools for working with the file (either web > > or gui based) that you know of? I read once that you could not get metadata > > info from it, has that changed? > > I've only used the command line interface. I've gotten meta data from > the command line monitor tool, but I've never tried to get it using PHP. I just came across this: http://www.sqlabs.net/index.shtml?sqlitemanager I know nothing more than what's on the web page. :) -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From stephen at musgrave.org Mon Apr 19 11:33:29 2004 From: stephen at musgrave.org (Stephen Musgrave) Date: Mon, 19 Apr 2004 11:33:29 -0400 Subject: [nycphp-talk] daylight savings time Message-ID: All - I have a calendar application that requires me to set a minute offset in the config file. Since my server is in Phoenix and *always* on MST, and the client is in NYC and either in EST or EDT, the offset is -120 and -180 respectively. I was wondering if there was a way to find out if the current date/time is within the range of daylight savings, even if the server doesn't adjust its time for daylight savings time. I need to be able to switch the offset between -120 and -180 automatically. Thanks, Stephen From phillip.powell at adnet-sys.com Mon Apr 19 11:48:35 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Mon, 19 Apr 2004 11:48:35 -0400 Subject: [nycphp-talk] Best possible detailed "boolean search" methodology In-Reply-To: <200404191115.i3JBFeIR020296@ns5.oddcast.com> References: <200404191115.i3JBFeIR020296@ns5.oddcast.com> Message-ID: <4083F4D3.4070204@adnet-sys.com> My image cataloging application project is now being tasked to come up with a simple/advanced search engine, fully custom (no 3rd party). The criteria to search for will include up to 15 different fields, all conjoined by the boolean "AND", "OR" and "AND NOT" in between them all. Based on this incredibly simple criteria, how would any of you approach this, seriously? What would you think would be the necessary steps I should take to approach, logically. Client has enormous cash flow and is willing spend wantonly, however, it is made clear to me the client will NOT accept any 3rd party source of any kind within the application, every single thing must be built by me, by hand. Call it the DIY application approach if you must, but that's it. Everything else is custom-built by me and I am about 40% completed on the search engine, however, I am running into serious methodology problems because of the complexity of the means by which a search can be done, consider the enormity of combinations of boolean conjoinings that can take place. If any of you ever approached anything similar to this, hopefully under the same conditions as I, how have you approached it? Thanx Phil From adam at trachtenberg.com Mon Apr 19 11:54:11 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 19 Apr 2004 11:54:11 -0400 (EDT) Subject: [nycphp-talk] daylight savings time In-Reply-To: References: Message-ID: On Mon, 19 Apr 2004, Stephen Musgrave wrote: > I was wondering if there was a way to find out if the current date/time is > within the range of daylight savings, even if the server doesn't adjust its > time for daylight savings time. I need to be able to switch the offset > between -120 and -180 automatically. Does this work? function isdst($tz) { putenv("TZ=$tz"); $ar = localtime(time(),true); putenv('TZ=MST'); // Since you're in Phoenix return $ar['tm_isdst']; } if (isdst('EST5EDT')) { // is dst } else { // isn't dst } BTW, there's lots of information about dates, times, time zones, dst, in Chapter 3 of PHP Cookbook. David is a date and time fiend. :) -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From lists at prusak.com Mon Apr 19 12:27:00 2004 From: lists at prusak.com (Ophir Prusak) Date: Mon, 19 Apr 2004 12:27:00 -0400 Subject: [nycphp-talk] This month's meeting In-Reply-To: References: Message-ID: <4083FDD4.2060407@prusak.com> Hi All, I was wondering what presentations are scheduled for this month's meeting. Also - could u put it on the calendar as well? Thanx Ophir From greg at click3x.com Mon Apr 19 15:34:32 2004 From: greg at click3x.com (Greg Faber) Date: Mon, 19 Apr 2004 15:34:32 -0400 Subject: [nycphp-talk] headers already sent... Message-ID: <9569EA9A-9238-11D8-A987-000502F1DDFC@click3x.com> Hello people, I've been developing this little extranet thing on my mac and now that it seems ready to fly I uploaded it onto my web server but now I get these 2 errors: Warning: Cannot send session cache limiter - headers already sent (output started at /var/www/xtranet-staging/upload.php:1) in /var/www/xtranet-staging/upload.php on line 3 Warning: Cannot add header information - headers already sent by (output started at /var/www/xtranet-staging/upload.php:1) in /var/www/xtranet-staging/upload.php on line 91 Basically I know why I get these warnings, ie: I'm sending headers twice (the second warning is caused by the header("location:upload.php") function call). What I don't get is why are headers being sent without my knowledge? This works fine just running off my home computer so what's the deal? Is there something in the php.ini file that I need to enable or disable? Thanks, as always, for your help. Greg -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1158 bytes Desc: not available URL: From crisscott at netzero.com Mon Apr 19 15:40:03 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Mon, 19 Apr 2004 15:40:03 -0400 Subject: [nycphp-talk] headers already sent... In-Reply-To: <9569EA9A-9238-11D8-A987-000502F1DDFC@click3x.com> References: <9569EA9A-9238-11D8-A987-000502F1DDFC@click3x.com> Message-ID: <40842B13.4060708@netzero.com> > Basically I know why I get these warnings, ie: I'm sending headers twice > (the second warning is caused by the header("location:upload.php") > function call). What I don't get is why are headers being sent without > my knowledge? You may not really be sending headers twice. You will get that warning anytime any information is sent before you try to send headers. If there is a print or an echo or even just characters outside of then you have already sent information. Check that you are not printing any strings made up of just white space or that all of your files start with Scott Mattocks From felix at bebinary.com Mon Apr 19 15:40:58 2004 From: felix at bebinary.com (felix zaslavskiy) Date: Mon, 19 Apr 2004 15:40:58 -0400 (EDT) Subject: [nycphp-talk] headers already sent... In-Reply-To: <9569EA9A-9238-11D8-A987-000502F1DDFC@click3x.com> References: <9569EA9A-9238-11D8-A987-000502F1DDFC@click3x.com> Message-ID: <37530.69.31.90.22.1082403658.squirrel@www.bebinary.com> Most likely session header is sent automatically. > Hello people, > > I've been developing this little extranet thing on my mac and now that > it seems ready to fly I uploaded it onto my web server but now I get > these 2 errors: > > Warning: Cannot send session cache limiter - headers already sent > (output started at /var/www/xtranet-staging/upload.php:1) in > /var/www/xtranet-staging/upload.php on line 3 > > Warning: Cannot add header information - headers already sent by > (output started at /var/www/xtranet-staging/upload.php:1) in > /var/www/xtranet-staging/upload.php on line 91 > > Basically I know why I get these warnings, ie: I'm sending headers > twice (the second warning is caused by the > header("location:upload.php") function call). What I don't get is why > are headers being sent without my knowledge? This works fine just > running off my home computer so what's the deal? Is there something in > the php.ini file that I need to enable or disable? > > Thanks, as always, for your help. > > Greg_______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > -- Felix Zaslavskiy http://www.zaslavskiy.net From yury at heavenspa.com Mon Apr 19 15:40:04 2004 From: yury at heavenspa.com (yury at heavenspa.com) Date: Mon, 19 Apr 2004 15:40:04 -0400 Subject: [nycphp-talk] headers already sent... References: <9569EA9A-9238-11D8-A987-000502F1DDFC@click3x.com> Message-ID: <01c201c42646$1d0b9100$0400a8c0@heavenspanyc> Try to change the order of the make the header() 1st.. just something to try.. regards ----- Original Message ----- From: Greg Faber To: NYPHP Talk Sent: Monday, April 19, 2004 3:34 PM Subject: [nycphp-talk] headers already sent... Hello people, I've been developing this little extranet thing on my mac and now that it seems ready to fly I uploaded it onto my web server but now I get these 2 errors: Warning: Cannot send session cache limiter - headers already sent (output started at /var/www/xtranet-staging/upload.php:1) in /var/www/xtranet-staging/upload.php on line 3 Warning: Cannot add header information - headers already sent by (output started at /var/www/xtranet-staging/upload.php:1) in /var/www/xtranet-staging/upload.php on line 91 Basically I know why I get these warnings, ie: I'm sending headers twice (the second warning is caused by the header("location:upload.php") function call). What I don't get is why are headers being sent without my knowledge? This works fine just running off my home computer so what's the deal? Is there something in the php.ini file that I need to enable or disable? Thanks, as always, for your help. Greg ------------------------------------------------------------------------------ _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk -------------- next part -------------- An HTML attachment was scrubbed... URL: From adam at trachtenberg.com Mon Apr 19 15:46:02 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 19 Apr 2004 15:46:02 -0400 (EDT) Subject: [nycphp-talk] headers already sent... In-Reply-To: <37530.69.31.90.22.1082403658.squirrel@www.bebinary.com> References: <9569EA9A-9238-11D8-A987-000502F1DDFC@click3x.com> <37530.69.31.90.22.1082403658.squirrel@www.bebinary.com> Message-ID: On Mon, 19 Apr 2004, felix zaslavskiy wrote: > Most likely session header is sent automatically. One way to help work around this is to enable the output_buffering php.ini configuration directive: ; - output_buffering = 4096 ; [Performance] Set a 4KB output buffer. Enabling output buffering ; typically results in less writes, and sometimes less packets sent on ; the wire, which can often lead to better performance. The gain this ; directive actually yields greatly depends on which Web server you're ; working with, and what kind of scripts you're using. Ob plug: This is discussed in Recipe 8.18 of PHP Cookbook. :) -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From greg at click3x.com Mon Apr 19 17:58:22 2004 From: greg at click3x.com (Greg Faber) Date: Mon, 19 Apr 2004 17:58:22 -0400 Subject: [nycphp-talk] GD on Debian Stable Message-ID: Hi- My web server is running Debian-Stable and I was wondering which GD libraries need to be installed in order to have graphics capabilities operational for my web site. Thanks. Greg From jeffknight at mac.com Mon Apr 19 18:05:33 2004 From: jeffknight at mac.com (putamare) Date: Mon, 19 Apr 2004 18:05:33 -0400 Subject: [nycphp-talk] GD on Debian Stable In-Reply-To: References: Message-ID: Your best bet is to use the version bundled with PHP itself by using the configure option --with-gd On Apr 19, 2004, at 5:58 PM, Greg Faber wrote: > Hi- > > My web server is running Debian-Stable and I was wondering which GD > libraries need to be installed in order to have graphics capabilities > operational for my web site. > > Thanks. > Greg > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > jeff.knight not junkmail at nyphp.org From csnyder at chxo.com Mon Apr 19 18:23:42 2004 From: csnyder at chxo.com (Chris Snyder) Date: Mon, 19 Apr 2004 18:23:42 -0400 Subject: [nycphp-talk] GD on Debian Stable In-Reply-To: References: Message-ID: <4084516E.6050507@chxo.com> putamare wrote: > Your best bet is to use the version bundled with PHP itself by using > the configure option --with-gd > > On Apr 19, 2004, at 5:58 PM, Greg Faber wrote: > >> My web server is running Debian-Stable and I was wondering which GD >> libraries need to be installed in order to have graphics capabilities >> operational for my web site. > You may need other libraries (and custom configure switches to enable php support) depending on what kinds of images you'll be generating. Read up: http://www.php.net/manual/en/ref.image.php Also, if you just want PNG, JPEG, XPM and ttf fonts, you should check this out: http://packages.debian.org/stable/web/php4-gd2 From tgales at tgaconnect.com Mon Apr 19 18:30:35 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Mon, 19 Apr 2004 18:30:35 -0400 Subject: [nycphp-talk] GD on Debian Stable In-Reply-To: Message-ID: <002301c4265d$ef4d96b0$e98d3818@oberon1> googling with the following: "gd lib site:nyphp.org" pulls up: "PUTAMARE writes try this: http://www.onlamp.com/pub/a/php/2003/03/27/php_gd.html " the onlamp link might provide some interesting background info for you. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Greg Faber > Sent: Monday, April 19, 2004 5:58 PM > To: NYPHP Talk > Cc: Pete Wright > Subject: [nycphp-talk] GD on Debian Stable > > > Hi- > > My web server is running Debian-Stable and I was wondering which GD > libraries need to be installed in order to have graphics capabilities > operational for my web site. > > Thanks. > Greg > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk > From salmaz8347 at hotmail.com Mon Apr 19 18:32:08 2004 From: salmaz8347 at hotmail.com (SALMAN MAZHAR) Date: Mon, 19 Apr 2004 18:32:08 -0400 Subject: [nycphp-talk] QUESTION ABOUT XPDF Message-ID: Hello everyone, This is Salman. I am working with the pdftotext utility of XPDF on Unix. I am searching for a string in a pdf file and want all the instances of it to be displayed. I used the grep system call on unix but that only gives me the last line of the grep result and i dont get all the instances of that word in the file. Does anyone know how to solve this problem and get all the instances of that word in the file using some other means... Thanks, Salman. _________________________________________________________________ Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! http://join.msn.com/?pgmarket=en-us&page=hotmail/es2&ST=1/go/onm00200362ave/direct/01/ From shiflett at php.net Mon Apr 19 18:41:23 2004 From: shiflett at php.net (Chris Shiflett) Date: Mon, 19 Apr 2004 15:41:23 -0700 (PDT) Subject: [nycphp-talk] headers already sent... In-Reply-To: <9569EA9A-9238-11D8-A987-000502F1DDFC@click3x.com> Message-ID: <20040419224123.96984.qmail@web14302.mail.yahoo.com> --- Greg Faber wrote: > Warning: Cannot send session cache limiter - headers already sent > (output started at /var/www/xtranet-staging/upload.php:1) in > /var/www/xtranet-staging/upload.php on line 3 I think these errors are pretty clear, but just to paraphrase, this tells you that you have output on line 1 of upload.php. Later, on line 3, you try to start a session, the the session cache limiter cannot be sent (because it consists of HTTP headers, and you have previous output). > Warning: Cannot add header information - headers already sent by > (output started at /var/www/xtranet-staging/upload.php:1) in > /var/www/xtranet-staging/upload.php on line 91 This is an almost identical warning. The same output on line 1 that caused the headers to be sent is a problem when you get to line 91 where you are apparently using the header() function to try to add your own. Once your script outputs anything, the headers are sent, and you can no longer add headers like this. PHP is just letting you know that this header cannot be added, and it continues on. > Basically I know why I get these warnings, ie: I'm sending headers > twice The best way to make a problem difficult to solve is to make an erroneous assumption. :-) > header("location:upload.php") While you're at it, you may want to fix your Location header to be of a compliant format: header('Location: http://example.org/path/to/script.php'); > What I don't get is why are headers being sent without my knowledge? Headers are sent for every page. How would you like to be notified? :-) Just kidding. You can check to see if headers have been sent with the headers_sent() function, but there's no way to try to send them yourself. It's an implicit operation. There are basically two steps involved with the content generation phase, which is where PHP operates. PHP first has the ability to manipulate headers (whether through the header() function or as a side-effect of something else). It then gets to send the content. As soon as you begin to generate content, PHP says, "Oh, I guess you're done manipulating headers. Hey Apache, here is my list of header modifications. I'll be sending content now." > This works fine just running off my home computer so what's the deal? You may have output buffering enabled for every script on your home computer. This causes all output to be buffered and only really output at the very end of the script (or when it is flushed with a function, whichever comes first). I guess the confusing thing is really that header() doesn't affect when headers are sent, which is what many people seem to think. Hope that helps. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From henry at beewh.com Mon Apr 19 18:55:27 2004 From: henry at beewh.com (Henry Ponce) Date: Mon, 19 Apr 2004 19:55:27 -0300 Subject: [nycphp-talk] mod_rewrite problem Message-ID: <200404191955.27746.henry@beewh.com> Hello all: I'm working on site that uses mod_rewrite to handle urls. I hope someone can help me with a problem I'm having. I read A LOT trying to find the answer, I guess my brain too tired. What I need to do is the following.... whenever someone goes to www.mydomain.com/yachts/argument1/argument2.html make this .php script handle it: www.mydomain.com/yachts/section.php?lang=arg1§ion=arg2 This works now with this in my htaccess file: RewriteEngine On RewriteRule ^yachts/([^/]+)/([^/]+)\.html$ /yachts/section.php?lang=$1§ion=$2 The problem is that I want this to happen ONLY when arg1 is one of the following: en es fr de sw it And when arg2 is one of the following: yachts charter boatyards service specials I read that I have to use RewriteCond in my .htaccess file. This is what I have and it doesn't work. RewriteEngine On RewriteCond %{REQUEST_URI} !^yachts/(en|es|fr|sw|de|it)/(yachts|charter|boatyards|service|specials)\.html RewriteRule ^yachts/([^/]+)/([^/]+)\.html$ /yachts/section.php?lang=$1§ion=$2 Thank you and any help anybody can give is appreciated. Henry PS: sorry if the email is too long, I wanted to explain everything clearly. From jeffknight at mac.com Mon Apr 19 19:08:53 2004 From: jeffknight at mac.com (putamare) Date: Mon, 19 Apr 2004 19:08:53 -0400 Subject: [nycphp-talk] mod_rewrite problem In-Reply-To: <200404191955.27746.henry@beewh.com> References: <200404191955.27746.henry@beewh.com> Message-ID: <86E98DA0-9256-11D8-8152-000393B9FB36@mac.com> Keep it simple. Use the basic mod-rewrite and then have the php destination file redirect on any invalid parameters. On Apr 19, 2004, at 6:55 PM, Henry Ponce wrote: > Hello all: > > I'm working on site that uses mod_rewrite to handle urls. I hope > someone can > help me with a problem I'm having. I read A LOT trying to find the > answer, I > guess my brain too tired. > > What I need to do is the following.... > whenever someone goes to > www.mydomain.com/yachts/argument1/argument2.html > > make this .php script handle it: > www.mydomain.com/yachts/section.php?lang=arg1§ion=arg2 > > This works now with this in my htaccess file: > RewriteEngine On > RewriteRule ^yachts/([^/]+)/([^/]+)\.html$ > /yachts/section.php?lang=$1§ion=$2 > > The problem is that I want this to happen ONLY when arg1 is one of the > following: > en > es > fr > de > sw > it > > And when arg2 is one of the following: > yachts > charter > boatyards > service > specials > > I read that I have to use RewriteCond in my .htaccess file. This is > what I > have and it doesn't work. > > RewriteEngine On > RewriteCond %{REQUEST_URI} > !^yachts/(en|es|fr|sw|de|it)/ > (yachts|charter|boatyards|service|specials)\.html > RewriteRule ^yachts/([^/]+)/([^/]+)\.html$ > /yachts/section.php?lang=$1§ion=$2 > > > Thank you and any help anybody can give is appreciated. > Henry > > PS: sorry if the email is too long, I wanted to explain everything > clearly. > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > jeff.knight not junkmail at nyphp.org From info at oscartrelles.com Mon Apr 19 19:30:35 2004 From: info at oscartrelles.com (info at oscartrelles.com) Date: Mon, 19 Apr 2004 19:30:35 -0400 Subject: [nycphp-talk] PHP 4.3.6 with Apache 2 Message-ID: <1082417435.4084611b2b724@webmail.oscartrelles.com> Hello, I've been trying to install PHP 4.3 with the bundled version of GD. Configuration, apparently goes well, but when building the install I get this error: ext/zlib/zlib.lo: file not recognized: File truncated I even downloaded GD and all dependent libraries and tried using them, with the same result. Then, when trying to build the installation withouth GD I get this error: ext/ctype/ctype.lo: file not recognized: File truncated I've been reading around, and I haven't found any valuable reference. Any ideas? Oscar ---- Oscar Trelles http://www.oscartrelles.com/blog/ ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ From adam at trachtenberg.com Mon Apr 19 20:55:28 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 19 Apr 2004 20:55:28 -0400 (EDT) Subject: [nycphp-talk] PHP 4.3.6 with Apache 2 In-Reply-To: <1082417435.4084611b2b724@webmail.oscartrelles.com> References: <1082417435.4084611b2b724@webmail.oscartrelles.com> Message-ID: On Mon, 19 Apr 2004 info at oscartrelles.com wrote: > I've been reading around, and I haven't found any valuable reference. Any ideas? Try doing a "make clean" ? -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From lists at neoncowboy.com Mon Apr 19 22:34:28 2004 From: lists at neoncowboy.com (John Corry) Date: Mon, 19 Apr 2004 16:34:28 -1000 Subject: [nycphp-talk] HTML email In-Reply-To: <1082417435.4084611b2b724@webmail.oscartrelles.com> Message-ID: <20040420023430.685B6A862D@virtu.nyphp.org> Uh... This is pretty weird... I just moved a site from the old server (HE.net) to a new server (rackspace.com). The new server has php 4.3.4, old one was 4.0 something I think. I just got a CC'd an email (conference registration website) confirmation that someone registered (generated by the site when a registration is successful) and it isn't showing up. Outlook displays the HTML code rather than a rendered email. Wtf? It worked last week. I'm not sending 2 separate versions, just HTML (I know, I know..) Why did it break? John From jonbaer at jonbaer.net Tue Apr 20 01:27:32 2004 From: jonbaer at jonbaer.net (jon baer) Date: Tue, 20 Apr 2004 01:27:32 -0400 Subject: [nycphp-talk] HTML email References: <20040420023430.685B6A862D@virtu.nyphp.org> Message-ID: <003701c42698$2e746140$6400a8c0@thinkpad> > Wtf? It worked last week. > > I'm not sending 2 separate versions, just HTML (I know, I know..) > > Why did it break? I could be wrong but did you update w/ the Microsoft patches this week? (there were like 5 or so), from what I gathered on sec-lists and my own experience seems to be causing alot of IE/OE/Outlook problems ... - Jon From lists at neoncowboy.com Tue Apr 20 05:07:10 2004 From: lists at neoncowboy.com (John Corry) Date: Mon, 19 Apr 2004 23:07:10 -1000 Subject: [nycphp-talk] HTML email In-Reply-To: <003701c42698$2e746140$6400a8c0@thinkpad> Message-ID: <20040420090711.AC141A862D@virtu.nyphp.org> I did update windows/IE... I just set up a test page...simple, simple. Load the script and it sends me an

tag...same thing. I get the headers at the top of the page followed by the code. Then I got the idea to call the problem script off of the old server. I did and it sent me the HTML email...perfectly. But the same script running on the new server sends text: Headers at the top of the page followed by the HTML code. Another thing I notice is the From: and Reply To: fields aren't getting set on the new server...when I get the email, the 'from' field just contains 'root at name.ofserver.com' Is it something weird with PHP 4.3.4? John > I could be wrong but did you update w/ the Microsoft patches > this week? > (there were like 5 or so), from what I gathered on sec-lists > and my own experience seems to be causing alot of > IE/OE/Outlook problems ... > > - Jon > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From adam at trachtenberg.com Tue Apr 20 10:15:12 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Tue, 20 Apr 2004 10:15:12 -0400 (EDT) Subject: [nycphp-talk] HTML email In-Reply-To: <20040420090711.AC141A862D@virtu.nyphp.org> References: <20040420090711.AC141A862D@virtu.nyphp.org> Message-ID: On Mon, 19 Apr 2004, John Corry wrote: > Another thing I notice is the From: and Reply To: fields aren't getting set > on the new server...when I get the email, the 'from' field just contains > 'root at name.ofserver.com' You need to edit your sendmail_from configuration directive. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From jonbaer at jonbaer.net Tue Apr 20 09:27:48 2004 From: jonbaer at jonbaer.net (jon baer) Date: Tue, 20 Apr 2004 09:27:48 -0400 Subject: [nycphp-talk] HTML email References: <20040420090711.AC141A862D@virtu.nyphp.org> Message-ID: <006101c426db$49c66a90$6400a8c0@thinkpad> > Another thing I notice is the From: and Reply To: fields aren't getting set > on the new server...when I get the email, the 'from' field just contains > 'root at name.ofserver.com' > > Is it something weird with PHP 4.3.4? What does your php.ini file look like @ around the SMTP/Sendmail part? ... - Jon From lists at neoncowboy.com Tue Apr 20 14:01:02 2004 From: lists at neoncowboy.com (John Corry) Date: Tue, 20 Apr 2004 08:01:02 -1000 Subject: [nycphp-talk] HTML email In-Reply-To: <006101c426db$49c66a90$6400a8c0@thinkpad> Message-ID: <20040420180103.9F873A8602@virtu.nyphp.org> I think I found the problem... It was with the message headers. On the old server (and according to the php docs) headers looked like: $header .= "From: me at mydomain.com\n\r"; On the new server, most of those weren't working, so I started messing with the line endings.... $header .= "From: me at mydomain.com\n"; That seems to work. Thanks for the help. > What does your php.ini file look like @ around the > SMTP/Sendmail part? ... > > - Jon From danielc at analysisandsolutions.com Tue Apr 20 14:01:55 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Tue, 20 Apr 2004 14:01:55 -0400 Subject: [nycphp-talk] messy stuff in sec focus #245 Message-ID: <20040420180154.GA27058@panix.com> SecurityFocus Newsletter #245 TikiWiki Project Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/10100 Nuked-Klan Multiple Vulnerabilities http://www.securityfocus.com/bid/10104 PHP-Nuke CookieDecode Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/10128 TUTOS Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/10129 PHP-Nuke Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/10135 PostNuke Pheonix Multiple Module SQL Injection Vulnerabiliti... http://www.securityfocus.com/bid/10146 PHPBugTracker Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/10153 Gemitel Affich.PHP Remote File Include Command Injection Vul... http://www.securityfocus.com/bid/10156 -- 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 adam at trachtenberg.com Tue Apr 20 14:12:21 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Tue, 20 Apr 2004 14:12:21 -0400 (EDT) Subject: [nycphp-talk] HTML email In-Reply-To: <20040420180103.9F873A8602@virtu.nyphp.org> References: <20040420180103.9F873A8602@virtu.nyphp.org> Message-ID: On Tue, 20 Apr 2004, John Corry wrote: > It was with the message headers. > > On the old server (and according to the php docs) headers looked like: > $header .= "From: me at mydomain.com\n\r"; > > On the new server, most of those weren't working, so I started messing with > the line endings.... > $header .= "From: me at mydomain.com\n"; > That seems to work. The line feed ending bit of the code keeps changing as people try to get it to work with the maximal number of servers. Some like "\n"; others like "\n\r"; etc. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From danielc at analysisandsolutions.com Tue Apr 20 14:21:43 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Tue, 20 Apr 2004 14:21:43 -0400 Subject: [nycphp-talk] HTML email In-Reply-To: References: <20040420180103.9F873A8602@virtu.nyphp.org> Message-ID: <20040420182143.GA28952@panix.com> On Tue, Apr 20, 2004 at 02:12:21PM -0400, Adam Maccabee Trachtenberg wrote: > get it to work with the maximal number of servers. Some like > "\n"; others like "\n\r"; etc. \n\r? Surely, you mean \r\n. RFC 2822 specifies CRLF line endings, meaning \r\n. ftp://ftp.rfc-editor.org/in-notes/rfc2822.txt --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 pete at npgroup.net Tue Apr 20 14:43:22 2004 From: pete at npgroup.net (Pete Czech - New Possibilities Group, LLC) Date: Tue, 20 Apr 2004 14:43:22 -0400 Subject: [nycphp-talk] Apache 2 Uploads = FUBAR Message-ID: <00d901c42707$5bc72a50$0c00a8c0@dimension1> Does anyone know a fix to the bug with Apache 2 and uploading? I have a script that uploads photos, but the files show up mangled... It happens somewhere in the POST operation. Any thoughts? Install is an out of the box RH Enterprise 3.0. Cheers, Pete Czech -------------- next part -------------- An HTML attachment was scrubbed... URL: From Rafi.Sheikh at Ingenix.com Tue Apr 20 14:24:27 2004 From: Rafi.Sheikh at Ingenix.com (Rafi Sheikh) Date: Tue, 20 Apr 2004 13:24:27 -0500 Subject: [nycphp-talk] for() question Message-ID: Hi List. My status: Brain dead NEEDED: How do I assign the retrieved data to unique arrays? Henry and Dan form this list helped me to get at this stage where I am retrieving the data from a mysql table. Now, It is very embarrassing but after I get the data read in (code below), I for the love of PHP, can not make unique rows or dynamically assign the data. I tried the following: $plot=array(); $i=0; while ($row = mysql_fetch_assoc($resultID)) { foreach($row as $field) { $plot[$i]=$field; $i++; } It seems to either go to the last row of data, or if I do: $data1=$array[0]); or so, I get one line which is fine but than, as soon I do: $data1=$array[0]; $data2=$array[1]; ... more like this... than at 4th or 5th $data5, etc. it tells me that it is undefined (going back to where all the data was read in the first iteration-I think) WHAT I AM TRYING TO DO: All I need is that the data I get read in (thx H & D), to get it assigned to an array dynamically or manually per row, which becomes my one set of data that I could use. So If I had 10 rows, I will get 10 unique arrays that I could use with jpgraph for a multi-line graph. I am afraid my novice status in PHP is not letting me write or understand a better "for or do..while" code that could do the job. Can you help? Rafi This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. From csnyder at chxo.com Tue Apr 20 14:54:00 2004 From: csnyder at chxo.com (Chris Snyder) Date: Tue, 20 Apr 2004 14:54:00 -0400 Subject: [nycphp-talk] Apache 2 Uploads = FUBAR In-Reply-To: <00d901c42707$5bc72a50$0c00a8c0@dimension1> References: <00d901c42707$5bc72a50$0c00a8c0@dimension1> Message-ID: <408571C8.5090905@chxo.com> Not using SSL + IE by any chance? That's just a wild shot in the dark, I haven't personally noticed any problems POSTing files with Apache2. Pete Czech - New Possibilities Group, LLC wrote: > Does anyone know a fix to the bug with Apache 2 and uploading? I have > a script that uploads photos, but the files show up mangled... It > happens somewhere in the POST operation. Any thoughts? Install is an > out of the box RH Enterprise 3.0. > > Cheers, > > Pete Czech > > > From crisscott at netzero.com Tue Apr 20 14:55:52 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Tue, 20 Apr 2004 14:55:52 -0400 Subject: [nycphp-talk] for() question In-Reply-To: References: Message-ID: <40857238.40905@netzero.com> Rafi Sheikh wrote: > Now, It is very embarrassing but after I get the data read in (code below), > I for the love of PHP, can not make unique rows or dynamically assign the > data. I tried the following: > $plot=array(); > $i=0; > > while ($row = mysql_fetch_assoc($resultID)) { > > foreach($row as $field) { > $plot[$i]=$field; > $i++; > } The problem is that $field is a reference. You are assigning the value of $plot[$i] to the refernce $field. The place that $field points changes with every iteration of the foreach loop. That is why all of your entries in plot end up being the same. Try this: while ($row = mysql_fetch_assoc($resultID)) { foreach($row as $key => $field) { $plot[$i]=$row[$key]; $i++; } It isn't the cleanest or most elegant but I think it should work for what you need. Scott Mattocks From Cbielanski at inta.org Tue Apr 20 15:00:34 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Tue, 20 Apr 2004 15:00:34 -0400 Subject: [nycphp-talk] for() question Message-ID: I'm not sure I understand what you're trying to do, but if I get the general idea, may I suggest: $i = 0; while ($row = mysql_fetch_array($resultID,MYSQL_NUM)) { $plot[$i]=$row; $i++; } } which should provide count($plot) arrays such that print_r($plot) returns: Array { [0] => Array ( [0] => pt01, [1] => pt02, [N] => pt0N), [1] => Array ( [0] => pt11, [1] => pt12, [N] => pt1N), [2] => Array ( [0] => pt21, [1] => pt22, [N] => pt2N) ... [N] => Array ( [0] => ptN1, [1] => ptN2, [N] => ptNN), } and so forth Is this the data structure you're after, or is something missing? 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: Rafi Sheikh [mailto:Rafi.Sheikh at Ingenix.com] > Sent: Tuesday, April 20, 2004 2:24 PM > To: 'talk at lists.nyphp.org' > Subject: [nycphp-talk] for() question > > > Hi List. > > My status: Brain dead > NEEDED: How do I assign the retrieved data to unique arrays? > > Henry and Dan form this list helped me to get at this stage where I am > retrieving the data from a mysql table. > > Now, It is very embarrassing but after I get the data read in > (code below), > I for the love of PHP, can not make unique rows or > dynamically assign the > data. I tried the following: > $plot=array(); > $i=0; > > while ($row = mysql_fetch_assoc($resultID)) { > > foreach($row as $field) { > $plot[$i]=$field; > $i++; > } > > > It seems to either go to the last row of data, or if I do: > $data1=$array[0]); > > or so, I get one line which is fine but than, as soon I do: > $data1=$array[0]; > $data2=$array[1]; > ... more like this... > > than at 4th or 5th $data5, etc. it tells me that it is > undefined (going back > to where all the data was read in the first iteration-I think) > > WHAT I AM TRYING TO DO: > All I need is that the data I get read in (thx H & D), to get > it assigned to > an array dynamically or manually per row, which becomes my > one set of data > that I could use. So If I had 10 rows, I will get 10 unique > arrays that I > could use with jpgraph for a multi-line graph. > > I am afraid my novice status in PHP is not letting me write > or understand a > better "for or do..while" code that could do the job. Can you help? > > > Rafi > > > > > This e-mail, including attachments, may include confidential and/or > proprietary information, and may be used only by the person > or entity to > which it is addressed. If the reader of this e-mail is not > the intended > recipient or his or her authorized agent, the reader is > hereby notified that > any dissemination, distribution or copying of this e-mail is > prohibited. If > you have received this e-mail in error, please notify the > sender by replying > to this message and delete this e-mail immediately. > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From pete at npgroup.net Tue Apr 20 15:04:31 2004 From: pete at npgroup.net (Pete Czech - New Possibilities Group, LLC) Date: Tue, 20 Apr 2004 15:04:31 -0400 Subject: [nycphp-talk] Apache 2 Uploads = FUBAR References: <00d901c42707$5bc72a50$0c00a8c0@dimension1> <408571C8.5090905@chxo.com> Message-ID: <00fd01c4270a$4fe8ce70$0c00a8c0@dimension1> Nope. it seems to double the size of the image file and then completely corrupts it. I can't even view the result in a browser. People have fixes but none have seemed to work just yet. ----- Original Message ----- From: "Chris Snyder" To: "NYPHP Talk" Sent: Tuesday, April 20, 2004 2:54 PM Subject: Re: [nycphp-talk] Apache 2 Uploads = FUBAR > Not using SSL + IE by any chance? > > That's just a wild shot in the dark, I haven't personally noticed any > problems POSTing files with Apache2. > > > Pete Czech - New Possibilities Group, LLC wrote: > > > Does anyone know a fix to the bug with Apache 2 and uploading? I have > > a script that uploads photos, but the files show up mangled... It > > happens somewhere in the POST operation. Any thoughts? Install is an > > out of the box RH Enterprise 3.0. > > > > Cheers, > > > > Pete Czech > > > > > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From lists at neoncowboy.com Tue Apr 20 15:19:57 2004 From: lists at neoncowboy.com (John Corry) Date: Tue, 20 Apr 2004 09:19:57 -1000 Subject: [nycphp-talk] HTML email In-Reply-To: <20040420182143.GA28952@panix.com> Message-ID: <20040420191958.4128FA8635@virtu.nyphp.org> Yes, sorry...that's exactly what I meant. > \n\r? Surely, you mean \r\n. RFC 2822 specifies CRLF line > endings, meaning \r\n. ftp://ftp.rfc-editor.org/in-notes/rfc2822.txt > > --Dan From dcech at phpwerx.net Tue Apr 20 16:05:04 2004 From: dcech at phpwerx.net (Dan Cech) Date: Tue, 20 Apr 2004 16:05:04 -0400 Subject: [nycphp-talk] for() question In-Reply-To: <40857238.40905@netzero.com> References: <40857238.40905@netzero.com> Message-ID: <40858270.7020603@phpwerx.net> Scott Mattocks wrote: > Rafi Sheikh wrote: > >> Now, It is very embarrassing but after I get the data read in (code >> below), >> I for the love of PHP, can not make unique rows or dynamically assign the >> data. I tried the following: >> $plot=array(); >> $i=0; >> >> while ($row = mysql_fetch_assoc($resultID)) { >> >> foreach($row as $field) { >> $plot[$i]=$field; >> $i++; >> } > > The problem is that $field is a reference. You are assigning the value > of $plot[$i] to the refernce $field. The place that $field points > changes with every iteration of the foreach loop. Actually, that is not what is happening. The problem is that there are 2 loops at work here, when only one is necessary. The outer (while) loop is iterating over the rows in the result as expected, but the inner (foreach) loop is then iterating over each field in every row, and assigning the value to the $plot array. Given a table like: 1, test1, hello 2, test2, tiger You would end up with $plot looking like: array ( 0 => 1, 1 => test1, 2 => hello, 3 => 2, 4 => test2, 5 => tiger ); When what you really want is: array ( 0 => array (1, test1, hello), 1 => array (2, test2, tiger) ); The simplest way to achieve this is: $plot = array(); while ($row = mysql_fetch_assoc($resultID)) { $plot[] = $row; } Dan > That is why all of your entries in plot end up being the same. Try this: > > while ($row = mysql_fetch_assoc($resultID)) { > > foreach($row as $key => $field) { > $plot[$i]=$row[$key]; > $i++; > } > > It isn't the cleanest or most elegant but I think it should work for > what you need. > > Scott Mattocks From lists at mx2pro.com Tue Apr 20 17:45:24 2004 From: lists at mx2pro.com (Dan Horning) Date: Tue, 20 Apr 2004 17:45:24 -0400 Subject: [nycphp-talk] Apache 2 Uploads = FUBAR In-Reply-To: <00fd01c4270a$4fe8ce70$0c00a8c0@dimension1> Message-ID: <200404202145.i3KLjRdd002036@ms-smtp-01.nyroc.rr.com> what's the software you're using to upload the pics? is this php based (I'm assuming) if so install gallery.menalto.com and use the test for bugs features in the installer - this generally shows you where the problem lies - esp since the gallery project is so diverse ttyl > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Pete Czech > - New Possibilities Group, LLC > Sent: Tuesday, April 20, 2004 3:05 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Apache 2 Uploads = FUBAR > > Nope. it seems to double the size of the image file and then > completely > corrupts it. I can't even view the result in a browser. > People have fixes > but none have seemed to work just yet. > ----- Original Message ----- > From: "Chris Snyder" > To: "NYPHP Talk" > Sent: Tuesday, April 20, 2004 2:54 PM > Subject: Re: [nycphp-talk] Apache 2 Uploads = FUBAR > > > > Not using SSL + IE by any chance? > > > > That's just a wild shot in the dark, I haven't personally > noticed any > > problems POSTing files with Apache2. > > > > > > Pete Czech - New Possibilities Group, LLC wrote: > > > > > Does anyone know a fix to the bug with Apache 2 and > uploading? I have > > > a script that uploads photos, but the files show up mangled... It > > > happens somewhere in the POST operation. Any thoughts? > Install is an > > > out of the box RH Enterprise 3.0. > > > > > > Cheers, > > > > > > Pete Czech > > > > > > > > > > > > > _______________________________________________ > > talk mailing list > > talk at lists.nyphp.org > > http://lists.nyphp.org/mailman/listinfo/talk > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From rich at f1central.net Tue Apr 20 18:26:20 2004 From: rich at f1central.net (Rich Gray) Date: Wed, 21 Apr 2004 00:26:20 +0200 Subject: [nycphp-talk] [OT] YAHE (Yet Another Hacking Exercise) Message-ID: .. won't take you guys long for sure... http://scifi.pages.at/hackits/ //rich From jonbaer at jonbaer.net Tue Apr 20 20:56:20 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Tue, 20 Apr 2004 20:56:20 -0400 Subject: [nycphp-talk] [ot] Building Linux Kernel Message-ID: <200404202056.28846.jonbaer@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Someone asked me to configure something which is requiring the kernel to be rebuilt w/ specific configurations and Im creating a complete mess :-) fun fun fun. Does anyone know a really good tutorial or something for building a new fresh kernel? Ive accomplished it once before (by picking a 4 leaf clover) ... Id even pay a few bucks if someone can spare time to show me how the magic is done ... Thanks. - - Jon - -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFAhca6Qdvbi5oMr0cRAoyrAKDkmhz5w3r7Q2O9VeWTYVfOfccIrwCgzPfD qSPmxUd6rHcqq+F8m5Duqw0= =KNZQ -----END PGP SIGNATURE----- From tgales at tgaconnect.com Tue Apr 20 21:24:31 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Tue, 20 Apr 2004 21:24:31 -0400 Subject: [nycphp-talk] [ot] Building Linux Kernel In-Reply-To: <200404202056.28846.jonbaer@jonbaer.net> Message-ID: <008001c4273f$666f4e50$e98d3818@oberon1> > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Jon Baer > Sent: Tuesday, April 20, 2004 8:56 PM > To: NYPHP Talk > Subject: [nycphp-talk] [ot] Building Linux Kernel > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > Someone asked me to configure something which is requiring > the kernel to be > rebuilt w/ specific configurations and Im creating a complete > mess :-) fun > fun fun. Does anyone know a really good tutorial or > something for building a > new fresh kernel? Ive accomplished it once before (by > picking a 4 leaf Here is a link which may help: http://fossil.wpi.edu/docs/howto_build_kernel.html It is a kind of a step-by-step outline of building a Suse kernel and limited in scope. I have the feeling that you are running into problems which are beyond the scope of this outline. Still it might be of some use. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From jlacey at att.net Tue Apr 20 21:36:39 2004 From: jlacey at att.net (John Lacey) Date: Tue, 20 Apr 2004 19:36:39 -0600 Subject: [nycphp-talk] [ot] Building Linux Kernel In-Reply-To: <200404202056.28846.jonbaer@jonbaer.net> References: <200404202056.28846.jonbaer@jonbaer.net> Message-ID: <4085D027.7040702@att.net> Jon Baer wrote: > Hi, > > Someone asked me to configure something which is requiring the kernel to be > rebuilt w/ specific configurations and Im creating a complete mess :-) fun > fun fun. Does anyone know a really good tutorial or something for building a > new fresh kernel? Ive accomplished it once before (by picking a 4 leaf > clover) ... Id even pay a few bucks if someone can spare time to show me how > the magic is done ... > Jon -- I wrote a kernel build procedure lesson for a Linux class... it's 'bare bones'. It just includes the build instructions but doesn't go into all the actual kernel parms in make menuconfig (or its GUI counterpart make xconfig). Otherwise it would have been screenshot city :) If you need more help than the link Tim provided, I could probably go into my courseware and cut those instructions out. John From joel at tagword.com Tue Apr 20 23:04:51 2004 From: joel at tagword.com (Joel De Gan) Date: Tue, 20 Apr 2004 23:04:51 -0400 Subject: [nycphp-talk] [ot] Building Linux Kernel In-Reply-To: <200404202056.28846.jonbaer@jonbaer.net> References: <200404202056.28846.jonbaer@jonbaer.net> Message-ID: <1082516691.4785.40.camel@bezel> On Tue, 2004-04-20 at 20:56, Jon Baer wrote: > Hi, > fun fun. Does anyone know a really good tutorial or something for building a > new fresh kernel? Ive accomplished it once before (by picking a 4 leaf > clover) ... Id even pay a few bucks if someone can spare time to show me how > the magic is done ... You obviously don't run gentoo ;) rebuilding the kernel is pretty easy as it is often done. here is how I do it in my gentoo boxes everytime there is a new kernel out.. so often enough :) `mount /boot` `cd /usr/src/linux` `make menuconfig` select your options, menuconfig is so easy it is ridiculous.. then just do a: `make dep && make clean bzImage modules modules-install` `cp /usr/src/linux/arch/i386/boot/bzImage /boot` depending on your arch for the i386 dir obviously, but menuconfig is very cool if you have not used it. be careful with putting in things that you are not sure of and make backups of your current working kernel and make it available through whatever boot manager you are running (lilo/grub) which is explained in the config files for both lilo and for grub. Otherwise, I would recommend looking over some of the gentoo docs (which are not all gentoo-centric) http://www.gentoo.org/doc/en/index.xml hope that helps a little.. -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From lists at mx2pro.com Tue Apr 20 22:51:32 2004 From: lists at mx2pro.com (Dan Horning) Date: Tue, 20 Apr 2004 22:51:32 -0400 Subject: [nycphp-talk] [ot] Building Linux Kernel In-Reply-To: <4085D027.7040702@att.net> Message-ID: <200404210251.i3L2peuV000384@ms-smtp-02.nyroc.rr.com> could you post that tutorial to the list - URL to a zip or an online course or if you'd send me that offlist - I'm about to start an install of fedora (ya ya I know it's still redhat) > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of John Lacey > Sent: Tuesday, April 20, 2004 9:37 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] [ot] Building Linux Kernel > > > Jon Baer wrote: > > Hi, > > > > Someone asked me to configure something which is requiring > the kernel to be > > rebuilt w/ specific configurations and Im creating a > complete mess :-) fun > > fun fun. Does anyone know a really good tutorial or > something for building a > > new fresh kernel? Ive accomplished it once before (by > picking a 4 leaf > > clover) ... Id even pay a few bucks if someone can spare > time to show me how > > the magic is done ... > > > > Jon -- I wrote a kernel build procedure lesson for a Linux > class... it's 'bare bones'. It just includes the build > instructions but doesn't go into all the actual kernel parms in > make menuconfig (or its GUI counterpart make xconfig). > Otherwise it would have been screenshot city :) > > If you need more help than the link Tim provided, I could > probably go into my courseware and cut those instructions out. > > John > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From jonbaer at jonbaer.net Tue Apr 20 22:59:01 2004 From: jonbaer at jonbaer.net (jon baer) Date: Tue, 20 Apr 2004 22:59:01 -0400 Subject: [nycphp-talk] [ot] Building Linux Kernel References: <200404202056.28846.jonbaer@jonbaer.net> <1082516691.4785.40.camel@bezel> Message-ID: <003501c4274c$99686550$6400a8c0@thinkpad> > rebuilding the kernel is pretty easy as it is often done. > here is how I do it in my gentoo boxes everytime there is a new kernel > out.. so often enough :) The problem I have is in regards to modules ... seems that everytime I recompile pcmcia-cs and try to attach the new kernel to grub I get a nice kernel panic every time and its using pretty much the same config file. Thanks for all the recomendations. This is actually RedHat 9 ... not Gentoo which Ive heard is great, but Im too chicken to run @ the moment w/ so much work :-\ I understand that when rebuilding you have this massive .config file that can be edited a bunch of ways but when something is stated as "modular" is it the fact that maybe the config file is saying something else? (this whole thing has to do with upgrading a HostAP driver for a new Seneo wifi card which is requiring a new kernel, my RPM had this built in which is fine but it wont work for him w/ this card). Id actually like to learn how to accomplish this kernel building once and for all lol. - Jon From tom at supertom.com Tue Apr 20 23:21:59 2004 From: tom at supertom.com (Tom) Date: Tue, 20 Apr 2004 23:21:59 -0400 Subject: [nycphp-talk] Pear, SQLite, PHP4 (repost?) Message-ID: <0HWI009YO3E3KF@mta1.srv.hcvlny.cv.net> Hey folks, (Sorry if this is a repost, my webmail client says it was sent, but it didn't show up in my mail - apologies in advance!!!) I need some clarification and a little help: I'm looking at SQLite, and would like to use it in PHP 4. From what I've gathered, this means that I have to use Pear. Is this correct? If this is the case, I can't seem to get the connection string for SQLite right, or I'm doing something else wrong. I get an getCode is returning a -4, and I get "DB Error: not found". Anyone have any examples or experience with these? I admit I am new to both. Thanks, Tom www.liphp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonbaer at jonbaer.net Tue Apr 20 23:32:25 2004 From: jonbaer at jonbaer.net (jon baer) Date: Tue, 20 Apr 2004 23:32:25 -0400 Subject: [nycphp-talk] Pear, SQLite, PHP4 (repost?) References: <0HWI009YO3E3KF@mta1.srv.hcvlny.cv.net> Message-ID: <006401c42751$44af7440$6400a8c0@thinkpad> >>> I'm looking at SQLite, and would like to use it in PHP 4. From what I've gathered, this means that I have to use Pear. Is this correct? <<< You don't really need PEAR per se ... you just need the extension ... http://pecl.php.net/package/SQLite However I beleive PEAR::DB support it which would be better to use because in case you want to switch to MySQL later on for example you will be rewritting your db code. To use the extension you need to enable it in your php.ini and you are good to go. sqlite_open("db.sqlite", 0666, $err); resource sqlite_open ( string filename [, int mode [, string &error_message]]) http://us4.php.net/manual/en/function.sqlite-open.php - Jon -------------- next part -------------- An HTML attachment was scrubbed... URL: From faber at linuxnj.com Tue Apr 20 23:39:18 2004 From: faber at linuxnj.com (Faber Fedor) Date: Tue, 20 Apr 2004 23:39:18 -0400 Subject: [nycphp-talk] [ot] Building Linux Kernel In-Reply-To: <003501c4274c$99686550$6400a8c0@thinkpad> References: <200404202056.28846.jonbaer@jonbaer.net> <1082516691.4785.40.camel@bezel> <003501c4274c$99686550$6400a8c0@thinkpad> Message-ID: <20040421033918.GA10163@uranus.faber.nom> On Tue, Apr 20, 2004 at 10:59:01PM -0400, jon baer wrote: > > rebuilding the kernel is pretty easy as it is often done. > > here is how I do it in my gentoo boxes everytime there is a new kernel > > out.. so often enough :) > > The problem I have is in regards to modules ... Modules do take the longest to compile. > seems that everytime I > recompile pcmcia-cs and try to attach the new kernel to grub I get a nice > kernel panic every time and its using pretty much the same config file. How do you recompile the pcmcia-cs modules (actual keystrokes and messages would be helpful, thanks)? It's been awhile since I compiled a kernel (at least six months), but did you modify the make file to use the "kernel compiler" as opposed to gcc? (I don't think I've compiled a kernel under RH9, so it may not be necessary, but...) > I understand that when rebuilding you have this massive .config file that > can be edited a bunch of ways but when something is stated as "modular" is > it the fact that maybe the config file is saying something else? Not that I'm aware of. The different config-makers do a pretty good job of writing a sane .config file. Have you used anything other than "make config", "make menuconfig" or "make xconfig"? > (this whole thing has to do with upgrading a HostAP driver for a new Seneo > wifi card which is requiring a new kernel, my RPM had this built in which is > fine but it wont work for him w/ this card). And why won't it "work for him w/ this card"? Did you need to apply patches? Any errors during the compile? What does the kernel panic say? Inquiring minds want to know. ;-) > Id actually like to learn how to accomplish this kernel building once and > for all lol. Like most things in Linux, it's fairly straightforward, but it's a narrow straightforwardly. ;-) -- Regards, Faber Linux New Jersey: Open Source Solutions for New Jersey http://www.linuxnj.com From lists at mx2pro.com Wed Apr 21 07:33:04 2004 From: lists at mx2pro.com (Dan Horning) Date: Wed, 21 Apr 2004 07:33:04 -0400 Subject: [nycphp-talk] messy stuff in sec focus #245 In-Reply-To: <20040420180154.GA27058@panix.com> Message-ID: <200404211133.i3LBX6f2017368@ms-smtp-03.nyroc.rr.com> the funny thing - most of those software packages noted are not the problem it appears that everything is a module that "has been reported that...." IMHO - you shouldn't place blame on a a piece of software which isn't causing the problem if the modules followed the devguide then there's almost no chance of not having sanitized input (specifically postnuke - which I've watched for a real SecFocus article for quite some time) > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Daniel Convissor > Sent: Tuesday, April 20, 2004 2:02 PM > To: NYPHP Talk > Subject: [nycphp-talk] messy stuff in sec focus #245 > > SecurityFocus Newsletter #245 > > TikiWiki Project Multiple Input Validation Vulnerabilities > http://www.securityfocus.com/bid/10100 > > Nuked-Klan Multiple Vulnerabilities > http://www.securityfocus.com/bid/10104 > > PHP-Nuke CookieDecode Cross-Site Scripting Vulnerability > http://www.securityfocus.com/bid/10128 > > TUTOS Multiple Input Validation Vulnerabilities > http://www.securityfocus.com/bid/10129 > > PHP-Nuke Multiple SQL Injection Vulnerabilities > http://www.securityfocus.com/bid/10135 > > PostNuke Pheonix Multiple Module SQL Injection Vulnerabiliti... > http://www.securityfocus.com/bid/10146 > > PHPBugTracker Multiple Input Validation Vulnerabilities > http://www.securityfocus.com/bid/10153 > > Gemitel Affich.PHP Remote File Include Command Injection Vul... > http://www.securityfocus.com/bid/10156 > > -- > 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 > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From jlacey at att.net Wed Apr 21 10:13:43 2004 From: jlacey at att.net (John Lacey) Date: Wed, 21 Apr 2004 08:13:43 -0600 Subject: [nycphp-talk] [ot] Building Linux Kernel In-Reply-To: <20040421033918.GA10163@uranus.faber.nom> References: <200404202056.28846.jonbaer@jonbaer.net> <1082516691.4785.40.camel@bezel> <003501c4274c$99686550$6400a8c0@thinkpad> <20040421033918.GA10163@uranus.faber.nom> Message-ID: <40868197.1010203@att.net> >>The problem I have is in regards to modules ... >>seems that everytime I >>recompile pcmcia-cs and try to attach the new kernel to grub I get a nice >>kernel panic every time and its using pretty much the same config file. >>(this whole thing has to do with upgrading a HostAP driver for a new Seneo >>wifi card which is requiring a new kernel, my RPM had this built in which is >>fine but it wont work for him w/ this card). > found a couple of items googling (seems others had issues too) http://lists.shmoo.com/pipermail/hostap/2003-August/003897.html (at the bottom, it references a Senao card) and the response... http://lists.shmoo.com/pipermail/hostap/2003-August/003898.html btw, the writeup I mentioned won't help with this specific problem, since it appears from the msgs that the kernel is being built 'successfully' John From mitchy at spacemonkeylabs.com Wed Apr 21 10:20:36 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Wed, 21 Apr 2004 10:20:36 -0400 Subject: [nycphp-talk] [ot] Building Linux Kernel In-Reply-To: <200404202056.28846.jonbaer@jonbaer.net> References: <200404202056.28846.jonbaer@jonbaer.net> Message-ID: <40868334.1090106@spacemonkeylabs.com> Jon Baer wrote: > > Hi, > > Someone asked me to configure something which is requiring the kernel to be > rebuilt w/ specific configurations and Im creating a complete mess :-) fun > fun fun. Does anyone know a really good tutorial or something for building a > new fresh kernel? Ive accomplished it once before (by picking a 4 leaf > clover) ... Id even pay a few bucks if someone can spare time to show me how > the magic is done ... If you are working from an existing RH9 machine, I can assure you that you'll never replicate the kernel tweaks from RedHat to get a similarly-configured kernel. The easiest way to deal with this is to install the kernel-source RPM, and build from there. I had to do this on a machine that was using ext3 filesystems, as RedHat's kernel tweaks appear to be somewhat proprietary (or I never figured out how to duplicate that functionality with source from kernel.org). When you install the kernel-source RPM, you will see in those directories that they provide example config files for different architectures - this will give you the system that you are looking for... HTH, -- Mitch From jonbaer at jonbaer.net Wed Apr 21 10:50:10 2004 From: jonbaer at jonbaer.net (jon baer) Date: Wed, 21 Apr 2004 10:50:10 -0400 Subject: [nycphp-talk] [ot] Building Linux Kernel References: <200404202056.28846.jonbaer@jonbaer.net> <40868334.1090106@spacemonkeylabs.com> Message-ID: <00b201c427af$f25df360$6400a8c0@thinkpad> > The easiest way to deal with this is to install the kernel-source RPM, > and build from there. I had to do this on a machine that was using ext3 > filesystems, as RedHat's kernel tweaks appear to be somewhat proprietary > (or I never figured out how to duplicate that functionality with source > from kernel.org). This is the exact problem in a nutshell ... I can get the RPM source with the *old* driver while the new driver requires a newer kernel and it is a "RedHat" thing because they are more proprietary ... I dont want to post my entire barrage of error messages until I try a few things first (reinstall the RPMs completely) ... I think I made the mistake of compiling the source code directly for the modules (like pcmcia-cs) vs. getting the RPMs ... I also had the cross compiler setup for building Zaurus apps which I think was a no-no. I should have went w/ Debian or Gentoo when I had the chance. Just need some time to tinker ... thank you all for your wonderful suggestions ... - Jon From jonbaer at jonbaer.net Wed Apr 21 10:55:57 2004 From: jonbaer at jonbaer.net (jon baer) Date: Wed, 21 Apr 2004 10:55:57 -0400 Subject: [nycphp-talk] [ot] Building Linux Kernel References: <200404202056.28846.jonbaer@jonbaer.net> <40868334.1090106@spacemonkeylabs.com> Message-ID: <00c701c427b0$c157f170$6400a8c0@thinkpad> I think I finally hit the jackpot off Google (same ThinkPad and issues) ... http://thomer.com/linux/migrate-to-2.6.html But they link off to RPMs to a personal site ... would you *trust* them? - Jon From phillip.powell at adnet-sys.com Wed Apr 21 11:13:45 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Wed, 21 Apr 2004 11:13:45 -0400 Subject: [nycphp-talk] PHP - GTK as alternative to an Applet? Message-ID: <40868FA9.5060704@adnet-sys.com> I read up on some info regarding GTK which has the ability to run as a client-side programming GUI interface, much like an applet. I am looking at means of creating alternatives to applets that can be embedded into webpage HTML as instances, due to the recent global instability (and sketchiness) of applets, and saw somewhere about GTK having such a capability as well, provided the user downloads the "runtime environment". I looked up info on gtk.php.net and http://gtk.php.net/resources.php and www.gtk.net and found only a smattering of information. If anyone knows of any exhaustive resource of usage of GTK using PHP (and not C, ugh!), please let me know, or if you've ever used GTK in building GUI applet-like interfaces. Thanx Phil From csnyder at chxo.com Wed Apr 21 11:35:31 2004 From: csnyder at chxo.com (Chris Snyder) Date: Wed, 21 Apr 2004 11:35:31 -0400 Subject: [nycphp-talk] [ot] Building Linux Kernel In-Reply-To: <40868334.1090106@spacemonkeylabs.com> References: <200404202056.28846.jonbaer@jonbaer.net> <40868334.1090106@spacemonkeylabs.com> Message-ID: <408694C3.4080205@chxo.com> Mitch Pirtle wrote: > When you install the kernel-source RPM, you will see in those > directories that they provide example config files for different > architectures - this will give you the system that you are looking for... Bingo -- recompiling the kernel is a pretty straightforward operation if you start with a working config and only change one or two things. Apparently that's even true on RH if you install the right rpms and don't need something beyond what you're given. Given the obliqueness of the rpm system, unnecessary daemons running by default, and proprietary tweaking of the kernel and filesystem layout, I'm not surprised that Red Hat is as popular as it is. I'm considering updating my standard response to people who ask for tech support: "I don't do windows, and I won't wear the dumb hat." From joel at tagword.com Wed Apr 21 12:59:37 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 21 Apr 2004 12:59:37 -0400 Subject: [nycphp-talk] [ot] Building Linux Kernel In-Reply-To: <003501c4274c$99686550$6400a8c0@thinkpad> References: <200404202056.28846.jonbaer@jonbaer.net> <1082516691.4785.40.camel@bezel> <003501c4274c$99686550$6400a8c0@thinkpad> Message-ID: <1082566776.4787.65.camel@bezel> On Tue, 2004-04-20 at 22:59, jon baer wrote: > This is actually RedHat 9 ... not Gentoo which Ive heard is great, but Im > too chicken to run @ the moment w/ so much work :-\ Now, I know that gentoo users are *known* as being kind of preachy but there really is a good reason for that. It is worth it to learn, in addition you learn a lot about how linux works and how linux systems are set up and where things are. If you have ever used BSD, in particular OpenBSD, and need to build specific installations it is perfect. Also, things like upgrades that don't clobber your configs is built in, and these things are easily automated. Everything is basically in portage and updated continuously, every morning there is something new/updated in there. Some people complain about the time to install, from a stage 3 (pre built) you can be in X and working in no time flat. I have been trying to get work to let me migrate current servers and also set up a portage "updates" server for our datacenter (so we control which upgrades go in and don't generate too much outside traffic). As we could have an easy, and most importantly, automated solution for handling upgrades on hundreds or thousands of servers vs what they are doing now. I suspect that netops is against it for obvious reasons (job sec.) as the current base of redhat servers requires constant maintenance by a team of people. Anyway, check it out if you get some time. Most of our core developers are now using gentoo exclusive these days and I use it on servers to awesome effect (some people will state for some reason to not use it on servers?). i.e. this server runs several domains on apache and handles a 20k+ requests/day + qmail/vpop + mysql + data collection/gathering + a neuralnet system that is working with news and stock data and runs the openmosix kernel (latest) and is 'node 1' on a four node cluster: 11:59:18 up 165 days, 22:16, 1 user, load average: 0.10, 0.10, 0.09 Last time it was rebooted was when I needed to move the box, otherwise that uptime would be another 200 days more and that box is completely up to date as of 4am today. Anyway.. enough gentoo evangelism... Cheers.. -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From csnyder at chxo.com Wed Apr 21 12:53:57 2004 From: csnyder at chxo.com (Chris Snyder) Date: Wed, 21 Apr 2004 12:53:57 -0400 Subject: [nycphp-talk] [ot] Building Linux Kernel In-Reply-To: <1082566776.4787.65.camel@bezel> References: <200404202056.28846.jonbaer@jonbaer.net> <1082516691.4785.40.camel@bezel> <003501c4274c$99686550$6400a8c0@thinkpad> <1082566776.4787.65.camel@bezel> Message-ID: <4086A725.401@chxo.com> Joel De Gan wrote: > It is worth it to learn, in addition you learn a lot about how linux > works and how linux systems are set up and where things are. Knowing this is a handicap when it comes to maintaining Red Hat systems, and RH is the flavor of the moment with the people who spend the money. Then again, anyone who learns Linux via Gentoo and then uses that knowledge to reverse engineer what RH is doing (and isn't driven insane in the process) will have serious job security. Also, I'm relying on that person to produce a RH port of the Gentoo portage system so that I can finally do automated from-source installs. From joel at tagword.com Wed Apr 21 14:24:18 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 21 Apr 2004 14:24:18 -0400 Subject: [nycphp-talk] [ot] Building Linux Kernel In-Reply-To: <4086A725.401@chxo.com> References: <200404202056.28846.jonbaer@jonbaer.net> <1082516691.4785.40.camel@bezel> <003501c4274c$99686550$6400a8c0@thinkpad> <1082566776.4787.65.camel@bezel> <4086A725.401@chxo.com> Message-ID: <1082571858.4791.71.camel@bezel> On Wed, 2004-04-21 at 12:53, Chris Snyder wrote: > that person to produce a RH port of the Gentoo portage system so that I > can finally do automated from-source installs. You might want to look at this thread: http://forums.gentoo.org/viewtopic.php?t=28559 -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From jonbaer at jonbaer.net Wed Apr 21 13:17:01 2004 From: jonbaer at jonbaer.net (jon baer) Date: Wed, 21 Apr 2004 13:17:01 -0400 Subject: [nycphp-talk] Fw: [RHSA-2004:166-01] Updated kernel packages resolve security vulnerabilities Message-ID: <002601c427c4$7602ba20$6400a8c0@thinkpad> Speak of the devil :-) ----- Original Message ----- From: To: ; ; Sent: Wednesday, April 21, 2004 11:16 AM Subject: [RHSA-2004:166-01] Updated kernel packages resolve security vulnerabilities -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 - --------------------------------------------------------------------- Red Hat Security Advisory Synopsis: Updated kernel packages resolve security vulnerabilities Advisory ID: RHSA-2004:166-01 Issue date: 2004-04-21 Updated on: 2004-04-21 Product: Red Hat Linux Keywords: Cross references: Obsoletes: RHSA-2004:065 CVE Names: CAN-2004-0003 CAN-2004-0109 CAN-2004-0177 - --------------------------------------------------------------------- 1. Topic: Updated kernel packages that fix several minor security vulnerabilities are now available 2. Relevant releases/architectures: Red Hat Linux 9 - athlon, i386, i586, i686 3. Problem description: The Linux kernel handles the basic functions of the operating system. iDefense reported a buffer overflow flaw in the ISO9660 filesystem code. An attacker could create a malicious filesystem in such a way that they could gain root privileges if that filesystem is mounted. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2004-0109 to this issue. Solar Designer from OpenWall discovered a minor information leak in the ext3 filesystem code due to the lack of initialization of journal descriptor blocks. This flaw has only minor security implications and exploitation requires privileged access to the raw device. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2004-0177 to this issue. These packages also contain an updated fix with additional checks for issues in the R128 Direct Render Infrastructure. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2004-0003 to this issue. Additionally, hardening of the mremap function was applied to prevent a potential local denial of service attack. All users are advised to upgrade to these errata packages, which contain backported security patches that correct these issues. 4. Solution: Before applying this update, make sure all previously released errata relevant to your system have been applied. To update all RPMs for your particular architecture, run: rpm -Fvh [filenames] where [filenames] is a list of the RPMs you wish to upgrade. Only those RPMs which are currently installed will be updated. Those RPMs which are not installed but included in the list will not be updated. Note that you can also use wildcards (*.rpm) if your current directory *only* contains the desired RPMs. Please note that this update is also available via Red Hat Network. Many people find this an easier way to apply updates. To use Red Hat Network, launch the Red Hat Update Agent with the following command: up2date This will start an interactive process that will result in the appropriate RPMs being upgraded on your system. If up2date fails to connect to Red Hat Network due to SSL Certificate Errors, you need to install a version of the up2date client with an updated certificate. The latest version of up2date is available from the Red Hat FTP site and may also be downloaded directly from the RHN website: https://rhn.redhat.com/help/latest-up2date.pxt 5. RPMs required: Red Hat Linux 9: SRPMS: ftp://updates.redhat.com/9/en/os/SRPMS/kernel-2.4.20-31.9.src.rpm athlon: ftp://updates.redhat.com/9/en/os/athlon/kernel-2.4.20-31.9.athlon.rpm ftp://updates.redhat.com/9/en/os/athlon/kernel-smp-2.4.20-31.9.athlon.rpm i386: ftp://updates.redhat.com/9/en/os/i386/kernel-2.4.20-31.9.i386.rpm ftp://updates.redhat.com/9/en/os/i386/kernel-BOOT-2.4.20-31.9.i386.rpm ftp://updates.redhat.com/9/en/os/i386/kernel-doc-2.4.20-31.9.i386.rpm ftp://updates.redhat.com/9/en/os/i386/kernel-source-2.4.20-31.9.i386.rpm i586: ftp://updates.redhat.com/9/en/os/i586/kernel-2.4.20-31.9.i586.rpm ftp://updates.redhat.com/9/en/os/i586/kernel-smp-2.4.20-31.9.i586.rpm i686: ftp://updates.redhat.com/9/en/os/i686/kernel-2.4.20-31.9.i686.rpm ftp://updates.redhat.com/9/en/os/i686/kernel-bigmem-2.4.20-31.9.i686.rpm ftp://updates.redhat.com/9/en/os/i686/kernel-smp-2.4.20-31.9.i686.rpm 6. Verification: MD5 sum Package Name - -------------------------------------------------------------------------- 0061cca9f47e3f6d90f75a6d05273e9d 9/en/os/SRPMS/kernel-2.4.20-31.9.src.rpm 806af5b5485efc5c20985df4caa67c73 9/en/os/athlon/kernel-2.4.20-31.9.athlon.rpm db93f183e901f54c16ae9011a789061b 9/en/os/athlon/kernel-smp-2.4.20-31.9.athlon.rpm fed12b86b5bbdbc504d3759ec9746bd5 9/en/os/i386/kernel-2.4.20-31.9.i386.rpm d75837330b6bd151aa7dc41f0739cd5c 9/en/os/i386/kernel-BOOT-2.4.20-31.9.i386.rpm f07cfe7307e1b3742f3f6471aa3dc9a9 9/en/os/i386/kernel-doc-2.4.20-31.9.i386.rpm 434b8067c7a15a21096e8f72fd2b913a 9/en/os/i386/kernel-source-2.4.20-31.9.i386.rpm 03714321817cd47c6ffbdd6378046c16 9/en/os/i586/kernel-2.4.20-31.9.i586.rpm fc1e97e4187a038046974f8ee61dac98 9/en/os/i586/kernel-smp-2.4.20-31.9.i586.rpm b9ff44df6f8950ae64febda7b6afa9c1 9/en/os/i686/kernel-2.4.20-31.9.i686.rpm 86246976656da74b05dd460a60e444b1 9/en/os/i686/kernel-bigmem-2.4.20-31.9.i686.rpm df5e314e867757b8f420c17def224d56 9/en/os/i686/kernel-smp-2.4.20-31.9.i686.rpm These packages are GPG signed by Red Hat for security. Our key is available from https://www.redhat.com/security/team/key.html You can verify each package with the following command: rpm --checksig -v If you only wish to verify that each package has not been corrupted or tampered with, examine only the md5sum with the following command: md5sum 7. References: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0003 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0109 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0177 8. Contact: The Red Hat security contact is . More contact details at https://www.redhat.com/security/team/contact.html Copyright 2004 Red Hat, Inc. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQFAhpAyXlSAg2UNWIIRAsFiAKCv9wUaUDJPhqLVoVRZrZa21F1+9QCfeZGm VWkrCrUP79Mv6ZjKNe4qXEw= =JlF1 -----END PGP SIGNATURE----- From tgales at tgaconnect.com Wed Apr 21 13:25:15 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 21 Apr 2004 13:25:15 -0400 Subject: [nycphp-talk] [ot] Building Linux Kernel In-Reply-To: <4086A725.401@chxo.com> Message-ID: <00be01c427c5$9cdee370$e98d3818@oberon1> > Subject: Re: [nycphp-talk] [ot] Building Linux Kernel > > > Joel De Gan wrote: > > > It is worth it to learn, in addition you learn a lot about how linux > > works and how linux systems are set up and where things are. > Cris Snyder writes: > > Knowing this is a handicap when it comes to maintaining Red > Hat systems, > and RH is the flavor of the moment with the people who spend > the money. > > Then again, anyone who learns Linux via Gentoo and then uses that > knowledge to reverse engineer what RH is doing (and isn't > driven insane > in the process) will have serious job security. Also, I'm relying on > that person to produce a RH port of the Gentoo portage system > so that I > can finally do automated from-source installs. > Thought you said you wouldn't wear 'dumb hats' and were a true (little) devil worshiper. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com "The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offense." - Edsgar Dijkstra From yury at heavenspa.com Wed Apr 21 13:29:11 2004 From: yury at heavenspa.com (yury at heavenspa.com) Date: Wed, 21 Apr 2004 13:29:11 -0400 Subject: [nycphp-talk] help with scraping a page Message-ID: <016901c427c6$290221f0$0400a8c0@heavenspanyc> http://www.google.com.au/search?q=neopets Lets say i have a page with lots of links ( a few hunderd) like the google search above. I'd like to scrap the page and grab the search term only and add it to my site in this fashion: http://www.site.com/search/search.php?qry_str=neopets and http://www.site.com/buy/buy.php?qry_str=neopets can anyone give me a quick and dirty way of accomplishing this? I was thinking that each php page has its own scrap code at the top, so once you load the page it scraps the appropriate page and spits out my results.. I'd prefer to NOT use a db.. suggestions? tia yury -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Yury Rush Senior Web Designer heavenspa.com Yury at heavenspa.com +1212.244.0010 -------------- next part -------------- An HTML attachment was scrubbed... URL: From yury at heavenspa.com Wed Apr 21 13:36:24 2004 From: yury at heavenspa.com (yury at heavenspa.com) Date: Wed, 21 Apr 2004 13:36:24 -0400 Subject: [nycphp-talk] help with scraping a page References: <016901c427c6$290221f0$0400a8c0@heavenspanyc> Message-ID: <018e01c427c7$2af45f90$0400a8c0@heavenspanyc> DOH! "Scraping/scrape" not scrap.. lol geez.. i need coffee. yury ----- Original Message ----- From: yury at heavenspa.com To: NYPHP Talk Sent: Wednesday, April 21, 2004 1:29 PM Subject: [nycphp-talk] help with scraping a page http://www.google.com.au/search?q=neopets Lets say i have a page with lots of links ( a few hunderd) like the google search above. I'd like to scrap the page and grab the search term only and add it to my site in this fashion: http://www.site.com/search/search.php?qry_str=neopets and http://www.site.com/buy/buy.php?qry_str=neopets can anyone give me a quick and dirty way of accomplishing this? I was thinking that each php page has its own scrap code at the top, so once you load the page it scraps the appropriate page and spits out my results.. I'd prefer to NOT use a db.. suggestions? tia yury -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Yury Rush Senior Web Designer heavenspa.com Yury at heavenspa.com +1212.244.0010 ------------------------------------------------------------------------------ _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk -------------- next part -------------- An HTML attachment was scrubbed... URL: From joel at tagword.com Wed Apr 21 14:58:06 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 21 Apr 2004 14:58:06 -0400 Subject: [nycphp-talk] help with scraping a page In-Reply-To: <016901c427c6$290221f0$0400a8c0@heavenspanyc> References: <016901c427c6$290221f0$0400a8c0@heavenspanyc> Message-ID: <1082573886.4792.73.camel@bezel> I do something similar here: http://lucifer.intercosmos.net/?view=REFS Here is the source: http://lucifer.intercosmos.net/?view=SNIP&item=91 -joel On Wed, 2004-04-21 at 13:29, yury at heavenspa.com wrote: > http://www.google.com.au/search?q=neopets > > Lets say i have a page with lots of links ( a few hunderd) like the > google search above. I'd like to scrap the page and grab the search > term only and add it to my site in this fashion: > > http://www.site.com/search/search.php?qry_str=neopets > > and > http://www.site.com/buy/buy.php?qry_str=neopets > > can anyone give me a quick and dirty way of accomplishing this? I was > thinking that each php page has its own scrap code at the top, so once > you load the page it scraps the appropriate page and spits out my > results.. > > I'd prefer to NOT use a db.. suggestions? > > tia > yury > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Yury Rush > Senior Web Designer > heavenspa.com > Yury at heavenspa.com > +1212.244.0010 > > ______________________________________________________________________ > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From nyphp at websapp.com Wed Apr 21 16:14:40 2004 From: nyphp at websapp.com (Daniel Kushner) Date: Wed, 21 Apr 2004 16:14:40 -0400 Subject: [nycphp-talk] Zend online PHP Training Message-ID: <200404212014.i3LKEf6F002512@ns5.oddcast.com> Zend has launched their online training program. http://www.zend.com/store/education/zend-online-training.php -Daniel From greg at click3x.com Wed Apr 21 17:06:15 2004 From: greg at click3x.com (Greg Faber) Date: Wed, 21 Apr 2004 17:06:15 -0400 Subject: [nycphp-talk] GIF support with php 4.1.2 Message-ID: hello- is it at all possible for imagecreatefromgif() to work if I'm running php 4.1.2? I read on php.net that GIF support was removed after GD 1.6 and then that it was reinstated in read-only mode in the GD bundled with php 4.3 so does that mean that php versions prior to 4.3 running GD 2.0 or higher don't have GIF support? Greg From jayeshsh at ceruleansky.com Thu Apr 22 01:16:51 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Thu, 22 Apr 2004 01:16:51 -0400 Subject: [nycphp-talk] Search for NYPHP List Archives available (alpha ver) Message-ID: <40875543.7020104@ceruleansky.com> Hello all, I have been wanting to search through the treasure of information contained in the NYPHP archives from 2002 to date. Thankfully, the guys at nyphp.org made the whole archive available as a (Unix mail) mbox file. I used a utility from Fookes software (fookes.com) called Mailbag to extract these files as a big csv file. (Originally I thought I would use Mailbag's built-in search feature, but that proved too cumbersome to use. Plus, I wanted to customize the output of the search.) I then imported that file into a MySQL database table, and enabled MySQL fulltext search for that table. (I had to do a manual search and replace with another Fookes program, Notetab, to get certain character escaped. E.g. quotes and dollar signs.) I then added on a PHP search interface to it. With a lot of luck I seem to have got a basic version working. Having this large set of information publicly searchable will no doubt be useful to others. For example: http://www.ceruleansky.com/nyphp_mail/index.php?q=xml-rpc I am not sure if it works perfectly yet (since it is just a day or two's work). (I built on some functions which I had written before, so it went relatively fast ...) It currently returns a set of up to 25 matches. There is no built-in support for displaying messages by thread, or for fine grained searching (by field or with boolean expressions). Please try out this alpha version and let me know if it works and if it is of use. Best Regards, - Jay Sheth From joel at tagword.com Thu Apr 22 11:27:13 2004 From: joel at tagword.com (Joel De Gan) Date: Thu, 22 Apr 2004 11:27:13 -0400 Subject: [nycphp-talk] Search for NYPHP List Archives available (alpha ver) In-Reply-To: <40875543.7020104@ceruleansky.com> References: <40875543.7020104@ceruleansky.com> Message-ID: <1082647633.4784.78.camel@bezel> On Thu, 2004-04-22 at 01:16, Jayesh Sheth wrote: > Please try out this alpha version and let me know if it works and if it > is of use. Threaded views might be good. That way you can see the context of messages. Otherwise looks pretty cool. -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From Cbielanski at inta.org Thu Apr 22 11:28:23 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Thu, 22 Apr 2004 11:28:23 -0400 Subject: [nycphp-talk] Search for NYPHP List Archives available (alpha ver) Message-ID: Hey cool, I've already found some apache testing errata about which I was dreading the idea of googling. so far, so good - but if this is an RFI for features, I strongly suggest these three: a date-sort (maybe also date-constraint?) option, highlighting matched keywords (a la google) and possibly a scoring (match-strength/confidence) function. But definitely a good start! PS: I realized that the date-contraint suggestion is part of the boolean-search logic you haven't implemented. If you go through with it, don't forget date range constraints :) PPS: Notetab is *great*. Any word on if Fookes is going to add context-highlighting to 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: Jayesh Sheth [mailto:jayeshsh at ceruleansky.com] > Sent: Thursday, April 22, 2004 1:17 AM > To: talk at lists.nyphp.org > Subject: [nycphp-talk] Search for NYPHP List Archives available (alpha > ver) > > > Hello all, > > I have been wanting to search through the treasure of information > contained in the NYPHP archives from 2002 to date. > Thankfully, the guys at nyphp.org made the whole archive > available as a > (Unix mail) mbox file. > > I used a utility from Fookes software (fookes.com) called Mailbag to > extract these files as a big csv file. (Originally I thought > I would use > Mailbag's built-in search feature, but that proved too cumbersome to > use. Plus, I wanted to customize the output of the search.) > > I then imported that file into a MySQL database table, and enabled > MySQL fulltext search for that table. (I had to do a manual > search and > replace with another Fookes program, Notetab, to get certain > character > escaped. E.g. quotes and dollar signs.) > > I then added on a PHP search interface to it. > > With a lot of luck I seem to have got a basic version working. Having > this large set of information publicly searchable will no doubt be > useful to others. > > For example: > http://www.ceruleansky.com/nyphp_mail/index.php?q=xml-rpc > > I am not sure if it works perfectly yet (since it is just a > day or two's > work). (I built on some functions which I had written before, so it > went relatively fast ...) It currently returns a set of up to 25 > matches. There is no built-in support for displaying messages > by thread, > or for fine grained searching (by field or with boolean expressions). > > Please try out this alpha version and let me know if it works > and if it > is of use. > > Best Regards, > - Jay Sheth > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From tgales at tgaconnect.com Thu Apr 22 11:32:53 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 22 Apr 2004 11:32:53 -0400 Subject: [nycphp-talk] Search for NYPHP List Archives available (alpha ver) In-Reply-To: Message-ID: <014f01c4287f$14bf8570$e98d3818@oberon1> On Behalf Of Chris Bielanski > Sent: Thursday, April 22, 2004 11:28 AM > To: 'NYPHP Talk' > Subject: RE: [nycphp-talk] Search for NYPHP List Archives > available (alpha ver) > > > Hey cool, I've already found some apache testing errata about > which I was dreading the idea of googling. > Next NYPHP meeting (Tues April 27) is going to have an introduction to Clew. Anyone who dreads 'googling' (and I'm with you there) will probably find Clew to be very interesting. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From Cbielanski at inta.org Thu Apr 22 11:36:24 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Thu, 22 Apr 2004 11:36:24 -0400 Subject: [nycphp-talk] [ot] Apache testing suite considerations Message-ID: Hey kids, I want to collect everyone's (cogent) thoughts on what scripts they find most effective for testing out new Apache installations. I'm looking at load-balancing, max throughput, max concurrent sessions, and things of that nature. I'd like to be able to stress-test and shakedown any new LAMP or WAMP servers we build. I've only just begun this research and I'm not an Apache geek by any stretch, so any input is graciously welcomed. 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 csnyder at chxo.com Thu Apr 22 11:39:46 2004 From: csnyder at chxo.com (Chris Snyder) Date: Thu, 22 Apr 2004 11:39:46 -0400 Subject: [nycphp-talk] [ot] Apache testing suite considerations In-Reply-To: References: Message-ID: <4087E742.1000104@chxo.com> Chris Bielanski wrote: >I'm looking at load-balancing, max throughput, max concurrent sessions, and >things of that nature. I'd like to be able to stress-test and shakedown any >new LAMP or WAMP servers we build. > A Java-lover recently demoed Apache's Jmeter for me and it looks like what you want. There's a bit of a learning curve there, but you can create complex test scripts that follow paths through your site and act a lot like human users. I still like ab, too. From Cbielanski at inta.org Thu Apr 22 11:46:41 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Thu, 22 Apr 2004 11:46:41 -0400 Subject: [nycphp-talk] [ot] Apache testing suite considerations Message-ID: > From: Chris Snyder [mailto:csnyder at chxo.com] > I still like ab, too. I'm challenged - "ab" is...? *thx ~C From joel at tagword.com Thu Apr 22 12:59:22 2004 From: joel at tagword.com (Joel De Gan) Date: Thu, 22 Apr 2004 12:59:22 -0400 Subject: [nycphp-talk] [ot] Apache testing suite considerations In-Reply-To: References: Message-ID: <1082653162.4791.84.camel@bezel> On Thu, 2004-04-22 at 11:36, Chris Bielanski wrote: > Hey kids, I want to collect everyone's (cogent) thoughts on what scripts > they find most effective for testing out new Apache installations. I'm > looking at load-balancing, max throughput, max concurrent sessions, and > things of that nature. I'd like to be able to stress-test and shakedown any > new LAMP or WAMP servers we build. I've only just begun this research and > I'm not an Apache geek by any stretch, so any input is graciously welcomed. ab - apache bench, it comes with apache as far as I know. you can run it off a test server so it not connecting to localhost. it is kind of the defacto.. Here is what the output sort of looks like: Concurrency Level: 1 Time taken for tests: 0.755 seconds Complete requests: 100 Failed requests: 0 Broken pipe errors: 0 Total transferred: 2379200 bytes HTML transferred: 2342200 bytes Requests per second: 132.45 [#/sec] (mean) Time per request: 7.55 [ms] (mean) Time per request: 7.55 [ms] (mean, across all concurrent requests) Transfer rate: 3151.26 [Kbytes/sec] received Connnection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.0 0 0 Processing: 6 7 5.6 6 62 Waiting: 0 2 6.5 0 62 Total: 6 7 5.6 6 62 Percentage of the requests served within a certain time (ms) 50% 6 66% 6 75% 6 80% 6 90% 7 95% 7 98% 11 99% 14 100% 62 (last request) -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From jonbaer at jonbaer.net Thu Apr 22 11:58:53 2004 From: jonbaer at jonbaer.net (jon baer) Date: Thu, 22 Apr 2004 11:58:53 -0400 Subject: [nycphp-talk] [ot] Apache testing suite considerations References: <1082653162.4791.84.camel@bezel> Message-ID: <008101c42882$b7084ad0$6400a8c0@thinkpad> ab --help Usage: c:\Program Files\Apache Group\Apache2\bin\ab.exe [options] [http://]hostn ame[:port]/path Options are: -n requests Number of requests to perform -c concurrency Number of multiple requests to make -t timelimit Seconds to max. wait for responses -p postfile File containing data to POST -T content-type Content-type header for POSTing -v verbosity How much troubleshooting info to print -w Print out results in HTML tables -i Use HEAD instead of GET -x attributes String to insert as table attributes -y attributes String to insert as tr attributes -z attributes String to insert as td or th attributes -C attribute Add cookie, eg. 'Apache=1234. (repeatable) -H attribute Add Arbitrary header line, eg. 'Accept-Encoding: gzip' Inserted after all normal header lines. (repeatable) -A attribute Add Basic WWW Authentication, the attributes are a colon separated username and password. -P attribute Add Basic Proxy Authentication, the attributes are a colon separated username and password. -X proxy:port Proxyserver and port number to use -V Print version number and exit -k Use HTTP KeepAlive feature -d Do not show percentiles served table. -S Do not show confidence estimators and warnings. -g filename Output collected data to gnuplot format file. -e filename Output CSV file with percentages served -h Display usage information (this message) From csnyder at chxo.com Thu Apr 22 12:02:50 2004 From: csnyder at chxo.com (Chris Snyder) Date: Thu, 22 Apr 2004 12:02:50 -0400 Subject: [nycphp-talk] [ot] Apache testing suite considerations In-Reply-To: References: Message-ID: <4087ECAA.6030905@chxo.com> Chris Bielanski wrote: > I'm challenged - "ab" is...? As Joel explained, ab is a command-line tool for benchmarking server performance. You'll find it at apache/bin/ab man ab for the gory details. If you just need to pound a page, ab is the easiest way. If you need an army of threads to step through a site, providing form input and some degree of timing, it might be worth it to learn Jmeter. From Cbielanski at inta.org Thu Apr 22 12:08:34 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Thu, 22 Apr 2004 12:08:34 -0400 Subject: [nycphp-talk] [ot] Apache testing suite considerations Message-ID: Right on, getting better hits on the list than I got on Google - sooooo much chaff. Seems I have this problem where I use search terms that make sense to me, but not to "normal" (non-geek) users, so I always get tons of useless but matched noise at the top of my results. My compatriot here actually said he was looking for "Something like what IIS provides for [those metrics]" so I think I will have him look at JMeter to start. I am usually the one that codes tools and widgets (my absolute favorite job) so the learning curve will be more mine than his ;) I'm gonna miss you guys when I'm gone these next two weeks! (No, I will not set an out-of-office, don't worry). ~C From sklar at sklar.com Thu Apr 22 12:12:46 2004 From: sklar at sklar.com (David Sklar) Date: Thu, 22 Apr 2004 12:12:46 -0400 Subject: [nycphp-talk] [ot] Apache testing suite considerations In-Reply-To: References: Message-ID: <4087EEFE.2020002@sklar.com> > My compatriot here actually said he was looking for "Something like what IIS > provides for [those metrics]" The Microsoft Web Application Stress Tools may come close and it is a free download: http://www.microsoft.com/technet/itsolutions/intranet/downloads/webstres.mspx You need to run it on a Windows machine, but you can use it against any web server you like. David From jonbaer at jonbaer.net Thu Apr 22 12:12:51 2004 From: jonbaer at jonbaer.net (jon baer) Date: Thu, 22 Apr 2004 12:12:51 -0400 Subject: [nycphp-talk] Search for NYPHP List Archives available (alpha ver) References: <014f01c4287f$14bf8570$e98d3818@oberon1> Message-ID: <00ad01c42884$a9df3bf0$6400a8c0@thinkpad> > Next NYPHP meeting (Tues April 27) is going to have > an introduction to Clew. Anyone who dreads 'googling' > (and I'm with you there) will probably find Clew to > be very interesting. I personally like this idea ... something I ended up doing a while back in JSP was w/ Alice for mailing lists (procmail) and forums ... it ended up being a PHP version for PHPBB (without forum subscriptions) ... http://www.phpbb.com/phpBB/viewtopic.php?t=24191 You had 2 sides, one where "admin" type people would post to the list and "machine learning" would take over where AIML/XML was written and made available to other users for their questions. Pretty much like an always updating FAQ via a mailing list and answers would show up @ bottom of the email or to the user directly. The email address and a Key: header would be used for authentication which Clew seems to use (although I havent followed it lately). This is a good start. - Jon From Cbielanski at inta.org Thu Apr 22 12:18:14 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Thu, 22 Apr 2004 12:18:14 -0400 Subject: [nycphp-talk] [ot] Apache testing suite considerations Message-ID: Didn't they used to call this "Wilbur" or some cutesy name like that? if they DID call it Wilbur then they probably dropped that nomer in favor of W3C's "HTML 3.2 'Wilbur'" > -----Original Message----- > From: David Sklar [mailto:sklar at sklar.com] > Sent: Thursday, April 22, 2004 12:13 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] [ot] Apache testing suite considerations > > > > My compatriot here actually said he was looking for > "Something like what IIS > > provides for [those metrics]" > > The Microsoft Web Application Stress Tools may come close and it is a > free download: > > http://www.microsoft.com/technet/itsolutions/intranet/download > s/webstres.mspx > > You need to run it on a Windows machine, but you can use it > against any > web server you like. > > David > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From joel at tagword.com Thu Apr 22 13:45:22 2004 From: joel at tagword.com (Joel De Gan) Date: Thu, 22 Apr 2004 13:45:22 -0400 Subject: [nycphp-talk] [ot] Apache testing suite considerations In-Reply-To: References: Message-ID: <1082655922.4787.106.camel@bezel> On Thu, 2004-04-22 at 12:08, Chris Bielanski wrote: > Right on, getting better hits on the list than I got on Google - sooooo much > chaff. Seems I have this problem where I use search terms that make sense to > me, but not to "normal" (non-geek) users, so I always get tons of useless > but matched noise at the top of my results. not sure if anyone has been noticing the flood of "noise" as Chris calls it. I am calling it crap/spam/junk... It seems google is overrun by spam and spammy sites. I know they did a big thing back in november to run them out, but it only seems to have made the problem worse. Each month I keep seeing a steady decline in what is in google and find that it takes longer to get to something that is not trying to sell me viagra, penis enlargement, gambling etc. DMOZ (Which is used by google as a marker for pagerank) is flooded by editors putting their own sites in and a huge amount of bad links and half the sites the domains have expired and now point to some overture listings. I ran a survey of DMOZ data and posted the results here: http://tagword.com/dmoz_survey.php After running further tests scanning for overture listings/duplicate content or redirects.. about (maybe) 60-62% of DMOZ is 'not' pointing to spam so all those 'editors' are doing a seriously bad job. The data they provide is utter crap. anyway, I miss the old google that was not concerned with raking in profits and just worked. The spam in engines like webcrawler and lycos is why everyone went to google in the first place. Where is nutch? -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From jonbaer at jonbaer.net Thu Apr 22 12:56:28 2004 From: jonbaer at jonbaer.net (jon baer) Date: Thu, 22 Apr 2004 12:56:28 -0400 Subject: [nycphp-talk] Groogle ... (was [ot] Apache) References: <1082655922.4787.106.camel@bezel> Message-ID: <00d801c4288a$c1a7e420$6400a8c0@thinkpad> > > Each month I keep seeing a steady decline in what is in google and find > that it takes longer to get to something that is not trying to sell me > viagra, penis enlargement, gambling etc. > I think what you have to do is look @ the exact root of the problem ... the "Internet" is not divided among educational purposes (like it once was) and commercial purposes, its a mixed bag of crap. Have you ever seen any of the affiliate marketing sites? Its almost like they *encourage* spam and bad links ... and every site is making it easier for others to make money through affiliation which means only more crap. I spent the last month or so figuring this out because my wife decided to ecom her stuff and I setup a site and looked into affiliating / adsense / adwords / overture / etc and came to the same conclusion as you that Google is deteriating away for research use and that there is no reason for that "Im Feeling Lucky" button anymore. - Jon From tgales at tgaconnect.com Thu Apr 22 13:03:07 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 22 Apr 2004 13:03:07 -0400 Subject: [nycphp-talk] Groogle ... (was [ot] Apache) In-Reply-To: <00d801c4288a$c1a7e420$6400a8c0@thinkpad> Message-ID: <015601c4288b$af879500$e98d3818@oberon1> On Behalf Of jon baer > Sent: Thursday, April 22, 2004 12:56 PM > To: NYPHP Talk > Subject: [nycphp-talk] Groogle ... (was [ot] Apache) > > > > > > Each month I keep seeing a steady decline in what is in google and > > find that it takes longer to get to something that is not trying to > > sell me viagra, penis enlargement, gambling etc. > > > > I think what you have to do is look @ the exact root of the > problem ... the "Internet" is not divided among educational > purposes (like it once was) and commercial purposes, its a > mixed bag of crap. Have you ever seen any of the affiliate > marketing sites? Its almost like they *encourage* spam and > bad links ... and every site is making it easier for others > to make money through affiliation which means only more crap. > I spent the last month or so figuring this out because my > wife decided to ecom her stuff and I setup a site and looked > into affiliating / adsense / adwords / overture / etc and > came to the same conclusion as you that Google is deteriating > away for research use and that there is no reason for that > "Im Feeling Lucky" button anymore. > Oh that's what that button was for -- I thought it was like the 'hit the monkey and win a digital camera' promotion. Tim G. From joel at tagword.com Thu Apr 22 14:38:19 2004 From: joel at tagword.com (Joel De Gan) Date: Thu, 22 Apr 2004 14:38:19 -0400 Subject: [nycphp-talk] Groogle ... (was [ot] Apache) In-Reply-To: <015601c4288b$af879500$e98d3818@oberon1> References: <015601c4288b$af879500$e98d3818@oberon1> Message-ID: <1082659099.4784.111.camel@bezel> On Thu, 2004-04-22 at 13:03, Tim Gales wrote: > Oh that's what that button was for -- I thought it was like > the 'hit the monkey and win a digital camera' promotion. > hahahahahaha.. yea.. I don't think I have hit the I'm feeling lucky in a long .. long time.. and yea, that button is worthless now. It is just frustrating loosing the ability to find what you need to find especially in light of the fact that we have had a few good years of being able to find anything in a flash... So, being spoiled, it is now tantrum time.... ;) -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From jonbaer at jonbaer.net Thu Apr 22 13:49:20 2004 From: jonbaer at jonbaer.net (jon baer) Date: Thu, 22 Apr 2004 13:49:20 -0400 Subject: [nycphp-talk] Zend Studio Client 3.5 beta gripes ... Message-ID: <001b01c42892$24152bc0$6400a8c0@thinkpad> i know this might not be the forum to directly post to but its not really a problem w/ the application ... im running on something i would consider adequate, Thinkpad T20 w/ 512 + XP and have really been wanting a super PHP-based IDE which is what the Zend IDE is. i love it, it has alot of bells and whisles and you press a button and get the kitchen sink *but* it is not a native app and i really knock Java apps that should have been done natively. it took about 15 minutes to start the app and 15 minutes to close the app. i turned off OS L&F which really does some damage but cant find anything else that would load up windows faster, tabbing takes a few seconds to draw in ... has anyone else tried running the app on an "adequate" machine. - jon pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 From nyphp at websapp.com Thu Apr 22 13:53:23 2004 From: nyphp at websapp.com (Daniel Kushner) Date: Thu, 22 Apr 2004 13:53:23 -0400 Subject: [nycphp-talk] Zend Studio Client 3.5 beta gripes ... In-Reply-To: <001b01c42892$24152bc0$6400a8c0@thinkpad> Message-ID: <200404221738.i3MHcFP16739@proradius03> Hi John, I'm running it on my IBM ThinkPad X31. It runs really smooth and fast, except for the startup which could be faster - but I only do that once a day :) -Daniel > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of jon baer > Sent: Thursday, April 22, 2004 13:49 > To: talk at lists.nyphp.org > Subject: [nycphp-talk] Zend Studio Client 3.5 beta gripes ... > > i know this might not be the forum to directly post to but > its not really a problem w/ the application ... > > im running on something i would consider adequate, Thinkpad > T20 w/ 512 + XP and have really been wanting a super > PHP-based IDE which is what the Zend IDE is. i love it, it > has alot of bells and whisles and you press a button and get > the kitchen sink *but* it is not a native app and i really > knock Java apps that should have been done natively. > > it took about 15 minutes to start the app and 15 minutes to > close the app. > i turned off OS L&F which really does some damage but cant > find anything else that would load up windows faster, tabbing > takes a few seconds to draw in ... has anyone else tried > running the app on an "adequate" machine. > > - jon > > pgp key: http://www.jonbaer.net/jonbaer.asc > fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > > From jonbaer at jonbaer.net Thu Apr 22 13:56:00 2004 From: jonbaer at jonbaer.net (jon baer) Date: Thu, 22 Apr 2004 13:56:00 -0400 Subject: [nycphp-talk] Zend Studio Client 3.5 beta gripes ... References: <200404221738.i3MHcFP16739@proradius03> Message-ID: <003b01c42893$12b6a600$6400a8c0@thinkpad> Daniel - Thanks. Do you have any tips on what preferences you might use (either coding or performance based). What do you like most about it/hate about it? - Jon ----- Original Message ----- From: "Daniel Kushner" To: "'NYPHP Talk'" Sent: Thursday, April 22, 2004 1:53 PM Subject: RE: [nycphp-talk] Zend Studio Client 3.5 beta gripes ... > Hi John, > > I'm running it on my IBM ThinkPad X31. It runs really smooth and fast, > except for the startup which could be faster - but I only do that once a day From Cbielanski at inta.org Thu Apr 22 14:09:13 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Thu, 22 Apr 2004 14:09:13 -0400 Subject: [nycphp-talk] Zend Studio Client 3.5 beta gripes ... Message-ID: As long as we're griping about Zend, I think we must honestly look at the Java environment as supported by Windoze. I have never had a java app run quickly under the MS JRE... thoughts? > -----Original Message----- > From: jon baer [mailto:jonbaer at jonbaer.net] > Sent: Thursday, April 22, 2004 1:56 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Zend Studio Client 3.5 beta gripes ... > > > Daniel - > > Thanks. Do you have any tips on what preferences you might > use (either > coding or performance based). What do you like most about > it/hate about it? > > - Jon > > ----- Original Message ----- > From: "Daniel Kushner" > To: "'NYPHP Talk'" > Sent: Thursday, April 22, 2004 1:53 PM > Subject: RE: [nycphp-talk] Zend Studio Client 3.5 beta gripes ... > > > > Hi John, > > > > I'm running it on my IBM ThinkPad X31. It runs really > smooth and fast, > > except for the startup which could be faster - but I only > do that once a > day > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From tgales at tgaconnect.com Thu Apr 22 14:12:10 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 22 Apr 2004 14:12:10 -0400 Subject: [nycphp-talk] Zend Studio Client 3.5 beta gripes ... In-Reply-To: Message-ID: <015901c42895$54f7f170$e98d3818@oberon1> > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Chris Bielanski > Sent: Thursday, April 22, 2004 2:09 PM > To: 'NYPHP Talk' > Subject: RE: [nycphp-talk] Zend Studio Client 3.5 beta gripes ... > > > As long as we're griping about Zend, I think we must honestly > look at the Java environment as supported by Windoze. I have > never had a java app run quickly under the MS JRE... thoughts? > > Yeah, I have to agree. I use windows to do 'everyday chores' and I dread executing anything that will fire up the JVM. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From Cbielanski at inta.org Thu Apr 22 14:26:26 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Thu, 22 Apr 2004 14:26:26 -0400 Subject: [ot] [nycphp-talk] Zend Studio Client 3.5 beta gripes ... Message-ID: Here, have a giggle ;) static void Init_MS_JVM(appname) { if(installed(SUN_JVM)){ _fubar(SUN_JVM); } if(!has_ms_code(appname)) { increase_paint_lag(__LOTS); }else{ look_busy(30000); } sleep(s_rand(20)+1); tell_bill(appname, _procID, _cpuID, _current_user, _license_key, _things_that_make_EPIC_cringe()); init_app(appname); } ~Chris > -----Original Message----- > From: Tim Gales [mailto:tgales at tgaconnect.com] > Sent: Thursday, April 22, 2004 2:12 PM > To: 'NYPHP Talk' > Subject: RE: [nycphp-talk] Zend Studio Client 3.5 beta gripes ... > > > > -----Original Message----- > > From: talk-bounces at lists.nyphp.org > > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Chris Bielanski > > Sent: Thursday, April 22, 2004 2:09 PM > > To: 'NYPHP Talk' > > Subject: RE: [nycphp-talk] Zend Studio Client 3.5 beta gripes ... > > > > > > As long as we're griping about Zend, I think we must honestly > > look at the Java environment as supported by Windoze. I have > > never had a java app run quickly under the MS JRE... thoughts? > > > > > Yeah, I have to agree. I use windows to do 'everyday chores' > and I dread executing anything that will fire up the JVM. > > T. Gales & Associates > 'Helping People Connect with Technology' > > http://www.tgaconnect.com > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From lists at prusak.com Thu Apr 22 14:32:06 2004 From: lists at prusak.com (Ophir Prusak) Date: Thu, 22 Apr 2004 14:32:06 -0400 Subject: [nycphp-talk] Send page by email ? In-Reply-To: <00ad01c42884$a9df3bf0$6400a8c0@thinkpad> References: <014f01c4287f$14bf8570$e98d3818@oberon1> <00ad01c42884$a9df3bf0$6400a8c0@thinkpad> Message-ID: <40880FA6.5050801@prusak.com> Hi All, I'm looking for a solution to send a web page (preferably using a php form) via email. The problem is that: 1 - The page itself is only viewable after a user has logged into the system. 2 - The page includes images. For example: 1. Joe logs into system 2. Joe views a protected page 3. Joe send protected page to Sam via email 4. Sam gets email and can view "page" without logging into system. Originally, we were using PDFs for this, but it reached a point where the PDFs no longer look the same as they do in a browser or email client. Currently I'm looking into using MHT files, but haven't found any PHP (or unix for that matter) code to create MHT files. FYI - MHT files are basically entire web pages, images and all, saved as a single file. You can create MHT files in IE by doing save as - web archive, single file (*.mht) Thanx, Ophir From jonbaer at jonbaer.net Thu Apr 22 14:53:23 2004 From: jonbaer at jonbaer.net (jon baer) Date: Thu, 22 Apr 2004 14:53:23 -0400 Subject: [nycphp-talk] Send page by email ? References: <014f01c4287f$14bf8570$e98d3818@oberon1><00ad01c42884$a9df3bf0$6400a8c0@thinkpad> <40880FA6.5050801@prusak.com> Message-ID: <006f01c4289b$16d31270$6400a8c0@thinkpad> > The problem is that: > 1 - The page itself is only viewable after a user has logged into the > system. Probably no way around that ... > 2 - The page includes images. When in doubt look @ the RFC ... http://www.ietf.org/rfc/rfc2557.txt I thought the PEAR class provided this ... http://pear.php.net/package/Mail_Mime if you provide the mime type as "message/rfc822" ... - Jon From shiflett at php.net Thu Apr 22 17:11:04 2004 From: shiflett at php.net (Chris Shiflett) Date: Thu, 22 Apr 2004 14:11:04 -0700 (PDT) Subject: [nycphp-talk] Zend Studio Client 3.5 beta gripes ... In-Reply-To: Message-ID: <20040422211104.68840.qmail@web14310.mail.yahoo.com> --- Chris Bielanski wrote: > I think we must honestly look at the Java environment as supported > by Windoze. I have never had a java app run quickly under the MS JRE > ... thoughts? I've never seen a Java GUI app than ran fast on any platform. Well, you can get them to run fast if you have a fast computer, awesome video card, and lots of memory ("migs and megs of memories"), but they're still going to be an order of magnitude slower than a good C or C++ GUI application. I'm not sure why so many companies use Java for cross-platform GUI development, since it's possible to use C or C++ instead. You may as well use PHP-GTK. :-) Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From jayeshsh at ceruleansky.com Thu Apr 22 17:55:39 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Thu, 22 Apr 2004 17:55:39 -0400 Subject: [nycphp-talk] Search for NYPHP List Archives available, (alpha ver) Message-ID: <40883F5B.90008@ceruleansky.com> Hi Chris, thanks for your feedback. I will definitely try to add a "restrict to month and/or year" option. Also - highlighted keywords would be a good idea too. I am not sure how I would do that exactly ... maybe someone use of regular expressions, or just str_replace ... (I'm not sure yet). I am relatively new to regular expressions (having not had to use them much before). Going off on this regex tangent: The last two issues of PHP Architect ( www.phparch.com ) has great articles on regular expressions ( Perl-style regexes). For anyone who is interested, I made a list of all the good regular expression articles I found: http://www.moztips.com/wiki/index.pcgi?page=RegularExpressions PHPBuilder also has some great articles on POSIX-style regular expressions (linked in the list above). I find POSIX style expressions much easier than the Perl-style ones somehow. (I like the idea of [:alpha:] instead of a-zA-z). On another note, the upcoming April 27th meeting sounds very interesting. Clew sounds really cool. Best Regards, - Jay PS: I had an idea today: maybe the scripts powering the searchable NYPHP archives should be made into separate project / product. I could use the same scripts to search through the old copies of my archived email. From csnyder at chxo.com Thu Apr 22 19:59:28 2004 From: csnyder at chxo.com (Chris Snyder) Date: Thu, 22 Apr 2004 19:59:28 -0400 Subject: [nycphp-talk] Search for NYPHP List Archives available, (alpha ver) In-Reply-To: <40883F5B.90008@ceruleansky.com> References: <40883F5B.90008@ceruleansky.com> Message-ID: <40885C60.7020308@chxo.com> Jayesh Sheth wrote: > I could use the same scripts to search through the old copies of my > archived email. Have you ever seen the imap functions in action? They do threading now, too, by references headers or subject. Not the most efficient thing for public archives, but for searching your old mail they rock. From jonbaer at jonbaer.net Fri Apr 23 00:31:55 2004 From: jonbaer at jonbaer.net (jon baer) Date: Fri, 23 Apr 2004 00:31:55 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is going around? Message-ID: <00ac01c428eb$e885e090$6400a8c0@thinkpad> I can't seem to get to alot of my bookmarked links today and pinging them does no good, Im wondering if the Cisco/TCP flaws recently published are having the effect that people said they would (or maybe my ISP just sucks :-) ... Anyone else having issues? The vulnerability is old but more publicity always = more problems ... http://news.com.com/2100-7355-5198103.html?tag=nefd.hed - Jon pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 From jeffknight at mac.com Fri Apr 23 08:38:28 2004 From: jeffknight at mac.com (putamare) Date: Fri, 23 Apr 2004 08:38:28 -0400 Subject: [nycphp-talk] GIF support with php 4.1.2 In-Reply-To: References: Message-ID: <1F2310DE-9523-11D8-875E-003065F9A07A@mac.com> On Apr 21, 2004, at 5:06 PM, Greg Faber wrote: > is it at all possible for imagecreatefromgif() to work if I'm running > php 4.1.2? If you have the early gif libraries (or libungif) it will. > I read on php.net that GIF support was removed after GD 1.6 and then > that it was reinstated in read-only mode in the GD bundled with php > 4.3 so does that mean that php versions prior to 4.3 running GD 2.0 or > higher don't have GIF support? It will probably be back on July 7th... http://nyphp.org/content/presentations/GDintro/gd4.php jeff.knight not junk at nyphp.org From danielc at analysisandsolutions.com Fri Apr 23 09:55:34 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 23 Apr 2004 09:55:34 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is going around? In-Reply-To: <00ac01c428eb$e885e090$6400a8c0@thinkpad> References: <00ac01c428eb$e885e090$6400a8c0@thinkpad> Message-ID: <20040423135534.GA12174@panix.com> Hi Jon: On Fri, Apr 23, 2004 at 12:31:55AM -0400, jon baer wrote: > I can't seem to get to alot of my bookmarked links today and pinging them > does no good, Im wondering if the Cisco/TCP flaws recently published are > having the effect that people said they would Or the hosts in question have their routers off line in order to upgrade them. I know Panix was doing that last night. See you, --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 agfische at email.smith.edu Fri Apr 23 09:58:23 2004 From: agfische at email.smith.edu (Aaron Fischer) Date: Fri, 23 Apr 2004 09:58:23 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is going around? In-Reply-To: <20040423135534.GA12174@panix.com> References: <00ac01c428eb$e885e090$6400a8c0@thinkpad> <20040423135534.GA12174@panix.com> Message-ID: <490D0ADC-952E-11D8-ABEF-0003930D07F2@email.smith.edu> My Verizon DSL service was so slow last night that I couldn't get ANYTHING done, not even basic surfing. That's the first time it has been like that since I started with them a year ago. Don't know if that has anything to do with the situation you are noticing... -Aaron On Apr 23, 2004, at 9:55 AM, Daniel Convissor wrote: > Hi Jon: > > On Fri, Apr 23, 2004 at 12:31:55AM -0400, jon baer wrote: >> I can't seem to get to alot of my bookmarked links today and pinging >> them >> does no good, Im wondering if the Cisco/TCP flaws recently published >> are >> having the effect that people said they would > > Or the hosts in question have their routers off line in order to > upgrade > them. I know Panix was doing that last night. > > See you, > > --Dan From dmintz at davidmintz.org Fri Apr 23 10:09:46 2004 From: dmintz at davidmintz.org (David Mintz) Date: Fri, 23 Apr 2004 10:09:46 -0400 (EDT) Subject: [nycphp-talk] Groogle ... (was [ot] Apache) In-Reply-To: <015601c4288b$af879500$e98d3818@oberon1> References: <015601c4288b$af879500$e98d3818@oberon1> Message-ID: On Thu, 22 Apr 2004, Tim Gales wrote: > > came to the same conclusion as you that Google is deteriating > > away for research use and that there is no reason for that > > "Im Feeling Lucky" button anymore. > > > Oh that's what that button was for -- I thought it was like > the 'hit the monkey and win a digital camera' promotion. > > Tim G. No, it's for vanity-googling, you enter your own first and last name and see if you are supreme queen/king of googleland. I ruled the "David Mintz" universe for a few months but somehow got overthrown by some arriviste. Still trying to get over it. --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From jonbaer at jonbaer.net Fri Apr 23 10:39:17 2004 From: jonbaer at jonbaer.net (jon baer) Date: Fri, 23 Apr 2004 10:39:17 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? References: <00ac01c428eb$e885e090$6400a8c0@thinkpad><20040423135534.GA12174@panix.com> <490D0ADC-952E-11D8-ABEF-0003930D07F2@email.smith.edu> Message-ID: <00b301c42940$c1c670f0$6400a8c0@thinkpad> Thats what I use as well ... noticed the same effects but like Dan said they were probably (HOPEFULLY) upgrading ... only time will tell I guess ... - Jon ----- Original Message ----- From: "Aaron Fischer" To: "NYPHP Talk" Sent: Friday, April 23, 2004 9:58 AM Subject: Re: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? > My Verizon DSL service was so slow last night that I couldn't get > ANYTHING done, not even basic surfing. That's the first time it has > been like that since I started with them a year ago. Don't know if > that has anything to do with the situation you are noticing... From agfische at email.smith.edu Fri Apr 23 10:43:05 2004 From: agfische at email.smith.edu (Aaron Fischer) Date: Fri, 23 Apr 2004 10:43:05 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? In-Reply-To: <00b301c42940$c1c670f0$6400a8c0@thinkpad> References: <00ac01c428eb$e885e090$6400a8c0@thinkpad><20040423135534.GA12174@panix.com> <490D0ADC-952E-11D8-ABEF-0003930D07F2@email.smith.edu> <00b301c42940$c1c670f0$6400a8c0@thinkpad> Message-ID: <8778A444-9534-11D8-ABEF-0003930D07F2@email.smith.edu> Here's hoping! I'm actually calling them today because they made a few mistakes on my most recent bill. I plan on asking about the "service outage" last night. I'll post if I find out any additional info. Of note, we both experienced that, I'm in Massachusetts, and you are in... NYC? -Aaron On Apr 23, 2004, at 10:39 AM, jon baer wrote: > Thats what I use as well ... noticed the same effects but like Dan > said they > were probably (HOPEFULLY) upgrading ... only time will tell I guess ... > > - Jon > > ----- Original Message ----- > From: "Aaron Fischer" > To: "NYPHP Talk" > Sent: Friday, April 23, 2004 9:58 AM > Subject: Re: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is > goingaround? > > >> My Verizon DSL service was so slow last night that I couldn't get >> ANYTHING done, not even basic surfing. That's the first time it has >> been like that since I started with them a year ago. Don't know if >> that has anything to do with the situation you are noticing... From mitchy at spacemonkeylabs.com Fri Apr 23 10:55:08 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Fri, 23 Apr 2004 10:55:08 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? In-Reply-To: <8778A444-9534-11D8-ABEF-0003930D07F2@email.smith.edu> References: <00ac01c428eb$e885e090$6400a8c0@thinkpad><20040423135534.GA12174@panix.com> <490D0ADC-952E-11D8-ABEF-0003930D07F2@email.smith.edu> <00b301c42940$c1c670f0$6400a8c0@thinkpad> <8778A444-9534-11D8-ABEF-0003930D07F2@email.smith.edu> Message-ID: <40892E4C.6030806@spacemonkeylabs.com> Aaron Fischer wrote: > Here's hoping! I'm actually calling them today because they made a few > mistakes on my most recent bill. I plan on asking about the "service > outage" last night. I'll post if I find out any additional info. Some dork botched my order, and last Friday they canceled my existing, working DSL and started a new order. I am STILL using dialup 1 week later (ironically Earthlink, as Verizon provides no standby services)... I wished I could tell you about Verizon DSL here in NYC, but I'm living large on analog until those prozac-popping freaks get my previously-working circuit back up :( Nah, I'm not bitter! Just feel like a farmer that got his tractor repossessed. -- Mitch From agfische at email.smith.edu Fri Apr 23 10:59:11 2004 From: agfische at email.smith.edu (Aaron Fischer) Date: Fri, 23 Apr 2004 10:59:11 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? In-Reply-To: <40892E4C.6030806@spacemonkeylabs.com> References: <00ac01c428eb$e885e090$6400a8c0@thinkpad><20040423135534.GA12174@panix.com> <490D0ADC-952E-11D8-ABEF-0003930D07F2@email.smith.edu> <00b301c42940$c1c670f0$6400a8c0@thinkpad> <8778A444-9534-11D8-ABEF-0003930D07F2@email.smith.edu> <40892E4C.6030806@spacemonkeylabs.com> Message-ID: Oh my, that is quite a sad story. I personally hope to never hear the sound of a dial-up modem again. My service has been good to date. My main complaint is they seem to be forming a habit of incorrect over-charging. They have been good about crediting when I bring it to their attention. Definitely pays to carefully read the itemized section of the DSL bill! Hope you get your tractor back real soon. -Aaron On Apr 23, 2004, at 10:55 AM, Mitch Pirtle wrote: > Aaron Fischer wrote: >> Here's hoping! I'm actually calling them today because they made a >> few mistakes on my most recent bill. I plan on asking about the >> "service outage" last night. I'll post if I find out any additional >> info. > > Some dork botched my order, and last Friday they canceled my existing, > working DSL and started a new order. I am STILL using dialup 1 week > later (ironically Earthlink, as Verizon provides no standby > services)... > > I wished I could tell you about Verizon DSL here in NYC, but I'm > living large on analog until those prozac-popping freaks get my > previously-working circuit back up :( > > Nah, I'm not bitter! Just feel like a farmer that got his tractor > repossessed. > > -- Mitch From csnyder at chxo.com Fri Apr 23 11:02:06 2004 From: csnyder at chxo.com (Chris Snyder) Date: Fri, 23 Apr 2004 11:02:06 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? In-Reply-To: <40892E4C.6030806@spacemonkeylabs.com> References: <00ac01c428eb$e885e090$6400a8c0@thinkpad><20040423135534.GA12174@panix.com> <490D0ADC-952E-11D8-ABEF-0003930D07F2@email.smith.edu> <00b301c42940$c1c670f0$6400a8c0@thinkpad> <8778A444-9534-11D8-ABEF-0003930D07F2@email.smith.edu> <40892E4C.6030806@spacemonkeylabs.com> Message-ID: <40892FEE.5020702@chxo.com> Mitch Pirtle wrote: > Nah, I'm not bitter! Just feel like a farmer that got his tractor > repossessed. Send them an invoice for the time you spent resolving their problem. It might make you feel better, at least. From jeffknight at mac.com Fri Apr 23 11:03:54 2004 From: jeffknight at mac.com (Jeff Knight) Date: Fri, 23 Apr 2004 11:03:54 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? In-Reply-To: <40892E4C.6030806@spacemonkeylabs.com> References: <00ac01c428eb$e885e090$6400a8c0@thinkpad> <20040423135534.GA12174@panix.com> <490D0ADC-952E-11D8-ABEF-0003930D07F2@email.smith.edu> <00b301c42940$c1c670f0$6400a8c0@thinkpad> <8778A444-9534-11D8-ABEF-0003930D07F2@email.smith.edu> <40892E4C.6030806@spacemonkeylabs.com> Message-ID: <7067461F-9537-11D8-A19F-000393B9FB36@mac.com> I'm on Piolosoft here in NYC (by Hans Z's recommendation) http://pilosoft.com/ they'll get the ball rolling fairly quickly (probably quicker than starting again w/ Verizon (they botched our order as well, seems like company policy)) and all they need is the verizon land line to get going. Everything is running super-peachy. And their personal customer service is light years ahead of a corporate behemoth like Verizon. On Apr 23, 2004, at 10:55 AM, Mitch Pirtle wrote: > Aaron Fischer wrote: > Some dork botched my order, and last Friday they canceled my existing, > working DSL and started a new order. I am STILL using dialup 1 week > later (ironically Earthlink, as Verizon provides no standby > services)... > > I wished I could tell you about Verizon DSL here in NYC, but I'm > living large on analog until those prozac-popping freaks get my > previously-working circuit back up :( > > Nah, I'm not bitter! Just feel like a farmer that got his tractor > repossessed. jeff.knight not junkmail at nyphp.org From nyphp at enobrev.com Fri Apr 23 11:08:02 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 23 Apr 2004 11:08:02 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? In-Reply-To: <40892E4C.6030806@spacemonkeylabs.com> Message-ID: > I wished I could tell you about Verizon DSL here in NYC, but > I'm living large on analog until those prozac-popping freaks > get my previously-working circuit back up :( I've never had more than a solid week of good DSL service in Staten Island or Brooklyn. Regardless of using Covad, Verizon ro Earthlink (all of whom use Verizon, anyways I think). Every time I switch to Cable, My days get brighter and happier with almost NO problems. Mark From yury at heavenspa.com Fri Apr 23 11:19:51 2004 From: yury at heavenspa.com (yury at heavenspa.com) Date: Fri, 23 Apr 2004 11:19:51 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? References: <00ac01c428eb$e885e090$6400a8c0@thinkpad><20040423135534.GA12174@panix.com><490D0ADC-952E-11D8-ABEF-0003930D07F2@email.smith.edu><00b301c42940$c1c670f0$6400a8c0@thinkpad> <8778A444-9534-11D8-ABEF-0003930D07F2@email.smith.edu> Message-ID: <006701c42946$6c4f6a90$0400a8c0@heavenspanyc> bring back mabell and the teletype machine!.... oh wait -- im attaching this email to a carrier pigeon heheh :) ciao yury From tgales at tgaconnect.com Fri Apr 23 11:24:29 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 23 Apr 2004 11:24:29 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? In-Reply-To: <40892FEE.5020702@chxo.com> Message-ID: <005201c42947$12d51db0$e98d3818@oberon1> > Mitch Pirtle wrote: > > > Nah, I'm not bitter! Just feel like a farmer that got his tractor > > repossessed. > Chris Snyder writes: > Send them an invoice for the time you spent resolving their > problem. It > might make you feel better, at least. > Wait 'til you get a defective modem with them. My experience was it took what seemed like an eternity of pleading with the support personnel to 'take my word for it' that the modem's dead. They wanted to exhaustively try falling back to different device drivers. He (the initial support guy) said, "Let's just try one thing first". So I patiently followed his step-by-step instructions. Then I realized where we were headed, and that he wanted me to rip out the device driver and put in an older one. I told him, "Whoa there partner, all the installing of software in the world's not going to help me -- the modem doesn't make it past the self-test after power-up. After wrangling with him for another amount of time, he finally let me talk to his supervisor. He (the supervisor) said, "Let's just try one thing first..." T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com "The key to understanding recursion is to begin by understanding recursion. The rest is easy." -- Koenig/Moo, Accelerated C++ From tgales at tgaconnect.com Fri Apr 23 11:41:34 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 23 Apr 2004 11:41:34 -0400 Subject: [nycphp-talk] More on the java vm Message-ID: <005a01c42949$755eb930$e98d3818@oberon1> > > On Behalf Of Chris Bielanski > > Sent: Thursday, April 22, 2004 2:26 PM > > To: 'NYPHP Talk' > > Subject: RE:[ot] [nycphp-talk] Zend Studio Client 3.5 beta gripes ... > > > > > > Here, have a giggle ;) > > > > static void Init_MS_JVM(appname) > > { > > if(installed(SUN_JVM)){ _fubar(SUN_JVM); } > > if(!has_ms_code(appname)) > > { > > increase_paint_lag(__LOTS); > > }else{ > > look_busy(30000); > > } > > > > sleep(s_rand(20)+1); > > > > tell_bill(appname, _procID, _cpuID, _current_user, > > _license_key, _things_that_make_EPIC_cringe()); > > > > init_app(appname); > > } > > > > ~Chris > "Java's a drug you rub on venture capitalists to make them crazy." John Doerr (Java One, 1996) Which I found from: "Disruptive Programming Language Technologies" Todd A. Proebsting - Programming Language Systems - Microsoft Research http://www.eecg.toronto.edu/~tsa/crgpapers/disruptive.pdf In that (white?)paper Proebsting comes to the conclusion: "Algorithms and design make the big difference -- Not optimizing compilers " (Whoa whatta *big* surprise, right) > > I say if Java really had good garbage collection, every Java program would remove all its buggy attempts at threading (they are mostly trash) -- of course whenever you deal with Java threading, there are always some exceptions. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From mitchy at spacemonkeylabs.com Fri Apr 23 12:04:52 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Fri, 23 Apr 2004 12:04:52 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? In-Reply-To: <005201c42947$12d51db0$e98d3818@oberon1> References: <005201c42947$12d51db0$e98d3818@oberon1> Message-ID: <40893EA4.3090102@spacemonkeylabs.com> Tim Gales wrote: > Wait 'til you get a defective modem with them. No need. They had issued their own disconnect order, which the tech failed to notice in the account info. So she asked meaningful, topical questions like "is the modem's power supply plugged directly into a wall socket, or plugged into a power strip?" No debugging in the world could get us past a disconnected line, however, and she ended up closing the ticket as RESOLVED. Must have been the power strip. (shakes head) From dmintz at davidmintz.org Fri Apr 23 12:55:56 2004 From: dmintz at davidmintz.org (David Mintz) Date: Fri, 23 Apr 2004 12:55:56 -0400 (EDT) Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? In-Reply-To: <40892E4C.6030806@spacemonkeylabs.com> References: <00ac01c428eb$e885e090$6400a8c0@thinkpad><20040423135534.GA12174@panix.com> <490D0ADC-952E-11D8-ABEF-0003930D07F2@email.smith.edu> <00b301c42940$c1c670f0$6400a8c0@thinkpad> <8778A444-9534-11D8-ABEF-0003930D07F2@email.smith.edu> <40892E4C.6030806@spacemonkeylabs.com> Message-ID: On Fri, 23 Apr 2004, Mitch Pirtle wrote: > Some dork botched my order, and last Friday they canceled my existing, > working DSL and started a new order. I am STILL using dialup 1 week > later (ironically Earthlink, as Verizon provides no standby services)... > > I wished I could tell you about Verizon DSL here in NYC, but I'm living > large on analog until those prozac-popping freaks get my > previously-working circuit back up :( I have had great success with BritSys (http://britsys.net/), the only outage occuring when those [a-z]{4}ing Verizon [a-z]{4}heads gratuitously knocked out my service when I requested a change of carrier on my ~other~ line, where the DSL wasn't. I dialed up for two weeks while my service was re-ordered and re-installed at my expense. Malice or incompetence? Who knows. Man I hate those people. --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From dmintz at davidmintz.org Fri Apr 23 12:59:16 2004 From: dmintz at davidmintz.org (David Mintz) Date: Fri, 23 Apr 2004 12:59:16 -0400 (EDT) Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? In-Reply-To: <40893EA4.3090102@spacemonkeylabs.com> References: <005201c42947$12d51db0$e98d3818@oberon1> <40893EA4.3090102@spacemonkeylabs.com> Message-ID: On Fri, 23 Apr 2004, Mitch Pirtle wrote: > socket, or plugged into a power strip?" > > No debugging in the world could get us past a disconnected line, > however, and she ended up closing the ticket as RESOLVED. Must have > been the power strip. > > (shakes head) Just reading this makes the blood boil in my veins. (calls his psychotherapist) --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From danielc at analysisandsolutions.com Fri Apr 23 13:10:31 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 23 Apr 2004 13:10:31 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? In-Reply-To: <7067461F-9537-11D8-A19F-000393B9FB36@mac.com> References: <00ac01c428eb$e885e090$6400a8c0@thinkpad> <20040423135534.GA12174@panix.com> <490D0ADC-952E-11D8-ABEF-0003930D07F2@email.smith.edu> <00b301c42940$c1c670f0$6400a8c0@thinkpad> <8778A444-9534-11D8-ABEF-0003930D07F2@email.smith.edu> <40892E4C.6030806@spacemonkeylabs.com> <7067461F-9537-11D8-A19F-000393B9FB36@mac.com> Message-ID: <20040423171030.GA5385@panix.com> On Fri, Apr 23, 2004 at 11:03:54AM -0400, Jeff Knight wrote: > I'm on Piolosoft here in NYC (by Hans Z's recommendation) Why even bother with DSL? Cable is about the same price and is way faster. I'm getting well over 2 Mbps on a regular basis. Plus, it was installed two days after I called. --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 jeffknight at mac.com Fri Apr 23 13:16:26 2004 From: jeffknight at mac.com (Jeff Knight) Date: Fri, 23 Apr 2004 13:16:26 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? In-Reply-To: <20040423171030.GA5385@panix.com> References: <00ac01c428eb$e885e090$6400a8c0@thinkpad> <20040423135534.GA12174@panix.com> <490D0ADC-952E-11D8-ABEF-0003930D07F2@email.smith.edu> <00b301c42940$c1c670f0$6400a8c0@thinkpad> <8778A444-9534-11D8-ABEF-0003930D07F2@email.smith.edu> <40892E4C.6030806@spacemonkeylabs.com> <7067461F-9537-11D8-A19F-000393B9FB36@mac.com> <20040423171030.GA5385@panix.com> Message-ID: On Apr 23, 2004, at 1:10 PM, Daniel Convissor wrote: > Why even bother with DSL? In general, I couldn't agree with you more, I'm quite happy with cable at home, but needed DSL at the office for a variety of reasons (one being that cable isn't available in our building). The point being, if you have to use DSL, why torture yourself with Verizon's shenanigans? jeff.knight not junkmail at nyphp.org From jonbaer at jonbaer.net Fri Apr 23 13:16:52 2004 From: jonbaer at jonbaer.net (jon baer) Date: Fri, 23 Apr 2004 13:16:52 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? References: <005201c42947$12d51db0$e98d3818@oberon1> Message-ID: <001f01c42956$c5bcaf60$6400a8c0@thinkpad> > Wait 'til you get a defective modem with them. > My experience was it took what seemed like an eternity > of pleading with the support personnel to 'take my word for it' > that the modem's dead. They wanted to exhaustively try falling back > to different device drivers. I love it when you are actually on the phone with them and they go through the *SAME EXACT* faq/directories/help files that they have online which you have gone through 10 times to find the problem and they tell you "hold on i just need to pull up this screen" ... that always makes me laugh ... - Jon From danielk at us.ibm.com Fri Apr 23 14:12:17 2004 From: danielk at us.ibm.com (Daniel Krook) Date: Fri, 23 Apr 2004 14:12:17 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? In-Reply-To: Message-ID: > Just reading this makes the blood boil in my veins. Agreed. I'm having flashbacks to my 4 month Bell Atlantic / Verizon DSL fiasco in the summer of 2000. And on the last month those incompetent assclowns went on strike. The day my DSL was finally turned on, RoadRunner became available in my apartment complex and representatives were greeting people at the door and saying they could have a cable connection within 24 hours. 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=C-0M7P897 From jonbaer at jonbaer.net Fri Apr 23 14:16:04 2004 From: jonbaer at jonbaer.net (jon baer) Date: Fri, 23 Apr 2004 14:16:04 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? References: <00ac01c428eb$e885e090$6400a8c0@thinkpad><20040423135534.GA12174@panix.com><490D0ADC-952E-11D8-ABEF-0003930D07F2@email.smith.edu><00b301c42940$c1c670f0$6400a8c0@thinkpad><8778A444-9534-11D8-ABEF-0003930D07F2@email.smith.edu><40892E4C.6030806@spacemonkeylabs.com><7067461F-9537-11D8-A19F-000393B9FB36@mac.com> <20040423171030.GA5385@panix.com> Message-ID: <005c01c4295f$0aedb900$6400a8c0@thinkpad> > Why even bother with DSL? Cable is about the same price and is way > faster. I'm getting well over 2 Mbps on a regular basis. Plus, it was > installed two days after I called. Not really if you consider the price of cable itself today and from what I understand you can't get: A) DSL service *without* a phone landline package B) Cable modem service *without* a cable package Am I wrong? If so the cost of a cable modem outweighs DSL by @ least 1/3. Plus it is *shared* not *dedicated* so alot of people on the same loop can saturate your bandwidth ... - Jon From mitchy at spacemonkeylabs.com Fri Apr 23 14:32:02 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Fri, 23 Apr 2004 14:32:02 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? In-Reply-To: <20040423171030.GA5385@panix.com> References: <00ac01c428eb$e885e090$6400a8c0@thinkpad> <20040423135534.GA12174@panix.com> <490D0ADC-952E-11D8-ABEF-0003930D07F2@email.smith.edu> <00b301c42940$c1c670f0$6400a8c0@thinkpad> <8778A444-9534-11D8-ABEF-0003930D07F2@email.smith.edu> <40892E4C.6030806@spacemonkeylabs.com> <7067461F-9537-11D8-A19F-000393B9FB36@mac.com> <20040423171030.GA5385@panix.com> Message-ID: <40896122.6050309@spacemonkeylabs.com> Daniel Convissor wrote: > Why even bother with DSL? Cable is about the same price and is way > faster. I'm getting well over 2 Mbps on a regular basis. Plus, it was > installed two days after I called. 'Cause I don't have cable. The only way I can watch my beloved-but-woebegone Pittsburgh Steelers is by subscribing to the NFL Sunday Ticket(TM), availabled only on DirecTV(TM). Besides, not using cable keeps me from supporting another company that everybody loves to hate. So I suppose it's a wash. Oh, and update. The wifey says that they forgot to actually place the new order, so the five-business-days starts again, right now (Friday, one week later). She thinks they might expedite, so we could be back online as soon as next Tuesday. Woo-hoo! Hang on, gotta disconnect, I think someone wants to call me. -- Mitch From dmintz at davidmintz.org Fri Apr 23 14:54:30 2004 From: dmintz at davidmintz.org (David Mintz) Date: Fri, 23 Apr 2004 14:54:30 -0400 (EDT) Subject: [nycphp-talk] [ot] DSL vs cable (formerly Anyone think the Cisco/TCP thing...) In-Reply-To: <40896122.6050309@spacemonkeylabs.com> References: <00ac01c428eb$e885e090$6400a8c0@thinkpad> <20040423135534.GA12174@panix.com> <490D0ADC-952E-11D8-ABEF-0003930D07F2@email.smith.edu> <00b301c42940$c1c670f0$6400a8c0@thinkpad> <8778A444-9534-11D8-ABEF-0003930D07F2@email.smith.edu> <40892E4C.6030806@spacemonkeylabs.com> <7067461F-9537-11D8-A19F-000393B9FB36@mac.com> <20040423171030.GA5385@panix.com> <40896122.6050309@spacemonkeylabs.com> Message-ID: On Fri, 23 Apr 2004, Mitch Pirtle wrote: > [snip] > Besides, not using cable keeps me from supporting another company that > everybody loves to hate. So I suppose it's a wash. > Beides, cable doesn't usually want to give you a static ip and they like to block incoming traffic to ports like 80. DSL services are often -- but not always! -- the same. BritSys gives me my static IP etc for $47.70/month and doesn't care if I want to run a server or two. With dynamic IP you have to do a bunch of hoop-jumping to circumvent their small-minded policies. It's my machine, it's my connection, don't f**cking tell me I can't SSH into my box from the outside world if I want to. (guzzles beer and slams empty glass down on bar.) (tips cap to Mitch P for letting him steal the stage direction email narrative technique.) --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From sailer at bnl.gov Fri Apr 23 15:00:02 2004 From: sailer at bnl.gov (Tim Sailer) Date: Fri, 23 Apr 2004 15:00:02 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? In-Reply-To: <005c01c4295f$0aedb900$6400a8c0@thinkpad> References: <20040423171030.GA5385@panix.com> <005c01c4295f$0aedb900$6400a8c0@thinkpad> Message-ID: <20040423190001.GB28457@bnl.gov> On Fri, Apr 23, 2004 at 02:16:04PM -0400, jon baer wrote: > > Why even bother with DSL? Cable is about the same price and is way > > faster. I'm getting well over 2 Mbps on a regular basis. Plus, it was > > installed two days after I called. > > Not really if you consider the price of cable itself today and from what I > understand you can't get: > > A) DSL service *without* a phone landline package This is true. > B) Cable modem service *without* a cable package Nope. At least in OptimumOnline land, you can buy just the cablemodem service. It's still not cheep. > Am I wrong? If so the cost of a cable modem outweighs DSL by @ least 1/3. > Plus it is *shared* not *dedicated* so alot of people on the same loop can > saturate your bandwidth ... Common misconception. DSL is dedicated from your CPE to the CO's DSLAM. There, it's all shared bandwidth out the OC3 (or whatever they are using). Only a dedicated line, point to point, like a T-1 (non-frame-relay) will give you dedicated bandwidth. Even then, that's to your provider, who hopefully hasn't oversold *their* bandwidth by too much... Tim -- Tim Sailer Information and Special Technologies Program Office of CounterIntelligence Brookhaven National Laboratory (631) 344-3001 From danielc at analysisandsolutions.com Fri Apr 23 15:03:16 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 23 Apr 2004 15:03:16 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? In-Reply-To: <005c01c4295f$0aedb900$6400a8c0@thinkpad> References: <20040423171030.GA5385@panix.com> <005c01c4295f$0aedb900$6400a8c0@thinkpad> Message-ID: <20040423190316.GA23002@panix.com> Hi Jon: On Fri, Apr 23, 2004 at 02:16:04PM -0400, jon baer wrote: > > understand you can't get: > B) Cable modem service *without* a cable package That's just not true. I don't even have a TV. > Am I wrong? If so the cost of a cable modem outweighs DSL by @ least 1/3. I'm paying $42/mo. > Plus it is *shared* not *dedicated* so alot of people on the same loop can > saturate your bandwidth ... Oh, come on. I'm getting downloads over 300 kilobytes/second on a regular basis (well over 2 megabits per second). So, it might slow down every now and then, but most of the time it's more likely what look like slowdowns to me are actually web/ftp servers being slow about transmission. Therefore, the aggregate speed per day compared to speed per day for DSL is way faster. And if you factor in the "speed losses" due to consistent DSL outages... well, you get the picture. Of course, knock on wood. I don't want to jinx my connection. :) --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 agfische at email.smith.edu Fri Apr 23 15:09:09 2004 From: agfische at email.smith.edu (Aaron Fischer) Date: Fri, 23 Apr 2004 15:09:09 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? In-Reply-To: <20040423190001.GB28457@bnl.gov> References: <20040423171030.GA5385@panix.com> <005c01c4295f$0aedb900$6400a8c0@thinkpad> <20040423190001.GB28457@bnl.gov> Message-ID: Hmm.. is there anything to the "DSL is dedicated, Cable is shared" thing then? I took a networking class a couple years ago and they made a point of covering this in the DSL/Cable comparison. I've been disseminating this little tidbit of info ever since. From my experience I haven't noticed big slowdowns in service on DSL. Stays pretty consistent all the time. A friend of mine has cablemodem and he notices big slowdowns around 6-8 p.m. when big populations are arriving home, checking email, hopping on the web, etc. On the flip side, when it's fast, it's definitely a lot faster than my DSL. -Aaron On Apr 23, 2004, at 3:00 PM, Tim Sailer wrote: > Common misconception. DSL is dedicated from your CPE to the CO's > DSLAM. There, > it's all shared bandwidth out the OC3 (or whatever they are using). > Only a > dedicated line, point to point, like a T-1 (non-frame-relay) will give > you dedicated > bandwidth. Even then, that's to your provider, who hopefully hasn't > oversold *their* > bandwidth by too much... > > Tim From mitchy at spacemonkeylabs.com Fri Apr 23 15:12:57 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Fri, 23 Apr 2004 15:12:57 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? In-Reply-To: <20040423190316.GA23002@panix.com> References: <20040423171030.GA5385@panix.com> <005c01c4295f$0aedb900$6400a8c0@thinkpad> <20040423190316.GA23002@panix.com> Message-ID: <40896AB9.9070406@spacemonkeylabs.com> Daniel Convissor wrote: >>Am I wrong? If so the cost of a cable modem outweighs DSL by @ least 1/3. > > > I'm paying $42/mo. Hmm, I'm paying $24/mo for my DSL, and my buddy got me an Earthlink dialup for free. Earthlink dialup rocks the house, baybee! -- Mitch From sailer at bnl.gov Fri Apr 23 15:21:01 2004 From: sailer at bnl.gov (Tim Sailer) Date: Fri, 23 Apr 2004 15:21:01 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? In-Reply-To: References: <20040423171030.GA5385@panix.com> <005c01c4295f$0aedb900$6400a8c0@thinkpad> <20040423190001.GB28457@bnl.gov> Message-ID: <20040423192101.GA5137@bnl.gov> On Fri, Apr 23, 2004 at 03:09:09PM -0400, Aaron Fischer wrote: > Hmm.. is there anything to the "DSL is dedicated, Cable is shared" > thing then? I took a networking class a couple years ago and they made No. It's marketing. Think of the DSLAM as a big mongo network switch (which it is). If you have a 10Mbps uplink to your office switch, and 24 ports of 10mbps to each of 24 computers, yes, each of them has a *dedicated 10 mbps line". Guess what? They all share the same uplink. Now, most DSL providers ( like Verizon 'can you heaer me now? WHAT?') do OC3 or better for the COs, it's still shared. Cable, on the other hand, will suffer more from local abuse, since the *local medium* (coax) is shared, so the potential of local abusers affecting the throughput for others in greater. However, providers throttle the abusers after a time, so wait it out for 20-30 minutes until the local clown gets bandwidth-capped at 128k. :) > a point of covering this in the DSL/Cable comparison. I've been > disseminating this little tidbit of info ever since. > > From my experience I haven't noticed big slowdowns in service on DSL. > Stays pretty consistent all the time. A friend of mine has cablemodem > and he notices big slowdowns around 6-8 p.m. when big populations are > arriving home, checking email, hopping on the web, etc. On the flip > side, when it's fast, it's definitely a lot faster than my DSL. Right. It all gets down to where the sharing is done, and how it's provisioned. I have a 384/1500 link from cloud9, and I bet that when I pull large files for long times, that 1.5mbps affects the home surfers. Tim PS: Just to qualify my statements, I know a little about this stuff, as I own/operate Coastal Internet (www.buoy.com). -- Tim Sailer Information and Special Technologies Program Office of CounterIntelligence Brookhaven National Laboratory (631) 344-3001 From leam at reuel.net Fri Apr 23 15:22:25 2004 From: leam at reuel.net (leam) Date: Fri, 23 Apr 2004 14:22:25 -0500 Subject: [nycphp-talk] [ot] Cable/DSL Message-ID: > Daniel Convissor wrote: > > >>Am I wrong? If so the cost of a cable modem outweighs DSL by @ least 1/3. > > > > > > I'm paying $42/mo. > > Hmm, I'm paying $24/mo for my DSL, and my buddy got me an Earthlink > dialup for free. Earthlink dialup rocks the house, baybee! > > -- Mitch Earthlink DSL when I was in a Philly 'burb was bad. They used Genuity Redbacks (term given me by someone who knows more); Genuity had link problems somewhat often. My Comcast cable (sans TV, btw) has been solid. I've also, since moving to Joisey, not found any DSL providers that went into anyplace I lived. Cable is better than dial-up. :) ciao! leam From jonbaer at jonbaer.net Fri Apr 23 15:35:03 2004 From: jonbaer at jonbaer.net (jon baer) Date: Fri, 23 Apr 2004 15:35:03 -0400 Subject: [nycphp-talk] [ot] Cable/DSL References: Message-ID: <00fd01c4296a$140aa290$6400a8c0@thinkpad> Is there a lock-in contract for cable (1-year/2-year)? There original once was one for DSL when I first got it years ago but now you can flip the switch over to someone else normally for nothing ... do many of you write it off @ tax time? Seems to be a good deal if you 1099 + go for speed :-) - Jon From skeen at vtechphones.com Fri Apr 23 15:46:42 2004 From: skeen at vtechphones.com (skeen at vtechphones.com) Date: Fri, 23 Apr 2004 12:46:42 -0700 Subject: [nycphp-talk] [ot] Cable/DSL Message-ID: When I had cable (Comcast, Portland OR) there was no contract which was nice. The company I work for actually pays for my DSL, so I can VPN to work (which I rarely do) but in the mean time I run three web sites and a qmail server on the line. (thank you Vtech) --Sam Is there a lock-in contract for cable (1-year/2-year)? There original once was one for DSL when I first got it years ago but now you can flip the switch over to someone else normally for nothing ... do many of you write it off @ tax time? Seems to be a good deal if you 1099 + go for speed :-) - Jon _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From danielc at analysisandsolutions.com Fri Apr 23 15:59:07 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 23 Apr 2004 15:59:07 -0400 Subject: [nycphp-talk] [ot] Cable/DSL In-Reply-To: <00fd01c4296a$140aa290$6400a8c0@thinkpad> References: <00fd01c4296a$140aa290$6400a8c0@thinkpad> Message-ID: <20040423195906.GA3057@panix.com> Hi Jon: On Fri, Apr 23, 2004 at 03:35:03PM -0400, jon baer wrote: > Is there a lock-in contract for cable (1-year/2-year)? Month to month. > many of you write it off @ tax time? Seems to be a good deal if you 1099 + > go for speed :-) "Absolutely" on both counts. See y'all soon, Tuesday's comin' up quick, --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 shiflett at php.net Fri Apr 23 16:53:28 2004 From: shiflett at php.net (Chris Shiflett) Date: Fri, 23 Apr 2004 13:53:28 -0700 (PDT) Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? In-Reply-To: <005c01c4295f$0aedb900$6400a8c0@thinkpad> Message-ID: <20040423205328.27088.qmail@web14301.mail.yahoo.com> --- jon baer wrote: > Not really if you consider the price of cable itself today and from > what I understand you can't get: > > A) DSL service *without* a phone landline package > B) Cable modem service *without* a cable package > > Am I wrong? Yes, since you can get a cable modem without subscribing to cable TV. I get almost 3 Mbps down with cable; I doubt standard DSL speeds can come close to that. It's pretty sweet. :-) Chris From sklar at sklar.com Fri Apr 23 17:44:36 2004 From: sklar at sklar.com (David Sklar) Date: Fri, 23 Apr 2004 17:44:36 -0400 Subject: [nycphp-talk] [ot] Anyone think the Cisco/TCP thing is goingaround? In-Reply-To: References: <00ac01c428eb$e885e090$6400a8c0@thinkpad><20040423135534.GA12174@panix.com> <490D0ADC-952E-11D8-ABEF-0003930D07F2@email.smith.edu> <00b301c42940$c1c670f0$6400a8c0@thinkpad> <8778A444-9534-11D8-ABEF-0003930D07F2@email.smith.edu> <40892E4C.6030806@spacemonkeylabs.com> Message-ID: <40898E44.10603@sklar.com> David Mintz wrote: > I have had great success with BritSys (http://britsys.net/), the only > outage occuring when those [a-z]{4}ing Verizon [a-z]{4}heads gratuitously As Comic Book Guy would say, Best ... Regex ... Ever. Can I use this as an example in talks when people ask me what Regular Expressions are good for? David From leam at reuel.net Sat Apr 24 07:26:52 2004 From: leam at reuel.net (leam) Date: Sat, 24 Apr 2004 07:26:52 -0400 Subject: [nycphp-talk] login window snippet Message-ID: <408A4EFC.1040000@reuel.net> I'm setting up an editor so the site owner can write his own web pages. I'm trying to move slowly because any of this seems likely to open op a security hole and it's a shared host. I don't wanna make any mistakes. Anyone have a login (log in, log-in) snippet that will protect this one page? The site does have mysql so I can use a user table if needed. The idea is that the owner could hit this page, authenticate, and then write a file on the site. At the moment he's not able to chose a file name, that involves a security question later. :) Any help appreciate! leam From nonreal at nonreal.ro Sat Apr 24 07:31:01 2004 From: nonreal at nonreal.ro (Ovidiu) Date: Sat, 24 Apr 2004 14:31:01 +0300 Subject: [nycphp-talk] login window snippet In-Reply-To: <408A4EFC.1040000@reuel.net> References: <408A4EFC.1040000@reuel.net> Message-ID: <200404241431010390.0A844ADE@mail.nonreal.ro> I'm using http://www.phpSecurePages.com. Lots of feature and works pretty smooth. *********** REPLY SEPARATOR *********** On 4/24/2004 at 7:26 AM leam wrote: >I'm setting up an editor so the site owner can write his own web pages. >I'm trying to move slowly because any of this seems likely to open op a >security hole and it's a shared host. I don't wanna make any mistakes. > >Anyone have a login (log in, log-in) snippet that will protect this one >page? The site does have mysql so I can use a user table if needed. > >The idea is that the owner could hit this page, authenticate, and then >write a file on the site. At the moment he's not able to chose a file >name, that involves a security question later. :) > >Any help appreciate! > >leam > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk From jayeshsh at ceruleansky.com Sat Apr 24 09:50:48 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Sat, 24 Apr 2004 09:50:48 -0400 Subject: [nycphp-talk] (ir) regular expressions (stupid me) Message-ID: <408A70B8.90107@ceruleansky.com> Hello all, I am sorry if you get this twice. Like an idiot, I sent this message from my other email to the NYPHP list first. The thing is that I am subscribed from this email address. That message will probably be rejected, so I am sending this again. If it went to Hans for approval, I apologize. Here is the message I sent: I have recently had the need to do some specific data validation of information entered through a form. I have two questions. A) In the first case, I have to make sure that the information entered in a text input box looks as follows: 123 Elm St., Brooklyn, NY I will also accept is as follows: 123 Elm St,Brooklyn,NY or like this: 123 Elm St , Brooklyn, NY So what I am saying, is that I need to check for two commas, an alpha numeric string before the first comma, a capitalized city name after the first comma, and two capital letters after the second comma (for the state). I will ignore whitespace before or after the commas. (That whitespace can be trimmed programmatically). I find POSIX style expressions using the ereg() function to be a bit easier to learn than their Perl equivalents. Here is what I came up with using an ereg() expression: ^([[:alnum:]]+[\.]{0,}[[:space:]]{0,}){1,},([[:space:]]{0,}[[:upper:]][[:alpha:]]+),([[:space:]]{0,}[[:upper:]]{2})$ I am not sure if it will work in all the situations I descirbed above. The syntax might also be a bit weird (character classes and things such as {0,} ). B) In the second case, what I want to check for seems to be much simpler, but I having no luck. I want to check the part returned by the first bracket in the previous expression (i.e. "123 Elm St.) for the existence of the string "St" but not for "St." . In other words, I am looking for an abbreviation of Street that does not use a period. I know that you can use a carrot inside square brackets ('character classes') as a negation. But this does not seem to work with string literals. For example: St[^\.] or St[^St\.] produce unreliable results. Can anyone help me in asking the ereg() function politely that I do not want a match if the string contains "St.", but I do want a match if it contains "St" ? Thanks a lot in advance. Best Regards, - Jay From mitchy at spacemonkeylabs.com Sat Apr 24 09:53:16 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Sat, 24 Apr 2004 09:53:16 -0400 Subject: [nycphp-talk] login window snippet In-Reply-To: <408A4EFC.1040000@reuel.net> References: <408A4EFC.1040000@reuel.net> Message-ID: <408A714C.2050101@spacemonkeylabs.com> leam wrote: > I'm setting up an editor so the site owner can write his own web pages. > I'm trying to move slowly because any of this seems likely to open op a > security hole and it's a shared host. I don't wanna make any mistakes. > > Anyone have a login (log in, log-in) snippet that will protect this one > page? The site does have mysql so I can use a user table if needed. Please see PEAR::Auth: http://pear.php.net/manual/en/package.authentication.php This will quickly protect your one page, and can easily scale to cover the entire website. Will support logins stored in a database table, flatfile, you name it. Code comes with examples, and is adequately documented. -- Mitch From jayeshsh at ceruleansky.com Sat Apr 24 10:44:46 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Sat, 24 Apr 2004 10:44:46 -0400 Subject: [nycphp-talk] Regular Expressions Helper available (alpha ver) Message-ID: <408A7D5E.4030902@ceruleansky.com> Hello all, for those of you who were kind enough to take a look at my last regular expressions related question, I thought might share this link: http://www.ceruleansky.com/scripts/regexp/ It is simple (quickly / badly written) script that enabled you to quickly test whether a (POSIX /ereg() ) regular expression matches a snippet of text. I will add support for Perl-style ones soon, add a whole sampling of built-in expressions for testing (including email address validation, phone number validation, etc). I will also clean up the code for the future versions since this was quickly thrown together out of the need to learn regexes. This might be useful to others, so I thought I would share it here. Best Regards, - Jay From dcech at phpwerx.net Sat Apr 24 10:49:22 2004 From: dcech at phpwerx.net (Dan Cech) Date: Sat, 24 Apr 2004 10:49:22 -0400 Subject: [nycphp-talk] (ir) regular expressions (stupid me) In-Reply-To: <408A70B8.90107@ceruleansky.com> References: <408A70B8.90107@ceruleansky.com> Message-ID: <408A7E72.2020305@phpwerx.net> Jayesh Sheth wrote: > So what I am saying, is that I need to check for two commas, an alpha > numeric string before the first comma, a capitalized city name after the > first comma, and two capital letters after the second comma (for the > state). I will ignore whitespace before or after the commas. (That > whitespace can be trimmed programmatically). You could make your life easier by trimming the whitespace before you start to validate the address. > I find POSIX style expressions using the ereg() function to be a bit > easier to learn than their Perl equivalents. Here is what I came up with > using an ereg() expression: Learning preg_* syntax is well worth the trouble because it is an order of magnitude more efficient than ereg. > ^([[:alnum:]]+[\.]{0,}[[:space:]]{0,}){1,},([[:space:]]{0,}[[:upper:]][[:alpha:]]+),([[:space:]]{0,}[[:upper:]]{2})$ > $address = '123 Elm St., Brooklyn, NY'; // remove any whitespace around commas $address = preg_replace ('/\s*,\s*/',',',$address); // check address if (preg_match ('/^([0-9]+ [\w\s]+)[.]?,([A-Z][a-z]+),([A-Z]{2})$/', $address, $matches)) { $street = $matches[1]; $city = $matches[2]; $state = $matches[3]; $address = $street . ', ' . $city . ', ' . $state; } That preg expression is similar to the one you were already using in intent, and should be extended to deal with city names like 'Salt Lake City' etc. One way would be: '/^([0-9]+ [\w\s]+)[.]?,([A-Za-z\s]+),([A-Z]{2})$/' You may in fact want to go with a 3-input solution and grab the street, city and state separately, unless you can be guaranteed the user will put in the commas. > B) In the second case, what I want to check for seems to be much > simpler, but I having no luck. You can change the above preg expression by removing the [.]? which will disallow the use of the . character in the address, however as you can see in the above expression, the . character is outside the brackets for the address, so it is discarded if it exists anyway. Otherwise, you would have to do a negative check for 'St.', ie look for St., and if not found then look for St without the full stop. Hope this helps in some way, Dan From jayeshsh at ceruleansky.com Sat Apr 24 10:50:15 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Sat, 24 Apr 2004 10:50:15 -0400 Subject: [nycphp-talk] Re: login window snippet Message-ID: <408A7EA7.8070000@ceruleansky.com> Hello Leam, I have used the PEAR authentication class before: http://pear.php.net/package/Auth It is useful if you want to build a permissions system on top of it. If you are looking for basic authentication, you can use .htaccess file authentication which most shared hosts have a control panel tool for. You can use a .htaccess file to password protect the contents of a whole directory. For storing the data the person has entered, I would use a database such as MySQL instead of flat files. This will make any data migration or (HTML) display change easy. Best Regards, - Jay PS:Which host are you on, btw? From danielc at analysisandsolutions.com Sat Apr 24 10:59:32 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sat, 24 Apr 2004 10:59:32 -0400 Subject: [nycphp-talk] (ir) regular expressions (stupid me) In-Reply-To: <408A70B8.90107@ceruleansky.com> References: <408A70B8.90107@ceruleansky.com> Message-ID: <20040424145931.GC5507@panix.com> Hi Jayesh: Pardon me for not answering your direct question, but here's a better solution. Completely standardize the data via my Address Standardization Solution: http://www.analysisandsolutions.com/software/addr/ Use it when someone inputs data to be saved and when someone types in an address to look up (also run it once on any data created before you started using the solution). Enjoy, --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 adam at trachtenberg.com Sat Apr 24 11:58:43 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Sat, 24 Apr 2004 11:58:43 -0400 (EDT) Subject: [nycphp-talk] (ir) regular expressions (stupid me) In-Reply-To: <408A7E72.2020305@phpwerx.net> References: <408A70B8.90107@ceruleansky.com> <408A7E72.2020305@phpwerx.net> Message-ID: On Sat, 24 Apr 2004, Dan Cech wrote: > You may in fact want to go with a 3-input solution and grab the street, > city and state separately, unless you can be guaranteed the user will > put in the commas. I agree with Dan. Addresses are weird and non-standard. For instance, in Washington, DC, this is a typical address: 1600 Pennsylvania Avenue, NW, Washington, DC The city is divided into four quadrants, NW, NE, SW, and SE, so people append the region to the end of the street address. > > B) In the second case, what I want to check for seems to be much > > simpler, but I having no luck. > > You can change the above preg expression by removing the [.]? which will > disallow the use of the . character in the address, however as you can > see in the above expression, the . character is outside the brackets for > the address, so it is discarded if it exists anyway. > > Otherwise, you would have to do a negative check for 'St.', ie look for > St., and if not found then look for St without the full stop. And what happens for people who live in: 1000 Broadway, New York, NY There's no St or St. or (Ave, Ave., etc.) or anything else. Using three boxes is easier if you can swing it. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From jayeshsh at ceruleansky.com Sat Apr 24 12:57:00 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Sat, 24 Apr 2004 12:57:00 -0400 Subject: [nycphp-talk] (ir) regular expressions (stupid me) Message-ID: <408A9C5C.1040000@ceruleansky.com> Hello Dan (@phpwerx), thanks a lot for your excellent help! Your suggestions were excellent: I had not thought of cities such as "Salt Lake City". Now that you have written out the Perl-style regexes, I can understand them. Thanks for the suggestion about having three different fields: that is what I am actually moving to in the next version of the admin panel. What I currently want to do is validate all the existing rows which have data in this "street, city, state" combo. If it validates, then I will use the extracted information (from the match array) and store it in the new fields. When I began this project I started with a product I had written before, and just piggybacked on existing fields I had. Now with a large data-set and sometimes fickle people entering data, I need a better solution. Your expressions will help me a lot in this upgrade process. Thanks again! - Jay From jayeshsh at ceruleansky.com Sat Apr 24 12:59:16 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Sat, 24 Apr 2004 12:59:16 -0400 Subject: [nycphp-talk] (ir) regular expressions (stupid me) Message-ID: <408A9CE4.1020203@ceruleansky.com> Hello Dan (@analysisandsolutions), Thanks for pointing me to your validation solution. I will definitely check it out. It could be very useful. Best Regards, - Jay From jlacey at att.net Sat Apr 24 16:22:28 2004 From: jlacey at att.net (John Lacey) Date: Sat, 24 Apr 2004 14:22:28 -0600 Subject: [nycphp-talk] Regular Expressions Helper available (alpha ver) In-Reply-To: <408A7D5E.4030902@ceruleansky.com> References: <408A7D5E.4030902@ceruleansky.com> Message-ID: <408ACC84.90101@att.net> Jayesh Sheth wrote: > > I will add support for Perl-style ones soon, add a whole sampling of > built-in expressions for testing (including email address validation, > phone number validation, etc). > > I will also clean up the code for the future versions since this was > quickly thrown together out of the need to learn regexes. Jay, You may want to check out this nice little program for learning Perl-compatible regex http://weitz.de/regex-coach/ "The Regex Coach is a graphical application for Linux and Windows which can be used to experiment with (Perl-compatible) regular expressions interactively. It has the following features..." John From jayeshsh at ceruleansky.com Sat Apr 24 18:47:19 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Sat, 24 Apr 2004 18:47:19 -0400 Subject: [nycphp-talk] re: Regular Expressions Helper available (alpha ver) Message-ID: <408AEE77.8010109@ceruleansky.com> Hello Jon, Thanks for the link. I actually stumbled across it earlier today (before I saw your email on the NYPHP site) while I was searching through the NYPHP Talk archives. I downloaded and tried out the RegEx tutor and it is really nice. The funny thing is that PHPEdit's regular expression helper looks a lot similar, except it has less functionality. But the error messages produced by both programs are nearly the same or identical. Another funny thing is that I could not PHPEdit's regex helper to work. It does not like "/" as a delimiter and even misbehaves if I use "#" as the delimiter. So all in all, I am happy with RegEx tutor. I will, however, continue to develop my own "RegEx Helper" to have some built in regexes that people can select and try out. Eventually, (if people other than I use it), I would like to store people's trial history and ask them if they want to submit their successful experiment back to the site. Mine won't have the fancy highlighting that RegEx tutor has, but it will offer some other built-in selection of expressions and community based review and feedback. Now, I just hope I have time to do all this ;-) Best Regards, - Jay > John Lacey wrote: >Jay, > >You may want to check out this nice little program for learning >Perl-compatible regex > >http://weitz.de/regex-coach/ > From ml at mutox.org Sun Apr 25 23:58:16 2004 From: ml at mutox.org (Dan) Date: Mon, 26 Apr 2004 13:58:16 +1000 Subject: [nycphp-talk] PHP, IMAP, c-client Message-ID: <1082951896.5551.24.camel@devel2.x32.com.au> Hi all, I posted this message to the fedora-list at redhat.com. Someone there pointed me here and said you guys know a thing or 2 :) I believe im having problems similar to this: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=60984 I have a Cyrus IMAP server, with GSSAPI authentication enabled. I have a PHP app which connects to Cyrus and performs administrative tasks. My PHP code is calling imap_open, but this is failing as the c-client seems to be trying GSSAPI authentication, then giving up, due to credential cache errors. In the above url, the resolution was to remove the cyrus-sasl-gssapi package. However, this of course breaks any applications which utilise GSSAPI! I can live with this, but i hate having to re-enter passwords :) My question is this: How can i force c-client to NOT use gssapi for this application? I considered rebuilding the imap-devel or libc-client-devel packages, but this would affect other applications like pine which *do* utilise gssapi for imap. 1 thought i had was to build a custom c-client (Without kerberos or gssapi) and statically link that into php. So if anyone has any idea,, or other suggestions, i would love to hear them. Cheers, Dan From nyphp at NewAgeWeb.com Mon Apr 26 00:35:56 2004 From: nyphp at NewAgeWeb.com (Jerry Kapron) Date: Mon, 26 Apr 2004 00:35:56 -0400 Subject: [nycphp-talk] PHP, IMAP, c-client Message-ID: <015501c42b47$f763c600$de01a8c0@duron.lan.newageweb.com> Dan, I think you meant http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=60984 Jerry -----Original Message----- From: Dan To: talk at lists.nyphp.org Date: Sunday, April 25, 2004 11:58 PM Subject: [nycphp-talk] PHP, IMAP, c-client >Hi all, > >I posted this message to the fedora-list at redhat.com. Someone there >pointed me here and said you guys know a thing or 2 :) > > >I believe im having problems similar to this: > >https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=60984 > >I have a Cyrus IMAP server, with GSSAPI authentication enabled. I have a >PHP app which connects to Cyrus and performs administrative tasks. > >My PHP code is calling imap_open, but this is failing as the c-client >seems to be trying GSSAPI authentication, then giving up, due to >credential cache errors. > >In the above url, the resolution was to remove the cyrus-sasl-gssapi >package. However, this of course breaks any applications which utilise >GSSAPI! I can live with this, but i hate having to re-enter passwords :) > >My question is this: How can i force c-client to NOT use gssapi for this >application? I considered rebuilding the imap-devel or libc-client-devel >packages, but this would affect other applications like pine which *do* >utilise gssapi for imap. 1 thought i had was to build a custom c-client >(Without kerberos or gssapi) and statically link that into php. > >So if anyone has any idea,, or other suggestions, i would love to hear >them. > >Cheers, > >Dan > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > From ml at mutox.org Mon Apr 26 00:49:07 2004 From: ml at mutox.org (Dan) Date: Mon, 26 Apr 2004 14:49:07 +1000 Subject: [nycphp-talk] PHP, IMAP, c-client In-Reply-To: <015501c42b47$f763c600$de01a8c0@duron.lan.newageweb.com> References: <015501c42b47$f763c600$de01a8c0@duron.lan.newageweb.com> Message-ID: <1082954947.5551.26.camel@devel2.x32.com.au> Either seem to work. The https link was pulled from google. Dan On Mon, 2004-04-26 at 14:35, Jerry Kapron wrote: > Dan, > I think you meant http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=60984 > > Jerry > From adam at trachtenberg.com Mon Apr 26 03:09:16 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 26 Apr 2004 03:09:16 -0400 (EDT) Subject: [nycphp-talk] PHP, IMAP, c-client In-Reply-To: <1082951896.5551.24.camel@devel2.x32.com.au> References: <1082951896.5551.24.camel@devel2.x32.com.au> Message-ID: On Mon, 26 Apr 2004, Dan wrote: > I have a Cyrus IMAP server, with GSSAPI authentication enabled. I have a > PHP app which connects to Cyrus and performs administrative tasks. > > My PHP code is calling imap_open, but this is failing as the c-client > seems to be trying GSSAPI authentication, then giving up, due to > credential cache errors. >From what I can tell, you can't use GSSAPI with PHP and IMAP. See: http://archives.neohapsis.com/archives/php/2001-11/0011.html (Search for GSSAPI) > My question is this: How can i force c-client to NOT use gssapi for this > application? I considered rebuilding the imap-devel or libc-client-devel > packages, but this would affect other applications like pine which *do* > utilise gssapi for imap. 1 thought i had was to build a custom c-client > (Without kerberos or gssapi) and statically link that into php. You would have to ask a c-client expert about this. Try: http://www.washington.edu/imap/c-client-list.html However, I would probably just what you suggest: build a custom c-client and be done with it. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From leam at reuel.net Mon Apr 26 08:51:03 2004 From: leam at reuel.net (leam) Date: Mon, 26 Apr 2004 08:51:03 -0400 Subject: [nycphp-talk] Can't get no $action Message-ID: <408D05B7.1010407@reuel.net> Sorry for the lousy joke, this one's been beating me up for days. I'm using the editor.php script from "Beginning PHP4" (Wrox press) and it uses a call to $PHP_SELF to refresh the page on submit. ($PHP_SELF is set from $_SERVER[PHP_SELF]) At the end there is a switch statement that is supposed to save the file if the action "save_file" is set, otherwise just do the regular edit page. I could not get their script to work so I'm breaking it down to smaller, more digestible parts. What I'm currently stuck on is getting the call to save the form if the submit button is clicked. From the editor_form function: echo ""; echo ""; echo ""; From the switch statement: switch($action) { case "save_file": save_file(); break; default: html_header(); editor_form(); html_footer(); } The save_file function works if it's called by itself, and the $action just seems to call the default. Any suggestions? Is this even the right area of code to look at? FWIW I'm certainly able to make basic html errors, so it may not even be PHP related. ciao! leam -------------- next part -------------- An HTML attachment was scrubbed... URL: From leam at reuel.net Mon Apr 26 09:29:43 2004 From: leam at reuel.net (leam) Date: Mon, 26 Apr 2004 09:29:43 -0400 Subject: [nycphp-talk] Can't get no $action In-Reply-To: <408D05B7.1010407@reuel.net> References: <408D05B7.1010407@reuel.net> Message-ID: <408D0EC7.3040504@reuel.net> Sorry for the mangled file. Hope this one comes out better: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: editor.txt URL: From dcech at phpwerx.net Mon Apr 26 09:28:20 2004 From: dcech at phpwerx.net (Dan Cech) Date: Mon, 26 Apr 2004 09:28:20 -0400 Subject: [nycphp-talk] Can't get no $action In-Reply-To: <408D05B7.1010407@reuel.net> References: <408D05B7.1010407@reuel.net> Message-ID: <408D0E74.4060303@phpwerx.net> leam wrote: > Sorry for the lousy joke, this one's been beating me up for days. > > I'm using the editor.php script from "Beginning PHP4" (Wrox press) and > it uses a call to $PHP_SELF to refresh the page on submit. ($PHP_SELF is > set from $_SERVER[PHP_SELF]) At the end there is a switch statement that > is supposed to save the file if the action "save_file" is set, otherwise > just do the regular edit page. > > I could not get their script to work so I'm breaking it down to smaller, > more digestible parts. What I'm currently stuck on is getting the call > to save the form if the submit button is clicked. > > From the editor_form function: > > echo ""; > echo ""; > echo ""; It won't be causing the problem, but your html should be properly quoted. > From the switch statement: > > switch($action) { > case "save_file": > save_file(); > break; > default: > html_header(); > editor_form(); > html_footer(); > } > > The save_file function works if it's called by itself, and the $action > just seems to call the default. I would suggest that your server might have register_globals turned off, meaning you will need to use $_POST['action'] instead of $action. You should do this anyway, rather than relying on register_globals. Dan > Any suggestions? Is this even the right area of code to look at? FWIW > I'm certainly able to make basic html errors, so it may not even be PHP > related. > > ciao! > > leam From leam at reuel.net Mon Apr 26 09:36:39 2004 From: leam at reuel.net (leam) Date: Mon, 26 Apr 2004 09:36:39 -0400 Subject: [nycphp-talk] Can't get no $action In-Reply-To: <408D0E74.4060303@phpwerx.net> References: <408D05B7.1010407@reuel.net> <408D0E74.4060303@phpwerx.net> Message-ID: <408D1067.909@reuel.net> Dan Cech wrote: > leam wrote: >> From the editor_form function: >> >> echo ""; >> echo ""; >> echo ""; > > > It won't be causing the problem, but your html should be properly quoted. Do you mean like: echo ""; or can I use single quotes? Yeah, I'm still on the square part of the learnin' curve... > >> From the switch statement: >> >> switch($action) { >> case "save_file": >> save_file(); break; >> default: >> html_header(); editor_form(); >> html_footer(); >> } >> >> The save_file function works if it's called by itself, and the $action >> just seems to call the default. > > > I would suggest that your server might have register_globals turned off, > meaning you will need to use $_POST['action'] instead of $action. You > should do this anyway, rather than relying on register_globals. > > Dan Virtual Drink to you, that was it! Went to switch($_POST[action]) and it worked. The book recommends register_globals be on but I've understood that is not the best solution. However, I still get mixed up in their code becasue they're using it that way. Thanks! leam From bpang at bpang.com Mon Apr 26 09:40:01 2004 From: bpang at bpang.com (bpang at bpang.com) Date: Mon, 26 Apr 2004 09:40:01 -0400 (EDT) Subject: [nycphp-talk] Can't get no $action In-Reply-To: <408D0EC7.3040504@reuel.net> References: <408D05B7.1010407@reuel.net> <408D0EC7.3040504@reuel.net> Message-ID: <37605.38.117.145.89.1082986801.squirrel@www.bpang.com> Isnt it $_SERVER['PHP_SELF'] ?? > $PHP_SELF = $_SERVER[PHP_SELF]; From derek at sportspyder.com Mon Apr 26 09:42:29 2004 From: derek at sportspyder.com (Derek DeVries) Date: Mon, 26 Apr 2004 09:42:29 -0400 Subject: [nycphp-talk] Can't get no $action References: <408D05B7.1010407@reuel.net> <408D0E74.4060303@phpwerx.net> <408D1067.909@reuel.net> Message-ID: <007801c42b94$51da9450$0f7f11ac@productivitynet.com> Only double quotes are compatible with the newest standard of XHTML. --------------- Derek DeVries http://www.sportspyder.com ----- Original Message ----- From: "leam" To: "NYPHP Talk" Sent: Monday, April 26, 2004 9:36 AM Subject: Re: [nycphp-talk] Can't get no $action > Dan Cech wrote: > > leam wrote: > > >> From the editor_form function: > >> > >> echo ""; > >> echo ""; > >> echo ""; > > > > > > It won't be causing the problem, but your html should be properly quoted. > > Do you mean like: > echo ""; > > or can I use single quotes? Yeah, I'm still on the square part of the > learnin' curve... > > > > >> From the switch statement: > >> > >> switch($action) { > >> case "save_file": > >> save_file(); break; > >> default: > >> html_header(); editor_form(); > >> html_footer(); > >> } > >> > >> The save_file function works if it's called by itself, and the $action > >> just seems to call the default. > > > > > > I would suggest that your server might have register_globals turned off, > > meaning you will need to use $_POST['action'] instead of $action. You > > should do this anyway, rather than relying on register_globals. > > > > Dan > > Virtual Drink to you, that was it! Went to switch($_POST[action]) and it > worked. > > The book recommends register_globals be on but I've understood that is > not the best solution. However, I still get mixed up in their code > becasue they're using it that way. > > Thanks! > > leam > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From bpang at bpang.com Mon Apr 26 09:44:07 2004 From: bpang at bpang.com (bpang at bpang.com) Date: Mon, 26 Apr 2004 09:44:07 -0400 (EDT) Subject: [nycphp-talk] Can't get no $action In-Reply-To: <408D1067.909@reuel.net> References: <408D05B7.1010407@reuel.net> <408D0E74.4060303@phpwerx.net> <408D1067.909@reuel.net> Message-ID: <37622.38.117.145.89.1082987047.squirrel@www.bpang.com> Read here about register_globals and other neat stuff http://phundamentals.nyphp.org/PH_ini.php?expiredate=2/16/2004 I think the consensus around here is that the book is _wrong_. there are a few authors on here, and they seem to know their stuff (I don't have their books, sorry guys), perhaps they can speak up and recommend theirs for you. > The book recommends register_globals be on but I've understood that is > not the best solution. However, I still get mixed up in their code > becasue they're using it that way. From leam at reuel.net Mon Apr 26 09:48:32 2004 From: leam at reuel.net (leam) Date: Mon, 26 Apr 2004 09:48:32 -0400 Subject: [nycphp-talk] Can't get no $action In-Reply-To: <37622.38.117.145.89.1082987047.squirrel@www.bpang.com> References: <408D05B7.1010407@reuel.net> <408D0E74.4060303@phpwerx.net> <408D1067.909@reuel.net> <37622.38.117.145.89.1082987047.squirrel@www.bpang.com> Message-ID: <408D1330.8020108@reuel.net> I'm fairly new to php and any html greater than the bold, paragraph, and list item stuff; most of the books these guys are writing are way over my head. The consensus does seem to be the way to go and I'm making my code fit. ciao! leam bpang at bpang.com wrote: > Read here about register_globals and other neat stuff > > http://phundamentals.nyphp.org/PH_ini.php?expiredate=2/16/2004 > > I think the consensus around here is that the book is _wrong_. > > there are a few authors on here, and they seem to know their stuff (I > don't have their books, sorry guys), perhaps they can speak up and > recommend theirs for you. > > > >>The book recommends register_globals be on but I've understood that is >>not the best solution. However, I still get mixed up in their code >>becasue they're using it that way. From leam at reuel.net Mon Apr 26 09:50:22 2004 From: leam at reuel.net (leam) Date: Mon, 26 Apr 2004 09:50:22 -0400 Subject: [nycphp-talk] Can't get no $action In-Reply-To: <007801c42b94$51da9450$0f7f11ac@productivitynet.com> References: <408D05B7.1010407@reuel.net> <408D0E74.4060303@phpwerx.net> <408D1067.909@reuel.net> <007801c42b94$51da9450$0f7f11ac@productivitynet.com> Message-ID: <408D139E.8030801@reuel.net> Derek; I'm newbie enough to not really understand the context. Are you saying that I shouldn't use any single quotes for quoting purposes? How will that affect existing code written with them? What is the implemenatation scheme for the new standard? ciao! leam Derek DeVries wrote: > Only double quotes are compatible with the newest standard of XHTML. > > --------------- > Derek DeVries > http://www.sportspyder.com From csnyder at chxo.com Mon Apr 26 09:51:24 2004 From: csnyder at chxo.com (Chris Snyder) Date: Mon, 26 Apr 2004 09:51:24 -0400 Subject: [nycphp-talk] Can't get no $action In-Reply-To: <007801c42b94$51da9450$0f7f11ac@productivitynet.com> References: <408D05B7.1010407@reuel.net> <408D0E74.4060303@phpwerx.net> <408D1067.909@reuel.net> <007801c42b94$51da9450$0f7f11ac@productivitynet.com> Message-ID: <408D13DC.1010603@chxo.com> Derek DeVries wrote: >Only double quotes are compatible with the newest standard of XHTML. > > > > Could you link to that, please? XHTML 1.0 was specific about allowing single or double quotes... From jsiegel1 at optonline.net Mon Apr 26 10:05:34 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Mon, 26 Apr 2004 10:05:34 -0400 Subject: [nycphp-talk] Can't get no $action In-Reply-To: <408D05B7.1010407@reuel.net> References: <408D05B7.1010407@reuel.net> Message-ID: <408D172E.2090102@optonline.net> Some of these books have great ideas but make life quite confusing for the newcomer. Some books use $HTTP_POST_VARS and others use $_POST in their code. (See note 1 at http://phundamentals.nyphp.org/PH_bookrecommendations.php). It depends when they were written. And, as you found out, some assume register_globals has been turned on. Jeff Siegel leam wrote: > Sorry for the lousy joke, this one's been beating me up for days. > > I'm using the editor.php script from "Beginning PHP4" (Wrox press) and > it uses a call to $PHP_SELF to refresh the page on submit. ($PHP_SELF is > set from $_SERVER[PHP_SELF]) At the end there is a switch statement that > is supposed to save the file if the action "save_file" is set, otherwise > just do the regular edit page. From phillip.powell at adnet-sys.com Mon Apr 26 10:14:05 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Mon, 26 Apr 2004 10:14:05 -0400 Subject: [nycphp-talk] Can't get no $action In-Reply-To: <007801c42b94$51da9450$0f7f11ac@productivitynet.com> References: <408D05B7.1010407@reuel.net> <408D0E74.4060303@phpwerx.net> <408D1067.909@reuel.net> <007801c42b94$51da9450$0f7f11ac@productivitynet.com> Message-ID: <408D192D.60304@adnet-sys.com> No, you can use single quotes. You can't use single quotes, however, if you want your resulting HTML to result to the rather narcissistic W3C standards, which, IMHO, mean 0.00% of anything. Phil Derek DeVries wrote: >Only double quotes are compatible with the newest standard of XHTML. > >--------------- >Derek DeVries >http://www.sportspyder.com > > > >----- Original Message ----- >From: "leam" >To: "NYPHP Talk" >Sent: Monday, April 26, 2004 9:36 AM >Subject: Re: [nycphp-talk] Can't get no $action > > > > >>Dan Cech wrote: >> >> >>>leam wrote: >>> >>> >>>> From the editor_form function: >>>> >>>> echo ""; >>>> echo ""; >>>> echo ""; >>>> >>>> >>>It won't be causing the problem, but your html should be properly >>> >>> >quoted. > > >>Do you mean like: >>echo ""; >> >>or can I use single quotes? Yeah, I'm still on the square part of the >>learnin' curve... >> >> >> >>>> From the switch statement: >>>> >>>> switch($action) { >>>> case "save_file": >>>> save_file(); break; >>>> default: >>>> html_header(); editor_form(); >>>> html_footer(); >>>> } >>>> >>>>The save_file function works if it's called by itself, and the $action >>>>just seems to call the default. >>>> >>>> >>>I would suggest that your server might have register_globals turned off, >>>meaning you will need to use $_POST['action'] instead of $action. You >>>should do this anyway, rather than relying on register_globals. >>> >>>Dan >>> >>> >>Virtual Drink to you, that was it! Went to switch($_POST[action]) and it >>worked. >> >>The book recommends register_globals be on but I've understood that is >>not the best solution. However, I still get mixed up in their code >>becasue they're using it that way. >> >>Thanks! >> >>leam >> >>_______________________________________________ >>talk mailing list >>talk at lists.nyphp.org >>http://lists.nyphp.org/mailman/listinfo/talk >> >> >> > > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer ADNET Systems., Inc. 11260 Roger Bacon Drive Suite 403 Reston, VA 20191 #: (703) 709-7218 x107 Fax: (703) 709-7219 From derek at sportspyder.com Mon Apr 26 10:44:20 2004 From: derek at sportspyder.com (Derek DeVries) Date: Mon, 26 Apr 2004 10:44:20 -0400 Subject: [nycphp-talk] Can't get no $action References: <408D05B7.1010407@reuel.net><408D0E74.4060303@phpwerx.net> <408D1067.909@reuel.net><007801c42b94$51da9450$0f7f11ac@productivitynet.com> <408D192D.60304@adnet-sys.com> Message-ID: <00ac01c42b9c$f5defa20$0f7f11ac@productivitynet.com> You are right about the single quotes, they can be used as well. I just did a test and it does in fact validate against the W3C http://validator.w3.org/check?uri=http%3A%2F%2Fwww.derekdevries.com%2Fdoctype.html&charset=%28detect+automatically%29&doctype=%28detect+automatically%29&ss=1&outline=1&sp=1&noatt=1&No200=1&verbose=1 I based my last statement by something I saw on this page... http://academ.hvcc.edu/~kantopet/xhtml/index.php?page=xhtml+attributes but W3C wins. --------------- Derek DeVries http://www.sportspyder.com ----- Original Message ----- From: "Phillip Powell" To: "NYPHP Talk" Sent: Monday, April 26, 2004 10:14 AM Subject: Re: [nycphp-talk] Can't get no $action > No, you can use single quotes. You can't use single quotes, however, if > you want your resulting HTML to result to the rather narcissistic W3C > standards, which, IMHO, mean 0.00% of anything. > > Phil > > Derek DeVries wrote: > > >Only double quotes are compatible with the newest standard of XHTML. > > > >--------------- > >Derek DeVries > >http://www.sportspyder.com > > > > > > > >----- Original Message ----- > >From: "leam" > >To: "NYPHP Talk" > >Sent: Monday, April 26, 2004 9:36 AM > >Subject: Re: [nycphp-talk] Can't get no $action > > > > > > > > > >>Dan Cech wrote: > >> > >> > >>>leam wrote: > >>> > >>> > >>>> From the editor_form function: > >>>> > >>>> echo ""; > >>>> echo ""; > >>>> echo ""; > >>>> > >>>> > >>>It won't be causing the problem, but your html should be properly > >>> > >>> > >quoted. > > > > > >>Do you mean like: > >>echo ""; > >> > >>or can I use single quotes? Yeah, I'm still on the square part of the > >>learnin' curve... > >> > >> > >> > >>>> From the switch statement: > >>>> > >>>> switch($action) { > >>>> case "save_file": > >>>> save_file(); break; > >>>> default: > >>>> html_header(); editor_form(); > >>>> html_footer(); > >>>> } > >>>> > >>>>The save_file function works if it's called by itself, and the $action > >>>>just seems to call the default. > >>>> > >>>> > >>>I would suggest that your server might have register_globals turned off, > >>>meaning you will need to use $_POST['action'] instead of $action. You > >>>should do this anyway, rather than relying on register_globals. > >>> > >>>Dan > >>> > >>> > >>Virtual Drink to you, that was it! Went to switch($_POST[action]) and it > >>worked. > >> > >>The book recommends register_globals be on but I've understood that is > >>not the best solution. However, I still get mixed up in their code > >>becasue they're using it that way. > >> > >>Thanks! > >> > >>leam > >> > >>_______________________________________________ > >>talk mailing list > >>talk at lists.nyphp.org > >>http://lists.nyphp.org/mailman/listinfo/talk > >> > >> > >> > > > > > >_______________________________________________ > >talk mailing list > >talk at lists.nyphp.org > >http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > > -- > -------------------------------------------------------------------------- ------- > Phil Powell > Multimedia Programmer > ADNET Systems., Inc. > 11260 Roger Bacon Drive Suite 403 > Reston, VA 20191 > #: (703) 709-7218 x107 > Fax: (703) 709-7219 > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From phillip.powell at adnet-sys.com Mon Apr 26 10:55:47 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Mon, 26 Apr 2004 10:55:47 -0400 Subject: [nycphp-talk] Can't get no $action In-Reply-To: <00ac01c42b9c$f5defa20$0f7f11ac@productivitynet.com> References: <408D05B7.1010407@reuel.net><408D0E74.4060303@phpwerx.net> <408D1067.909@reuel.net><007801c42b94$51da9450$0f7f11ac@productivitynet.com> <408D192D.60304@adnet-sys.com> <00ac01c42b9c$f5defa20$0f7f11ac@productivitynet.com> Message-ID: <408D22F3.1050506@adnet-sys.com> I would love to put a group of W3C designers in the same room with PHP web application developers and call it "E-Survivor". Dangit, where's Mark Burnett when I need him? I could make a FORTUNE! Phil Derek DeVries wrote: >You are right about the single quotes, they can be used as well. > >I just did a test and it does in fact validate against the W3C >http://validator.w3.org/check?uri=http%3A%2F%2Fwww.derekdevries.com%2Fdoctype.html&charset=%28detect+automatically%29&doctype=%28detect+automatically%29&ss=1&outline=1&sp=1&noatt=1&No200=1&verbose=1 > >I based my last statement by something I saw on this page... >http://academ.hvcc.edu/~kantopet/xhtml/index.php?page=xhtml+attributes >but W3C wins. > >--------------- >Derek DeVries >http://www.sportspyder.com > > >----- Original Message ----- >From: "Phillip Powell" >To: "NYPHP Talk" >Sent: Monday, April 26, 2004 10:14 AM >Subject: Re: [nycphp-talk] Can't get no $action > > > > >>No, you can use single quotes. You can't use single quotes, however, if >>you want your resulting HTML to result to the rather narcissistic W3C >>standards, which, IMHO, mean 0.00% of anything. >> >>Phil >> >>Derek DeVries wrote: >> >> >> >>>Only double quotes are compatible with the newest standard of XHTML. >>> >>>--------------- >>>Derek DeVries >>>http://www.sportspyder.com >>> >>> >>> >>>----- Original Message ----- >>>From: "leam" >>>To: "NYPHP Talk" >>>Sent: Monday, April 26, 2004 9:36 AM >>>Subject: Re: [nycphp-talk] Can't get no $action >>> >>> >>> >>> >>> >>> >>>>Dan Cech wrote: >>>> >>>> >>>> >>>> >>>>>leam wrote: >>>>> >>>>> >>>>> >>>>> >>>>>>From the editor_form function: >>>>>> >>>>>> echo ""; >>>>>> echo ""; >>>>>> echo ""; >>>>>> >>>>>> >>>>>> >>>>>> >>>>>It won't be causing the problem, but your html should be properly >>>>> >>>>> >>>>> >>>>> >>>quoted. >>> >>> >>> >>> >>>>Do you mean like: >>>>echo ""; >>>> >>>>or can I use single quotes? Yeah, I'm still on the square part of the >>>>learnin' curve... >>>> >>>> >>>> >>>> >>>> >>>>>>From the switch statement: >>>>>> >>>>>> switch($action) { >>>>>> case "save_file": >>>>>> save_file(); break; >>>>>> default: >>>>>> html_header(); editor_form(); >>>>>> html_footer(); >>>>>> } >>>>>> >>>>>>The save_file function works if it's called by itself, and the $action >>>>>>just seems to call the default. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>I would suggest that your server might have register_globals turned >>>>> >>>>> >off, > > >>>>>meaning you will need to use $_POST['action'] instead of $action. You >>>>>should do this anyway, rather than relying on register_globals. >>>>> >>>>>Dan >>>>> >>>>> >>>>> >>>>> >>>>Virtual Drink to you, that was it! Went to switch($_POST[action]) and it >>>>worked. >>>> >>>>The book recommends register_globals be on but I've understood that is >>>>not the best solution. However, I still get mixed up in their code >>>>becasue they're using it that way. >>>> >>>>Thanks! >>>> >>>>leam >>>> >>>>_______________________________________________ >>>>talk mailing list >>>>talk at lists.nyphp.org >>>>http://lists.nyphp.org/mailman/listinfo/talk >>>> >>>> >>>> >>>> >>>> >>>_______________________________________________ >>>talk mailing list >>>talk at lists.nyphp.org >>>http://lists.nyphp.org/mailman/listinfo/talk >>> >>> >>> >>> >>> >>-- >>-------------------------------------------------------------------------- >> >> >------- > > >>Phil Powell >>Multimedia Programmer >>ADNET Systems., Inc. >>11260 Roger Bacon Drive Suite 403 >>Reston, VA 20191 >>#: (703) 709-7218 x107 >>Fax: (703) 709-7219 >> >> >> >>_______________________________________________ >>talk mailing list >>talk at lists.nyphp.org >>http://lists.nyphp.org/mailman/listinfo/talk >> >> >> > > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer ADNET Systems., Inc. 11260 Roger Bacon Drive Suite 403 Reston, VA 20191 #: (703) 709-7218 x107 Fax: (703) 709-7219 From adam at trachtenberg.com Mon Apr 26 10:53:25 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 26 Apr 2004 10:53:25 -0400 (EDT) Subject: [nycphp-talk] Can't get no $action In-Reply-To: <408D172E.2090102@optonline.net> References: <408D05B7.1010407@reuel.net> <408D172E.2090102@optonline.net> Message-ID: On Mon, 26 Apr 2004, Jeff Siegel wrote: > Some of these books have great ideas but make life quite confusing for > the newcomer. Some books use $HTTP_POST_VARS and others use $_POST in > their code. (See note 1 at > http://phundamentals.nyphp.org/PH_bookrecommendations.php). It depends > when they were written. And, as you found out, some assume > register_globals has been turned on. FWIW, "PHP Cookbook" assumes register_globals is Off and always superglobals like $_POST over the $HTTP_POST_VARS equivalent. However, it is not a book I necessarily recommend to someone just learning PHP. It's a book you should when you've been programming in PHP for six months or more. (Unless you've been a programmer in a previous life; then you should buy "PHP Cookbook" right away.) :) -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From jlacey at att.net Mon Apr 26 11:03:58 2004 From: jlacey at att.net (John Lacey) Date: Mon, 26 Apr 2004 09:03:58 -0600 Subject: [nycphp-talk] Can't get no $action In-Reply-To: References: <408D05B7.1010407@reuel.net> <408D172E.2090102@optonline.net> Message-ID: <408D24DE.90704@att.net> Adam Maccabee Trachtenberg wrote: > On Mon, 26 Apr 2004, Jeff Siegel wrote: > > >>Some of these books have great ideas but make life quite confusing for >>the newcomer. Some books use $HTTP_POST_VARS and others use $_POST in >>their code. (See note 1 at >>http://phundamentals.nyphp.org/PH_bookrecommendations.php). It depends >>when they were written. And, as you found out, some assume >>register_globals has been turned on. > > > FWIW, "PHP Cookbook" assumes register_globals is Off and always > superglobals like $_POST over the $HTTP_POST_VARS equivalent. The other thing that causes unnecessary hiccups to newcomers is the mixed use of "echo" and "print". It may be a small matter to experienced folks, but my rule of thumb on this would be "use echo in all cases -- use print only if the code calls for it". Without getting into the "echo-is-slightly-faster-than-print" discussion, the word "echo" makes more sense to me in terms of "echoing to a screen/display/browser". John From adam at trachtenberg.com Mon Apr 26 11:59:30 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 26 Apr 2004 11:59:30 -0400 (EDT) Subject: [nycphp-talk] Can't get no $action In-Reply-To: <408D24DE.90704@att.net> References: <408D05B7.1010407@reuel.net> <408D172E.2090102@optonline.net> <408D24DE.90704@att.net> Message-ID: On Mon, 26 Apr 2004, John Lacey wrote: > The other thing that causes unnecessary hiccups to newcomers is > the mixed use of "echo" and "print". It may be a small matter > to experienced folks, but my rule of thumb on this would be "use > echo in all cases -- use print only if the code calls for it". I am indifferent to the "echo" vs "print" dilemma. I used to use echo, now I use print. The important part (to me) is that you pick one and don't swap back and forth mid-function. > Without getting into the "echo-is-slightly-faster-than-print" > discussion, the word "echo" makes more sense to me in terms of > "echoing to a screen/display/browser". I think I decided I liked print better because there's no echof() or sechof() functions. :) It seemed more consistent to use all C-style function names instead of mixing between shell and C. But like I said, I don't really care too much. There are actually a few cases where echo gives you functionality that print doesn't, but they're real edge cases, so I wouldn't code with them in mind. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From dmintz at davidmintz.org Mon Apr 26 13:11:25 2004 From: dmintz at davidmintz.org (David Mintz) Date: Mon, 26 Apr 2004 13:11:25 -0400 (EDT) Subject: [nycphp-talk] Can't get no $action In-Reply-To: <408D24DE.90704@att.net> References: <408D05B7.1010407@reuel.net> <408D172E.2090102@optonline.net> <408D24DE.90704@att.net> Message-ID: One convenience of echo (over print) in PHP is that you can use commas and echo as many things as you like -- like the Perl's print. Feel free to feel confused if you like. echo "Huh?", $object->method(), "... whatever."; On Mon, 26 Apr 2004, John Lacey wrote: > > > Adam Maccabee Trachtenberg wrote: > > On Mon, 26 Apr 2004, Jeff Siegel wrote: > > > > > >>Some of these books have great ideas but make life quite confusing for > >>the newcomer. Some books use $HTTP_POST_VARS and others use $_POST in > >>their code. (See note 1 at > >>http://phundamentals.nyphp.org/PH_bookrecommendations.php). It depends > >>when they were written. And, as you found out, some assume > >>register_globals has been turned on. > > > > > > FWIW, "PHP Cookbook" assumes register_globals is Off and always > > superglobals like $_POST over the $HTTP_POST_VARS equivalent. > > The other thing that causes unnecessary hiccups to newcomers is > the mixed use of "echo" and "print". It may be a small matter > to experienced folks, but my rule of thumb on this would be "use > echo in all cases -- use print only if the code calls for it". > > Without getting into the "echo-is-slightly-faster-than-print" > discussion, the word "echo" makes more sense to me in terms of > "echoing to a screen/display/browser". > > John > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From lists at neoncowboy.com Mon Apr 26 13:35:05 2004 From: lists at neoncowboy.com (John Corry) Date: Mon, 26 Apr 2004 07:35:05 -1000 Subject: [nycphp-talk] Curl on windows In-Reply-To: <408D139E.8030801@reuel.net> Message-ID: <20040426173513.07483A862F@virtu.nyphp.org> Can someone help me figure out what I'm missing? I have followed the docs here: http://www.php.net/manual/en/ref.curl.php And here: http://curl.haxx.se/mail/curlphp-2002-10/0017.html To no avail... When I restart Apache I get the error: Unknown(): unable to load dynamic library 'C:\php-4.3.6-Win32\extensions\php_curl.dll' - The specified module could not be found. I don't have any problems with the exif extension... Seems pretty straightforward, but it isn't behaving as advertised... From smanes at magpie.com Mon Apr 26 13:40:16 2004 From: smanes at magpie.com (Steve Manes) Date: Mon, 26 Apr 2004 13:40:16 -0400 Subject: [nycphp-talk] QuickForm's hierselect formatting Message-ID: <408D4980.5030106@magpie.com> Does anyone know if there's an addElement() formatting argument for the 'hierselect' object that will make the pulldowns stack vertically rather than horizontally? From tgales at tgaconnect.com Mon Apr 26 13:42:03 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Mon, 26 Apr 2004 13:42:03 -0400 Subject: [nycphp-talk] Curl on windows In-Reply-To: <20040426173513.07483A862F@virtu.nyphp.org> Message-ID: <000201c42bb5$c9cd33c0$e98d3818@oberon1> > Can someone help me figure out what I'm missing? > > I have followed the docs here: > http://www.php.net/manual/en/ref.curl.php > And here: > http://curl.haxx.se/mail/curlphp-2002-10/0017.html > > To no avail... > > When I restart Apache I get the error: > Unknown(): unable to load dynamic library > 'C:\php-4.3.6-Win32\extensions\php_curl.dll' - The specified > module could not be found. > What happens if you do dir of C:\php-4.3.6-Win32\extensions from a 'dos' box -- i.e. "dir php_curl.dll" ( in the C:\php-4.3.6-Win32\extensions ) T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From webmaster at localnotion.com Mon Apr 26 13:42:08 2004 From: webmaster at localnotion.com (Matthew Terenzio) Date: Mon, 26 Apr 2004 13:42:08 -0400 Subject: [nycphp-talk] Can't get no $action In-Reply-To: References: <408D05B7.1010407@reuel.net> <408D172E.2090102@optonline.net> <408D24DE.90704@att.net> Message-ID: <0A6DCD7C-97A9-11D8-832B-0003938BDF32@localnotion.com> On Apr 26, 2004, at 1:11 PM, David Mintz wrote: > > One convenience of echo (over print) in PHP is that you can use commas > and > echo as many things as you like -- like the Perl's print. Feel free to > feel confused if you like. > > echo "Huh?", $object->method(), "... whatever."; what's the advantage of that over print "Huh?".$object->method()."... whatever."; > > On Mon, 26 Apr 2004, John Lacey wrote: > >> >> >> Adam Maccabee Trachtenberg wrote: >>> On Mon, 26 Apr 2004, Jeff Siegel wrote: >>> >>> >>>> Some of these books have great ideas but make life quite confusing >>>> for >>>> the newcomer. Some books use $HTTP_POST_VARS and others use $_POST >>>> in >>>> their code. (See note 1 at >>>> http://phundamentals.nyphp.org/PH_bookrecommendations.php). It >>>> depends >>>> when they were written. And, as you found out, some assume >>>> register_globals has been turned on. >>> >>> >>> FWIW, "PHP Cookbook" assumes register_globals is Off and always >>> superglobals like $_POST over the $HTTP_POST_VARS equivalent. >> >> The other thing that causes unnecessary hiccups to newcomers is >> the mixed use of "echo" and "print". It may be a small matter >> to experienced folks, but my rule of thumb on this would be "use >> echo in all cases -- use print only if the code calls for it". >> >> Without getting into the "echo-is-slightly-faster-than-print" >> discussion, the word "echo" makes more sense to me in terms of >> "echoing to a screen/display/browser". >> >> John >> >> _______________________________________________ >> talk mailing list >> talk at lists.nyphp.org >> http://lists.nyphp.org/mailman/listinfo/talk >> > > > --- > David Mintz > http://davidmintz.org/ > > "Anybody else got a problem with Webistics?" -- Sopranos 24:17 > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From lists at neoncowboy.com Mon Apr 26 13:45:59 2004 From: lists at neoncowboy.com (John Corry) Date: Mon, 26 Apr 2004 07:45:59 -1000 Subject: [nycphp-talk] Curl on windows In-Reply-To: <000201c42bb5$c9cd33c0$e98d3818@oberon1> Message-ID: <20040426174603.6DC52A85F7@virtu.nyphp.org> Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\php-4.3.6-Win32\extensions>dir php_curl.dll Volume in drive C has no label. Volume Serial Number is 2447-CA37 Directory of C:\php-4.3.6-Win32\extensions 04/14/2004 05:34 PM 143,360 php_curl.dll 1 File(s) 143,360 bytes 0 Dir(s) 10,107,031,552 bytes free C:\php-4.3.6-Win32\extensions> I found this: http://www.tonyspencer.com/journal/00000037.htm And hey, right on...but it doesn't work still. John > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Tim Gales > Sent: Monday, April 26, 2004 7:42 AM > To: 'NYPHP Talk' > Subject: RE: [nycphp-talk] Curl on windows > > > Can someone help me figure out what I'm missing? > > > > I have followed the docs here: > > http://www.php.net/manual/en/ref.curl.php > > And here: > > http://curl.haxx.se/mail/curlphp-2002-10/0017.html > > > > To no avail... > > > > When I restart Apache I get the error: > > Unknown(): unable to load dynamic library > > 'C:\php-4.3.6-Win32\extensions\php_curl.dll' - The specified module > > could not be found. > > > What happens if you do dir of C:\php-4.3.6-Win32\extensions > from a 'dos' box -- i.e. "dir php_curl.dll" > ( in the C:\php-4.3.6-Win32\extensions ) > > T. Gales & Associates > 'Helping People Connect with Technology' > > http://www.tgaconnect.com > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From tgales at tgaconnect.com Mon Apr 26 14:13:34 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Mon, 26 Apr 2004 14:13:34 -0400 Subject: [nycphp-talk] Curl on windows In-Reply-To: <20040426174603.6DC52A85F7@virtu.nyphp.org> Message-ID: <000301c42bba$30841350$e98d3818@oberon1> What about dir'ing ..\extensions\SSLEAY32.DLL ..\extensions\LIBEAY32.DLL T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of John Corry > Sent: Monday, April 26, 2004 1:46 PM > To: 'NYPHP Talk' > Subject: RE: [nycphp-talk] Curl on windows > > > Microsoft Windows XP [Version 5.1.2600] > (C) Copyright 1985-2001 Microsoft Corp. > > C:\php-4.3.6-Win32\extensions>dir php_curl.dll > Volume in drive C has no label. > Volume Serial Number is 2447-CA37 > > Directory of C:\php-4.3.6-Win32\extensions > > 04/14/2004 05:34 PM 143,360 php_curl.dll > 1 File(s) 143,360 bytes > 0 Dir(s) 10,107,031,552 bytes free > > C:\php-4.3.6-Win32\extensions> > > I found this: > http://www.tonyspencer.com/journal/00000037.htm > > > And hey, right on...but it doesn't work still. > > John > > > -----Original Message----- > > From: talk-bounces at lists.nyphp.org > > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Tim Gales > > Sent: Monday, April 26, 2004 7:42 AM > > To: 'NYPHP Talk' > > Subject: RE: [nycphp-talk] Curl on windows > > > > > Can someone help me figure out what I'm missing? > > > > > > I have followed the docs here: > > > http://www.php.net/manual/en/ref.curl.php > > > And here: > > > http://curl.haxx.se/mail/curlphp-2002-10/0017.html > > > > > > To no avail... > > > > > > When I restart Apache I get the error: > > > Unknown(): unable to load dynamic library > > > 'C:\php-4.3.6-Win32\extensions\php_curl.dll' - The > specified module > > > could not be found. > > > > > What happens if you do dir of C:\php-4.3.6-Win32\extensions > > from a 'dos' box -- i.e. "dir php_curl.dll" > > ( in the C:\php-4.3.6-Win32\extensions ) > > > > T. Gales & Associates > > 'Helping People Connect with Technology' > > > > http://www.tgaconnect.com > > > > _______________________________________________ > > talk mailing list > > talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk > > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk > From skeen at vtechphones.com Mon Apr 26 13:23:25 2004 From: skeen at vtechphones.com (skeen at vtechphones.com) Date: Mon, 26 Apr 2004 10:23:25 -0700 Subject: [nycphp-talk] Open Source CRM recommendations Message-ID: Does anyone have an Open Source CRM package they would recommend (php based of course). Sam -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlacey at att.net Mon Apr 26 14:24:07 2004 From: jlacey at att.net (John Lacey) Date: Mon, 26 Apr 2004 12:24:07 -0600 Subject: [nycphp-talk] Can't get no $action In-Reply-To: <0A6DCD7C-97A9-11D8-832B-0003938BDF32@localnotion.com> References: <408D05B7.1010407@reuel.net> <408D172E.2090102@optonline.net> <408D24DE.90704@att.net> <0A6DCD7C-97A9-11D8-832B-0003938BDF32@localnotion.com> Message-ID: <408D53C7.5040909@att.net> Matthew Terenzio wrote: > > On Apr 26, 2004, at 1:11 PM, David Mintz wrote: > >> >> One convenience of echo (over print) in PHP is that you can use commas >> and >> echo as many things as you like -- like the Perl's print. Feel free to >> feel confused if you like. >> >> echo "Huh?", $object->method(), "... whatever."; > > > what's the advantage of that over > > print "Huh?".$object->method()."... whatever."; I think consistency of use throughout a given program or set of scripts is what's important here -- as Adam intimated in an earlier post. The case study I use to teach [mostly] newbies uses echo statements. So, I use echo statements consistently. John From mitchy at spacemonkeylabs.com Mon Apr 26 14:39:56 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Mon, 26 Apr 2004 14:39:56 -0400 Subject: [nycphp-talk] Open Source CRM recommendations In-Reply-To: References: Message-ID: <408D577C.4080000@spacemonkeylabs.com> skeen at vtechphones.com wrote: > Does anyone have an Open Source CRM package they would recommend (php > based of course). Well, Mambo Open Source (www.mamboserver.com) just won the reader nominated award of 'Best Linux or Open Source Software' at LinuxUser in the UK this year. Super lightweight, simple install, easy to use. I think it is a swell CMS. Then again, I'm a core developer ;^) You can also take others for a spin at: http://www.opensourcecms.com/ Other interesting PHP-based CMS are Drupal, Xaraya and the 'Nukes (PHP-Nuke, Postnuke, etc.). An intriguing non-php CMS is Plone (www.plone.org), based on python and the Zope application server. HTH, -- Mitch From adam at trachtenberg.com Mon Apr 26 14:47:29 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 26 Apr 2004 14:47:29 -0400 (EDT) Subject: [nycphp-talk] Open Source CRM recommendations In-Reply-To: <408D577C.4080000@spacemonkeylabs.com> References: <408D577C.4080000@spacemonkeylabs.com> Message-ID: On Mon, 26 Apr 2004, Mitch Pirtle wrote: > skeen at vtechphones.com wrote: > > Does anyone have an Open Source CRM package they would recommend (php > > based of course). > > Other interesting PHP-based CMS are Drupal, Xaraya and the 'Nukes > (PHP-Nuke, Postnuke, etc.). I don't think CRM == CMS. CRM is customer relationship mgmt. CMS is content mgmt system. You may be able to manage customers like content, but I'm not 100% positive that's the best idea. :) -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From lists at neoncowboy.com Mon Apr 26 14:49:11 2004 From: lists at neoncowboy.com (John Corry) Date: Mon, 26 Apr 2004 08:49:11 -1000 Subject: [nycphp-talk] Curl on windows In-Reply-To: <000301c42bba$30841350$e98d3818@oberon1> Message-ID: <20040426184915.84B5DA862F@virtu.nyphp.org> I put those in /WINDOWS/System32... DOH!! I found it! Libeay32.dll wasn't in the system32 folder (I swear I copied it there!). I copied it to system32, restarted Apache and it works. Thanks for (patiently) helping me troubleshoot! > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Tim Gales > Sent: Monday, April 26, 2004 8:14 AM > To: 'NYPHP Talk' > Subject: RE: [nycphp-talk] Curl on windows > > What about dir'ing > ..\extensions\SSLEAY32.DLL > ..\extensions\LIBEAY32.DLL > > > T. Gales & Associates > 'Helping People Connect with Technology' > > http://www.tgaconnect.com > From danielc at analysisandsolutions.com Mon Apr 26 14:53:13 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Mon, 26 Apr 2004 14:53:13 -0400 Subject: [nycphp-talk] Curl on windows In-Reply-To: <20040426184915.84B5DA862F@virtu.nyphp.org> References: <000301c42bba$30841350$e98d3818@oberon1> <20040426184915.84B5DA862F@virtu.nyphp.org> Message-ID: <20040426185313.GA27816@panix.com> Hola: On Mon, Apr 26, 2004 at 08:49:11AM -1000, John Corry wrote: > I found it! Libeay32.dll wasn't in the system32 folder (I swear I copied it > there!). I copied it to system32, restarted Apache and it works. All the more reason to add the PHP and PHP\dll directories to %path% rather than moving files to system32. It's simple and easy to maintain. Why the installation instructions suggest moving the files is beyond me. Buenos dias, --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 jlacey at att.net Mon Apr 26 14:56:58 2004 From: jlacey at att.net (John Lacey) Date: Mon, 26 Apr 2004 12:56:58 -0600 Subject: [nycphp-talk] Open Source CRM recommendations In-Reply-To: <408D577C.4080000@spacemonkeylabs.com> References: <408D577C.4080000@spacemonkeylabs.com> Message-ID: <408D5B7A.8050807@att.net> hey Mitch (OT) did you get the resend from beopen..? Mitch Pirtle wrote: > skeen at vtechphones.com wrote: > >> Does anyone have an Open Source CRM package they would recommend (php >> based of course). > > > Well, Mambo Open Source (www.mamboserver.com) just won the reader > nominated award of 'Best Linux or Open Source Software' at LinuxUser in > the UK this year. Super lightweight, simple install, easy to use. I > think it is a swell CMS. Then again, I'm a core developer ;^) > > You can also take others for a spin at: > > http://www.opensourcecms.com/ > > Other interesting PHP-based CMS are Drupal, Xaraya and the 'Nukes > (PHP-Nuke, Postnuke, etc.). > > An intriguing non-php CMS is Plone (www.plone.org), based on python and > the Zope application server. > > HTH, > > -- Mitch > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From phillip.powell at adnet-sys.com Mon Apr 26 15:05:33 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Mon, 26 Apr 2004 15:05:33 -0400 Subject: [nycphp-talk] undefined function in class method that suddenly exists Message-ID: <408D5D7D.7020705@adnet-sys.com> [PHP] /** * Class for performing the search * * @author Phil Powell * @version 1.0.0 * @package IMAGE_CATALOG * @see db_action.inc.php:DBActionPerformer */ class SearchPerformer extends DBActionPerformer { /** * This static method will determine if the element passed here (by the value of $elementName as parameter) has a value, even if it is an array * * @access private * @param mixed $elementName * @param mixed $section * @return boolean */ function &isElement($elementName, $section) { // STATIC BOOLEAN METHOD global ${$elementName}; // PASS VALUE HERE switch ($section) { case 'image': // SPECIFIC IMAGE-RELATED HANDLING OF $this->formFieldsArray /*--------------------------------------------------------------------------------------------------------------------------------------------------------------- Also note that you have to call Accepter "statically" (class-level) instead of instantiating the object, otherwise, you will be instantiating $this->validate(), causing a n^2 loop construct of an unnecessary validation call, which is way bad! However, the property cannot be called directly in PHP versions 4 due to language constraints (if someone knows how let *ME* know!) so you have to use a static getter method to retrieve it -----------------------------------------------------------------------------------------------------------------------------------------------------------------*/ print_r(is_array(${$elementName})); print_r(" "); print_r(@sizeof(array_values(${$elementName}))); print_r(' '); print_r(${$elementName}); print_r(" "); echo Accepter::getNullExemptionArray($section, $elementName); print_r("

"); if (is_array(${$elementName}) && @sizeof(array_values(${$elementName})) > 0) { return true; } elseif (${$elementName} && ${$elementName} !== Accepter::getNullExemptionArray($section, $elementName)) { return true; } else { return false; } break; default: // DO NOTHING FOR NOW break; } } } [/PHP] The following method in the class function: [PHP] print_r(is_array(${$elementName})); print_r(" "); print_r(@sizeof(array_values(${$elementName}))); print_r(' '); print_r(${$elementName}); print_r(" "); echo Accepter::getNullExemptionArray($section, $elementName); print_r("

"); [/PHP] Produces this error: [Quote] Fatal error: Call to undefined function: getnullexemptionarray() in /www/html/mu-spin/image_catalog/include/search_action.inc.php on line 267 [/Quote] However, if I comment out line 267 and you follow *THIS* line: [PHP] } elseif (${$elementName} && ${$elementName} !== Accepter::getNullExemptionArray($section, $elementName)) { return true; [/PHP] Then the class method works w/o a single fatal error whatsoever, and I even verified with the following: [PHP]print_r("elementName = $elementName = ${$elementName}

");[/PHP] To verify if ${$elementName} exists thus possibly meeting (or not meeting) the conditon. So now, why is it that on one line, Accepter::getNullExemptionArray() produces an "undefined function" fatal error, but in another line, same class, same method, it produces no errors at all??? What am I missing this time? Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer ADNET Systems., Inc. 11260 Roger Bacon Drive Suite 403 Reston, VA 20191 #: (703) 709-7218 x107 Fax: (703) 709-7219 From mitchy at spacemonkeylabs.com Mon Apr 26 15:10:28 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Mon, 26 Apr 2004 15:10:28 -0400 Subject: [nycphp-talk] Open Source CRM recommendations In-Reply-To: References: <408D577C.4080000@spacemonkeylabs.com> Message-ID: <408D5EA4.30708@spacemonkeylabs.com> Adam Maccabee Trachtenberg wrote: > I don't think CRM == CMS. CRM is customer relationship mgmt. CMS is > content mgmt system. You may be able to manage customers like content, > but I'm not 100% positive that's the best idea. :) Whups, that's what I get for eating a Rueben for lunch. Time for a nap. -- Mitch From yury at heavenspa.com Mon Apr 26 15:14:17 2004 From: yury at heavenspa.com (yury at heavenspa.com) Date: Mon, 26 Apr 2004 15:14:17 -0400 Subject: [nycphp-talk] Open Source CRM recommendations References: <408D577C.4080000@spacemonkeylabs.com> <408D5EA4.30708@spacemonkeylabs.com> Message-ID: <051201c42bc2$abc6aa70$0400a8c0@heavenspanyc> food fog =p ----- Original Message ----- From: "Mitch Pirtle" To: "NYPHP Talk" Sent: Monday, April 26, 2004 3:10 PM Subject: Re: [nycphp-talk] Open Source CRM recommendations > Adam Maccabee Trachtenberg wrote: > > > I don't think CRM == CMS. CRM is customer relationship mgmt. CMS is > > content mgmt system. You may be able to manage customers like content, > > but I'm not 100% positive that's the best idea. :) > > Whups, that's what I get for eating a Rueben for lunch. Time for a nap. > > -- Mitch > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From dmintz at davidmintz.org Mon Apr 26 15:17:01 2004 From: dmintz at davidmintz.org (David Mintz) Date: Mon, 26 Apr 2004 15:17:01 -0400 (EDT) Subject: [nycphp-talk] Can't get no $action In-Reply-To: <0A6DCD7C-97A9-11D8-832B-0003938BDF32@localnotion.com> References: <408D05B7.1010407@reuel.net> <408D172E.2090102@optonline.net> <408D24DE.90704@att.net> <0A6DCD7C-97A9-11D8-832B-0003938BDF32@localnotion.com> Message-ID: On Mon, 26 Apr 2004, Matthew Terenzio wrote: > > > > echo "Huh?", $object->method(), "... whatever."; > > what's the advantage of that over > > print "Huh?".$object->method()."... whatever."; Hmmm, now that you call me on it -- I forget. --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 >From hans not junk at nyphp.com Mon Apr 26 15:43:43 2004 Return-Path: Received: from ehost011-1.intermedia.net (ehost011-1.intermedia.net [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id C94A6A85F7 for ; Mon, 26 Apr 2004 15:43:42 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 26 Apr 2004 12:43:39 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8701A49178 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Google to IPO thread-index: AcQrxwk/6yE3EMmgQfebkgwDk+FKkw== From: "Hans Zaunere" To: "NYPHP Talk" Subject: [nycphp-talk] Google to IPO X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2004 19:43:43 -0000 And so it is: For Hottest IPO in Years, Google Taps CSFB and Morgan Stanley=20 By ROBIN SIDEL and KEVIN J. DELANEY=20 Staff Reporters of THE WALL STREET JOURNAL=20 Internet-search pioneer Google Inc. has tapped Credit Suisse First Boston and Morgan Stanley to lead an eagerly anticipated initial public offering that likely will be announced this week, according to people familiar with the situation. Google's selection of the two big securities firms ends months of intense speculation over who on Wall Street would snag an assignment that is expected to generate investment-banking fees of nearly $100 million and huge bragging rights. An IPO of Google likely will be one of the biggest U.S. public offerings ever and, if successful, could trigger a new wave of IPO filings among other technology companies. The deal has all of the hoopla of the biggest IPOs of the 1990s, when Netscape Communications sold shares publicly and helped set off a frenzy that sent the stock market soaring. As in some 1990s deals, this public offering stands to make some computer-science whiz kids wealthy beyond their wildest dreams, while also benefiting a cast of well-known venture capitalists. With nearly insatiable investor interest, it could put a price tag of $25 billion on a company that didn't exist a decade ago, making it more valuable than retailer Sears, Roebuck & Co. and hotel operator Marriott International Inc. Some things, however, are different now. Google is turning a profit, according to executives at the company, unlike so many of the profitless wonders of the bubble era. And its IPO will test many of the reforms put in place by regulators in the wake of the bubble's burst. Those reforms are intended to wipe out abuses that allowed favored Wall Street investment-banking and trading clients, and Wall Street itself, to benefit at the expense of many other investors. The enthusiasm for a Google IPO also demonstrates the importance the search function has assumed in how people use the Internet, helping shape the sites they view, the news they read and the products they buy. There is a revenue stream to match: Advertisers increasingly use search sites as a way to buy more targeted advertising, since the sites can match up ads with what people are looking for. Microsoft Corp. and Yahoo Inc. are among the players that have concluded that search is of such strategic importance that they have poured money into their own search offerings recently. For CSFB, the contract is a major coup. Just a few years ago, the firm was at the center of an IPO scandal, and its former star technology banker, Frank Quattrone, is now being retried on obstruction-of-justice charges related to an investigation into alleged IPO abuses. CSFB, which is the securities unit of Zurich's Credit Suisse Group, paid $100 million two years ago to settle civil regulatory charges, without admitting or denying wrongdoing, that it provided shares of hot IPOs to investment firms in exchange for excessive commissions. Still, CSFB has retained a prominent role in technology-investment banking, nabbing the top spot for underwriting technology IPOs in the first quarter of 2004. It also has hustled to plug holes in its technology-sector investment-banking business after a nine-member group defected to Deutsche Bank AG earlier this year. Earlier this month, CSFB added eight new bankers, including some who previously hailed from major rivals. One big factor in CSFB's favor: Last year, Google hired the firm's Internet stock analyst, Lise Buyer, as "director of business optimization." Morgan Stanley was expected to win a top spot in a Google IPO. The Wall Street firm long has been prominent in technology-investment banking, and it employs one of the nation's best-known and most-influential Internet analysts: Mary Meeker, a prolific booster of Silicon Valley during the Internet boom who now co-heads the firm's tech-sector research. Terms of a historic regulatory settlement, reached a year ago this week to resolve allegations that 10 of Wall Street's biggest securities firms hyped stocks to ingratiate themselves with investment-banking clients, barred research analysts from attending any meetings in which investment bankers were pitching the IPO to Google. People familiar with the situation say Citigroup Inc. and Goldman Sachs Group Inc. -- both of which had been in the running for the top spot -- are expected to still play a large role. J.P. Morgan Chase & Co. and Lehman Brothers Holdings Inc., among others also will be involved, these people say. A spokeswoman for Google, Mountain View, Calif., declined to comment. Representatives of CSFB, Morgan Stanley, Citigroup, Goldman, J.P. Morgan and Lehman declined to comment. Other banks couldn't be reached for comment. Investment bankers believe an IPO would value Google at as much as $25 billion. Last fall, some of Google's prospective advisers estimated the company's valuation could be in line with Internet powerhouses Yahoo Inc., valued at $38 billion, Amazon.com Inc. at $20 billion and eBay Inc. at $54 billion. Founded by two Stanford University graduate students in 1998, Google became popular for delivering fast, relevant Web-search results. It turns a profit by selling advertising on its pages and those of other Web sites and by licensing its search technology to other companies. While potential investors and fans of the company have been eager to learn about a Google IPO, so have the company's prospective underwriters. Google contacted more than a dozen investment banks last fall and then trimmed the list to about a half dozen. The banks received little word from Google for the next several months until the company began contacting them about a month ago, people familiar with the matter say. Many aspects of the IPO, including its size and price, are closely guarded secrets, and elements are believed to still be under discussion, the people familiar with the matter say. It isn't clear how much detail Google would release this week. Even the list of second-tier banks may still be tentative, some people caution. Google's founders, Larry Page and Sergey Brin, are believed to own about a third of the company, if not more. Other investors include venture firms Kleiner Perkins Caufield & Byers and Sequoia Capital, which together led an investment totaling $25 million in 1999. Yahoo and Time Warner Inc.'s America Online unit also have stakes in Google, or warrants to acquire shares, obtained through partnerships with the firm. While many investors were burned by high-flying technology IPOs that crashed, Google is expected to have a successful offering in part because the company is far more established than so many other Internet companies that went public. Google's brand name is expected to go a long way in attracting professional investors and small individuals alike. But any effort by Google to include an unusual component, such as an online sale of shares to individual investors, which management has pushed for, could create some bumps. Google, for its part, is intent on crafting an IPO so that individual investors, not just big institutional investors, could buy shares, the people say. Under the online option being discussed, individuals would place orders directly, instead of through a broker. Many investment bankers have been leery of that unconventional approach. People familiar with the situation say one of the factors that may have relegated Goldman to a secondary role was the bank's reservations about this online component. Google is widely expected to be quite thrifty in doling out banking fees. People familiar with the matter say that Google executives don't hold the investment-banking community in high regard and will be loath to hand over big fees for the IPO work. And the bankers, eager to get a piece of such a highly prized deal, aren't expected to drive a hard bargain. Google couldn't be filing for an IPO at a more opportune time: The company is the No. 1 Web-site destination for Internet searches. It has expanded its offerings in recent months, with sites devoted to news and shopping. Most recently, it began testing a free e-mail service. The extremely secretive Google is being nudged into a public offering by federal regulations that require certain closely held companies to publicly disclose more information about their businesses once they hit a certain size. Those rules often trigger companies to file IPOs. The Securities and Exchange Commission rule applies to companies with more than 500 shareholders and $10 million in assets. Google meets the requirement, because most of its more than 1,000 employees hold stock options. The rule requires companies to file disclosures about their finances within 120 days after the end of their fiscal year. For Google, the requirement will be triggered this week. From csnyder at chxo.com Mon Apr 26 15:51:56 2004 From: csnyder at chxo.com (Chris Snyder) Date: Mon, 26 Apr 2004 15:51:56 -0400 Subject: [nycphp-talk] Google to IPO In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8701A49178@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8701A49178@ehost011-1.exch011.intermedia.net> Message-ID: <408D685C.9020006@chxo.com> Judging from the recent rants against them on this fine list, their ipo should be very successful indeed. heh. From smanes at magpie.com Mon Apr 26 16:19:21 2004 From: smanes at magpie.com (Steve Manes) Date: Mon, 26 Apr 2004 16:19:21 -0400 Subject: [nycphp-talk] QuickForm's hierselect formatting In-Reply-To: <408D4980.5030106@magpie.com> References: <408D4980.5030106@magpie.com> Message-ID: <408D6EC9.1060608@magpie.com> Steve Manes wrote: > Does anyone know if there's an addElement() formatting argument for the > 'hierselect' object that will make the pulldowns stack vertically rather > than horizontally? Nebba mind. I found in the class files: $form->addElement('hierselect', 'some_id', 'Prompt', null, '
'); From jonbaer at jonbaer.net Mon Apr 26 21:26:56 2004 From: jonbaer at jonbaer.net (jon baer) Date: Mon, 26 Apr 2004 21:26:56 -0400 Subject: [nycphp-talk] phpMyAdmin 2.6.0 (PHP5+MySQLi) Message-ID: <004a01c42bf6$bac61770$6500a8c0@thinkpad> http://www.phpmyadmin.net/ -snip- The phpMyAdmin Project is proud to announce the immediate availability of the first alpha release of phpMyAdmin 2.6.0. Because of significant changes inside the database connection methods and major improvements to the MySQL 4.1 compatibility, the team decided to release this alpha version from phpMyAdmin's current development code. Supporting the new improved MySQL extension of php5 (MySQLi), phpMyAdmin has made a giant step towards the upcoming PHP and MySQL versions. -snip- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 From lists at mx2pro.com Mon Apr 26 22:42:40 2004 From: lists at mx2pro.com (Dan Horning) Date: Mon, 26 Apr 2004 22:42:40 -0400 Subject: [nycphp-talk] Open Source CRM recommendations In-Reply-To: <051201c42bc2$abc6aa70$0400a8c0@heavenspanyc> Message-ID: <200404270242.i3R2giMY026173@ms-smtp-04.nyroc.rr.com> I'm currently starting one to work as a CMS also - basically managing the project / the client / and the website all in one package (of course it will be fully AMP / APP compliant - ergo ADODB will be used). my goals are simple encompass everything from "concept to execution" (my biz tagline) including some sales tools and useful submods along with it. I'm also planning on supporting it as a module of postnuke. if you'd like to contribute to the planning of this module/software please visit http://noc.postnuke.com/projects/pnbcp/ (fyi - once we get gforge ready for nyphp - this project will move there) Dan Horning - Technical Systems Administration http://www.mx2pro.com/ http://dan.mx2pro.com/ 1-866-AVID-150 (Personal Direct Line) > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of yury at heavenspa.com > Sent: Monday, April 26, 2004 3:14 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Open Source CRM recommendations > > food fog =p > > ----- Original Message ----- > From: "Mitch Pirtle" > To: "NYPHP Talk" > Sent: Monday, April 26, 2004 3:10 PM > Subject: Re: [nycphp-talk] Open Source CRM recommendations > > > > Adam Maccabee Trachtenberg wrote: > > > > > I don't think CRM == CMS. CRM is customer relationship > mgmt. CMS is > > > content mgmt system. You may be able to manage customers > like content, > > > but I'm not 100% positive that's the best idea. :) > > > > Whups, that's what I get for eating a Rueben for lunch. > Time for a nap. > > > > -- Mitch > > ______________________________________________DO > > talk mailing list > > talk at lists.nyphp.org > > http://lists.nyphp.org/mailman/listinfo/talk > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From danielc at analysisandsolutions.com Tue Apr 27 02:47:14 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Tue, 27 Apr 2004 02:47:14 -0400 Subject: [nycphp-talk] stuff in SecurityFocus Newsletter #246 Message-ID: <20040427064714.GA3496@panix.com> SquirrelMail Change_Passwd Plug-in Buffer Overrun Vulnerabil... http://www.securityfocus.com/bid/10166 PHPBB Common.php IP Address Spoofing Vulnerability http://www.securityfocus.com/bid/10170 Phorum Phorum_URIAuth SQL Injection Vulnerability http://www.securityfocus.com/bid/10173 PHPBB album_portal.php Remote File Include Vulnerability http://www.securityfocus.com/bid/10177 Journalness Unspecified Post Access Vulnerability http://www.securityfocus.com/bid/10187 PHProfession Multiple Vulnerabilities http://www.securityfocus.com/bid/10190 PostNuke Pheonix Multiple Cross-Site Scripting And Path Disc... http://www.securityfocus.com/bid/10191 -- 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 joel at tagword.com Tue Apr 27 11:29:30 2004 From: joel at tagword.com (Joel De Gan) Date: Tue, 27 Apr 2004 11:29:30 -0400 Subject: [nycphp-talk] new hash filter system.. Message-ID: <1083079769.4792.204.camel@bezel> Hey all, Figured I would ask on this list as there are some bright chaps that post in here. I did some research with bloom filters and worked up a sort-of-similar, but non-binary, system in PHP. See http://peoplesdns.com/filter/ for explaination and code. I am looking for feedback before this ends up all over. A co-opensource-worker posted to his blog ( http://dannyayers.com/archives/002541.html ) but in general it is still at the request for comments/suggestions/rants stage. Basically, anyone know of any reasons this might break? That it might be an issue under certain circumstances, ways to make it better, problems with the incremental approach etc.. I would especially be interested in mathematical references that link to similar items that I may have overlooked. Anyway, built for handling "LARGE" datasets, not small (i.e. < 500k) Thanks -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From adam at trachtenberg.com Tue Apr 27 11:51:40 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Tue, 27 Apr 2004 11:51:40 -0400 (EDT) Subject: [nycphp-talk] new hash filter system.. In-Reply-To: <1083079769.4792.204.camel@bezel> References: <1083079769.4792.204.camel@bezel> Message-ID: On Tue, 27 Apr 2004, Joel De Gan wrote: > I did some research with bloom filters and worked up a sort-of-similar, > but non-binary, system in PHP. > See http://peoplesdns.com/filter/ for explaination and code. This looks really interesting. > Basically, anyone know of any reasons this might break? That it might be > an issue under certain circumstances, ways to make it better, problems > with the incremental approach etc.. I would especially be interested in > mathematical references that link to similar items that I may have > overlooked. At first glance, your approach seems to use a lot more memory than the original. The first version stores everything in a single integer (or double), but you're using a giant array of strings. Also, bitwise checks should be much faster than all the string/array exploding and imploding your method requires. Have you benchmarked your code against the original algorithm to see which is faster? However, like I said, I only skimmed over the code, so I could be completely off base, so take everything I say with a grain of salt. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From joel at tagword.com Tue Apr 27 13:48:40 2004 From: joel at tagword.com (Joel De Gan) Date: Tue, 27 Apr 2004 13:48:40 -0400 Subject: [nycphp-talk] new hash filter system.. In-Reply-To: References: <1083079769.4792.204.camel@bezel> Message-ID: <1083088120.4791.6.camel@bezel> On Tue, 2004-04-27 at 11:51, Adam Maccabee Trachtenberg wrote: > At first glance, your approach seems to use a lot more memory than the > original. The first version stores everything in a single integer (or > double), but you're using a giant array of strings. Bloom filters use a long binary string, an integer could not be used with a bloom filter method. > > Also, bitwise checks should be much faster than all the string/array > exploding and imploding your method requires. I agree with you fully and will look at optimization for this code. I have not used bitwise a lot and mostly only for network code. You wouldn't happen to have a url with any examples of using bitwise shifts with letter/combinations? > Have you benchmarked your code against the original algorithm to see > which is faster? Bloom filters will be faster on generation, should be about the same on lookup. > However, like I said, I only skimmed over the code, so I could be > completely off base, so take everything I say with a grain of salt. No, thanks a lot, exactly what I was looking for. I need to know where this can be better. Thanks :) > -adam -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From adam at trachtenberg.com Tue Apr 27 13:05:23 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Tue, 27 Apr 2004 13:05:23 -0400 (EDT) Subject: [nycphp-talk] new hash filter system.. In-Reply-To: <1083088120.4791.6.camel@bezel> References: <1083079769.4792.204.camel@bezel> <1083088120.4791.6.camel@bezel> Message-ID: On Tue, 27 Apr 2004, Joel De Gan wrote: > On Tue, 2004-04-27 at 11:51, Adam Maccabee Trachtenberg wrote: > > At first glance, your approach seems to use a lot more memory than the > > original. The first version stores everything in a single integer (or > > double), but you're using a giant array of strings. > > Bloom filters use a long binary string, an integer could not be used > with a bloom filter method. Why don't you use GMP? http://www.php/net/gmp It requires an external library, but it'll be much faster than an all-PHP solution for very large numbers. There's also the BC math library, which is bundled with PHP, but you need to emulate bitwise operations in userland code, which doesn't seem too efficient. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From jlacey at att.net Tue Apr 27 13:23:29 2004 From: jlacey at att.net (John Lacey) Date: Tue, 27 Apr 2004 11:23:29 -0600 Subject: [nycphp-talk] new hash filter system.. (OT) In-Reply-To: References: <1083079769.4792.204.camel@bezel> <1083088120.4791.6.camel@bezel> Message-ID: <408E9711.9070407@att.net> Adam Maccabee Trachtenberg wrote: > There's also the BC math library, which is bundled with PHP, but you > need to emulate bitwise operations in userland code, which doesn't > seem too efficient. ...pardon the OT switch, but "BC" just reminded me of a question a student asked that I hadn't had time to research, and thought maybe someone's run into this: Any "good" ways to handle BCE/CE (BC/AD) dates that are stored in MySQL? A quick check didn't come up with anything in either Paul DuBois's MySQL Cookbook or David and Adam's PHP Cookbook. thx John From joel at tagword.com Tue Apr 27 14:45:20 2004 From: joel at tagword.com (Joel De Gan) Date: Tue, 27 Apr 2004 14:45:20 -0400 Subject: [nycphp-talk] new hash filter system.. In-Reply-To: References: <1083079769.4792.204.camel@bezel> <1083088120.4791.6.camel@bezel> Message-ID: <1083091520.4796.39.camel@bezel> On Tue, 2004-04-27 at 13:05, Adam Maccabee Trachtenberg wrote: > Why don't you use GMP? > > http://www.php/net/gmp > > It requires an external library, but it'll be much faster than an > all-PHP solution for very large numbers. > > There's also the BC math library, which is bundled with PHP, but you > need to emulate bitwise operations in userland code, which doesn't > seem too efficient. One of my original ideas for this used BC and multiplied primes (four digit up to six digit primes, a few thousand of them total) once for each insertion. Obviously the number got large, but the solution worked when using modulus because the end result would always mod to zero if the prime was used in a bcmul() at any point on that number (primes used to not have false positives). I chose to throw away that implementation due to the filter size required to handle numbers that are over a thousand digits for each portion of the filter. I also found the limits for function base_convert() for base36 (http://us4.php.net/manual/en/function.base-convert.php) I may use that type of filter at a later date for something else, but I chose the alpha system for simplicity and smaller filters. -Joel De Gan -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From jlacey at att.net Tue Apr 27 13:33:35 2004 From: jlacey at att.net (John Lacey) Date: Tue, 27 Apr 2004 11:33:35 -0600 Subject: [nycphp-talk] new hash filter system.. (OT) In-Reply-To: References: <1083079769.4792.204.camel@bezel> <1083088120.4791.6.camel@bezel> Message-ID: <408E996F.3090608@att.net> Adam Maccabee Trachtenberg wrote: > There's also the BC math library, which is bundled with PHP, but you > need to emulate bitwise operations in userland code, which doesn't > seem too efficient. ...pardon the OT switch, but "BC" just reminded me of a question a student asked that I hadn't had time to research, and thought maybe someone's run into this: Any "good" ways to handle BCE/CE (BC/AD) dates that are stored in MySQL? A quick check didn't come up with anything in either Paul DuBois's MySQL Cookbook or David and Adam's PHP Cookbook. damn.. typed that too fast, it reads as if you *can* store such a date in MySQL ... UNIX epoch 19700101000000 limitations being what they are -- I'm really looking for PHP solutions here J From sklar at sklar.com Tue Apr 27 13:40:12 2004 From: sklar at sklar.com (David Sklar) Date: Tue, 27 Apr 2004 13:40:12 -0400 Subject: [nycphp-talk] BCE/CE dates In-Reply-To: <408E9711.9070407@att.net> References: <1083079769.4792.204.camel@bezel> <1083088120.4791.6.camel@bezel> <408E9711.9070407@att.net> Message-ID: <408E9AFC.2000509@sklar.com> > Any "good" ways to handle BCE/CE (BC/AD) dates that are stored in > MySQL? A quick check didn't come up with anything in either Paul > DuBois's MySQL Cookbook or David and Adam's PHP Cookbook. How "good" the way is will depend a lot on what kind of operations you need to do with the data. The MySQL DATETIME and DATE types go from 1/1/1000 CE to 12/31/9999 CE, so depending on how far back you want to go, you could store things as a DATETIME with a year offset, so if you've got "5/12/500 (BCE)", you store that as 5/12/2500, adding or subtracting 3000 years as you put it into or take it out of the database. However, any comparative date math will be error-prone, since calendars changed so much over time in different places. "May 12" doesn't really have much meaning in 500 BCE anywhere in the world. You could also use a BIGINT UNSIGNED column and store timestamps as TAI64 labels (see http://cr.yp.to/proto/utctai.html and http://cr.yp.to/libtai.html and http://cr.yp.to/libtai/tai64.html). This gets you a culturally-unbiased measurement scale (or, to be more accurate, a measurement scale that is more-or-less equally biased towards each of humanity's many time measurement plans) but you will still have to do a lot of conversion between TAI64 labels and whatever human-readable format is appropriate for your app. David From jlacey at att.net Tue Apr 27 13:44:54 2004 From: jlacey at att.net (John Lacey) Date: Tue, 27 Apr 2004 11:44:54 -0600 Subject: [nycphp-talk] BCE/CE dates In-Reply-To: <408E9AFC.2000509@sklar.com> References: <1083079769.4792.204.camel@bezel> <1083088120.4791.6.camel@bezel> <408E9711.9070407@att.net> <408E9AFC.2000509@sklar.com> Message-ID: <408E9C16.6080709@att.net> David Sklar wrote: >> Any "good" ways to handle BCE/CE (BC/AD) dates that are stored in >> MySQL? A quick check didn't come up with anything in either Paul >> DuBois's MySQL Cookbook or David and Adam's PHP Cookbook. > > > How "good" the way is will depend a lot on what kind of operations you > need to do with the data. The MySQL DATETIME and DATE types go from > 1/1/1000 CE to 12/31/9999 CE, so depending on how far back you want to > go, you could store things as a DATETIME with a year offset, so if > you've got "5/12/500 (BCE)", you store that as 5/12/2500, adding or > subtracting 3000 years as you put it into or take it out of the database. > > However, any comparative date math will be error-prone, since calendars > changed so much over time in different places. "May 12" doesn't really > have much meaning in 500 BCE anywhere in the world. > > You could also use a BIGINT UNSIGNED column and store timestamps as > TAI64 labels (see http://cr.yp.to/proto/utctai.html and > http://cr.yp.to/libtai.html and http://cr.yp.to/libtai/tai64.html). This > gets you a culturally-unbiased measurement scale (or, to be more > accurate, a measurement scale that is more-or-less equally biased > towards each of humanity's many time measurement plans) but you will > still have to do a lot of conversion between TAI64 labels and whatever > human-readable format is appropriate for your app. > thanks, that helps a lot David... I began thinking about things like dates before Gregorian 1582, etc and thought I'd ask. John From mwithington at PLMresearch.com Tue Apr 27 13:48:52 2004 From: mwithington at PLMresearch.com (Mark Withington) Date: Tue, 27 Apr 2004 13:48:52 -0400 Subject: [nycphp-talk] MySQL versioning system Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6905@network.PLMresearch.com> I have a client who would like to store product development information within a MySQL table. The table will consist of multiple fields, each representing a product attribute (height, weight, color, etc.). The client would like to store each iteration (or version) of the product development information along with the ability to role back to prior versions if necessary. I'd like to ensure that I'm not reinventing the wheel on this. Anyone have any experience with such an effort? Is this kind of information stored in the MySQL logs? Any light shedding would be appreciated. Mark -------------------------- Mark L. Withington PLMresearch "eBusiness for the Midsize Enterprise" PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 http://www.PLMresearch.com Netscape/AOL/MSN IM: PLMresearch mwithington at plmresearch.com Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmresearch.com/calendar.php From mwithington at PLMresearch.com Tue Apr 27 13:48:50 2004 From: mwithington at PLMresearch.com (Mark L. Withington) Date: Tue, 27 Apr 2004 13:48:50 -0400 Subject: [nycphp-talk] MySQL versioning system Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358A7BA4C@network.PLMresearch.com> I have a client who would like to store product development information within a MySQL table. The table will consist of multiple fields, each representing a product attribute (height, weight, color, etc.). The client would like to store each iteration (or version) of the product development information along with the ability to role back to prior versions if necessary. I'd like to ensure that I'm not reinventing the wheel on this. Anyone have any experience with such an effort? Is this kind of information stored in the MySQL logs? Any light shedding would be appreciated. Mark -------------------------- Mark L. Withington PLMresearch "eBusiness for the Midsize Enterprise" PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 http://www.PLMresearch.com Netscape/AOL/MSN IM: PLMresearch mwithington at plmresearch.com Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmresearch.com/calendar.php From adam at trachtenberg.com Tue Apr 27 13:58:01 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Tue, 27 Apr 2004 13:58:01 -0400 (EDT) Subject: [nycphp-talk] MySQL versioning system In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6905@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6905@network.PLMresearch.com> Message-ID: On Tue, 27 Apr 2004, Mark Withington wrote: > I have a client who would like to store product development information > within a MySQL table. The table will consist of multiple fields, each > representing a product attribute (height, weight, color, etc.). The client > would like to store each iteration (or version) of the product development > information along with the ability to role back to prior versions if > necessary. My first idea would be to create a unique identifier for each product and store all the product specifications alongside the identifier and a version number. When you select the specifications for a product, select the one with the highest version number. Rolling back only requires you to delete the highest version number from the database. The easiest version number is either an auto_increment field or maybe a timestamp of the insert time. Also, if you were super concerned about select speed, you could make an additional column that's an enum('current', 'old') and make the latest version as "current" and the others as "old". Of course, this requires more convoluted insert / update logic. But this may or may not be necessary. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From mwithington at PLMresearch.com Tue Apr 27 14:07:58 2004 From: mwithington at PLMresearch.com (Mark L. Withington) Date: Tue, 27 Apr 2004 14:07:58 -0400 Subject: [nycphp-talk] MySQL versioning system In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358A85424@network.PLMresearch.com> Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358A7BA4D@network.PLMresearch.com> Thanks for your quick response Adam. Only concern might be the size of the database as go forward. Each record might contain 100+ fields, not all of which would change during each iteration. I therefore, might be saving redundant information (e.g. only two or three fields might change over the different versions). I was thinking of creating a "before" and "after" array, and then storing the serialized difference in another field. This will obviously require a bit more logic to reconstruct prior versions, but in exchange would minimize storage requirements. Anyone see any flaws in my logic? -------------------------- Mark L. Withington PLMresearch "eBusiness for the Midsize Enterprise" PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 http://www.PLMresearch.com Netscape/AOL/MSN IM: PLMresearch mwithington at plmresearch.com Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmresearch.com/calendar.php -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Adam Maccabee Trachtenberg Sent: Tuesday, April 27, 2004 1:58 PM To: NYPHP Talk Subject: Re: [nycphp-talk] MySQL versioning system On Tue, 27 Apr 2004, Mark Withington wrote: > I have a client who would like to store product development information > within a MySQL table. The table will consist of multiple fields, each > representing a product attribute (height, weight, color, etc.). The client > would like to store each iteration (or version) of the product development > information along with the ability to role back to prior versions if > necessary. My first idea would be to create a unique identifier for each product and store all the product specifications alongside the identifier and a version number. When you select the specifications for a product, select the one with the highest version number. Rolling back only requires you to delete the highest version number from the database. The easiest version number is either an auto_increment field or maybe a timestamp of the insert time. Also, if you were super concerned about select speed, you could make an additional column that's an enum('current', 'old') and make the latest version as "current" and the others as "old". Of course, this requires more convoluted insert / update logic. But this may or may not be necessary. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From carlos at sprout.net Tue Apr 27 14:04:57 2004 From: carlos at sprout.net (Carlos G. Chiossone) Date: Tue, 27 Apr 2004 14:04:57 -0400 Subject: [nycphp-talk] PHP vs ASP Message-ID: <49A9DEB886049242BA28C484A36C03F15A73D4@email.sprout.net> Hi all, anyone knows an up-to-date site where I can gather some reasoning for a client that wants to use ASP. I am trying to make the case that PHP is better. But all I find is from 2002 and older. Something in the line of http://php.weblogs.com/php_vs_asp would be great. Thanks, Carlos From adam at trachtenberg.com Tue Apr 27 14:17:51 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Tue, 27 Apr 2004 14:17:51 -0400 (EDT) Subject: [nycphp-talk] MySQL versioning system In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358A7BA4D@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358A7BA4D@network.PLMresearch.com> Message-ID: On Tue, 27 Apr 2004, Mark L. Withington wrote: > Thanks for your quick response Adam. Only concern might be the size of the > database as go forward. Each record might contain 100+ fields, not all of > which would change during each iteration. I therefore, might be saving > redundant information (e.g. only two or three fields might change over the > different versions). Disk drives are cheaper than development time and less prone to bugs. :) Seriously, hard drives are super cheap and text is small. There's no reason to waste time or money on this problem unless the size becomes so large you're running out of space. By then, the cheapest solution will probably be to buy a larger drive. Sometimes the best solution to a problem is better hardware, not better software. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From yury at heavenspa.com Tue Apr 27 14:19:55 2004 From: yury at heavenspa.com (yury at heavenspa.com) Date: Tue, 27 Apr 2004 14:19:55 -0400 Subject: [nycphp-talk] PHP vs ASP References: <49A9DEB886049242BA28C484A36C03F15A73D4@email.sprout.net> Message-ID: <049601c42c84$3dd76cd0$0400a8c0@heavenspanyc> simple.. how many IIS servers get hacked. Now how many unix/linux boxes get hacked.. - case closed! ciao yury p.s. if your ready to flame me... please don't.. ----- Original Message ----- From: "Carlos G. Chiossone" To: "NYPHP Talk" Sent: Tuesday, April 27, 2004 2:04 PM Subject: [nycphp-talk] PHP vs ASP Hi all, anyone knows an up-to-date site where I can gather some reasoning for a client that wants to use ASP. I am trying to make the case that PHP is better. But all I find is from 2002 and older. Something in the line of http://php.weblogs.com/php_vs_asp would be great. Thanks, Carlos _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From mwithington at PLMresearch.com Tue Apr 27 14:22:49 2004 From: mwithington at PLMresearch.com (Mark L. Withington) Date: Tue, 27 Apr 2004 14:22:49 -0400 Subject: [nycphp-talk] MySQL versioning system In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358A85429@network.PLMresearch.com> Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358A7BA4E@network.PLMresearch.com> LOL! You're right. Great input. Thanks for the suggestion. -------------------------- Mark L. Withington PLMresearch "eBusiness for the Midsize Enterprise" PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 http://www.PLMresearch.com Netscape/AOL/MSN IM: PLMresearch mwithington at plmresearch.com Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmresearch.com/calendar.php -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Adam Maccabee Trachtenberg Sent: Tuesday, April 27, 2004 2:18 PM To: NYPHP Talk Subject: RE: [nycphp-talk] MySQL versioning system On Tue, 27 Apr 2004, Mark L. Withington wrote: > Thanks for your quick response Adam. Only concern might be the size of the > database as go forward. Each record might contain 100+ fields, not all of > which would change during each iteration. I therefore, might be saving > redundant information (e.g. only two or three fields might change over the > different versions). Disk drives are cheaper than development time and less prone to bugs. :) Seriously, hard drives are super cheap and text is small. There's no reason to waste time or money on this problem unless the size becomes so large you're running out of space. By then, the cheapest solution will probably be to buy a larger drive. Sometimes the best solution to a problem is better hardware, not better software. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From dorgan at optonline.net Tue Apr 27 14:29:13 2004 From: dorgan at optonline.net (dorgan at optonline.net) Date: Tue, 27 Apr 2004 14:29:13 -0400 Subject: [nycphp-talk] MySQL versioning system Message-ID: <5e0f0f5e4f36.5e4f365e0f0f@optonline.net> why not make a table then with 4 fields 1 being an id of course, one being the parentid or original version, and the other two fields one being the name of the field updated and the other being what the field was changed to. ----- Original Message ----- From: Adam Maccabee Trachtenberg Date: Tuesday, April 27, 2004 1:58 pm Subject: Re: [nycphp-talk] MySQL versioning system > On Tue, 27 Apr 2004, Mark Withington wrote: > > > I have a client who would like to store product development > information> within a MySQL table. The table will consist of > multiple fields, each > > representing a product attribute (height, weight, color, etc.). > The client > > would like to store each iteration (or version) of the product > development> information along with the ability to role back to > prior versions if > > necessary. > > My first idea would be to create a unique identifier for each product > and store all the product specifications alongside the identifier and > a version number. When you select the specifications for a product, > select the one with the highest version number. Rolling back only > requires you to delete the highest version number from the database. > > The easiest version number is either an auto_increment field or maybe > a timestamp of the insert time. > > Also, if you were super concerned about select speed, you could make > an additional column that's an enum('current', 'old') and make the > latest version as "current" and the others as "old". Of course, this > requires more convoluted insert / update logic. But this may or may > not be necessary. > > -adam > > -- > adam at trachtenberg.com > author of o'reilly's php cookbook > avoid the holiday rush, buy your copy today! > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From phillip.powell at adnet-sys.com Tue Apr 27 14:37:03 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 27 Apr 2004 14:37:03 -0400 Subject: [nycphp-talk] PHP vs ASP In-Reply-To: <049601c42c84$3dd76cd0$0400a8c0@heavenspanyc> References: <49A9DEB886049242BA28C484A36C03F15A73D4@email.sprout.net> <049601c42c84$3dd76cd0$0400a8c0@heavenspanyc> Message-ID: <408EA84F.4010309@adnet-sys.com> Actually that's not quite a valid reason. I had a contract job once where I built PHP pages on a secured IIS platform for an intranet web portal. IIS doesn't always associate with ASP. Phil yury at heavenspa.com wrote: >simple.. how many IIS servers get hacked. Now how many unix/linux boxes get >hacked.. >- case closed! > >ciao >yury > >p.s. if your ready to flame me... please don't.. >----- Original Message ----- >From: "Carlos G. Chiossone" >To: "NYPHP Talk" >Sent: Tuesday, April 27, 2004 2:04 PM >Subject: [nycphp-talk] PHP vs ASP > > >Hi all, anyone knows an up-to-date site where I can gather some >reasoning for a client that wants to use ASP. I am trying to make the >case that PHP is better. But all I find is from 2002 and older. > >Something in the line of http://php.weblogs.com/php_vs_asp would be >great. > >Thanks, >Carlos > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer ADNET Systems., Inc. 11260 Roger Bacon Drive Suite 403 Reston, VA 20191 #: (703) 709-7218 x107 Fax: (703) 709-7219 From agfische at email.smith.edu Tue Apr 27 14:35:38 2004 From: agfische at email.smith.edu (Aaron Fischer) Date: Tue, 27 Apr 2004 14:35:38 -0400 Subject: [nycphp-talk] Re: [nycphp-announce] TONIGHT@nyphp: CeBIT America FREE Pass; An Introduction to Clew In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8701A4975B@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8701A4975B@ehost011-1.exch011.intermedia.net> Message-ID: I'm really interested in this but unfortunately will not be able to make the drive to NYC tonight. Will the meeting be recorded? Mike D.? =) I have definitely found the mp3's of the meetings to be quite useful... -Aaron On Apr 27, 2004, at 2:29 PM, Hans Zaunere wrote: > As it *finally* warms up, we have another packed meeting. > > > An Introduction to Clew From carlos at sprout.net Tue Apr 27 14:28:33 2004 From: carlos at sprout.net (Carlos G. Chiossone) Date: Tue, 27 Apr 2004 14:28:33 -0400 Subject: [nycphp-talk] PHP vs ASP Message-ID: <49A9DEB886049242BA28C484A36C03F15A73D5@email.sprout.net> :-) is that a guilt trip? Thanks, Carlos -----Original Message----- From: yury at heavenspa.com [mailto:yury at heavenspa.com] Sent: Tuesday, April 27, 2004 2:20 PM To: NYPHP Talk Subject: Re: [nycphp-talk] PHP vs ASP simple.. how many IIS servers get hacked. Now how many unix/linux boxes get hacked.. - case closed! ciao yury p.s. if your ready to flame me... please don't.. ----- Original Message ----- From: "Carlos G. Chiossone" To: "NYPHP Talk" Sent: Tuesday, April 27, 2004 2:04 PM Subject: [nycphp-talk] PHP vs ASP Hi all, anyone knows an up-to-date site where I can gather some reasoning for a client that wants to use ASP. I am trying to make the case that PHP is better. But all I find is from 2002 and older. Something in the line of http://php.weblogs.com/php_vs_asp would be great. Thanks, Carlos _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From carlos at sprout.net Tue Apr 27 14:31:15 2004 From: carlos at sprout.net (Carlos G. Chiossone) Date: Tue, 27 Apr 2004 14:31:15 -0400 Subject: [nycphp-talk] PHP vs ASP Message-ID: <49A9DEB886049242BA28C484A36C03F15A73D6@email.sprout.net> I kind of agree with Yury. As I keep hearing this from different places. But I don't understand the IIS ASP association. Carlos -----Original Message----- From: Phillip Powell [mailto:phillip.powell at adnet-sys.com] Sent: Tuesday, April 27, 2004 2:37 PM To: NYPHP Talk Subject: Re: [nycphp-talk] PHP vs ASP Actually that's not quite a valid reason. I had a contract job once where I built PHP pages on a secured IIS platform for an intranet web portal. IIS doesn't always associate with ASP. Phil yury at heavenspa.com wrote: >simple.. how many IIS servers get hacked. Now how many unix/linux boxes get >hacked.. >- case closed! > >ciao >yury > >p.s. if your ready to flame me... please don't.. >----- Original Message ----- >From: "Carlos G. Chiossone" >To: "NYPHP Talk" >Sent: Tuesday, April 27, 2004 2:04 PM >Subject: [nycphp-talk] PHP vs ASP > > >Hi all, anyone knows an up-to-date site where I can gather some >reasoning for a client that wants to use ASP. I am trying to make the >case that PHP is better. But all I find is from 2002 and older. > >Something in the line of http://php.weblogs.com/php_vs_asp would be >great. > >Thanks, >Carlos > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > -- ------------------------------------------------------------------------ --------- Phil Powell Multimedia Programmer ADNET Systems., Inc. 11260 Roger Bacon Drive Suite 403 Reston, VA 20191 #: (703) 709-7218 x107 Fax: (703) 709-7219 _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From mjdewitt at alexcommgrp.com Tue Apr 27 14:39:02 2004 From: mjdewitt at alexcommgrp.com (DeWitt, Michael) Date: Tue, 27 Apr 2004 14:39:02 -0400 Subject: [nycphp-talk] Re: [nycphp-announce] TONIGHT@nyphp: CeBIT Americ a FREE Pass; An Introduction to Clew Message-ID: I am planning on it. Glad you are finding them useful. Mike > -----Original Message----- > From: Aaron Fischer [SMTP:agfische at email.smith.edu] > Sent: Tuesday, April 27, 2004 2:36 PM > To: NYPHP Talk > Subject: [nycphp-talk] Re: [nycphp-announce] TONIGHT at nyphp: CeBIT > America FREE Pass; An Introduction to Clew > > I'm really interested in this but unfortunately will not be able to > make the drive to NYC tonight. Will the meeting be recorded? Mike D.? > =) > From rahmin at insite-out.com Tue Apr 27 14:39:28 2004 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Tue, 27 Apr 2004 14:39:28 -0400 Subject: [nycphp-talk] PHP vs ASP Message-ID: <200404271839.i3RIdSZG025891@webmail5.megamailservers.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From jonbaer at jonbaer.net Tue Apr 27 14:42:26 2004 From: jonbaer at jonbaer.net (jon baer) Date: Tue, 27 Apr 2004 14:42:26 -0400 Subject: [nycphp-talk] PHP vs ASP References: <49A9DEB886049242BA28C484A36C03F15A73D4@email.sprout.net><049601c42c84$3dd76cd0$0400a8c0@heavenspanyc> <408EA84F.4010309@adnet-sys.com> Message-ID: <002501c42c87$63820910$6500a8c0@thinkpad> Actually I wonder how many have been following the IIS SSL exploit bug going around ... http://seclists.org/lists/fulldisclosure/2004/Apr/0837.html http://www.securiteam.com/windowsntfocus/5CP0L0KCKO.html I think he's right, its better to evaluate the platform first before the language ... :-) ----- Original Message ----- From: "Phillip Powell" To: "NYPHP Talk" Sent: Tuesday, April 27, 2004 2:37 PM Subject: Re: [nycphp-talk] PHP vs ASP > Actually that's not quite a valid reason. I had a contract job once > where I built PHP pages on a secured IIS platform for an intranet web > portal. IIS doesn't always associate with ASP. From yury at heavenspa.com Tue Apr 27 14:42:44 2004 From: yury at heavenspa.com (yury at heavenspa.com) Date: Tue, 27 Apr 2004 14:42:44 -0400 Subject: [nycphp-talk] PHP vs ASP References: <49A9DEB886049242BA28C484A36C03F15A73D5@email.sprout.net> Message-ID: <04cb01c42c87$6e43a2f0$0400a8c0@heavenspanyc> LOL.. no :) ciao yury getting my fix of coffee now -- i might have a different view after some caffine.. ----- Original Message ----- From: "Carlos G. Chiossone" To: "NYPHP Talk" Sent: Tuesday, April 27, 2004 2:28 PM Subject: RE: [nycphp-talk] PHP vs ASP :-) is that a guilt trip? Thanks, Carlos -----Original Message----- From: yury at heavenspa.com [mailto:yury at heavenspa.com] Sent: Tuesday, April 27, 2004 2:20 PM To: NYPHP Talk Subject: Re: [nycphp-talk] PHP vs ASP simple.. how many IIS servers get hacked. Now how many unix/linux boxes get hacked.. - case closed! ciao yury p.s. if your ready to flame me... please don't.. ----- Original Message ----- From: "Carlos G. Chiossone" To: "NYPHP Talk" Sent: Tuesday, April 27, 2004 2:04 PM Subject: [nycphp-talk] PHP vs ASP Hi all, anyone knows an up-to-date site where I can gather some reasoning for a client that wants to use ASP. I am trying to make the case that PHP is better. But all I find is from 2002 and older. Something in the line of http://php.weblogs.com/php_vs_asp would be great. Thanks, Carlos _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From yury at heavenspa.com Tue Apr 27 14:44:40 2004 From: yury at heavenspa.com (yury at heavenspa.com) Date: Tue, 27 Apr 2004 14:44:40 -0400 Subject: [nycphp-talk] PHP vs ASP References: <49A9DEB886049242BA28C484A36C03F15A73D4@email.sprout.net><049601c42c84$3dd76cd0$0400a8c0@heavenspanyc> <408EA84F.4010309@adnet-sys.com> Message-ID: <04d201c42c87$b2f34130$0400a8c0@heavenspanyc> my naivety shows... true, but how rare is it to have php on IIS? and do you have to jump thru a million loopholes to get it to work correctly.. peoples.. this is coming from a PHP hack.. not a hacker :) :) yury /me thinks i should shut up and leave for coffee ----- Original Message ----- From: "Phillip Powell" To: "NYPHP Talk" Sent: Tuesday, April 27, 2004 2:37 PM Subject: Re: [nycphp-talk] PHP vs ASP > Actually that's not quite a valid reason. I had a contract job once > where I built PHP pages on a secured IIS platform for an intranet web > portal. IIS doesn't always associate with ASP. > > Phil > > yury at heavenspa.com wrote: > > >simple.. how many IIS servers get hacked. Now how many unix/linux boxes get > >hacked.. > >- case closed! > > > >ciao > >yury > > > >p.s. if your ready to flame me... please don't.. > >----- Original Message ----- > >From: "Carlos G. Chiossone" > >To: "NYPHP Talk" > >Sent: Tuesday, April 27, 2004 2:04 PM > >Subject: [nycphp-talk] PHP vs ASP > > > > > >Hi all, anyone knows an up-to-date site where I can gather some > >reasoning for a client that wants to use ASP. I am trying to make the > >case that PHP is better. But all I find is from 2002 and older. > > > >Something in the line of http://php.weblogs.com/php_vs_asp would be > >great. > > > >Thanks, > >Carlos > > > >_______________________________________________ > >talk mailing list > >talk at lists.nyphp.org > >http://lists.nyphp.org/mailman/listinfo/talk > > > >_______________________________________________ > >talk mailing list > >talk at lists.nyphp.org > >http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > > -- > -------------------------------------------------------------------------- ------- > Phil Powell > Multimedia Programmer > ADNET Systems., Inc. > 11260 Roger Bacon Drive Suite 403 > Reston, VA 20191 > #: (703) 709-7218 x107 > Fax: (703) 709-7219 > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > >From hans not junk at nyphp.com Tue Apr 27 14:51:10 2004 Return-Path: Received: from ehost011-1.intermedia.net (ehost011-1.intermedia.net [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id 2644FA87F3 for ; Tue, 27 Apr 2004 14:51:10 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 27 Apr 2004 11:51:07 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8701A49790 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: PDF Generation Thread-Index: AcQsiN2djHoLrWvaSjqvEoVvtHzrUg== From: "Hans Zaunere" To: "NYPHP Talk" Subject: [nycphp-talk] PDF Generation X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2004 18:51:10 -0000 We have an existing form in PDF that is typically printed and used. However, now they want some of the information to - of course - be automatically be filled out from our database, and then downloadable and printable. Although only a single page, the form is quite nasty. Although, I must say, graphics/colors/etc aren't a concern. I'm looking for ways to fill in the information via PHP with the least amount of vector graphics calculations, Postscript, or whatever else (this is mostly uncharted territory for me). Some thoughts -- since the form is already in PDF, can I convert it to HTML. Then, using HTML as the template, fill in the information and convert back to PDF? I can't just stick to HTML because I'm concerned about printing issues. -- are there good (commercial is fine) libraries that let me do this? While something native in PHP would be nice (I've seen PDFLib.com) I'd have no problem using an external command and piping information around. -- does Adobe, or anyone else, offer programmatic ways to use existing PDFs as templates? -- are there other/better ways to do this that I'm missing? Money is less of a concern than time. Thanks, H P.S: Next step; sending print jobs to HP printers from Apache/PHP From agfische at email.smith.edu Tue Apr 27 14:46:27 2004 From: agfische at email.smith.edu (Aaron Fischer) Date: Tue, 27 Apr 2004 14:46:27 -0400 Subject: [nycphp-talk] Re: [nycphp-announce] TONIGHT@nyphp: CeBIT Americ a FREE Pass; An Introduction to Clew In-Reply-To: References: Message-ID: <30963912-987B-11D8-B9B4-000A95AF225A@email.smith.edu> Awesome Mike, thanks! A few weeks ago I drove to visit some relatives a couple hours away. It totally rocked to be *productive* listening to some NYPHP meetings on the way over and back. Hope to come down to a meeting sometime soon, -Aaron On Apr 27, 2004, at 2:39 PM, DeWitt, Michael wrote: > I am planning on it. Glad you are finding them useful. > > Mike > > > >> -----Original Message----- >> From: Aaron Fischer [SMTP:agfische at email.smith.edu] >> Sent: Tuesday, April 27, 2004 2:36 PM >> To: NYPHP Talk >> Subject: [nycphp-talk] Re: [nycphp-announce] TONIGHT at nyphp: CeBIT >> America FREE Pass; An Introduction to Clew >> >> I'm really interested in this but unfortunately will not be able to >> make the drive to NYC tonight. Will the meeting be recorded? Mike >> D.? >> =) >> > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From jeffknight at mac.com Tue Apr 27 14:53:45 2004 From: jeffknight at mac.com (Jeff Knight) Date: Tue, 27 Apr 2004 14:53:45 -0400 Subject: [nycphp-talk] PDF Generation In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8701A49790@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8701A49790@ehost011-1.exch011.intermedia.net> Message-ID: <35B7204A-987C-11D8-9BD0-000393B9FB36@mac.com> On Apr 27, 2004, at 2:51 PM, Hans Zaunere wrote: > -- are there good (commercial is fine) libraries that let me do this? > While something native in PHP would be nice (I've seen PDFLib.com) I'd > have no problem using an external command and piping information > around. http://www.fpdf.org/ jeff.knight not junkmail at nyphp.org From mwithington at PLMresearch.com Tue Apr 27 14:54:08 2004 From: mwithington at PLMresearch.com (Mark L. Withington) Date: Tue, 27 Apr 2004 14:54:08 -0400 Subject: [nycphp-talk] PDF Generation In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358A8543A@network.PLMresearch.com> Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358A7BA50@network.PLMresearch.com> Don't know if this is what you're looking for. I use htmldoc-1.8.23 to convert HTML pages to PDF. Works great. Find it at http://www.easysw.com/htmldoc/ -------------------------- Mark L. Withington PLMresearch "eBusiness for the Midsize Enterprise" PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 http://www.PLMresearch.com Netscape/AOL/MSN IM: PLMresearch mwithington at plmresearch.com Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmresearch.com/calendar.php -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Hans Zaunere Sent: Tuesday, April 27, 2004 2:51 PM To: NYPHP Talk Subject: [nycphp-talk] PDF Generation We have an existing form in PDF that is typically printed and used. However, now they want some of the information to - of course - be automatically be filled out from our database, and then downloadable and printable. Although only a single page, the form is quite nasty. Although, I must say, graphics/colors/etc aren't a concern. I'm looking for ways to fill in the information via PHP with the least amount of vector graphics calculations, Postscript, or whatever else (this is mostly uncharted territory for me). Some thoughts -- since the form is already in PDF, can I convert it to HTML. Then, using HTML as the template, fill in the information and convert back to PDF? I can't just stick to HTML because I'm concerned about printing issues. -- are there good (commercial is fine) libraries that let me do this? While something native in PHP would be nice (I've seen PDFLib.com) I'd have no problem using an external command and piping information around. -- does Adobe, or anyone else, offer programmatic ways to use existing PDFs as templates? -- are there other/better ways to do this that I'm missing? Money is less of a concern than time. Thanks, H P.S: Next step; sending print jobs to HP printers from Apache/PHP _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3372 bytes Desc: not available URL: From phillip.powell at adnet-sys.com Tue Apr 27 14:59:01 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 27 Apr 2004 14:59:01 -0400 Subject: [nycphp-talk] PHP vs ASP In-Reply-To: <04d201c42c87$b2f34130$0400a8c0@heavenspanyc> References: <49A9DEB886049242BA28C484A36C03F15A73D4@email.sprout.net><049601c42c84$3dd76cd0$0400a8c0@heavenspanyc> <408EA84F.4010309@adnet-sys.com> <04d201c42c87$b2f34130$0400a8c0@heavenspanyc> Message-ID: <408EAD75.5020801@adnet-sys.com> It's not that difficult to switch the settings in IIS to allow for the evaluation of PHP alongside ASP.. but consider the platform and ask yourself, WHY??? Phil yury at heavenspa.com wrote: >my naivety shows... true, but how rare is it to have php on IIS? and do you >have to jump thru a million loopholes to get it to work correctly.. > >peoples.. this is coming from a PHP hack.. not a hacker :) > >:) >yury > >/me thinks i should shut up and leave for coffee >----- Original Message ----- >From: "Phillip Powell" >To: "NYPHP Talk" >Sent: Tuesday, April 27, 2004 2:37 PM >Subject: Re: [nycphp-talk] PHP vs ASP > > > > >>Actually that's not quite a valid reason. I had a contract job once >>where I built PHP pages on a secured IIS platform for an intranet web >>portal. IIS doesn't always associate with ASP. >> >>Phil >> >>yury at heavenspa.com wrote: >> >> >> >>>simple.. how many IIS servers get hacked. Now how many unix/linux boxes >>> >>> >get > > >>>hacked.. >>>- case closed! >>> >>>ciao >>>yury >>> >>>p.s. if your ready to flame me... please don't.. >>>----- Original Message ----- >>>From: "Carlos G. Chiossone" >>>To: "NYPHP Talk" >>>Sent: Tuesday, April 27, 2004 2:04 PM >>>Subject: [nycphp-talk] PHP vs ASP >>> >>> >>>Hi all, anyone knows an up-to-date site where I can gather some >>>reasoning for a client that wants to use ASP. I am trying to make the >>>case that PHP is better. But all I find is from 2002 and older. >>> >>>Something in the line of http://php.weblogs.com/php_vs_asp would be >>>great. >>> >>>Thanks, >>>Carlos >>> >>>_______________________________________________ >>>talk mailing list >>>talk at lists.nyphp.org >>>http://lists.nyphp.org/mailman/listinfo/talk >>> >>>_______________________________________________ >>>talk mailing list >>>talk at lists.nyphp.org >>>http://lists.nyphp.org/mailman/listinfo/talk >>> >>> >>> >>> >>> >>-- >>-------------------------------------------------------------------------- >> >> >------- > > >>Phil Powell >>Multimedia Programmer >>ADNET Systems., Inc. >>11260 Roger Bacon Drive Suite 403 >>Reston, VA 20191 >>#: (703) 709-7218 x107 >>Fax: (703) 709-7219 >> >> >> >>_______________________________________________ >>talk mailing list >>talk at lists.nyphp.org >>http://lists.nyphp.org/mailman/listinfo/talk >> >> >> > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer ADNET Systems., Inc. 11260 Roger Bacon Drive Suite 403 Reston, VA 20191 #: (703) 709-7218 x107 Fax: (703) 709-7219 From erank at isthmus.com Tue Apr 27 15:02:36 2004 From: erank at isthmus.com (Eric Rank) Date: Tue, 27 Apr 2004 14:02:36 -0500 Subject: [nycphp-talk] PDF Generation References: <41EE526EC2D3C74286415780D3BA9F8701A49790@ehost011-1.exch011.intermedia.net> <35B7204A-987C-11D8-9BD0-000393B9FB36@mac.com> Message-ID: <015e01c42c8a$34506710$8b01a8c0@DB> I haven't looked into it too much, but this sourceforge project looks promising. It doesn't use any external libraries, which is nice, especially since pdflib charges for commercial licenses. http://sourceforge.net/projects/pdf-php Eric Rank ----- Original Message ----- From: "Jeff Knight" To: "NYPHP Talk" Sent: Tuesday, April 27, 2004 1:53 PM Subject: Re: [nycphp-talk] PDF Generation > On Apr 27, 2004, at 2:51 PM, Hans Zaunere wrote: > > -- are there good (commercial is fine) libraries that let me do this? > > While something native in PHP would be nice (I've seen PDFLib.com) I'd > > have no problem using an external command and piping information > > around. > > http://www.fpdf.org/ > > > jeff.knight not junkmail at nyphp.org > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From bpang at bpang.com Tue Apr 27 15:05:26 2004 From: bpang at bpang.com (bpang at bpang.com) Date: Tue, 27 Apr 2004 15:05:26 -0400 (EDT) Subject: [nycphp-talk] PDF Generation In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8701A49790@ehost011-1.exch011.intermedi a.net> References: <41EE526EC2D3C74286415780D3BA9F8701A49790@ehost011-1.exch011.intermedi a.net> Message-ID: <44226.38.117.145.89.1083092726.squirrel@www.bpang.com> I use lpr.CUPS for this with a Kyocera Mita printer via system() took me a while to work out a lot of kinks, and to realize that CUPS was the way to go... ask again when you get to that step if you still need help. :) > P.S: Next step; sending print jobs to HP printers from Apache/PHP From bill at ilovett.com Tue Apr 27 15:11:49 2004 From: bill at ilovett.com (Bill Lovett) Date: Tue, 27 Apr 2004 15:11:49 -0400 Subject: [nycphp-talk] PDF Generation In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8701A49790@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8701A49790@ehost011-1.exch011.intermedia.net> Message-ID: <20040427191149.GA8800@scorpinox> http://www.planetpdf.com/mainpage.asp?WebPageID=369 This article talks about creating a form that submits to an asp page, but the asp part doesn't seem to do anything fancy beyond returning a special ContentType header. The approach here is to program the acrobat document and have it communicate with a server-- all the interaction happens with the pdf. You might have to add some additional buttons onto your original document (so the user can fetch whatever data they need) but I think you can flag them as being unprintable. -bill On Tue, Apr 27, 2004 at 11:51:07AM -0700, Hans Zaunere wrote: > > We have an existing form in PDF that is typically printed and used. > However, now they want some of the information to - of course - be > automatically be filled out from our database, and then downloadable and > printable. > > Although only a single page, the form is quite nasty. Although, I must > say, graphics/colors/etc aren't a concern. I'm looking for ways to fill > in the information via PHP with the least amount of vector graphics > calculations, Postscript, or whatever else (this is mostly uncharted > territory for me). > > > Some thoughts > > -- since the form is already in PDF, can I convert it to HTML. Then, > using HTML as the template, fill in the information and convert back to > PDF? I can't just stick to HTML because I'm concerned about printing > issues. > > -- are there good (commercial is fine) libraries that let me do this? > While something native in PHP would be nice (I've seen PDFLib.com) I'd > have no problem using an external command and piping information around. > > -- does Adobe, or anyone else, offer programmatic ways to use existing > PDFs as templates? > > -- are there other/better ways to do this that I'm missing? > > Money is less of a concern than time. > > Thanks, > > H > > P.S: Next step; sending print jobs to HP printers from Apache/PHP > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From willie at pdfsystems.com Tue Apr 27 15:20:10 2004 From: willie at pdfsystems.com (William Klein) Date: Tue, 27 Apr 2004 15:20:10 -0400 Subject: [php] RE: [nycphp-talk] PDF Generation Message-ID: <6EC325CAE2D97246B9983AEF6984D8E60777A7@gt1u-w3kfs1.pdfkqs.local> The only way I have found to do this is with java. Look at http://www.lowagie.com/iText/ There is some talk of porting iText to php but as far as I can tell not done yet. For generating PDFs I recomend fpdf.org But If you need to use an existing pdf as a template iText is the way to go, Hope that helps, Willie -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Mark L. Withington Sent: Tuesday, April 27, 2004 2:54 PM To: 'NYPHP Talk' Subject: [php] RE: [nycphp-talk] PDF Generation Don't know if this is what you're looking for. I use htmldoc-1.8.23 to convert HTML pages to PDF. Works great. Find it at http://www.easysw.com/htmldoc/ -------------------------- Mark L. Withington PLMresearch "eBusiness for the Midsize Enterprise" PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 http://www.PLMresearch.com Netscape/AOL/MSN IM: PLMresearch mwithington at plmresearch.com Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmresearch.com/calendar.php -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Hans Zaunere Sent: Tuesday, April 27, 2004 2:51 PM To: NYPHP Talk Subject: [nycphp-talk] PDF Generation We have an existing form in PDF that is typically printed and used. However, now they want some of the information to - of course - be automatically be filled out from our database, and then downloadable and printable. Although only a single page, the form is quite nasty. Although, I must say, graphics/colors/etc aren't a concern. I'm looking for ways to fill in the information via PHP with the least amount of vector graphics calculations, Postscript, or whatever else (this is mostly uncharted territory for me). Some thoughts -- since the form is already in PDF, can I convert it to HTML. Then, using HTML as the template, fill in the information and convert back to PDF? I can't just stick to HTML because I'm concerned about printing issues. -- are there good (commercial is fine) libraries that let me do this? While something native in PHP would be nice (I've seen PDFLib.com) I'd have no problem using an external command and piping information around. -- does Adobe, or anyone else, offer programmatic ways to use existing PDFs as templates? -- are there other/better ways to do this that I'm missing? Money is less of a concern than time. Thanks, H P.S: Next step; sending print jobs to HP printers from Apache/PHP _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3730 bytes Desc: not available URL: From sailer at bnl.gov Tue Apr 27 15:22:59 2004 From: sailer at bnl.gov (Tim Sailer) Date: Tue, 27 Apr 2004 15:22:59 -0400 Subject: [php] RE: [nycphp-talk] PDF Generation In-Reply-To: <6EC325CAE2D97246B9983AEF6984D8E60777A7@gt1u-w3kfs1.pdfkqs.local> References: <6EC325CAE2D97246B9983AEF6984D8E60777A7@gt1u-w3kfs1.pdfkqs.local> Message-ID: <20040427192259.GB5805@bnl.gov> I think ezpdf can do things like that. It's over a year since I looked at it, but, if my failing memory is actually right, you can use a base image or pdf to start. Tim On Tue, Apr 27, 2004 at 03:20:10PM -0400, William Klein wrote: > The only way I have found to do this is with java. Look at > http://www.lowagie.com/iText/ > > There is some talk of porting iText to php but as far as I can tell not > done yet. > > For generating PDFs I recomend fpdf.org > > But If you need to use an existing pdf as a template iText is the way to > go, > > Hope that helps, > > Willie > > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Mark L. Withington > Sent: Tuesday, April 27, 2004 2:54 PM > To: 'NYPHP Talk' > Subject: [php] RE: [nycphp-talk] PDF Generation > > > Don't know if this is what you're looking for. I use htmldoc-1.8.23 to > convert HTML pages to PDF. Works great. Find it at > http://www.easysw.com/htmldoc/ > > -------------------------- > Mark L. Withington > PLMresearch > "eBusiness for the Midsize Enterprise" > PO Box 1354 > Plymouth, MA 02362 > o: 800-310-3992 > f: 508-746-4973 > v: 508-746-2383 > m: 508-801-0181 > http://www.PLMresearch.com > Netscape/AOL/MSN IM: PLMresearch > mwithington at plmresearch.com > Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc > Calendar: http://www.plmresearch.com/calendar.php > > > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Hans Zaunere > Sent: Tuesday, April 27, 2004 2:51 PM > To: NYPHP Talk > Subject: [nycphp-talk] PDF Generation > > > We have an existing form in PDF that is typically printed and used. > However, now they want some of the information to - of course - be > automatically be filled out from our database, and then downloadable and > printable. > > Although only a single page, the form is quite nasty. Although, I must > say, graphics/colors/etc aren't a concern. I'm looking for ways to fill > in the information via PHP with the least amount of vector graphics > calculations, Postscript, or whatever else (this is mostly uncharted > territory for me). > > > Some thoughts > > -- since the form is already in PDF, can I convert it to HTML. Then, > using HTML as the template, fill in the information and convert back to > PDF? I can't just stick to HTML because I'm concerned about printing > issues. > > -- are there good (commercial is fine) libraries that let me do this? > While something native in PHP would be nice (I've seen PDFLib.com) I'd > have no problem using an external command and piping information around. > > -- does Adobe, or anyone else, offer programmatic ways to use existing > PDFs as templates? > > -- are there other/better ways to do this that I'm missing? > > Money is less of a concern than time. > > Thanks, > > H > > P.S: Next step; sending print jobs to HP printers from Apache/PHP > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk -- Tim Sailer Information and Special Technologies Program Office of CounterIntelligence Brookhaven National Laboratory (631) 344-3001 From jsiegel1 at optonline.net Tue Apr 27 15:40:38 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Tue, 27 Apr 2004 15:40:38 -0400 Subject: [nycphp-talk] PDF Generation In-Reply-To: <35B7204A-987C-11D8-9BD0-000393B9FB36@mac.com> References: <41EE526EC2D3C74286415780D3BA9F8701A49790@ehost011-1.exch011.intermedia.net> <35B7204A-987C-11D8-9BD0-000393B9FB36@mac.com> Message-ID: <408EB736.5010302@optonline.net> Used FPDF for a little project. It works quite nicely. Jeff Siegel ---------------- Jeff Knight wrote: > On Apr 27, 2004, at 2:51 PM, Hans Zaunere wrote: > >> -- are there good (commercial is fine) libraries that let me do this? >> While something native in PHP would be nice (I've seen PDFLib.com) I'd >> have no problem using an external command and piping information around. > > > http://www.fpdf.org/ > > > jeff.knight not junkmail at nyphp.org > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From jonbaer at jonbaer.net Tue Apr 27 15:42:45 2004 From: jonbaer at jonbaer.net (jon baer) Date: Tue, 27 Apr 2004 15:42:45 -0400 Subject: [nycphp-talk] PDF Generation References: <41EE526EC2D3C74286415780D3BA9F8701A49790@ehost011-1.exch011.intermedia.net> <35B7204A-987C-11D8-9BD0-000393B9FB36@mac.com> Message-ID: <008b01c42c8f$d06c4b00$6500a8c0@thinkpad> > > http://www.fpdf.org/ > This is what I use most of the time ... what I would do is position all the graphics in the form of a template (borders, logos, etc) and use it as an overlay to your dynamic content. This package uses simple functions like AddPage(), Cell(), Line(), Image() which helps precalculate X,Y's for the lazy :-) - Jon From rsd at electronink.com Tue Apr 27 15:46:01 2004 From: rsd at electronink.com (Russ Demarest) Date: Tue, 27 Apr 2004 15:46:01 -0400 Subject: [php] RE: [nycphp-talk] PDF Generation In-Reply-To: <20040427192259.GB5805@bnl.gov> References: <6EC325CAE2D97246B9983AEF6984D8E60777A7@gt1u-w3kfs1.pdfkqs.local> <20040427192259.GB5805@bnl.gov> Message-ID: <83553386-9883-11D8-B5DB-000A957E8754@electronink.com> I have been using HTMLDoc for over a year generating dynamic PDF's on the fly. All it requires is a proper HTML 3.2 document and out comes a PDF. It integrates well with PHP and I find a huge time saver from designing with one of the PDF libraries, but that is me. Russ On Apr 27, 2004, at 3:22 PM, Tim Sailer wrote: > I think ezpdf can do things like that. It's over a year since I > looked at it, but, if my failing memory is actually right, you can > use a base image or pdf to start. > > Tim > > On Tue, Apr 27, 2004 at 03:20:10PM -0400, William Klein wrote: >> The only way I have found to do this is with java. Look at >> http://www.lowagie.com/iText/ >> >> There is some talk of porting iText to php but as far as I can tell >> not >> done yet. >> >> For generating PDFs I recomend fpdf.org >> >> But If you need to use an existing pdf as a template iText is the way >> to >> go, >> >> Hope that helps, >> >> Willie >> >> -----Original Message----- >> From: talk-bounces at lists.nyphp.org >> [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Mark L. Withington >> Sent: Tuesday, April 27, 2004 2:54 PM >> To: 'NYPHP Talk' >> Subject: [php] RE: [nycphp-talk] PDF Generation >> >> >> Don't know if this is what you're looking for. I use htmldoc-1.8.23 >> to >> convert HTML pages to PDF. Works great. Find it at >> http://www.easysw.com/htmldoc/ >> >> -------------------------- >> Mark L. Withington >> PLMresearch >> "eBusiness for the Midsize Enterprise" >> PO Box 1354 >> Plymouth, MA 02362 >> o: 800-310-3992 >> f: 508-746-4973 >> v: 508-746-2383 >> m: 508-801-0181 >> http://www.PLMresearch.com >> Netscape/AOL/MSN IM: PLMresearch >> mwithington at plmresearch.com >> Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc >> Calendar: http://www.plmresearch.com/calendar.php >> >> >> -----Original Message----- >> From: talk-bounces at lists.nyphp.org >> [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Hans Zaunere >> Sent: Tuesday, April 27, 2004 2:51 PM >> To: NYPHP Talk >> Subject: [nycphp-talk] PDF Generation >> >> >> We have an existing form in PDF that is typically printed and used. >> However, now they want some of the information to - of course - be >> automatically be filled out from our database, and then downloadable >> and >> printable. >> >> Although only a single page, the form is quite nasty. Although, I >> must >> say, graphics/colors/etc aren't a concern. I'm looking for ways to >> fill >> in the information via PHP with the least amount of vector graphics >> calculations, Postscript, or whatever else (this is mostly uncharted >> territory for me). >> >> >> Some thoughts >> >> -- since the form is already in PDF, can I convert it to HTML. Then, >> using HTML as the template, fill in the information and convert back >> to >> PDF? I can't just stick to HTML because I'm concerned about printing >> issues. >> >> -- are there good (commercial is fine) libraries that let me do this? >> While something native in PHP would be nice (I've seen PDFLib.com) I'd >> have no problem using an external command and piping information >> around. >> >> -- does Adobe, or anyone else, offer programmatic ways to use existing >> PDFs as templates? >> >> -- are there other/better ways to do this that I'm missing? >> >> Money is less of a concern than time. >> >> Thanks, >> >> H >> >> P.S: Next step; sending print jobs to HP printers from Apache/PHP >> >> >> >> _______________________________________________ >> talk mailing list >> talk at lists.nyphp.org >> http://lists.nyphp.org/mailman/listinfo/talk > > >> _______________________________________________ >> talk mailing list >> talk at lists.nyphp.org >> http://lists.nyphp.org/mailman/listinfo/talk > > > -- > Tim Sailer > Information and Special Technologies Program > Office of CounterIntelligence > Brookhaven National Laboratory (631) 344-3001 > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From eric at persson.tm Tue Apr 27 15:49:56 2004 From: eric at persson.tm (Eric Persson) Date: Tue, 27 Apr 2004 21:49:56 +0200 Subject: [nycphp-talk] PDF Generation In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8701A49790@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8701A49790@ehost011-1.exch011.intermedia.net> Message-ID: <408EB964.5090503@persson.tm> I use http://www.ros.co.nz/pdf for the creation of all my invoices, I do create everything from scratch though, with borders and graphics. The optimal soloution would be to open an existing pdf and just add text/images to various places. I know Adobe have some server software which is awesome at creating pdfs for printing and other stuff, but it costs a lot of dough unfortunately and requires extra servers to. //Eric Hans Zaunere wrote: > We have an existing form in PDF that is typically printed and used. > However, now they want some of the information to - of course - be > automatically be filled out from our database, and then downloadable and > printable. > > Although only a single page, the form is quite nasty. Although, I must > say, graphics/colors/etc aren't a concern. I'm looking for ways to fill > in the information via PHP with the least amount of vector graphics > calculations, Postscript, or whatever else (this is mostly uncharted > territory for me). > > > Some thoughts > > -- since the form is already in PDF, can I convert it to HTML. Then, > using HTML as the template, fill in the information and convert back to > PDF? I can't just stick to HTML because I'm concerned about printing > issues. > > -- are there good (commercial is fine) libraries that let me do this? > While something native in PHP would be nice (I've seen PDFLib.com) I'd > have no problem using an external command and piping information around. > > -- does Adobe, or anyone else, offer programmatic ways to use existing > PDFs as templates? > > -- are there other/better ways to do this that I'm missing? > > Money is less of a concern than time. > > Thanks, > > H > > P.S: Next step; sending print jobs to HP printers from Apache/PHP > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From willie at pdfsystems.com Tue Apr 27 15:58:29 2004 From: willie at pdfsystems.com (William Klein) Date: Tue, 27 Apr 2004 15:58:29 -0400 Subject: [php] RE: [nycphp-talk] PDF Generation Message-ID: <6EC325CAE2D97246B9983AEF6984D8E60777A8@gt1u-w3kfs1.pdfkqs.local> Again I love fpdf. easy-pdf looks good too but it will not add data to an existing form here is a forum thread. http://sourceforge.net/forum/message.php?msg_id=1908901 I went through this a few months ago. iText will do it. You create a FDF file with Acrobat and iText will fill in the fields -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Tim Sailer Sent: Tuesday, April 27, 2004 3:23 PM To: NYPHP Talk Subject: Re: [php] RE: [nycphp-talk] PDF Generation I think ezpdf can do things like that. It's over a year since I looked at it, but, if my failing memory is actually right, you can use a base image or pdf to start. Tim On Tue, Apr 27, 2004 at 03:20:10PM -0400, William Klein wrote: > The only way I have found to do this is with java. Look at > http://www.lowagie.com/iText/ > > There is some talk of porting iText to php but as far as I can tell not > done yet. > > For generating PDFs I recomend fpdf.org > > But If you need to use an existing pdf as a template iText is the way to > go, > > Hope that helps, > > Willie > > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Mark L. Withington > Sent: Tuesday, April 27, 2004 2:54 PM > To: 'NYPHP Talk' > Subject: [php] RE: [nycphp-talk] PDF Generation > > > Don't know if this is what you're looking for. I use htmldoc-1.8.23 to > convert HTML pages to PDF. Works great. Find it at > http://www.easysw.com/htmldoc/ > > -------------------------- > Mark L. Withington > PLMresearch > "eBusiness for the Midsize Enterprise" > PO Box 1354 > Plymouth, MA 02362 > o: 800-310-3992 > f: 508-746-4973 > v: 508-746-2383 > m: 508-801-0181 > http://www.PLMresearch.com > Netscape/AOL/MSN IM: PLMresearch > mwithington at plmresearch.com > Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc > Calendar: http://www.plmresearch.com/calendar.php > > > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Hans Zaunere > Sent: Tuesday, April 27, 2004 2:51 PM > To: NYPHP Talk > Subject: [nycphp-talk] PDF Generation > > > We have an existing form in PDF that is typically printed and used. > However, now they want some of the information to - of course - be > automatically be filled out from our database, and then downloadable and > printable. > > Although only a single page, the form is quite nasty. Although, I must > say, graphics/colors/etc aren't a concern. I'm looking for ways to fill > in the information via PHP with the least amount of vector graphics > calculations, Postscript, or whatever else (this is mostly uncharted > territory for me). > > > Some thoughts > > -- since the form is already in PDF, can I convert it to HTML. Then, > using HTML as the template, fill in the information and convert back to > PDF? I can't just stick to HTML because I'm concerned about printing > issues. > > -- are there good (commercial is fine) libraries that let me do this? > While something native in PHP would be nice (I've seen PDFLib.com) I'd > have no problem using an external command and piping information around. > > -- does Adobe, or anyone else, offer programmatic ways to use existing > PDFs as templates? > > -- are there other/better ways to do this that I'm missing? > > Money is less of a concern than time. > > Thanks, > > H > > P.S: Next step; sending print jobs to HP printers from Apache/PHP > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk -- Tim Sailer Information and Special Technologies Program Office of CounterIntelligence Brookhaven National Laboratory (631) 344-3001 _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From Rafi.Sheikh at Ingenix.com Tue Apr 27 15:51:37 2004 From: Rafi.Sheikh at Ingenix.com (Rafi Sheikh) Date: Tue, 27 Apr 2004 14:51:37 -0500 Subject: [nycphp-talk] Unix Font Issue Message-ID: BASIC: Apache 1.3.29 PHP 4.3.4 MySQL 3.x GD Enabled: Yes IBM F-40 AIX 5.1 ISSUE: Hi list, hope every one is doing great. My issue is with fonts. I have to comment out all the fonts references (I am using it jpgraph) to get the script to work. None of the fonts work, even though my unix admin has compiled and installed, etc, checked permissions...we are stumped. Any one has any idea, maybe something we did not do with Apache, or PHP? Any ideas? Best wishes, RS This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. From Rafi.Sheikh at Ingenix.com Tue Apr 27 15:51:37 2004 From: Rafi.Sheikh at Ingenix.com (Rafi Sheikh) Date: Tue, 27 Apr 2004 14:51:37 -0500 Subject: [nycphp-talk] [users@httpd] Unix Font Issue Message-ID: BASIC: Apache 1.3.29 PHP 4.3.4 MySQL 3.x GD Enabled: Yes IBM F-40 AIX 5.1 ISSUE: Hi list, hope every one is doing great. My issue is with fonts. I have to comment out all the fonts references (I am using it jpgraph) to get the script to work. None of the fonts work, even though my unix admin has compiled and installed, etc, checked permissions...we are stumped. Any one has any idea, maybe something we did not do with Apache, or PHP? Any ideas? Best wishes, RS This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe at httpd.apache.org " from the digest: users-digest-unsubscribe at httpd.apache.org For additional commands, e-mail: users-help at httpd.apache.org From shiflett at php.net Tue Apr 27 15:58:49 2004 From: shiflett at php.net (Chris Shiflett) Date: Tue, 27 Apr 2004 12:58:49 -0700 (PDT) Subject: [nycphp-talk] PHP vs ASP In-Reply-To: <04d201c42c87$b2f34130$0400a8c0@heavenspanyc> Message-ID: <20040427195849.38366.qmail@web14306.mail.yahoo.com> --- yury at heavenspa.com wrote: > my naivety shows... true, but how rare is it to have php on IIS? Not as rare as it should be. In fact, it's apparently common enough that Zend now offers WinEnabler: http://www.zend.com/store/products/zend-win-enabler.php In the past, PHP on Windows hasn't been terribly great, due largely in part to the fact that the focus has always been on Unix platforms, since that is what most server environments run. I think Zend is seeking to make PHP a more viable option for Windows shops, although I agree with the voiced concern over IIS. Even the Gartner Group advises against running IIS in mission-critical environments. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From shiflett at php.net Tue Apr 27 16:01:41 2004 From: shiflett at php.net (Chris Shiflett) Date: Tue, 27 Apr 2004 13:01:41 -0700 (PDT) Subject: [nycphp-talk] PHP vs ASP In-Reply-To: <49A9DEB886049242BA28C484A36C03F15A73D6@email.sprout.net> Message-ID: <20040427200141.92310.qmail@web14308.mail.yahoo.com> --- "Carlos G. Chiossone" wrote: > But I don't understand the IIS ASP association. Guessing a statistic, I bet more than 95% of applications written in ASP run on IIS. That is the association. On the other hand, I bet less than 5% of applications running on Apache are written in ASP. Apache/ASP and IIS/PHP are possible, but these are rare combinations. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From chubbard at next-online.net Tue Apr 27 17:48:07 2004 From: chubbard at next-online.net (Chris Hubbard) Date: Tue, 27 Apr 2004 14:48:07 -0700 Subject: [nycphp-talk] PHP vs ASP In-Reply-To: <20040427200141.92310.qmail@web14308.mail.yahoo.com> References: <20040427200141.92310.qmail@web14308.mail.yahoo.com> Message-ID: <91FFB6E4-9894-11D8-A788-000A95BAE752@next-online.net> I personally know of a number of production relatively high volume sites using IIS and PHP. For the most part PHP doesn't care what the httpd is. As for the original question, I don't know of any sites that do a ASP (which version?) vs. PHP (which version?) As for the implied question, Is PHP better than ASP? Depends on how you define 'better'. 1. With ASP you'll usually end up using MS SQL. With PHP you'll usually end up using MySQL or PostgreSQL. MS SQL is expensive to purchase and does require active administration 2. With ASP you'll usually be using the native objects/classes provided by Microsoft. With PHP well, I don't know if there is a usual. You could use PEAR or any other thing you wanted. Using the Microsoft classes is a significantly steeper learning curve. 3. With ASP there are well publicized exploits that a hacker can and will attempt to use. With PHP there are still exploits but they're not as well publicized and there's almost no way a hacker can guess which set of exploits to use before looking at the site. 4. Internationally I am willing to bet there are more PHP developers than ASP developers. Domestically I am willing to bet there are more ASP developers than PHP developers. 5. In ASP, if an ASP class doesn't behave the way you want, it's difficult to dig into it to find out what it's doing, and is a task for only strong developers. In PHP, if a class doesn't behave the way you want, then you change it. 6. Well written ASP vs well written PHP is almost a wash. The PHP code will typically run a bit faster on comparable hardware. This might be a function of the httpd instead of the language. 7. Well written ASP is as easy to maintain as well written PHP. 8. It's somewhat easier to create poorly written ASP than poorly written PHP. But not by much. 9. If you're building a web app, and you're not using FrontPage, PHP is a great choice. If you're building a web app, and you're using Frontpage, then ASP is the best choice. 10. If you're writing code to integrate with MS Office, then ASP is the language to use. 11. If you want to leverage the efforts of 10,000's of developers worldwide, and you don't want to be tied to the seemingly random and capricious actions of a large corporation, then PHP is the language to use. 12. If you are willing to build your application the way Microsoft thinks you should want to build your application, then use ASP. If you want to build the application your way (or the clients way), then use PHP. I started in the VB/ASP world. I used to work at Microsoft (as a contractor) where I wrote ASP code, among other duties. I personally think PHP is a much better solution to most problems. The thing that sold me on PHP is #12 above. I've built over 250 web sites/applications. I'd be willing to bet that less than 20 are built the way Microsoft thinks I should want to build the application. This is a really big deal. To me this is by far the most important part of the conversation. I need to have a language/framework that lets me build the application the way I want to build it. There are limitations in both languages. There are workarounds in both languages. If the boss thinks that ASP is a better language based on some marketing-esque stuff that s/he has read somewhere then the boss is probably 'wrong'. But the 'rightness' or 'wrongness' of either language depends on your undefined 'better'. (the other) Chris On Apr 27, 2004, at 1:01 PM, Chris Shiflett wrote: > --- "Carlos G. Chiossone" wrote: >> But I don't understand the IIS ASP association. > > Guessing a statistic, I bet more than 95% of applications written in > ASP > run on IIS. That is the association. > > On the other hand, I bet less than 5% of applications running on Apache > are written in ASP. > > Apache/ASP and IIS/PHP are possible, but these are rare combinations. > > Chris > > ===== > Chris Shiflett - http://shiflett.org/ > > PHP Security - O'Reilly > Coming Fall 2004 > HTTP Developer's Handbook - Sams > http://httphandbook.org/ > PHP Community Site > http://phpcommunity.org/ > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > Chris Hubbard chubbard at next-online.net 425 563 4153 From mogmios at mlug.missouri.edu Tue Apr 27 22:46:35 2004 From: mogmios at mlug.missouri.edu (Michael) Date: Tue, 27 Apr 2004 19:46:35 -0700 Subject: [nycphp-talk] job for flash freak Message-ID: <408F1B0B.6030701@mlug.missouri.edu> Any flash freaks looking for contract work? From jsiegel1 at optonline.net Tue Apr 27 23:27:12 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Tue, 27 Apr 2004 23:27:12 -0400 Subject: [nycphp-talk] NEW PHundamentals Article - Spoofed Form Submissions Message-ID: <408F2490.6040209@optonline.net> A new PHundamentals article - Spoofed Form Submissions - has been posted. As is our usual practice, this article is in beta form and is subject to revision. Comments and suggestions are welcome. See: http://phundamentals.nyphp.org/PH_spoofed_submission.php?expiredate=5/12/2004 Jeff Siegel & Michael Southwell The PHundamentals Team From jsiegel1 at optonline.net Wed Apr 28 09:18:43 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Wed, 28 Apr 2004 09:18:43 -0400 Subject: [nycphp-talk] NEW PHundamentals Article - Spoofed Form Submissions Message-ID: <408FAF33.5050808@optonline.net> A new PHundamentals article - Spoofed Form Submissions - has been posted. As is our usual practice, this article is in beta form and is subject to revision. Comments and suggestions are welcome. See: http://phundamentals.nyphp.org/PH_spoofed_submission.php?expiredate=5/12/2004 Jeff Siegel & Michael Southwell The PHundamentals Team >From hans not junk at nyphp.com Wed Apr 28 10:47:29 2004 Return-Path: Received: from ehost011-1.intermedia.net (ehost011-1.intermedia.net [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id BAAF9A85EA for ; Wed, 28 Apr 2004 10:47:28 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] PDF Generation Date: Wed, 28 Apr 2004 07:47:25 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8701B67B7A at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] PDF Generation Thread-Index: AcQsi4HuAb82T5hQT7SvfxHux2T/oQAo9EHw From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2004 14:47:29 -0000 Thanks for everyone's feedback... > http://www.planetpdf.com/mainpage.asp?WebPageID=3D369 >=20 > This article talks about creating a form that submits to an asp page, > but the asp part doesn't seem to do anything fancy beyond returning a=20 > special ContentType header. This is quite interesting, although I haven't been able to get it to work with a PHP script. The PHP script outputs exactly what the ASP script does, however I always get this error from Acrobat when trying to use the form in IE: "The file you are attempting to open contains comments or form data that are supposed to be placed on . This document cannot be found." The interesting thing is the empty "." period in the error message; somehow when I'm sending the data back from PHP it's not knowing to use the currently open PDF form. Maybe something wrong with the form itself? Any help on this would be appreciated. Great seeing everyone last night, H From agfische at email.smith.edu Wed Apr 28 10:52:30 2004 From: agfische at email.smith.edu (Aaron Fischer) Date: Wed, 28 Apr 2004 10:52:30 -0400 Subject: [nycphp-talk] web page file extensions Message-ID: Greetings, I'm starting to work on a project for a new client and am in the process of familiarizing myself with their site. They are being hosted by verio.net with PHP and MySQL support. I ran a php_info script and to my surprise got nothing back. After a few emails back and forth with their support team, I found out that in order for php to be executed the file extension needs to be .php, .xml, or .shtml. I am used to a server environment where I can have pages ending with .html and the php code is still executed just fine. So, my question is, is this fairly normal to be constrained to those file types in order to have php be executed? It seems inconvenient and unnecessary, IMO, but I don't have enough experience with different server environments to feel qualified to make this judgment. Overall, I feel like my client could be getting the same services they are paying for now for a much cheaper price from alternative hosts. Any feedback is quite welcome. TIA, -Aaron From yury at heavenspa.com Wed Apr 28 10:54:13 2004 From: yury at heavenspa.com (yury at heavenspa.com) Date: Wed, 28 Apr 2004 10:54:13 -0400 Subject: [nycphp-talk] web page file extensions References: Message-ID: <004501c42d30$ad796230$0400a8c0@heavenspanyc> Hi, can you force HTML to parse php with htaccess? Also, On the 2 -3 servers i'm working on, php extensions are the only ones that parse php code. regards yury ----- Original Message ----- From: "Aaron Fischer" To: "NYPHP Talk" Sent: Wednesday, April 28, 2004 10:52 AM Subject: [nycphp-talk] web page file extensions > Greetings, > > I'm starting to work on a project for a new client and am in the > process of familiarizing myself with their site. They are being hosted > by verio.net with PHP and MySQL support. I ran a php_info script and > to my surprise got nothing back. After a few emails back and forth > with their support team, I found out that in order for php to be > executed the file extension needs to be .php, .xml, or .shtml. I am > used to a server environment where I can have pages ending with .html > and the php code is still executed just fine. > > So, my question is, is this fairly normal to be constrained to those > file types in order to have php be executed? It seems inconvenient and > unnecessary, IMO, but I don't have enough experience with different > server environments to feel qualified to make this judgment. > > Overall, I feel like my client could be getting the same services they > are paying for now for a much cheaper price from alternative hosts. > > Any feedback is quite welcome. > > TIA, > > -Aaron > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From brian at preston-campbell.com Wed Apr 28 10:57:39 2004 From: brian at preston-campbell.com (Brian Preston-Campbell) Date: Wed, 28 Apr 2004 10:57:39 -0400 Subject: [nycphp-talk] web page file extensions In-Reply-To: References: Message-ID: <200404281057.39990.brian@preston-campbell.com> Test an .htaccess file with the following: AddType application/x-httpd-php .htm .html Depending upon the server configuration, it may allow you to parse .htm and .html files as .php Brian On Wednesday 28 April 2004 10:52 am, Aaron Fischer wrote: > Greetings, > > I'm starting to work on a project for a new client and am in the > process of familiarizing myself with their site. They are being hosted > by verio.net with PHP and MySQL support. I ran a php_info script and > to my surprise got nothing back. After a few emails back and forth > with their support team, I found out that in order for php to be > executed the file extension needs to be .php, .xml, or .shtml. I am > used to a server environment where I can have pages ending with .html > and the php code is still executed just fine. > > So, my question is, is this fairly normal to be constrained to those > file types in order to have php be executed? It seems inconvenient and > unnecessary, IMO, but I don't have enough experience with different > server environments to feel qualified to make this judgment. > > Overall, I feel like my client could be getting the same services they > are paying for now for a much cheaper price from alternative hosts. > > Any feedback is quite welcome. > > TIA, > > -Aaron > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From joel at tagword.com Wed Apr 28 12:19:47 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 28 Apr 2004 12:19:47 -0400 Subject: [nycphp-talk] web page file extensions In-Reply-To: <004501c42d30$ad796230$0400a8c0@heavenspanyc> References: <004501c42d30$ad796230$0400a8c0@heavenspanyc> Message-ID: <1083169187.4789.57.camel@bezel> On Wed, 2004-04-28 at 10:54, yury at heavenspa.com wrote: > Hi, > > can you force HTML to parse php with htaccess? > > Also, On the 2 -3 servers i'm working on, php extensions are the only ones > that parse php code. > regards > yury Try: AddHandler application/x-httpd-php .htm .html Oh, and cheers.. good meeting last night, good to finally see some faces for the names. -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From mitchy at spacemonkeylabs.com Wed Apr 28 11:06:32 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Wed, 28 Apr 2004 11:06:32 -0400 Subject: [nycphp-talk] web page file extensions In-Reply-To: References: Message-ID: <408FC878.5000406@spacemonkeylabs.com> Aaron Fischer wrote: > So, my question is, is this fairly normal to be constrained to those > file types in order to have php be executed? It seems inconvenient and > unnecessary, IMO, but I don't have enough experience with different > server environments to feel qualified to make this judgment. Technically you can tell apache to parse html as PHP code, but it is discouraged as a default. One reason is performance, as even static html will now be parsed by the php handler. You can change this in either httpd.conf or with .htaccess files, although I also consider .htaccess files a bad idea for performance reasons. -- Mitch From agfische at email.smith.edu Wed Apr 28 11:10:50 2004 From: agfische at email.smith.edu (Aaron Fischer) Date: Wed, 28 Apr 2004 11:10:50 -0400 Subject: [nycphp-talk] web page file extensions In-Reply-To: <408FC878.5000406@spacemonkeylabs.com> References: <408FC878.5000406@spacemonkeylabs.com> Message-ID: <3C349305-9926-11D8-A79E-000A95AF225A@email.smith.edu> I certainly don't want to make a change that will hurt performance as this is more of an personal aesthetic issue more than anything else. If performance is better given the scenario mentioned, I shall shift my current aesthetic preferences. =) -Aaron On Apr 28, 2004, at 11:06 AM, Mitch Pirtle wrote: >> So, my question is, is this fairly normal to be constrained to those >> file types in order to have php be executed? It seems inconvenient >> and unnecessary, IMO, but I don't have enough experience with >> different server environments to feel qualified to make this >> judgment. > > Technically you can tell apache to parse html as PHP code, but it is > discouraged as a default. One reason is performance, as even static > html will now be parsed by the php handler. > > You can change this in either httpd.conf or with .htaccess files, > although I also consider .htaccess files a bad idea for performance > reasons. From bpang at bpang.com Wed Apr 28 11:16:17 2004 From: bpang at bpang.com (bpang at bpang.com) Date: Wed, 28 Apr 2004 11:16:17 -0400 (EDT) Subject: [nycphp-talk] web page file extensions In-Reply-To: <200404281057.39990.brian@preston-campbell.com> References: <200404281057.39990.brian@preston-campbell.com> Message-ID: <33435.38.117.145.89.1083165377.squirrel@www.bpang.com> Isn't it considered wasteful to have the server parse .html pages? Using the .php extension tells the server to only bother parsing those pages that need it. Use the .html extension for those pages that truly are static. Although, I have to admit, I rarely create any page these days that is not parsed. If that is the case for you, then I suppose that parsing .html would be net-net the same thing. If you have one of Verio's VPS setups, you can find your httpd.conf file and edit it yourself, too. Use iManager to submit an Apache restart request. php_info() will tell you where the httpd.conf file is... /usr/etc/local/httpd.conf but remember that that location starts from your account's root dir.. so it's really ~/usr/etc/local/httpd.conf > Test an .htaccess file with the following: > > AddType application/x-httpd-php .htm .html > > Depending upon the server configuration, it may allow you to parse .htm > and > .html files as .php > > Brian > > On Wednesday 28 April 2004 10:52 am, Aaron Fischer wrote: >> Greetings, >> >> I'm starting to work on a project for a new client and am in the >> process of familiarizing myself with their site. They are being hosted >> by verio.net with PHP and MySQL support. I ran a php_info script and >> to my surprise got nothing back. After a few emails back and forth >> with their support team, I found out that in order for php to be >> executed the file extension needs to be .php, .xml, or .shtml. I am >> used to a server environment where I can have pages ending with .html >> and the php code is still executed just fine. >> >> So, my question is, is this fairly normal to be constrained to those >> file types in order to have php be executed? It seems inconvenient and >> unnecessary, IMO, but I don't have enough experience with different >> server environments to feel qualified to make this judgment. >> >> Overall, I feel like my client could be getting the same services they >> are paying for now for a much cheaper price from alternative hosts. From adam at trachtenberg.com Wed Apr 28 11:29:58 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Wed, 28 Apr 2004 11:29:58 -0400 (EDT) Subject: [nycphp-talk] web page file extensions In-Reply-To: <3C349305-9926-11D8-A79E-000A95AF225A@email.smith.edu> References: <408FC878.5000406@spacemonkeylabs.com> <3C349305-9926-11D8-A79E-000A95AF225A@email.smith.edu> Message-ID: On Wed, 28 Apr 2004, Aaron Fischer wrote: > I certainly don't want to make a change that will hurt performance as > this is more of an personal aesthetic issue more than anything else. > If performance is better given the scenario mentioned, I shall shift my > current aesthetic preferences. =) While it is technically slower to have .htaccess parse all HTML pages as PHP, I don't believe it should factor into your considerations: 1) If you're on a shared server .htaccess is either already enabled or disabled. If it's enabled, you're already taking the performance hit regardless whether you map .html to PHP. So, it's essentially a "sunk cost." 2) When PHP doesn't find any References: <200404281057.39990.brian@preston-campbell.com> <33435.38.117.145.89.1083165377.squirrel@www.bpang.com> Message-ID: <4A8BA702-9929-11D8-A79E-000A95AF225A@email.smith.edu> This will probably be the case for me with this site, as it is most likely that the nav buttons will be php driven. At the very minimum, there will be that little piece of php code to execute on every page. -Aaron On Apr 28, 2004, at 11:16 AM, bpang at bpang.com wrote: > Although, I have to admit, I rarely create any page these days that is > not > parsed. If that is the case for you, then I suppose that parsing .html > would be net-net the same thing. From agfische at email.smith.edu Wed Apr 28 11:43:14 2004 From: agfische at email.smith.edu (Aaron Fischer) Date: Wed, 28 Apr 2004 11:43:14 -0400 Subject: [nycphp-talk] web page file extensions In-Reply-To: References: <408FC878.5000406@spacemonkeylabs.com> <3C349305-9926-11D8-A79E-000A95AF225A@email.smith.edu> Message-ID: On Apr 28, 2004, at 11:29 AM, Adam Maccabee Trachtenberg wrote: >> I certainly don't want to make a change that will hurt performance as >> this is more of an personal aesthetic issue more than anything else. >> If performance is better given the scenario mentioned, I shall shift >> my >> current aesthetic preferences. =) > > While it is technically slower to have .htaccess parse all HTML pages > as PHP, I don't believe it should factor into your considerations: > > 1) If you're on a shared server .htaccess is either already enabled or > disabled. If it's enabled, you're already taking the performance > hit regardless whether you map .html to PHP. So, it's essentially a > "sunk cost." Yay, a little economics lingo makes it's way into a php discussion. I love multidisciplinary approaches. =) > > 2) When PHP doesn't find any unmodified. This is a very small performance hit because there's no > complex logic. > > 3) People are used to seeing pages in .html and your site should > prevent leaking internal middleware choices to the user in the form > of file extensions. > Re. # 3, this was part of my thinking behind it. People are comfortable with seeing .html and there's definitely something to be said for that. Also, I'd rather not broadcast my coding environment/scripting language by using .php extensions. Doesn't seem logical to give any user, much less a potentially malicious one, information about your setup when you don't have to. > There is a mentality in the software developer community that anything > that impacts performance (or takes up lots of disk space, etc.) is > automatically something to be avoided. We've come a long way from the > 1960s: processors are more powerful, hard drives are much larger, RAM > is plentiful. And it's all cheaper than ever. > > We've long since passed the inflection point where hardware resources > are more expensive than business objectives and developer costs, yet > we still persist in undervaluing those two assets. Just because > hardware has a tangible price doesn't mean that it's the only part of > the process with a cost. > > Finally, I can't believe that anyone whose site is running on a shared > server could ever generate enough traffic that they'd need to worry > whether binding PHP to all .html pages in an .htaccess file would > cause a noticeable slowdown. Check and see. > Excellent, that makes sense to me. > Okay. Rant over. Thanks for your patience. :) > > -adam Thanks Adam. -Aaron From agfische at email.smith.edu Wed Apr 28 11:49:34 2004 From: agfische at email.smith.edu (Aaron Fischer) Date: Wed, 28 Apr 2004 11:49:34 -0400 Subject: [nycphp-talk] web page file extensions In-Reply-To: <200404281057.39990.brian@preston-campbell.com> References: <200404281057.39990.brian@preston-campbell.com> Message-ID: I'd like to test this out. However, I'm a relative newb and have never worked with an .htaccess file. I'd appreciate any helpful links to get me up to speed with .htaccess and/or tips for how to create the file, where to put it on the server, and any text needed in addition to what is listed below. Thanks! -Aaron On Apr 28, 2004, at 10:57 AM, Brian Preston-Campbell wrote: > Test an .htaccess file with the following: > > AddType application/x-httpd-php .htm .html > > Depending upon the server configuration, it may allow you to parse > .htm and > .html files as .php > > Brian From bill at ilovett.com Wed Apr 28 11:53:48 2004 From: bill at ilovett.com (Bill Lovett) Date: Wed, 28 Apr 2004 11:53:48 -0400 Subject: [nycphp-talk] PDF Generation In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8701B67B7A@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8701B67B7A@ehost011-1.exch011.intermedia.net> Message-ID: <20040428155348.GA3850@scorpinox> On Wed, Apr 28, 2004 at 07:47:25AM -0700, Hans Zaunere wrote: > The interesting thing is the empty "." period in the error message; > somehow when I'm sending the data back from PHP it's not knowing to > use the currently open PDF form. Maybe something wrong with the form > itself? You might have some luck with Adobe's FDF documentation: http://partners.adobe.com/asn/acrobat/forms.jsp Specifically, there's a link on that page to a document called "Forms System Implementation Notes" which, on page 6, talks about returning data in the same form versus returning data in a new form. -bill From brian at preston-campbell.com Wed Apr 28 11:54:49 2004 From: brian at preston-campbell.com (Brian Preston-Campbell) Date: Wed, 28 Apr 2004 11:54:49 -0400 Subject: [nycphp-talk] web page file extensions In-Reply-To: References: <200404281057.39990.brian@preston-campbell.com> Message-ID: <200404281154.49458.brian@preston-campbell.com> Make a text file and name it .htaccess. Open it in your favorite editor and put in one line: AddType application/x-httpd-php .htm .html Upload it to the directory you wish to parse .html as .php. This will also affect directories recursively -- those under the directory you put it in, in other words. On Wednesday 28 April 2004 11:49 am, Aaron Fischer wrote: > I'd like to test this out. However, I'm a relative newb and have never > worked with an .htaccess file. I'd appreciate any helpful links to get > me up to speed with .htaccess and/or tips for how to create the file, > where to put it on the server, and any text needed in addition to what > is listed below. > > Thanks! > > -Aaron > > On Apr 28, 2004, at 10:57 AM, Brian Preston-Campbell wrote: > > Test an .htaccess file with the following: > > > > AddType application/x-httpd-php .htm .html > > > > Depending upon the server configuration, it may allow you to parse > > .htm and > > .html files as .php > > > > Brian > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From jonbaer at jonbaer.net Wed Apr 28 15:05:20 2004 From: jonbaer at jonbaer.net (jon baer) Date: Wed, 28 Apr 2004 15:05:20 -0400 Subject: [nycphp-talk] studlyCaps ... Message-ID: <017801c42d53$c0d73000$6500a8c0@thinkpad> if there is one thing about programming i find the most amusing its the "naming" process, guys can argue for hours/days/years/lifetimes about it ... *but* i am happy to see the move to studlyCaps :-) did this include the internals or just the extensions? - jon pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 From adam at trachtenberg.com Wed Apr 28 15:09:24 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Wed, 28 Apr 2004 15:09:24 -0400 (EDT) Subject: [nycphp-talk] studlyCaps ... In-Reply-To: <017801c42d53$c0d73000$6500a8c0@thinkpad> References: <017801c42d53$c0d73000$6500a8c0@thinkpad> Message-ID: On Wed, 28 Apr 2004, jon baer wrote: > i am happy to see the move to studlyCaps :-) did this include the internals > or just the extensions? Side stepping the debate, all internal and extension *classes* now follow studlyCaps, with the exception of MySQLi (and some obscure stuff like php_filter that I should probably mention). Procedural functions continue to use underscores. I give no odds if or when MySQLi will convert to studlyCaps. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From nyphp at enobrev.com Wed Apr 28 15:21:12 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Wed, 28 Apr 2004 15:21:12 -0400 Subject: [nycphp-talk] studlyCaps ... In-Reply-To: Message-ID: I would personally like to see it standardized throughout the entire language. I have no preference to either, personally, but I definitely think consistency is important in any language (spoken, written, or coded). Mark > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Adam > Maccabee Trachtenberg > Sent: Wednesday, April 28, 2004 3:09 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] studlyCaps ... > > On Wed, 28 Apr 2004, jon baer wrote: > > > i am happy to see the move to studlyCaps :-) did this include the > > internals or just the extensions? > > Side stepping the debate, all internal and extension > *classes* now follow studlyCaps, with the exception of MySQLi > (and some obscure stuff like php_filter that I should > probably mention). Procedural functions continue to use underscores. > > I give no odds if or when MySQLi will convert to studlyCaps. > > -adam > > -- > adam at trachtenberg.com > author of o'reilly's php cookbook > avoid the holiday rush, buy your copy today! > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > > From adam at trachtenberg.com Wed Apr 28 15:55:38 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Wed, 28 Apr 2004 15:55:38 -0400 (EDT) Subject: [nycphp-talk] studlyCaps ... In-Reply-To: References: Message-ID: On Wed, 28 Apr 2004, Mark Armendariz wrote: > I would personally like to see it standardized throughout the entire > language. I have no preference to either, personally, but I definitely > think consistency is important in any language (spoken, written, or coded). We're not renaming all the function to remove underscores. Period. However, PEAR uses studlyCaps for its objects. For that (and a gazillion other reasons), it was decided to keep functions as-in, but implement studlyCaps for OO methods only. If an extension has a dual interface: procedural and OO, then the functions use underscores and the methods use studlyCaps. Hopefully, MySQLI will also adopt the studlyCaps API for it's OO interface and then everything will be consistent. However, the developer really doesn't want to do that, so we'll see what happens. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From lists at prusak.com Wed Apr 28 17:52:24 2004 From: lists at prusak.com (Ophir Prusak) Date: Wed, 28 Apr 2004 17:52:24 -0400 Subject: [nycphp-talk] MySQL versioning system In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6905@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6905@network.PLMresearch.com> Message-ID: <40902798.6030608@prusak.com> This is almost exactly what I'm doing where I work. We need to record all changes to data (what changed, when, and by who). If using MySQL is not a must, then you should look into PostgreSQL. You can use triggers (and rules) in PostgreSQL to automatically record all the changes on table A into table B. Ophir Mark Withington wrote: >I have a client who would like to store product development information >within a MySQL table. The table will consist of multiple fields, each >representing a product attribute (height, weight, color, etc.). The client >would like to store each iteration (or version) of the product development >information along with the ability to role back to prior versions if >necessary. > >I'd like to ensure that I'm not reinventing the wheel on this. Anyone have >any experience with such an effort? Is this kind of information stored in >the MySQL logs? Any light shedding would be appreciated. > >Mark > >-------------------------- >Mark L. Withington >PLMresearch >"eBusiness for the Midsize Enterprise" >PO Box 1354 >Plymouth, MA 02362 >o: 800-310-3992 >f: 508-746-4973 >v: 508-746-2383 >m: 508-801-0181 >http://www.PLMresearch.com >Netscape/AOL/MSN IM: PLMresearch >mwithington at plmresearch.com >Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc >Calendar: http://www.plmresearch.com/calendar.php >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > From sklar at sklar.com Wed Apr 28 18:37:12 2004 From: sklar at sklar.com (David Sklar) Date: Wed, 28 Apr 2004 18:37:12 -0400 Subject: [nycphp-talk] studlyCaps ... In-Reply-To: References: Message-ID: <40903218.5050601@sklar.com> Adam Maccabee Trachtenberg wrote: > On Wed, 28 Apr 2004, Mark Armendariz wrote: > >>I would personally like to see it standardized throughout the entire >>language. I have no preference to either, personally, but I definitely >>think consistency is important in any language (spoken, written, or coded). > > > We're not renaming all the function to remove underscores. Period. I don't think it would help much anyway. There is enough inconsistency in PHP's function namespace even without any kind of Grand studlyCaps/underscore Reorganization. E.g. str_replace() and strlen(). In a perfect world they would be str_replace() and str_length() or strrepl() and strlen() or stringReplace() and stringLength() or whatever parallel pair floats one's linguistic boat. But strlen() is from C (and PHP's C and Perl similarities are one of things that makes it easy to learn for programmers) so changing that fu nction's name would be a Bad Idea. (Adding an "alias" so that you could write either strlen() or stringLength() or whatever is an Even Worse Idea. You may only use one in all your programs, but you need to know how to read all the synonyms in case someone else uses one.) Consistency surely is important in any language (human, computer, or otherwise) but is an impossible goal in any language (human*, computer, or otherwise.) Human languages are wrought with irregularities (this sentence is Exhibit A) because they have diverse heritages, and are constantly changing because of the conscious and unconscious activities of their speakers. Computer languages seem a little more rigid because we have something like the PHP interpreter acting as an uber-Acad?mie fran?aise and enforcing rigid grammar and vocabulary rules. But they're subject to the same forces that change them over time. So, um, I suppose the point of this off-topic quasi-rant is just to say that hoping for "consistency" is an ultimately fruitless quest. Sure, there are larger and smaller levels of confusion that can reign depending on what kinds of choices are made as to PHP's direction but perfect standardization is a pipe dream. David * Except Esperanto? I don't know much about it but perhaps a constructed-from-scratch language like Esperanto that nobody actually speaks** might qualify. ** Apologies to any Esperanto devotees who may be reading this. Yes, you may speak Esperanto to other Esperantees at the annual Esperanto convention, but that doesn't qualify as "actually speaking" it. When you can go to the store*** and buy a candy bar in Esperanto, then I'll reconsider. *** Excluding the snack bar at the Esperanto Convention. From csnyder at chxo.com Wed Apr 28 18:41:57 2004 From: csnyder at chxo.com (Chris Snyder) Date: Wed, 28 Apr 2004 18:41:57 -0400 Subject: [nycphp-talk] studlyCaps ... In-Reply-To: <40903218.5050601@sklar.com> References: <40903218.5050601@sklar.com> Message-ID: <40903335.4030904@chxo.com> David Sklar wrote: > *** Excluding the snack bar at the Esperanto Convention. Oh. Well, okay then, you win. As long as we're ranting about consistency, wouldn't it be great if needle always came before haystack (or vice versa?) From jonbaer at jonbaer.net Wed Apr 28 18:47:01 2004 From: jonbaer at jonbaer.net (jon baer) Date: Wed, 28 Apr 2004 18:47:01 -0400 Subject: [nycphp-talk] studlyCaps ... References: <40903218.5050601@sklar.com> Message-ID: <005901c42d72$b8e45570$6500a8c0@thinkpad> > stringReplace() and stringLength() or whatever parallel pair floats > one's linguistic boat. for those who *REALLY* need it you could probably stuff it all into a config ... function stringLength($a) { return (int)strlen($a); // problem solved } :-) From adam at trachtenberg.com Wed Apr 28 18:47:41 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Wed, 28 Apr 2004 18:47:41 -0400 (EDT) Subject: [nycphp-talk] studlyCaps ... In-Reply-To: <40903218.5050601@sklar.com> References: <40903218.5050601@sklar.com> Message-ID: On Wed, 28 Apr 2004, David Sklar wrote: > I don't think it would help much anyway. There is enough inconsistency > in PHP's function namespace even without any kind of Grand > studlyCaps/underscore Reorganization. > > E.g. str_replace() and strlen(). In a perfect world they would be > str_replace() and str_length() or strrepl() and strlen() or > stringReplace() and stringLength() or whatever parallel pair floats > one's linguistic boat. > > But strlen() is from C (and PHP's C and Perl similarities are one of > things that makes it easy to learn for programmers) so changing that fu > nction's name would be a Bad Idea. (Adding an "alias" so that you could > write either strlen() or stringLength() or whatever is an Even Worse > Idea. You may only use one in all your programs, but you need to know > how to read all the synonyms in case someone else uses one.) I happened to mention that one of my secret, and never before expressed, goals of PHP 5 was to go back and "fix" all the old broken function names. At which point Rasmus piped up and said he would strangle anyone who tried to rename basic C functions, like strlen(), to str_len(). After that, I decide not to mention it again. :) But, seriously, I don't mind strlen(). It's things like that the opposite of htmlentities() is html_entity_decode() that really irk me. I also hate the sort() works in-place instead of returning the sorted array, but that's another issue. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From adam at trachtenberg.com Wed Apr 28 18:49:04 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Wed, 28 Apr 2004 18:49:04 -0400 (EDT) Subject: [nycphp-talk] studlyCaps ... In-Reply-To: References: <40903218.5050601@sklar.com> Message-ID: On Wed, 28 Apr 2004, Adam Maccabee Trachtenberg wrote: Er... This should start: Last month at the PHP Quebec Conference, > I happened to mention that one of my secret, and never before > expressed, goals of PHP 5 was to go back and "fix" all the old broken > function names. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From mwithington at PLMresearch.com Wed Apr 28 18:52:40 2004 From: mwithington at PLMresearch.com (Mark L. Withington) Date: Wed, 28 Apr 2004 18:52:40 -0400 Subject: [nycphp-talk] MySQL versioning system In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358A8557E@network.PLMresearch.com> Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358A7BB09@network.PLMresearch.com> Afraid MySQL is a requirement, but I've come up with a relatively painless way to achieve this. Thanks for the info just the same. -------------------------- Mark L. Withington PLMresearch "eBusiness for the Midsize Enterprise" PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 http://www.PLMresearch.com Netscape/AOL/MSN IM: PLMresearch mwithington at plmresearch.com Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmresearch.com/calendar.php -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Ophir Prusak Sent: Wednesday, April 28, 2004 5:52 PM To: NYPHP Talk Subject: Re: [nycphp-talk] MySQL versioning system This is almost exactly what I'm doing where I work. We need to record all changes to data (what changed, when, and by who). If using MySQL is not a must, then you should look into PostgreSQL. You can use triggers (and rules) in PostgreSQL to automatically record all the changes on table A into table B. Ophir Mark Withington wrote: >I have a client who would like to store product development information >within a MySQL table. The table will consist of multiple fields, each >representing a product attribute (height, weight, color, etc.). The client >would like to store each iteration (or version) of the product development >information along with the ability to role back to prior versions if >necessary. > >I'd like to ensure that I'm not reinventing the wheel on this. Anyone have >any experience with such an effort? Is this kind of information stored in >the MySQL logs? Any light shedding would be appreciated. > >Mark > >-------------------------- >Mark L. Withington >PLMresearch >"eBusiness for the Midsize Enterprise" >PO Box 1354 >Plymouth, MA 02362 >o: 800-310-3992 >f: 508-746-4973 >v: 508-746-2383 >m: 508-801-0181 >http://www.PLMresearch.com >Netscape/AOL/MSN IM: PLMresearch >mwithington at plmresearch.com >Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc >Calendar: http://www.plmresearch.com/calendar.php >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From lists at natserv.com Wed Apr 28 22:32:58 2004 From: lists at natserv.com (Francisco Reyes) Date: Wed, 28 Apr 2004 22:32:58 -0400 (EDT) Subject: [nycphp-talk] Excel library Message-ID: <20040428222906.R45588@zoraida.natserv.net> Anyone can recommend a Excel library? Someone mentioned http://pear.php.net/package/Spreadsheet_Excel_Writer but I wonder if it is reliable enough for production. I get nervous around software still marked "beta 0.7" From bpang at bpang.com Wed Apr 28 22:46:41 2004 From: bpang at bpang.com (bpang at bpang.com) Date: Wed, 28 Apr 2004 22:46:41 -0400 (EDT) Subject: [nycphp-talk] Excel library In-Reply-To: <20040428222906.R45588@zoraida.natserv.net> References: <20040428222906.R45588@zoraida.natserv.net> Message-ID: <35461.38.117.145.89.1083206801.squirrel@www.bpang.com> As long as you set the headers properly, you can just use an html table as an excel file. I've had good success with this and have so far produced up to a 3mb file. The only problem I've encountered is that I've only been able to Excel to open the spreadsheet when it's that large. OpenOffice.Org essentially hangs on it, as does Gnumeric. Too much parsing, I guess. oh, when I say "set the headers" I mean if you're having php stream the file out, else you can write it to a location and then the browser should handle it right with the .xls extension. when routing an existing/created file through php using fpassthru(): header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=\"$filename\""); when streaming php output: header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=$xlsFilename"); header("Pragma: no-cache"); header("Expires: 0"); I know you're asking for an Excel library, but this does work. Heck, I'd even call it v1.0 :) > Anyone can recommend a Excel library? > > Someone mentioned > http://pear.php.net/package/Spreadsheet_Excel_Writer > but I wonder if it is reliable enough for production. I get nervous around > software still marked "beta 0.7" > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From shiflett at php.net Wed Apr 28 23:26:25 2004 From: shiflett at php.net (Chris Shiflett) Date: Wed, 28 Apr 2004 20:26:25 -0700 (PDT) Subject: [nycphp-talk] studlyCaps ... In-Reply-To: Message-ID: <20040429032625.32862.qmail@web14309.mail.yahoo.com> --- Adam Maccabee Trachtenberg wrote: > I happened to mention that one of my secret, and never before > expressed, goals of PHP 5 was to go back and "fix" all the old > broken function names. > > At which point Rasmus piped up and said he would strangle anyone > who tried to rename basic C functions, like strlen(), to str_len(). I think he actually said he would cram the entire K&R C book down their throat. :-) Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From shiflett at php.net Wed Apr 28 23:27:59 2004 From: shiflett at php.net (Chris Shiflett) Date: Wed, 28 Apr 2004 20:27:59 -0700 (PDT) Subject: [nycphp-talk] studlyCaps ... In-Reply-To: Message-ID: <20040429032759.50188.qmail@web14308.mail.yahoo.com> --- Adam Maccabee Trachtenberg wrote: > Er... This should start: > > Last month at the PHP Quebec Conference, Oh, well he said something similar on the internals list. I guess we were talking about two different things. :-) Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From crisscott at netzero.com Thu Apr 29 08:17:23 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Thu, 29 Apr 2004 08:17:23 -0400 Subject: [nycphp-talk] Excel library In-Reply-To: <20040428222906.R45588@zoraida.natserv.net> References: <20040428222906.R45588@zoraida.natserv.net> Message-ID: <4090F253.4080406@netzero.com> Francisco Reyes wrote: > Someone mentioned > http://pear.php.net/package/Spreadsheet_Excel_Writer > but I wonder if it is reliable enough for production. I get nervous around > software still marked "beta 0.7" I have a back office tool on a production box that uses Spreadsheet_Excel_Writer to create reports in Excel format and it hasn't given me any trouble. I am not doing anything too crazy with it like creating buttons and macros, but I do have it creating some functions and formating cells. If you just need to create simple spreadsheets I think it will work just fine for you. Scott Mattocks From Rafi.Sheikh at Ingenix.com Thu Apr 29 09:20:50 2004 From: Rafi.Sheikh at Ingenix.com (Rafi Sheikh) Date: Thu, 29 Apr 2004 08:20:50 -0500 Subject: [nycphp-talk] (no subject) Message-ID: Hi every one! I am looking for recommendations for using software to produce dynamic graphs with a APM solution. Any suggestions? ----------------------------------------------------- Rafi Sheikh This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. From bill at ilovett.com Thu Apr 29 09:29:11 2004 From: bill at ilovett.com (Bill Lovett) Date: Thu, 29 Apr 2004 09:29:11 -0400 Subject: [nycphp-talk] Excel library In-Reply-To: <4090F253.4080406@netzero.com> References: <20040428222906.R45588@zoraida.natserv.net> <4090F253.4080406@netzero.com> Message-ID: <20040429132911.GA2379@scorpinox> On Thu, Apr 29, 2004 at 08:17:23AM -0400, Scott Mattocks wrote: > and formating cells. If you just need to create simple spreadsheets I > think it will work just fine for you. If you're not doing any formatting or function-calling and just want to get the data into a file that opens easily in Excel, you could also go the tab delimited route and give the downloaded file a name that ends with xls. This way you trick Excel into taking ownership of a text file, and it handles the tab-delimited conversion transparently. -bill From phillip.powell at adnet-sys.com Thu Apr 29 09:59:26 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Thu, 29 Apr 2004 09:59:26 -0400 Subject: [nycphp-talk] Excel library In-Reply-To: <20040428222906.R45588@zoraida.natserv.net> References: <20040428222906.R45588@zoraida.natserv.net> Message-ID: <40910A3E.4000507@adnet-sys.com> I wrote a custom utility tool a while back that converted content into a Excel-viewable file. Basically to use a file with Excel you can either use HTML or tabs to separate your content, save as an .xls file, and to make viewable change your header MIME type to application/vnd.ms-excel. You could get a customized library, but I felt it easier to write your own class that would do the conversion process. Phil Francisco Reyes wrote: >Anyone can recommend a Excel library? > >Someone mentioned >http://pear.php.net/package/Spreadsheet_Excel_Writer >but I wonder if it is reliable enough for production. I get nervous around >software still marked "beta 0.7" >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer ADNET Systems., Inc. 11260 Roger Bacon Drive Suite 403 Reston, VA 20191 #: (703) 709-7218 x107 Fax: (703) 709-7219 From nyphp at enobrev.com Thu Apr 29 10:54:22 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Thu, 29 Apr 2004 10:54:22 -0400 Subject: [nycphp-talk] Excel library In-Reply-To: <40910A3E.4000507@adnet-sys.com> Message-ID: Later Versions of excel properly parses csv (Comma Seperated Values) files, and even own's the file type upon installation (by default, anyways) on MS. So you COULD potentially just output a csv file, and Excel should open it right up and parse it accordingly. That's a basic, no research necessary, out of time, low budget option anyways :) Mark From rsd at electronink.com Thu Apr 29 11:00:31 2004 From: rsd at electronink.com (Russ Demarest) Date: Thu, 29 Apr 2004 11:00:31 -0400 Subject: [nycphp-talk] Excel library In-Reply-To: References: Message-ID: You can also add Excel headers and send a HTML table and Excel will usually open it. Be sure this goes to the browser first. $filename = strftime("add_your_filename_%y%m%d_%H%M.xls"); header("Content-type: application/x-msexcel"); header("Content-Disposition: attachment; filename=\"$filename\""); Then a plain old HTML table should open in Excel. Russ On Apr 29, 2004, at 10:54 AM, Mark Armendariz wrote: > Later Versions of excel properly parses csv (Comma Seperated Values) > files, > and even own's the file type upon installation (by default, anyways) > on MS. > So you COULD potentially just output a csv file, and Excel should open > it > right up and parse it accordingly. That's a basic, no research > necessary, > out of time, low budget option anyways :) > > Mark > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From carlos at sprout.net Thu Apr 29 11:57:43 2004 From: carlos at sprout.net (Carlos G. Chiossone) Date: Thu, 29 Apr 2004 11:57:43 -0400 Subject: [nycphp-talk] PHP vs ASP Message-ID: <49A9DEB886049242BA28C484A36C03F15A73E4@email.sprout.net> Can't agree. We have installed PHP on IIS machines pretty often. Almost never had a problems. Unless a module needs to be compiled. I actually find installing PHP on Windows and using IIS much simpler than any other platform. c -----Original Message----- From: yury at heavenspa.com [mailto:yury at heavenspa.com] Sent: Tuesday, April 27, 2004 2:45 PM To: NYPHP Talk Subject: Re: [nycphp-talk] PHP vs ASP my naivety shows... true, but how rare is it to have php on IIS? and do you have to jump thru a million loopholes to get it to work correctly.. peoples.. this is coming from a PHP hack.. not a hacker :) :) yury /me thinks i should shut up and leave for coffee ----- Original Message ----- From: "Phillip Powell" To: "NYPHP Talk" Sent: Tuesday, April 27, 2004 2:37 PM Subject: Re: [nycphp-talk] PHP vs ASP > Actually that's not quite a valid reason. I had a contract job once > where I built PHP pages on a secured IIS platform for an intranet web > portal. IIS doesn't always associate with ASP. > > Phil > > yury at heavenspa.com wrote: > > >simple.. how many IIS servers get hacked. Now how many unix/linux boxes get > >hacked.. > >- case closed! > > > >ciao > >yury > > > >p.s. if your ready to flame me... please don't.. > >----- Original Message ----- > >From: "Carlos G. Chiossone" > >To: "NYPHP Talk" > >Sent: Tuesday, April 27, 2004 2:04 PM > >Subject: [nycphp-talk] PHP vs ASP > > > > > >Hi all, anyone knows an up-to-date site where I can gather some > >reasoning for a client that wants to use ASP. I am trying to make the > >case that PHP is better. But all I find is from 2002 and older. > > > >Something in the line of http://php.weblogs.com/php_vs_asp would be > >great. > > > >Thanks, > >Carlos > > > >_______________________________________________ > >talk mailing list > >talk at lists.nyphp.org > >http://lists.nyphp.org/mailman/listinfo/talk > > > >_______________________________________________ > >talk mailing list > >talk at lists.nyphp.org > >http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > > -- > ------------------------------------------------------------------------ -- ------- > Phil Powell > Multimedia Programmer > ADNET Systems., Inc. > 11260 Roger Bacon Drive Suite 403 > Reston, VA 20191 > #: (703) 709-7218 x107 > Fax: (703) 709-7219 > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From phillip.powell at adnet-sys.com Thu Apr 29 12:24:07 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Thu, 29 Apr 2004 12:24:07 -0400 Subject: [nycphp-talk] Excel library In-Reply-To: References: Message-ID: <40912C27.6060303@adnet-sys.com> Russ Demarest wrote: > You can also add Excel headers and send a HTML table and Excel will > usually open it. > > Be sure this goes to the browser first. > > $filename = strftime("add_your_filename_%y%m%d_%H%M.xls"); > header("Content-type: application/x-msexcel"); Shouldn't that be "Content-type: application.vnd-msexcel"? Phil > header("Content-Disposition: attachment; > filename=\"$filename\""); > > Then a plain old HTML table should open in Excel. > > Russ > > > > On Apr 29, 2004, at 10:54 AM, Mark Armendariz wrote: > >> Later Versions of excel properly parses csv (Comma Seperated Values) >> files, >> and even own's the file type upon installation (by default, anyways) >> on MS. >> So you COULD potentially just output a csv file, and Excel should >> open it >> right up and parse it accordingly. That's a basic, no research >> necessary, >> out of time, low budget option anyways :) >> >> Mark >> >> >> _______________________________________________ >> talk mailing list >> talk at lists.nyphp.org >> http://lists.nyphp.org/mailman/listinfo/talk >> > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer ADNET Systems., Inc. 11260 Roger Bacon Drive Suite 403 Reston, VA 20191 #: (703) 709-7218 x107 Fax: (703) 709-7219 From rsd at electronink.com Thu Apr 29 12:29:34 2004 From: rsd at electronink.com (Russ Demarest) Date: Thu, 29 Apr 2004 12:29:34 -0400 Subject: [nycphp-talk] Excel library In-Reply-To: <40912C27.6060303@adnet-sys.com> References: <40912C27.6060303@adnet-sys.com> Message-ID: <666D3EFA-99FA-11D8-8BEC-000A957E8754@electronink.com> I will leave that for the MIME masters. My headers work as I want them to so if it ain't broke .... Russ On Apr 29, 2004, at 12:24 PM, Phillip Powell wrote: > Russ Demarest wrote: > >> You can also add Excel headers and send a HTML table and Excel will >> usually open it. >> >> Be sure this goes to the browser first. >> >> $filename = >> strftime("add_your_filename_%y%m%d_%H%M.xls"); >> header("Content-type: application/x-msexcel"); > > > Shouldn't that be "Content-type: application.vnd-msexcel"? > > Phil > >> header("Content-Disposition: attachment; >> filename=\"$filename\""); >> >> Then a plain old HTML table should open in Excel. >> >> Russ >> >> >> >> On Apr 29, 2004, at 10:54 AM, Mark Armendariz wrote: >> >>> Later Versions of excel properly parses csv (Comma Seperated >>> Values) files, >>> and even own's the file type upon installation (by default, anyways) >>> on MS. >>> So you COULD potentially just output a csv file, and Excel should >>> open it >>> right up and parse it accordingly. That's a basic, no research >>> necessary, >>> out of time, low budget option anyways :) >>> >>> Mark >>> >>> >>> _______________________________________________ >>> talk mailing list >>> talk at lists.nyphp.org >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >> >> _______________________________________________ >> talk mailing list >> talk at lists.nyphp.org >> http://lists.nyphp.org/mailman/listinfo/talk >> > > > -- > ----------------------------------------------------------------------- > ---------- > Phil Powell > Multimedia Programmer > ADNET Systems., Inc. > 11260 Roger Bacon Drive Suite 403 > Reston, VA 20191 > #: (703) 709-7218 x107 Fax: (703) 709-7219 > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From rolan at omnistep.com Thu Apr 29 13:53:02 2004 From: rolan at omnistep.com (Rolan Yang) Date: Thu, 29 Apr 2004 13:53:02 -0400 Subject: [nycphp-talk] Top 10 ways to crash PHP Message-ID: <409140FE.8000707@omnistep.com> Someone sent me this link today. Not sure if it has been posted before, but I thought it was informative. http://ilia.ws/archives/5_Top_10_ways_to_crash_PHP.html ~Rolan From tgales at tgaconnect.com Thu Apr 29 19:40:49 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 29 Apr 2004 19:40:49 -0400 Subject: [nycphp-talk] The measure of importance of some pages is rank Message-ID: <003401c42e43$672a04b0$e98d3818@oberon1> I was cruising around the php manual and I noticed that the 'PageRank' for the manual page about sessions ( http://www.php.net/manual/en/ref.session.php ) was considered to be zero on a scale of zero to ten (ten being the most important) in terms of importance. What kind of nonsense is that? The rank algorithm being used must be just that -- 'rank' T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From mwithington at PLMresearch.com Thu Apr 29 20:37:59 2004 From: mwithington at PLMresearch.com (Mark Withington) Date: Thu, 29 Apr 2004 20:37:59 -0400 Subject: [nycphp-talk] PHP/MySQL offline Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6938@network.PLMresearch.com> I've got a AMP application that my client would like to use offline. The obvious answer is to install AMP on a the client's Windoz box, and then generate the logic to ensure the two databases stay synchronized. Anyone have any other ideas? Specifically, I'd like to bypass installing Apache. -------------------------- Mark L. Withington PLMresearch "eBusiness for the Midsize Enterprise" PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 http://www.PLMresearch.com Netscape/AOL/MSN IM: PLMresearch mwithington at plmresearch.com Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmresearch.com/calendar.php From patterson at computer.org Thu Apr 29 20:52:01 2004 From: patterson at computer.org (Bill Patterson) Date: Thu, 29 Apr 2004 20:52:01 -0400 Subject: [nycphp-talk] PHP/MySQL offline In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6938@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6938@network.PLMresearch.com> Message-ID: <4091A331.8000904@computer.org> This should be very doable. Some things to watch out for are the minor differences in file paths (e.g. Windoze back slashes versus Linux forward slashes), etc. Generally the functionality is the same and if you are not doing tricks that force operating system commands you should be OK. Is there a reason not to run this offline on a Linux box? Keeping the databases synchronized sounds a little more challenging. MySQL nicely allows you to offload an entire database into commands that restore the contents and structure elsewhere very easily. If you only want to synchronize daily this could be the way to go. If you want up-to-the-minute synchronization you may have to pipe messages between the boxes, and someone else would have to give you hints on that. Bill Patterson Mark Withington wrote: >I've got a AMP application that my client would like to use offline. The >obvious answer is to install AMP on a the client's Windoz box, and then >generate the logic to ensure the two databases stay synchronized. Anyone >have any other ideas? Specifically, I'd like to bypass installing Apache. > >-------------------------- >Mark L. Withington >PLMresearch >"eBusiness for the Midsize Enterprise" >PO Box 1354 >Plymouth, MA 02362 >o: 800-310-3992 >f: 508-746-4973 >v: 508-746-2383 >m: 508-801-0181 >http://www.PLMresearch.com >Netscape/AOL/MSN IM: PLMresearch >mwithington at plmresearch.com >Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc >Calendar: http://www.plmresearch.com/calendar.php > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > > From leam at reuel.net Thu Apr 29 21:50:57 2004 From: leam at reuel.net (leam) Date: Thu, 29 Apr 2004 21:50:57 -0400 Subject: [nycphp-talk] PHP/MySQL offline In-Reply-To: <4091A331.8000904@computer.org> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6938@network.PLMresearch.com> <4091A331.8000904@computer.org> Message-ID: <4091B101.9070302@reuel.net> Newer MySQL has replication, I read it in Linux Journal. :) I *think* you can go cross-OS but admit my lack of knowledge. ciao! leam Bill Patterson wrote: > This should be very doable. Some things to watch out for are the minor > differences in file paths (e.g. Windoze back slashes versus Linux > forward slashes), etc. Generally the functionality is the same and if > you are not doing tricks that force operating system commands you should > be OK. > Is there a reason not to run this offline on a Linux box? > > Keeping the databases synchronized sounds a little more challenging. > MySQL nicely allows you to offload an entire database into commands that > restore the contents and structure elsewhere very easily. If you only > want to synchronize daily this could be the way to go. If you want > up-to-the-minute synchronization you may have to pipe messages between > the boxes, and someone else would have to give you hints on that. > > Bill Patterson > > > Mark Withington wrote: > >> I've got a AMP application that my client would like to use offline. The >> obvious answer is to install AMP on a the client's Windoz box, and then >> generate the logic to ensure the two databases stay synchronized. Anyone >> have any other ideas? Specifically, I'd like to bypass installing >> Apache. From shiflett at php.net Thu Apr 29 22:04:30 2004 From: shiflett at php.net (Chris Shiflett) Date: Thu, 29 Apr 2004 19:04:30 -0700 (PDT) Subject: [nycphp-talk] The measure of importance of some pages is rank In-Reply-To: <003401c42e43$672a04b0$e98d3818@oberon1> Message-ID: <20040430020430.1480.qmail@web14301.mail.yahoo.com> --- Tim Gales wrote: > I was cruising around the php manual and I noticed > that the 'PageRank' for the manual page about sessions > ( http://www.php.net/manual/en/ref.session.php ) > was considered to be zero on a scale of zero to ten > (ten being the most important) in terms of importance. > > What kind of nonsense is that? It probably has something to do with the fact that no one links to it. Do a search for link:http://www.php.net/manual/en/ref.session.php. Try this URL instead: http://www.php.net/session Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From shiflett at php.net Thu Apr 29 22:08:31 2004 From: shiflett at php.net (Chris Shiflett) Date: Thu, 29 Apr 2004 19:08:31 -0700 (PDT) Subject: [nycphp-talk] PHP/MySQL offline In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6938@network.PLMresearch.com> Message-ID: <20040430020831.40811.qmail@web14308.mail.yahoo.com> --- Mark Withington wrote: > I've got a AMP application that my client would like to use offline. > The obvious answer is to install AMP on a the client's Windoz box, > and then generate the logic to ensure the two databases stay > synchronized. Anyone have any other ideas? Specifically, I'd like to > bypass installing Apache. If you want to run on Windows and don't want to install Apache, it sounds like you want to change your LAMP app into a WIMP app. :-) (WIMP = Windows, IIS, MySQL, PHP) Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From jsiegel1 at optonline.net Thu Apr 29 22:19:49 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Thu, 29 Apr 2004 22:19:49 -0400 Subject: [nycphp-talk] PHP/MySQL offline In-Reply-To: <20040430020831.40811.qmail@web14308.mail.yahoo.com> References: <20040430020831.40811.qmail@web14308.mail.yahoo.com> Message-ID: <4091B7C5.4090700@optonline.net> But...if you don't want to "WIMP" out...you could install XAMPP or EasyPHP. http://phundamentals.nyphp.org/PH_xampp.php http://easyphp.org Jeff Siegel Chris Shiflett wrote: > --- Mark Withington wrote: > >>I've got a AMP application that my client would like to use offline. >>The obvious answer is to install AMP on a the client's Windoz box, >>and then generate the logic to ensure the two databases stay >>synchronized. Anyone have any other ideas? Specifically, I'd like to >>bypass installing Apache. > > > If you want to run on Windows and don't want to install Apache, it sounds > like you want to change your LAMP app into a WIMP app. :-) > > (WIMP = Windows, IIS, MySQL, PHP) > > Chris > > ===== > Chris Shiflett - http://shiflett.org/ > > PHP Security - O'Reilly > Coming Fall 2004 > HTTP Developer's Handbook - Sams > http://httphandbook.org/ > PHP Community Site > http://phpcommunity.org/ > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From mitchy at spacemonkeylabs.com Thu Apr 29 22:22:26 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Thu, 29 Apr 2004 22:22:26 -0400 Subject: [nycphp-talk] PHP/MySQL offline In-Reply-To: <20040430020831.40811.qmail@web14308.mail.yahoo.com> References: <20040430020831.40811.qmail@web14308.mail.yahoo.com> Message-ID: <4091B862.6040908@spacemonkeylabs.com> Chris Shiflett wrote: > > If you want to run on Windows and don't want to install Apache, it sounds > like you want to change your LAMP app into a WIMP app. :-) (rimshot) From joel at tagword.com Fri Apr 30 00:10:09 2004 From: joel at tagword.com (Joel De Gan) Date: Fri, 30 Apr 2004 00:10:09 -0400 Subject: [nycphp-talk] High Performance Practices - PHP Message-ID: <1083298209.4792.74.camel@bezel> Ran into this article which covers some of the topics that have been bouncing around on this list for a while. "High Performance Practices - When Raw Speed is a Requirement" http://www.php-mag.net/itr/online_artikel/psecom,id,502,nodeid,114.html Some pretty good stuff here and also an explaination of why to avoid the $array[bar] and to use $array['bar'] as well as a few other things like the speed drop in joins and such. Anyway, thought it might be a good read for some people who are optimization nuts .. *cough* -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From adam at trachtenberg.com Fri Apr 30 00:24:03 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Fri, 30 Apr 2004 00:24:03 -0400 (EDT) Subject: [nycphp-talk] High Performance Practices - PHP In-Reply-To: <1083298209.4792.74.camel@bezel> References: <1083298209.4792.74.camel@bezel> Message-ID: On Fri, 30 Apr 2004, Joel De Gan wrote: > Anyway, thought it might be a good read for some people who are > optimization nuts .. *cough* I want people to look at the percentage improvement in performance from installing APC. It takes less than 30 minutes, can be done even by novice programmers, and accomplishes far more than hours of other tweaks, like turning double quotes into single quotes. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From mwithington at PLMresearch.com Fri Apr 30 07:29:53 2004 From: mwithington at PLMresearch.com (Mark L. Withington) Date: Fri, 30 Apr 2004 07:29:53 -0400 Subject: [nycphp-talk] PHP/MySQL offline In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358A85695@network.PLMresearch.com> Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358A7BBCF@network.PLMresearch.com> I _really_ don't want to WIMP out. Guess I was really just looking for a convenient way of installing AMP. XAMPP or EasyPHP look like the real deal. Thanks to everyone for their input. -------------------------- Mark L. Withington PLMresearch "eBusiness for the Midsize Enterprise" PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 http://www.PLMresearch.com Netscape/AOL/MSN IM: PLMresearch mwithington at plmresearch.com Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmresearch.com/calendar.php -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Jeff Siegel Sent: Thursday, April 29, 2004 10:20 PM To: NYPHP Talk Subject: Re: [nycphp-talk] PHP/MySQL offline But...if you don't want to "WIMP" out...you could install XAMPP or EasyPHP. http://phundamentals.nyphp.org/PH_xampp.php http://easyphp.org Jeff Siegel Chris Shiflett wrote: > --- Mark Withington wrote: > >>I've got a AMP application that my client would like to use offline. >>The obvious answer is to install AMP on a the client's Windoz box, >>and then generate the logic to ensure the two databases stay >>synchronized. Anyone have any other ideas? Specifically, I'd like to >>bypass installing Apache. > > > If you want to run on Windows and don't want to install Apache, it sounds > like you want to change your LAMP app into a WIMP app. :-) > > (WIMP = Windows, IIS, MySQL, PHP) > > Chris > > ===== > Chris Shiflett - http://shiflett.org/ > > PHP Security - O'Reilly > Coming Fall 2004 > HTTP Developer's Handbook - Sams > http://httphandbook.org/ > PHP Community Site > http://phpcommunity.org/ > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From jsiegel1 at optonline.net Fri Apr 30 07:53:51 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Fri, 30 Apr 2004 07:53:51 -0400 Subject: [nycphp-talk] PHP/MySQL offline In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358A7BBCF@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358A7BBCF@network.PLMresearch.com> Message-ID: <40923E4F.9060902@optonline.net> If you go with EasyPHP, you should also check this out. http://www.canowhoopass.com/guides/easyphp/ Jeff Siegel Mark L. Withington wrote: > I _really_ don't want to WIMP out. Guess I was really just looking for a > convenient way of installing AMP. XAMPP or EasyPHP look like the real > deal. Thanks to everyone for their input. > > -------------------------- > Mark L. Withington > PLMresearch > "eBusiness for the Midsize Enterprise" > PO Box 1354 > Plymouth, MA 02362 > o: 800-310-3992 > f: 508-746-4973 > v: 508-746-2383 > m: 508-801-0181 > http://www.PLMresearch.com > Netscape/AOL/MSN IM: PLMresearch > mwithington at plmresearch.com > Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc > Calendar: http://www.plmresearch.com/calendar.php > > > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Jeff Siegel > Sent: Thursday, April 29, 2004 10:20 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] PHP/MySQL offline > > > But...if you don't want to "WIMP" out...you could install XAMPP or EasyPHP. > > http://phundamentals.nyphp.org/PH_xampp.php > http://easyphp.org > > Jeff Siegel > > Chris Shiflett wrote: > >>--- Mark Withington wrote: >> >> >>>I've got a AMP application that my client would like to use offline. >>>The obvious answer is to install AMP on a the client's Windoz box, >>>and then generate the logic to ensure the two databases stay >>>synchronized. Anyone have any other ideas? Specifically, I'd like to >>>bypass installing Apache. >> >> >>If you want to run on Windows and don't want to install Apache, it sounds >>like you want to change your LAMP app into a WIMP app. :-) >> >>(WIMP = Windows, IIS, MySQL, PHP) >> >>Chris >> >>===== >>Chris Shiflett - http://shiflett.org/ >> >>PHP Security - O'Reilly >> Coming Fall 2004 >>HTTP Developer's Handbook - Sams >> http://httphandbook.org/ >>PHP Community Site >> http://phpcommunity.org/ >>_______________________________________________ >>talk mailing list >>talk at lists.nyphp.org >>http://lists.nyphp.org/mailman/listinfo/talk >> > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From mwithington at PLMresearch.com Fri Apr 30 08:10:52 2004 From: mwithington at PLMresearch.com (Mark L. Withington) Date: Fri, 30 Apr 2004 08:10:52 -0400 Subject: [nycphp-talk] PHP/MySQL offline In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358A856DD@network.PLMresearch.com> Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358A7BBD7@network.PLMresearch.com> This is great. Thanks Jeff. So I'll use EasyPHP to quickly set up an AMP environment on my client's Windoz machine. Then I'll port the PHP scripts and MySQL tables to their machine. Two questions: 1. Anyone know of a good encryption tool to prevent the whole world from seeing my source on the client's machine? I publish under GPL, and therefore, am happy to provide source - still, I would like to know who's getting it, etc. 2. On occasion I might change my PHP scripts ;-) and therefore would like the client's machine to receive these changes. Any good way to do this? Thanks again everyone. Mark -------------------------- Mark L. Withington PLMresearch "eBusiness for the Midsize Enterprise" PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 http://www.PLMresearch.com Netscape/AOL/MSN IM: PLMresearch mwithington at plmresearch.com Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmresearch.com/calendar.php -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Jeff Siegel Sent: Friday, April 30, 2004 7:54 AM To: NYPHP Talk Subject: Re: [nycphp-talk] PHP/MySQL offline If you go with EasyPHP, you should also check this out. http://www.canowhoopass.com/guides/easyphp/ Jeff Siegel Mark L. Withington wrote: > I _really_ don't want to WIMP out. Guess I was really just looking for a > convenient way of installing AMP. XAMPP or EasyPHP look like the real > deal. Thanks to everyone for their input. > > -------------------------- > Mark L. Withington > PLMresearch > "eBusiness for the Midsize Enterprise" > PO Box 1354 > Plymouth, MA 02362 > o: 800-310-3992 > f: 508-746-4973 > v: 508-746-2383 > m: 508-801-0181 > http://www.PLMresearch.com > Netscape/AOL/MSN IM: PLMresearch > mwithington at plmresearch.com > Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc > Calendar: http://www.plmresearch.com/calendar.php > > > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Jeff Siegel > Sent: Thursday, April 29, 2004 10:20 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] PHP/MySQL offline > > > But...if you don't want to "WIMP" out...you could install XAMPP or EasyPHP. > > http://phundamentals.nyphp.org/PH_xampp.php > http://easyphp.org > > Jeff Siegel > > Chris Shiflett wrote: > >>--- Mark Withington wrote: >> >> >>>I've got a AMP application that my client would like to use offline. >>>The obvious answer is to install AMP on a the client's Windoz box, >>>and then generate the logic to ensure the two databases stay >>>synchronized. Anyone have any other ideas? Specifically, I'd like to >>>bypass installing Apache. >> >> >>If you want to run on Windows and don't want to install Apache, it sounds >>like you want to change your LAMP app into a WIMP app. :-) >> >>(WIMP = Windows, IIS, MySQL, PHP) >> >>Chris >> >>===== >>Chris Shiflett - http://shiflett.org/ >> >>PHP Security - O'Reilly >> Coming Fall 2004 >>HTTP Developer's Handbook - Sams >> http://httphandbook.org/ >>PHP Community Site >> http://phpcommunity.org/ >>_______________________________________________ >>talk mailing list >>talk at lists.nyphp.org >>http://lists.nyphp.org/mailman/listinfo/talk >> > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From ayurchik at tut.by Fri Apr 30 08:58:06 2004 From: ayurchik at tut.by (Alexander Yurchik) Date: Fri, 30 Apr 2004 15:58:06 +0300 Subject: [nycphp-talk] PHP/MySQL offline In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358A7BBD7@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358A7BBD7@network.PLMresearch.com> Message-ID: <9924668203.20040430155806@tut.by> Hello Mark, Friday, April 30, 2004, 15:10:52, you wrote: MLW> This is great. Thanks Jeff. So I'll use EasyPHP to quickly set up an AMP MLW> environment on my client's Windoz machine. Then I'll port the PHP scripts MLW> and MySQL tables to their machine. Two questions: MLW> 1. Anyone know of a good encryption tool to prevent the whole world from MLW> seeing my source on the client's machine? I publish under GPL, and MLW> therefore, am happy to provide source - still, I would like to know who's MLW> getting it, etc. MLW> 2. On occasion I might change my PHP scripts ;-) and therefore would like MLW> the client's machine to receive these changes. Any good way to do this? Your will may write php script on client machine which check for update once a day, for example. Try to use SOAP. From jayeshsh at ceruleansky.com Fri Apr 30 10:57:37 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Fri, 30 Apr 2004 10:57:37 -0400 Subject: [nycphp-talk] Wiki anti-spam CAPTCHA patch: $_SESSION conflict Message-ID: <40926961.90608@ceruleansky.com> Hello all, After seeing thousands of Wikis (including mine) being defaced by the new Chinese SPAM-bots, I wrote an experimental patch in an attempt to thwart them. Info on the patch is at: http://www.moztips.com/index.php?id=222 The patch can be downloaded from: http://www.moztips.com/code/wikipatch/ I am using PHP's sessions to store the text version of an Ascii Art Code that is displayed to users when they try to edit a Wiki page. The problem is that PHP's sessions are also being used by the PEAR Auth class for my CMS. So, if I go to the Wiki, try to edit a page, and then come back and try to log into my CMS, I get weird session errors (blah blah already sent, etc). I can work around this by emptying my cookies while I switch between Wiki edits and CMS edits, but there's got to be a better way. Is there any way of preventing such $_SESSION conflicts? Thanks in advance, - Jay From danielc at analysisandsolutions.com Fri Apr 30 11:00:51 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 30 Apr 2004 11:00:51 -0400 Subject: [nycphp-talk] Wiki anti-spam CAPTCHA patch: $_SESSION conflict In-Reply-To: <40926961.90608@ceruleansky.com> References: <40926961.90608@ceruleansky.com> Message-ID: <20040430150050.GA27073@panix.com> On Fri, Apr 30, 2004 at 10:57:37AM -0400, Jayesh Sheth wrote: > Is there any way of preventing such $_SESSION conflicts? http://php.net/session_name --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 yury at heavenspa.com Fri Apr 30 11:20:12 2004 From: yury at heavenspa.com (yury at heavenspa.com) Date: Fri, 30 Apr 2004 11:20:12 -0400 Subject: [nycphp-talk] Wiki References: <40926961.90608@ceruleansky.com> Message-ID: <002301c42ec6$a1f05120$0400a8c0@heavenspanyc> On the subject of WIKI's. I'm a content fiend. Does anyone know of or have any links to public domain content or... - free downloadable databases - books ( other then guetenberg) - anything else.. ciao yury From jayeshsh at ceruleansky.com Fri Apr 30 11:50:02 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Fri, 30 Apr 2004 11:50:02 -0400 Subject: [nycphp-talk] re: Wiki anti-spam CAPTCHA patch: $_SESSION conflict Message-ID: <409275AA.7070008@ceruleansky.com> Hi all, I just found an answer to my own question. I used session_name() to rename the session. The funny thing is that on Windows (my local test machine) having two scripts accessing a session with the same name did not cause a problem, whereas on the Linux production server it did. On both session autostart is turned off ... I am not sure why Win and Lin reacted differently here. - Jay From lists at natserv.com Fri Apr 30 12:55:08 2004 From: lists at natserv.com (Francisco Reyes) Date: Fri, 30 Apr 2004 12:55:08 -0400 (EDT) Subject: [nycphp-talk] Excel library In-Reply-To: <35461.38.117.145.89.1083206801.squirrel@www.bpang.com> References: <20040428222906.R45588@zoraida.natserv.net> <35461.38.117.145.89.1083206801.squirrel@www.bpang.com> Message-ID: <20040430125426.Y63395@zoraida.natserv.net> On Wed, 28 Apr 2004 bpang at bpang.com wrote: > As long as you set the headers properly, you can just use an html table as > an excel file. I need multiple sheets, formulas and formatting. HTML won't work. But thanks for feedback. Will save the info away for future projects. From crisscott at netzero.com Fri Apr 30 12:57:28 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Fri, 30 Apr 2004 12:57:28 -0400 Subject: [nycphp-talk] Excel library In-Reply-To: <20040430125426.Y63395@zoraida.natserv.net> References: <20040428222906.R45588@zoraida.natserv.net> <35461.38.117.145.89.1083206801.squirrel@www.bpang.com> <20040430125426.Y63395@zoraida.natserv.net> Message-ID: <40928578.2080406@netzero.com> Try the pear class. I was able to do all three of those pretty easily using Spreadsheet_Excel_Writer. The documentation is pretty good too. Scott Mattocks Francisco Reyes wrote: > On Wed, 28 Apr 2004 bpang at bpang.com wrote: > > >>As long as you set the headers properly, you can just use an html table as >>an excel file. > > > > I need multiple sheets, formulas and formatting. HTML won't work. > But thanks for feedback. Will save the info away for future projects. > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From lists at natserv.com Fri Apr 30 14:15:23 2004 From: lists at natserv.com (Francisco Reyes) Date: Fri, 30 Apr 2004 14:15:23 -0400 (EDT) Subject: [nycphp-talk] Excel library In-Reply-To: <4090F253.4080406@netzero.com> References: <20040428222906.R45588@zoraida.natserv.net> <4090F253.4080406@netzero.com> Message-ID: <20040430125722.L63395@zoraida.natserv.net> On Thu, 29 Apr 2004, Scott Mattocks wrote: > I have a back office tool on a production box that uses > Spreadsheet_Excel_Writer to create reports in Excel format and it hasn't > given me any trouble. I am glad to read that. The samples look very easy to follow. Any problems you have encountered I should look out for? From lists at natserv.com Fri Apr 30 14:18:00 2004 From: lists at natserv.com (Francisco Reyes) Date: Fri, 30 Apr 2004 14:18:00 -0400 (EDT) Subject: [nycphp-talk] Excel library In-Reply-To: <40910A3E.4000507@adnet-sys.com> References: <20040428222906.R45588@zoraida.natserv.net> <40910A3E.4000507@adnet-sys.com> Message-ID: <20040430141710.J63755@zoraida.natserv.net> On Thu, 29 Apr 2004, Phillip Powell wrote: > ...Basically to use a file with Excel you can either > use HTML or tabs to separate your content, save as an .xls file, and to > make viewable change your header MIME type to application/vnd.ms-excel. Thanks for the feedback. I will need to create an actual excel file though. I will be doing formulas and formatting. Possibly a couple of sheets too. From lists at natserv.com Fri Apr 30 14:20:26 2004 From: lists at natserv.com (Francisco Reyes) Date: Fri, 30 Apr 2004 14:20:26 -0400 (EDT) Subject: [nycphp-talk] PHP server app In-Reply-To: <38951.69.31.90.22.1081054728.squirrel@www.bebinary.com> References: <38951.69.31.90.22.1081054728.squirrel@www.bebinary.com> Message-ID: <20040430141923.L63755@zoraida.natserv.net> On Sat, 3 Apr 2004, felix zaslavskiy wrote: > > Anyone have experience running a constantly running 'server' app based on > > php from a linux server? .... > Memory leaks may be a problem. You can certainly do it but be prepared to > restart the thing daily. How about using a super daemon like Inetd to call the program on demand instead of having it up all the time. Should have some performance degradation, but would solve the memory leak problem. From crisscott at netzero.com Fri Apr 30 14:25:18 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Fri, 30 Apr 2004 14:25:18 -0400 Subject: [nycphp-talk] Excel library In-Reply-To: <20040430125722.L63395@zoraida.natserv.net> References: <20040428222906.R45588@zoraida.natserv.net> <4090F253.4080406@netzero.com> <20040430125722.L63395@zoraida.natserv.net> Message-ID: <40929A0E.9060203@netzero.com> Francisco Reyes wrote: > I am glad to read that. The samples look very easy to follow. > Any problems you have encountered I should look out for? Not really. It can be a little tricky trying to keep track of the rows and columns if your data set changes shape and size all the time. But thats the same no matter what you use. Scott Mattocks From carlos at sprout.net Fri Apr 30 15:04:32 2004 From: carlos at sprout.net (Carlos G. Chiossone) Date: Fri, 30 Apr 2004 15:04:32 -0400 Subject: [nycphp-talk] Unix Font Issue Message-ID: <49A9DEB886049242BA28C484A36C03F15A73F5@email.sprout.net> Hope by now your issue is resolved. We encountered similar problems and it had to do with the relative path where the fonts where. Put them in a directory in the top most area of the site being used. I think that was how we solved it. But it was a year or so ago so don't clearly remember. Carlos -----Original Message----- From: Rafi Sheikh [mailto:Rafi.Sheikh at Ingenix.com] Sent: Tuesday, April 27, 2004 3:52 PM To: 'talk at lists.nyphp.org'; users at httpd.apache.org Subject: [nycphp-talk] Unix Font Issue BASIC: Apache 1.3.29 PHP 4.3.4 MySQL 3.x GD Enabled: Yes IBM F-40 AIX 5.1 ISSUE: Hi list, hope every one is doing great. My issue is with fonts. I have to comment out all the fonts references (I am using it jpgraph) to get the script to work. None of the fonts work, even though my unix admin has compiled and installed, etc, checked permissions...we are stumped. Any one has any idea, maybe something we did not do with Apache, or PHP? Any ideas? Best wishes, RS This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From carlos at sprout.net Fri Apr 30 15:12:02 2004 From: carlos at sprout.net (Carlos G. Chiossone) Date: Fri, 30 Apr 2004 15:12:02 -0400 Subject: [nycphp-talk] PHP vs ASP Message-ID: <49A9DEB886049242BA28C484A36C03F15A73F6@email.sprout.net> Chris, thanks a lot for your answer. So far, the most coherent information. Even thou I have enjoyed a lot some other answers that were to the point. My team is clueless about ASP .NET so I hope we can convince the client to go with PHP, we gave them enough info to think about. But answering this, our biggest issue was finding developers that could do our work in ASP, and that felt confident about. Thanks and be well, Carlos -----Original Message----- From: Chris Hubbard [mailto:chubbard at next-online.net] Sent: Tuesday, April 27, 2004 5:48 PM To: NYPHP Talk Subject: Re: [nycphp-talk] PHP vs ASP I personally know of a number of production relatively high volume sites using IIS and PHP. For the most part PHP doesn't care what the httpd is. As for the original question, I don't know of any sites that do a ASP (which version?) vs. PHP (which version?) As for the implied question, Is PHP better than ASP? Depends on how you define 'better'. 1. With ASP you'll usually end up using MS SQL. With PHP you'll usually end up using MySQL or PostgreSQL. MS SQL is expensive to purchase and does require active administration 2. With ASP you'll usually be using the native objects/classes provided by Microsoft. With PHP well, I don't know if there is a usual. You could use PEAR or any other thing you wanted. Using the Microsoft classes is a significantly steeper learning curve. 3. With ASP there are well publicized exploits that a hacker can and will attempt to use. With PHP there are still exploits but they're not as well publicized and there's almost no way a hacker can guess which set of exploits to use before looking at the site. 4. Internationally I am willing to bet there are more PHP developers than ASP developers. Domestically I am willing to bet there are more ASP developers than PHP developers. 5. In ASP, if an ASP class doesn't behave the way you want, it's difficult to dig into it to find out what it's doing, and is a task for only strong developers. In PHP, if a class doesn't behave the way you want, then you change it. 6. Well written ASP vs well written PHP is almost a wash. The PHP code will typically run a bit faster on comparable hardware. This might be a function of the httpd instead of the language. 7. Well written ASP is as easy to maintain as well written PHP. 8. It's somewhat easier to create poorly written ASP than poorly written PHP. But not by much. 9. If you're building a web app, and you're not using FrontPage, PHP is a great choice. If you're building a web app, and you're using Frontpage, then ASP is the best choice. 10. If you're writing code to integrate with MS Office, then ASP is the language to use. 11. If you want to leverage the efforts of 10,000's of developers worldwide, and you don't want to be tied to the seemingly random and capricious actions of a large corporation, then PHP is the language to use. 12. If you are willing to build your application the way Microsoft thinks you should want to build your application, then use ASP. If you want to build the application your way (or the clients way), then use PHP. I started in the VB/ASP world. I used to work at Microsoft (as a contractor) where I wrote ASP code, among other duties. I personally think PHP is a much better solution to most problems. The thing that sold me on PHP is #12 above. I've built over 250 web sites/applications. I'd be willing to bet that less than 20 are built the way Microsoft thinks I should want to build the application. This is a really big deal. To me this is by far the most important part of the conversation. I need to have a language/framework that lets me build the application the way I want to build it. There are limitations in both languages. There are workarounds in both languages. If the boss thinks that ASP is a better language based on some marketing-esque stuff that s/he has read somewhere then the boss is probably 'wrong'. But the 'rightness' or 'wrongness' of either language depends on your undefined 'better'. (the other) Chris On Apr 27, 2004, at 1:01 PM, Chris Shiflett wrote: > --- "Carlos G. Chiossone" wrote: >> But I don't understand the IIS ASP association. > > Guessing a statistic, I bet more than 95% of applications written in > ASP > run on IIS. That is the association. > > On the other hand, I bet less than 5% of applications running on Apache > are written in ASP. > > Apache/ASP and IIS/PHP are possible, but these are rare combinations. > > Chris > > ===== > Chris Shiflett - http://shiflett.org/ > > PHP Security - O'Reilly > Coming Fall 2004 > HTTP Developer's Handbook - Sams > http://httphandbook.org/ > PHP Community Site > http://phpcommunity.org/ > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > Chris Hubbard chubbard at next-online.net 425 563 4153 _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From lists at natserv.com Fri Apr 30 17:38:41 2004 From: lists at natserv.com (Francisco Reyes) Date: Fri, 30 Apr 2004 17:38:41 -0400 (EDT) Subject: [nycphp-talk] Installing PEAR in FreeBSD Message-ID: <20040430173714.N64596@zoraida.natserv.net> Anyone has gotten PEAR installed in FreeBSD through the port system? I am getting an error saying that PHP is already installed. I have looked at some documents on installing it from scratch and doesn't seem terribly bad, but it would be so much better to do it from ports...

Go back to your previous listing
Image (click to view) Click to view image metadata if link is found  
kyrka.jpg Show Metadata - Move?
banner.jpg.jpeg Show Metadata - Move?
kyrka_gray.jpg Show Metadata - Move?
- Select All   - De-Select All