From csnyder at chxo.com Thu Jul 1 08:18:17 2004 From: csnyder at chxo.com (Chris Snyder) Date: Thu, 01 Jul 2004 08:18:17 -0400 Subject: [nycphp-talk] Draft of tutorial on creating rich web applications with XUL and PHP posted In-Reply-To: <40E36E60.4010008@ceruleansky.com> References: <40E36E60.4010008@ceruleansky.com> Message-ID: <40E40109.4040000@chxo.com> I'm with Joel on this one -- I had no idea that XUL could be used to provide client-side apps embedded in a web page. Nice work, and I hope you'll consider giving a presentation at an upcoming meeting. http://www.moztips.com/index.php?id=261 Any other XULers out there, care to comment? From hans.kaspersetz at nyphp.org Thu Jul 1 08:37:42 2004 From: hans.kaspersetz at nyphp.org (Hans C. Kaspersetz) Date: Thu, 01 Jul 2004 08:37:42 -0400 Subject: [nycphp-talk] Draft of tutorial on creating rich web applications with XUL and PHP posted In-Reply-To: <40E40109.4040000@chxo.com> References: <40E36E60.4010008@ceruleansky.com> <40E40109.4040000@chxo.com> Message-ID: <40E40596.30102@nyphp.org> Whoa! Very cool. I would also like to see a talk on this. Hans K Chris Snyder wrote: > I'm with Joel on this one -- I had no idea that XUL could be used to > provide client-side apps embedded in a web page. Nice work, and I hope > you'll consider giving a presentation at an upcoming meeting. > > http://www.moztips.com/index.php?id=261 > > Any other XULers out there, care to comment? > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From tgales at tgaconnect.com Thu Jul 1 08:43:18 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 1 Jul 2004 08:43:18 -0400 Subject: [nycphp-talk] Draft of tutorial on creating rich web applicationswith XUL and PHP posted In-Reply-To: <40E40596.30102@nyphp.org> Message-ID: <001101c45f68$fccd7fa0$e98d3818@oberon1> Hans C. Kaspersetz: > > Whoa! Very cool. I would also like to see a talk on this. > ditto T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From jayeshsh at ceruleansky.com Thu Jul 1 09:04:36 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Thu, 01 Jul 2004 09:04:36 -0400 Subject: [nycphp-talk] Draft of tutorial on creating rich web applications with XUL and PHP posted Message-ID: <40E40BE4.201@ceruleansky.com> Hi all, Sorry if you get this twice- I submitted it the first time from my other (unsubscribed account) by mistake. I need to wake up properly and go for a brisk walk instead of hopping on here like a sleepy bunny. thanks for the positive feedback on the tutorial. I guess Mozilla's client-end capabilities are not usually well publicized, and that combining PHP and MySQL with XUL can create awesome web applications. (Microsoft has also copied XUL somewhat with its XAML effort, which is still under development ...) I would love to do a little presentation on this topic. Chris Snyder wrote: >I'm with Joel on this one -- I had no idea that XUL could be used to >provide client-side apps embedded in a web page. Nice work, and I hope >you'll consider giving a presentation at an upcoming meeting. > >http://www.moztips.com/index.php?id=261 > >Any other XULers out there, care to comment? Best Regards, - Jay From crisscott at netzero.com Thu Jul 1 09:14:20 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Thu, 01 Jul 2004 09:14:20 -0400 Subject: [nycphp-talk] Draft of tutorial on creating rich web applications with XUL and PHP posted In-Reply-To: <40E40BE4.201@ceruleansky.com> References: <40E40BE4.201@ceruleansky.com> Message-ID: <40E40E2C.8060805@netzero.com> I don't mean to steal your thunder Jay, but since there seems to be some much interest in this topic I thought I should point out that Jonathan Protzenko has an article in the June issue of PHP|A about the same thing. Scott Jayesh Sheth wrote: > Hi all, > > Sorry if you get this twice- I submitted it the first time from my other > (unsubscribed account) by mistake. I need to wake up properly and go for > a brisk walk instead of hopping on here like a sleepy bunny. > > thanks for the positive feedback on the tutorial. I guess Mozilla's > client-end capabilities are not usually well publicized, and that > combining PHP and MySQL with XUL can create awesome web applications. > (Microsoft has also copied XUL somewhat with its XAML effort, which is > still under development ...) > > I would love to do a little presentation on this topic. > > Chris Snyder wrote: > >I'm with Joel on this one -- I had no idea that XUL could be used to > >provide client-side apps embedded in a web page. Nice work, and I hope > >you'll consider giving a presentation at an upcoming meeting. > > > >http://www.moztips.com/index.php?id=261 > > > >Any other XULers out there, care to comment? > > Best Regards, > > - Jay > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From jayeshsh at ceruleansky.com Thu Jul 1 09:43:41 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Thu, 01 Jul 2004 09:43:41 -0400 Subject: [nycphp-talk] Draft of tutorial on creating rich web, applications with XUL and PHP posted Message-ID: <40E4150D.901@ceruleansky.com> Hi Scott, thanks for pointing out the article in PHP Architect. Actually, I read that article, and sent feedback to PHP Architect using its forums on it. The article by Jonathan Protzenko mentions XUL and PHP, but it gives examples where HTML is embedded into a XUL document (using namespaces). So, in his example, in order that a XUL document submit information, it has have two sets of form elements: XUL input elements and HTML form elements. Since XUL input elements cannot be grouped into HTML-like forms in order to be submitted together, he uses JavaScript to copy information entered into XUL input elements into hidden HTML form elements. This is a round-about way of doing things, since you have to write two input elements (one XUL one, one HTML one) for each piece of data that you want submitted. It also does not take advantage of XUL's ability to create desktop-like programs without the refresh that occurs when an HTML document is submitted. In my article I use web sevices so that the XUL interface never has to change - it is not replaced by a new page when the submit button is pressed. For more information on that article, please see: http://www.moztips.com/index.php?id=254 and http://www.phparch.com/discuss/index.php/t/650/851/ Best Regards, - Jay >I don't mean to steal your thunder Jay, but since there seems to be some >much interest in this topic I thought I should point out that Jonathan >Protzenko has an article in the June issue of PHP|A about the same thing. > >Scott From mitchy at spacemonkeylabs.com Thu Jul 1 10:36:11 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Thu, 01 Jul 2004 10:36:11 -0400 Subject: [nycphp-talk] Good PHP Apps In-Reply-To: References: Message-ID: <40E4215B.7020307@spacemonkeylabs.com> Brian Pang wrote: >>While I'm sure (and know, in >>fact) there is good code out there, it's generally kept private (and for >>good reason; >> >> > >Sometimes the code you write is not yours to share. As a consultant, >contracts often state that the code/application produced is the property >of the company. >That is not to say that concepts can be re-written and shared, but that >is also not always cut-and-dry (and it takes time). > > Then I'd like to volunteer the sourcecode for Mambo Open Source, a project that I have been added to (I'm the resident database curmudgeon). I can say that I have no vested interest in the code - as I have not contributed anything yet - but would enjoy an independent assessment by the community. http://www.mamboserver.com/ This is not an advertisement, but an offer to see what everyone else on this list thinks about their general coding style and architectural strategies. This was a commercial project that was allowed an open source fork, which is what we have today. Uses OO methodologies, and fairly clean coding style. Subjecting Mambo to an acid test by NYPHPers would be awesome, as I often wonder what the norms are for coding styles, naming conventions, etc. Just a thought, -- Mitch From stephen at musgrave.org Thu Jul 1 10:41:16 2004 From: stephen at musgrave.org (Stephen Musgrave) Date: Thu, 01 Jul 2004 10:41:16 -0400 Subject: [nycphp-talk] php oo intro Message-ID: i have been using oo packages for quite some time but don't feel i know enough about them to write them effectively. i am wondering if there are any good intro articles out there that can be recommended. the article should be targeted to the veteran PHP programmer while introducing the OO concepts, best practices while including a bit of foresight into what's coming in PHP 5 (especially regression issues). thanks, stephen. From mitchy at spacemonkeylabs.com Thu Jul 1 10:47:30 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Thu, 01 Jul 2004 10:47:30 -0400 Subject: [nycphp-talk] php oo intro In-Reply-To: References: Message-ID: <40E42402.3040206@spacemonkeylabs.com> Stephen Musgrave wrote: >i have been using oo packages for quite some time but don't feel i know >enough about them to write them effectively. > >i am wondering if there are any good intro articles out there that can be >recommended. the article should be targeted to the veteran PHP programmer >while introducing the OO concepts, best practices while including a bit of >foresight into what's coming in PHP 5 (especially regression issues). > > I'm a huge fan of Harry Fuecks' PHP Anthology series, where he openly states that his alterior motive is to bring us procedural cro-magnons kicking and screaming into the NOW of objects. The second volume goes into design patterns and explains at length the methods behind the madness. The books are published by SitePoint (www.sitepoint.com), and he also is their resident blogger, providing a wealth of OO knowledge; and he also runs his own site (www.phppatterns.com) where he discusses design patterns in OO PHP. HTH, -- Mitch P.S. The reason I recommend these books so much is that they were the 'whack upside the head' that I needed to fully grok OO with PHP. From tgales at tgaconnect.com Thu Jul 1 10:53:15 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 1 Jul 2004 10:53:15 -0400 Subject: [nycphp-talk] php oo intro In-Reply-To: Message-ID: <002001c45f7b$24286620$e98d3818@oberon1> Adam Trachtenberg's new book 'Upgrading to PHP 5 ' http://www.oreilly.com/catalog/upgradephp5/desc.html is for veteran php programmers moving to PHP 5 It's a book (obviously not an article) but still (very much ) worth considering. 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 Stephen Musgrave > Sent: Thursday, July 01, 2004 10:41 AM > To: nyPHP - Talk Talk > Subject: [nycphp-talk] php oo intro > > > > i have been using oo packages for quite some time but don't > feel i know enough about them to write them effectively. > > i am wondering if there are any good intro articles out there > that can be recommended. the article should be targeted to > the veteran PHP programmer while introducing the OO concepts, > best practices while including a bit of foresight into what's > coming in PHP 5 (especially regression issues). > > thanks, > > stephen. > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk > From tgales at tgaconnect.com Thu Jul 1 11:14:50 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 1 Jul 2004 11:14:50 -0400 Subject: [nycphp-talk] WAS: php oo intro In-Reply-To: Message-ID: <002201c45f7e$280e99a0$e98d3818@oberon1> Stephen Musgrave writes: "i am wondering if there are any good intro articles out there that can be recommended... ...including a bit of foresight into what's coming in PHP 5 (especially regression issues)." I don't know if you saw that there was a new PHP_Compat recently (1.1.0 (stable) was released on 2004-06-25 ) http://pear.php.net/manual/en/package.php.php-compat.components.php ( I know, I know -- still not an article ) T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com > From ajai at bitblit.net Thu Jul 1 11:12:03 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 01 Jul 2004 11:12:03 -0400 Subject: [nycphp-talk] Good PHP Apps In-Reply-To: <40E4215B.7020307@spacemonkeylabs.com> References: <40E4215B.7020307@spacemonkeylabs.com> Message-ID: <40E429C3.30309@bitblit.net> Mitch Pirtle wrote: > Subjecting Mambo to an acid test by NYPHPers would be awesome, as I > often wonder what the norms are for coding styles, naming conventions, > etc. Funny - Ive just started a project using mamboserver ;-) -- Aj. Systems Administrator / Developer From ajai at bitblit.net Thu Jul 1 11:14:06 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 01 Jul 2004 11:14:06 -0400 Subject: [nycphp-talk] Draft of tutorial on creating rich web applications with XUL and PHP posted In-Reply-To: <40E40109.4040000@chxo.com> References: <40E36E60.4010008@ceruleansky.com> <40E40109.4040000@chxo.com> Message-ID: <40E42A3E.2070209@bitblit.net> Chris Snyder wrote: > I'm with Joel on this one -- I had no idea that XUL could be used to > provide client-side apps embedded in a web page. You mean, you've never seen this? http://www.oreilly.com/catalog/mozilla/index.html -- Aj. Systems Administrator / Developer From sm11szw02 at sneakemail.com Thu Jul 1 12:00:22 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Thu, 01 Jul 2004 12:00:22 -0400 Subject: [nycphp-talk] Draft of tutorial on creating rich web applications with XUL and PHP posted In-Reply-To: <40E42A3E.2070209@bitblit.net> References: <40E36E60.4010008@ceruleansky.com> <40E40109.4040000@chxo.com> <40E42A3E.2070209@bitblit.net> Message-ID: <16061-54722@sneakemail.com> Ajai Khattri ajai-at-bitblit.net |nyphp 04/2004| wrote: > Chris Snyder wrote: > >> I'm with Joel on this one -- I had no idea that XUL could be used to >> provide client-side apps embedded in a web page. > > > You mean, you've never seen this? > > http://www.oreilly.com/catalog/mozilla/index.html > I was watching this in the Python world (see Luxor and others) last year. Sourceforge has had alot of activity in XUL-based UI stuff, some of it tied to server side (Luxilla, etc). I agree it would be good to have a talk, but can it be more in-depth in the PHP tie in? Off the cuff ideas: - enhanced site functionality for Mozilla browsers (example of coding interactive pages for IE and Mozilla, where Mozilla is the preferred browser for powerful reasons) (instad of all the reasons NOT to use IE< how about some reasons TO use Mozilla?) -XUL as authenticated JS - a long JS program becomes a very short, easily inspected one, that pulls the bulk of it's instructions from my PHP server (which is trusted). Doesn't this eliminate much of the security concerns about js client side? -=john From sm11szw02 at sneakemail.com Thu Jul 1 12:20:57 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Thu, 01 Jul 2004 12:20:57 -0400 Subject: [nycphp-talk] Good PHP Apps In-Reply-To: <40E4215B.7020307@spacemonkeylabs.com> References: <40E4215B.7020307@spacemonkeylabs.com> Message-ID: <21298-25262@sneakemail.com> Mitch Pirtle mitchy-at-spacemonkeylabs.com |nyphp 04/2004| wrote: > Then I'd like to volunteer the sourcecode for Mambo Open Source, a > project that I have been added to (I'm the resident database > curmudgeon). I can say that I have no vested interest in the code - > as I have not contributed anything yet - but would enjoy an > independent assessment by the community. > > http://www.mamboserver.com/ > > This is not an advertisement, but an offer to see what everyone else > on this list thinks about their general coding style and architectural > strategies. This was a commercial project that was allowed an open > source fork, which is what we have today. Uses OO methodologies, and > fairly clean coding style. > > Subjecting Mambo to an acid test by NYPHPers would be awesome, as I > often wonder what the norms are for coding styles, naming conventions, > etc. > > Just a thought, > > -- Mitch > _______________________________________________ Like most new ideas, this "code rating" one is grand. However, the suggestion that NYPHP look over Mambo in detail is (IMHO) outstanding. What better evaluation of the concept than a look at Mambo, which is "looked at" by tons of people, has been winning praise, is under active development. The only problem I see is the way Mambo has been updating. Sure we need the security fixes, but so many small changes that don't seem to have been important enough to change, but apparently support the "bigger picture" that is 4.6 - it makes it had to commit if you can't be sure about the next release. I'd love to see NYPHP improve Mambo's speed... -=john . From adam at trachtenberg.com Thu Jul 1 13:03:33 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Thu, 1 Jul 2004 13:03:33 -0400 (EDT) Subject: [nycphp-talk] php oo intro In-Reply-To: <002001c45f7b$24286620$e98d3818@oberon1> References: <002001c45f7b$24286620$e98d3818@oberon1> Message-ID: On Thu, 1 Jul 2004, Tim Gales wrote: > Adam Trachtenberg's new book > 'Upgrading to PHP 5 ' > > http://www.oreilly.com/catalog/upgradephp5/desc.html > > is for veteran php programmers > moving to PHP 5 > > It's a book (obviously not an article) > but still (very much ) worth considering. Thanks for the plug. "Upgrading to PHP 5" will be out later this month. (Definitely before OSCON). AFAIK, the only remaining item left to write is my biography. :) -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From dorgan at optonline.net Thu Jul 1 13:05:49 2004 From: dorgan at optonline.net (dorgan at optonline.net) Date: Thu, 01 Jul 2004 13:05:49 -0400 Subject: [nycphp-talk] Open Source Monitoring Software Message-ID: <5f14645f335d.5f335d5f1464@optonline.net> Does anyone know of any good open source service monitoring software, so that i can monitor say mysql, apache and smtp on given number of boxes From joel at tagword.com Thu Jul 1 14:37:49 2004 From: joel at tagword.com (Joel De Gan) Date: Thu, 01 Jul 2004 14:37:49 -0400 Subject: [nycphp-talk] Open Source Monitoring Software In-Reply-To: <5f14645f335d.5f335d5f1464@optonline.net> References: <5f14645f335d.5f335d5f1464@optonline.net> Message-ID: <1088707068.2632.19.camel@bezel> nagios.. http://www.nagios.org/ I have done some mods for it as well (for upgrades etc..) it rocks.. -joel On Thu, 2004-07-01 at 13:05, dorgan at optonline.net wrote: > Does anyone know of any good open source service monitoring software, so that i can monitor say mysql, apache and smtp on given number of boxes > > _______________________________________________ > 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 ashaw at iifwp.org Thu Jul 1 13:14:42 2004 From: ashaw at iifwp.org (Allen Shaw) Date: Thu, 1 Jul 2004 13:14:42 -0400 Subject: [nycphp-talk] Open Source Monitoring Software References: <5f14645f335d.5f335d5f1464@optonline.net> Message-ID: <00e301c45f8e$e6c32540$7201a8c0@iifwp.local> Monitor to be sure they're running, not hung up, not exceeding certain memory usage, etc? http://www.tildeslash.com/monit/ - Allen ----- Original Message ----- From: To: "NYPHP Talk" Sent: Thursday, July 01, 2004 1:05 PM Subject: [nycphp-talk] Open Source Monitoring Software > Does anyone know of any good open source service monitoring software, so that i can monitor say mysql, apache and smtp on given number of boxes > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From lance.listserv at optimost.com Thu Jul 1 13:20:05 2004 From: lance.listserv at optimost.com (Lance Lovette) Date: Thu, 1 Jul 2004 13:20:05 -0400 Subject: [nycphp-talk] Open Source Monitoring Software In-Reply-To: <5f14645f335d.5f335d5f1464@optonline.net> Message-ID: <200407011720.i61HKBBM014213@ms-smtp-02.rdc-nyc.rr.com> I've had great success with Cacti. http://www.raxnet.net/products/cacti/ Lance -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of dorgan at optonline.net Sent: Thursday, July 01, 2004 1:06 PM To: NYPHP Talk Subject: [nycphp-talk] Open Source Monitoring Software Does anyone know of any good open source service monitoring software, so that i can monitor say mysql, apache and smtp on given number of boxes _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From sm11szw02 at sneakemail.com Thu Jul 1 13:36:38 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Thu, 01 Jul 2004 13:36:38 -0400 Subject: [nycphp-talk] Open Source Monitoring Software In-Reply-To: <5f14645f335d.5f335d5f1464@optonline.net> References: <5f14645f335d.5f335d5f1464@optonline.net> Message-ID: <32610-41619@sneakemail.com> dorgan-at-optonline.net |nyphp 04/2004| wrote: >Does anyone know of any good open source service monitoring software, so that i can monitor say mysql, apache and smtp on given number of boxes > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > BigBrother with MRTG From mitchy at spacemonkeylabs.com Thu Jul 1 13:37:26 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Thu, 01 Jul 2004 13:37:26 -0400 Subject: [nycphp-talk] Good PHP Apps In-Reply-To: <21298-25262@sneakemail.com> References: <40E4215B.7020307@spacemonkeylabs.com> <21298-25262@sneakemail.com> Message-ID: <40E44BD6.4010904@spacemonkeylabs.com> inforequest wrote: > Like most new ideas, this "code rating" one is grand. However, the > suggestion that NYPHP look over Mambo in detail is (IMHO) outstanding. > What better evaluation of the concept than a look at Mambo, which is > "looked at" by tons of people, has been winning praise, is under > active development. I think the whole Mambo community would love this, as it helps everyone, both the developers and the community. Having NYPHP do something like this could really start something, and definitely demonstrate the real strengths of the NYPHP organization as a whole. We got a lot of serious cranium horsepower here (despite my involvement!), and this could be a very visible demonstration of the value of that resource. > The only problem I see is the way Mambo has been updating. Sure we > need the security fixes, but so many small changes that don't seem to > have been important enough to change, but apparently support the > "bigger picture" that is 4.6 - it makes it had to commit if you can't > be sure about the next release. Those problems were initially security patches that went to distribution before testing, resulting in patches of patches. The development team is still smarting from that event (or, 'series of events'), so much so that they are seriously debating the validity of every single release. Live and learn :) > I'd love to see NYPHP improve Mambo's speed... 5.0 has a completely different schema and content structure. I can only promise that it will fly, and that the XML-RPC integration will enable rich client-side site management applications, maybe even in XUL ;) I am absolutely certain that the collective of NYPHP is capable of refining many aspects of the design of Mambo, and probably unearth some 'unsolved mysteries' that have been indoctrinated as just historical anomalies... I've learned a tremendous amount from working with Mambo, and would support any efforts that could benefit Mambo as well. -- Mitch From jonbaer at jonbaer.net Thu Jul 1 13:46:59 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Thu, 1 Jul 2004 13:46:59 -0400 Subject: [nycphp-talk] Open Source Monitoring Software In-Reply-To: <5f14645f335d.5f335d5f1464@optonline.net> References: <5f14645f335d.5f335d5f1464@optonline.net> Message-ID: <20040701174659.GA6259@jonbaer.net> Nagios does this best ... I mainly use it to watch the load on MySQL to make sure its running but im sure it can be tweaked to monitor PHP apps ... http://www.nagios.org - Jon On Thu, Jul 01, 2004 at 01:05:49PM -0400, dorgan at optonline.net wrote: > Does anyone know of any good open source service monitoring software, so that i can monitor say mysql, apache and smtp on given number of boxes > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From ajai at bitblit.net Thu Jul 1 13:48:45 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 01 Jul 2004 13:48:45 -0400 Subject: [nycphp-talk] Open Source Monitoring Software In-Reply-To: <5f14645f335d.5f335d5f1464@optonline.net> References: <5f14645f335d.5f335d5f1464@optonline.net> Message-ID: <40E44E7D.6030007@bitblit.net> dorgan at optonline.net wrote: >Does anyone know of any good open source service monitoring software, so that i can monitor say mysql, apache and smtp on given number of boxes > Nagios and Zabbix spring to mind. -- Aj. Systems Administrator / Developer From shiflett at php.net Thu Jul 1 15:09:15 2004 From: shiflett at php.net (Chris Shiflett) Date: Thu, 1 Jul 2004 12:09:15 -0700 (PDT) Subject: [nycphp-talk] php oo intro In-Reply-To: Message-ID: <20040701190915.24443.qmail@web52801.mail.yahoo.com> --- Adam Maccabee Trachtenberg wrote: > AFAIK, the only remaining item left to write is my biography. :) I can start it for you: Adam "avoid the holiday rush" Trachtenberg... :-) 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 ajai at bitblit.net Thu Jul 1 18:33:45 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 01 Jul 2004 18:33:45 -0400 Subject: [nycphp-talk] Open Source Monitoring Software In-Reply-To: <200407011720.i61HKBBM014213@ms-smtp-02.rdc-nyc.rr.com> References: <200407011720.i61HKBBM014213@ms-smtp-02.rdc-nyc.rr.com> Message-ID: <40E49149.303@bitblit.net> Lance Lovette wrote: >I've had great success with Cacti. > >http://www.raxnet.net/products/cacti/ > Whoa, Cacti is fantastic - Ive never used it before but out of the box it is much easier to use than Nagios. (It also looks very slick). Thanks for pointing this out. Can anyone recommend good docs on SNMP? Can you recommend any docs for setting up SNMP for Cacti? -- Aj. Systems Administrator / Developer From sm11szw02 at sneakemail.com Thu Jul 1 20:10:06 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Thu, 01 Jul 2004 20:10:06 -0400 Subject: [nycphp-talk] Open Source Monitoring Software In-Reply-To: <5f14645f335d.5f335d5f1464@optonline.net> References: <5f14645f335d.5f335d5f1464@optonline.net> Message-ID: <22529-69166@sneakemail.com> dorgan-at-optonline.net |nyphp 04/2004| wrote: >Does anyone know of any good open source service monitoring software, so that i can monitor say mysql, apache and smtp on given number of boxes > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > SpotLight on Linux from quest.com is cool for it's gui, but not free. From tom at supertom.com Thu Jul 1 22:27:06 2004 From: tom at supertom.com (Tom) Date: Thu, 01 Jul 2004 22:27:06 -0400 Subject: [nycphp-talk] Open Source Monitoring Software In-Reply-To: <22529-69166@sneakemail.com> Message-ID: <0I07001X8CSS3K@mta1.srv.hcvlny.cv.net> I've used Nagios for a number of years, and have been quite pleased with it: http://www.nagios.org/ You can also look around for a tutorial, there are a number of them out there, I just don't have the sites handy. Good Luck! Tom www.liphp.org -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of inforequest Sent: Thursday, July 01, 2004 8:10 PM To: talk at lists.nyphp.org Subject: Re: [nycphp-talk] Open Source Monitoring Software dorgan-at-optonline.net |nyphp 04/2004| wrote: >Does anyone know of any good open source service monitoring software, >so that i can monitor say mysql, apache and smtp on given number of >boxes > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > SpotLight on Linux from quest.com is cool for it's gui, but not free. _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From jonbaer at jonbaer.net Thu Jul 1 23:50:17 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Thu, 1 Jul 2004 23:50:17 -0400 Subject: [nycphp-talk] SNMP really that "simple"? In-Reply-To: <22529-69166@sneakemail.com> References: <5f14645f335d.5f335d5f1464@optonline.net> <22529-69166@sneakemail.com> Message-ID: <20040702035017.GB2689@jonbaer.net> Is SNMP really that "simple"? Maybe its just me or does it sometimes seem like MIBS are so entirely complex that the name of the protocol does not do it justice? I dont see that many PHP based admin tools, does anyone know of any? It also seems like many of the hardware items Ive toyed around with are Ver 1 based vs. 3 ... its a protocol that screams for XML yet they stick with this SMI stuff. Maybe someone w/ more SNMP experience can explain. - Jon -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From jlacey at att.net Fri Jul 2 00:59:24 2004 From: jlacey at att.net (John Lacey) Date: Thu, 01 Jul 2004 22:59:24 -0600 Subject: [nycphp-talk] SNMP really that "simple"? In-Reply-To: <20040702035017.GB2689@jonbaer.net> References: <5f14645f335d.5f335d5f1464@optonline.net> <22529-69166@sneakemail.com> <20040702035017.GB2689@jonbaer.net> Message-ID: <40E4EBAC.6070605@att.net> Jon Baer wrote: >Is SNMP really that "simple"? > >Maybe its just me or does it sometimes seem like MIBS are so entirely complex that >the name of the protocol does not do it justice? I dont see that many PHP based >admin tools, does anyone know of any? It also seems like many of the hardware >items Ive toyed around with are Ver 1 based vs. 3 ... its a protocol that screams >for XML yet they stick with this SMI stuff. Maybe someone w/ more SNMP experience >can explain. > > > Well, SNMP is great for bandwidth economies. When SNMP was first spec'd, we didn't have the benefit of cheap high-speed links. As such, it's based on a Tree structure, with numbers associated with tree elements and sub-elements. The numbers in the Tree become object identifiers. Note the tree includes other categories/standards. Root ccitt-0 iso-1 iso/ccitt-2 / org-3 \ dod-6 / internet-1 / | \ \ private directory management-2 experimental | MIB-1 So, when transmitting information from the managed object (e.g. a monitoring agent in a router) to the manager (e.g. HP OpenView), the numbers: 1.3.6.1.2.1 ... indicate MIB information (follow the number string down the tree). Now, there are MIB Groups, that indicate WHAT type of information is being sent. IP is Group 4, with 33 objects. .ICMP is Group 5 with 26; TCP is Group 6 with 17 objects; UDP is Group 7 with 4, etc. Let's say we wanted to retrieve the number of IP datagrams/packets that were discarded (if any) by a router because of a lack of buffer space. Since IP is Group 4 the numbers: 1.3.6.1.2.1.4 ... indicate the IP Group Now let's say for the sake of discussion that out of the 33 objects that can be tracked in the IP layer, IpInDiscards is represented by the number 9. So, the number string: 1.3.6.1.2.1.4.9 ... indicates the IpInDiscards data follows (we hope that number is 0 of course :) If XML were used instead, names would be used instead of numbers. for example: < iso> etc.. That's SNMP in a nutshell. The MIB object numbering scheme makes for efficient transmisson and is easier on CPUs -- remember, we weren't trucking along with Pentium 4's @ 3GHz when SNMP was designed. The above is a snippet from a series (Protocol Analysis) that I co-authored a while ago. Not to date myself as too ancient, but I worked on some SNA MIB specifications and some other network-related RFCs. HTH, John From nyphp at aumcomputers.com Fri Jul 2 01:15:33 2004 From: nyphp at aumcomputers.com (Xml and NyPhp) Date: Fri, 2 Jul 2004 10:45:33 +0530 Subject: [nycphp-talk] Open Source Monitoring Software References: <5f14645f335d.5f335d5f1464@optonline.net> Message-ID: <00a801c45ff3$b3ab82f0$0164a8c0@aum1> I would recommend Zabbix. Find it at http://www.zabbix.com Anirudh Zala ----- Original Message ----- From: To: "NYPHP Talk" Sent: Thursday, July 01, 2004 10:35 PM Subject: [nycphp-talk] Open Source Monitoring Software > Does anyone know of any good open source service monitoring software, so that i can monitor say mysql, apache and smtp on given number of boxes > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From jonbaer at jonbaer.net Fri Jul 2 08:10:26 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 2 Jul 2004 08:10:26 -0400 Subject: [nycphp-talk] SNMP really that "simple"? In-Reply-To: <40E4EBAC.6070605@att.net> References: <5f14645f335d.5f335d5f1464@optonline.net> <22529-69166@sneakemail.com> <20040702035017.GB2689@jonbaer.net> <40E4EBAC.6070605@att.net> Message-ID: <20040702121026.GA2556@jonbaer.net> John, Thank you very much for that clear explanation ... I had been working on a MIB and there was no value passed back @ all and it took so long to figure out the reason and it turned out it was something "not implemented yet" from the hardware manuf. lol. However looking @ the MIB info was eye popping at first ... Sticking w/ the subject do you (or anyone) know how snmp_read_mib in PHP5 works? It returns an int vs. a resource, does this just load a working MIB that youd like to view info about? get,walk,realwalk,and all the other functions use host/community string for args. Maybe im just missing something. Im looking to parse info from the MIB description vs. the actual host. Thanks again. - Jon On Thu, Jul 01, 2004 at 10:59:24PM -0600, John Lacey wrote: > Well, SNMP is great for bandwidth economies. When SNMP was first > spec'd, we didn't have the benefit of cheap high-speed links. > As such, it's based on a Tree structure, with numbers associated with > tree elements and sub-elements. The numbers in the Tree become object > identifiers. > Note the tree includes other categories/standards. -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From jlacey at att.net Fri Jul 2 09:41:02 2004 From: jlacey at att.net (John Lacey) Date: Fri, 02 Jul 2004 07:41:02 -0600 Subject: [nycphp-talk] SNMP really that "simple"? In-Reply-To: <20040702121026.GA2556@jonbaer.net> References: <5f14645f335d.5f335d5f1464@optonline.net> <22529-69166@sneakemail.com> <20040702035017.GB2689@jonbaer.net> <40E4EBAC.6070605@att.net> <20040702121026.GA2556@jonbaer.net> Message-ID: <40E565EE.9060500@att.net> Jon Baer wrote: > >Sticking w/ the subject do you (or anyone) know how snmp_read_mib in PHP5 >works? It returns an int vs. a resource, does this just load a working >MIB that youd like to view info about? get,walk,realwalk,and all the >other functions use host/community string for args. Maybe im just missing >something. Im looking to parse info from the MIB description vs. the >actual host. > > I'll assume you have something that you can look at -- if so, what does a print_r() against the returned int show? From tgales at tgaconnect.com Fri Jul 2 09:58:06 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 2 Jul 2004 09:58:06 -0400 Subject: [nycphp-talk] Keeping the PHP license separate from GPL'd code Message-ID: <007a01c4603c$9b498f10$e98d3818@oberon1> At php.net I read question: "Why is PHP 4 not dual-licensed under the GNU General Public License (GPL) like PHP 3 was? answer: "GPL enforces many restrictions on what can and cannot be done with the licensed code. The PHP developers decided to release PHP under a much more loose license (Apache-style), to help PHP become as popular as possible." My questions are: Let's say there's an extension for PHP that I have in mind to write and it will be based rather closely on some C code that is GPL'd (let's say close enough that it could be considered assimilated, as in 'resistance is futile'). Now let's further say that I will re-write this extension for a client. That is, I will download the GPL source for the client and then tailor that code the for client's needs (as an extension). The client wants to retain the source and modify it himself. The first question I have is: Does the client have to keep track of all the changes he makes, because he is forced by the GPL license to give them back to the open source community from which the original code came from. I am currently under the impression that the client can change, hack, and improve to his heart's content -- he just can't publish the extension -- and that would include giving it to a friend (for zero financial consideration) without making his code public. But the main point that I am worried about (as would be potential clients in the case where some of the business logic might reveal a little more of their business strategy than they would like) is that such a client wouldn't have to give back his changes. He would only have to give his source to people who asked for it because they want to use a 'published' extension. And just as importantly, to what degree can the GPL license spread to modules that take advantage of the extension. And here I mean should I be careful what PHP modules use the extension, because they will become GPL'd (assuming I don't want that). Does anybody know for sure? Can someone point me in the right direction on the web for some easy-to-understand info on this? I haven't tried too much Goggling for this because I am presupposing that I would have to sift through a lot of mis-information -- even if I am 'Feeling Lucky'. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From sm11szw02 at sneakemail.com Fri Jul 2 10:01:33 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Fri, 02 Jul 2004 10:01:33 -0400 Subject: [nycphp-talk] SNMP really that "simple"? In-Reply-To: <20040702035017.GB2689@jonbaer.net> References: <5f14645f335d.5f335d5f1464@optonline.net> <22529-69166@sneakemail.com> <20040702035017.GB2689@jonbaer.net> Message-ID: <30763-49432@sneakemail.com> Jon Baer jonbaer-at-jonbaer.net |nyphp 04/2004| wrote: >Is SNMP really that "simple"? > >Maybe its just me or does it sometimes seem like MIBS are so entirely complex that >the name of the protocol does not do it justice? I dont see that many PHP based >admin tools, does anyone know of any? It also seems like many of the hardware >items Ive toyed around with are Ver 1 based vs. 3 ... its a protocol that screams >for XML yet they stick with this SMI stuff. Maybe someone w/ more SNMP experience >can explain. > >- Jon > > Just in case anyone is looking to start to play with SNMP, beware that last I looked there were numerous problems with Microsoft's SNMP on WindowsNT/2000, and that SNMP is clear text (so community passwords and network device info are out in the open for all to see). There are IPSEC solutions to the clear text issue, for those doing that. Rabid SNMP devices flooding the network with SNMP transmissions; either improperly configured devices, flawed implementations, or endless loops that catch that tie up the service -- all headaches that are not often worth the trouble. On most administered networks, SNMP devices are flagged for attention by the sysadmin (unless part of her own deployment). Of course if you are deploying a solution based on SNMP reporting, then you need to deal with these issues anyway. I am just saying BEWARE as it may not be a benign plug-in-play exercise for your network and its users. -=john From dorgan at optonline.net Fri Jul 2 10:52:38 2004 From: dorgan at optonline.net (dorgan at optonline.net) Date: Fri, 02 Jul 2004 10:52:38 -0400 Subject: [nycphp-talk] Smarty Error Message-ID: <5fb5df5fb78e.5fb78e5fb5df@optonline.net> OK i decided to go with nagios, and in doing so i have found a PHP front end for nagios called oddly enough nagios php i believe so far i have everything configured correctly but i am still getting the following error: Warning: Smarty error: unable to read resource: "error.tpl" in /usr/local/Smarty/Smarty.class.php on line 1083 Now i have PEAR installed and working but i am not really sure what else to do i checked the line in Smarty.class.php and all it is a an error trigger function. Does anyone have any ideas From brian at vermonster.com Fri Jul 2 10:55:00 2004 From: brian at vermonster.com (Brian Kaney) Date: Fri, 02 Jul 2004 10:55:00 -0400 Subject: [nycphp-talk] Keeping the PHP license separate from GPL'd code In-Reply-To: <007a01c4603c$9b498f10$e98d3818@oberon1> References: <007a01c4603c$9b498f10$e98d3818@oberon1> Message-ID: <1088780100.14688.12.camel@brian.vermonster.com> On Fri, 2004-07-02 at 09:58, Tim Gales wrote: > And just as importantly, to what degree can > the GPL license spread to modules that take > advantage of the extension. And here I > mean should I be careful what PHP modules > use the extension, because they will > become GPL'd (assuming I don't want that). > As I understand it, typically extensions and libraries are released under the LGPL. This allows people use the extension in some larger application without binding it (i.e. the application could be released under any license). However, if changes are made to the specific library, the modifications would also fall under the LGPL. If the module is under the full, more restrictive GPL, the application using it would also have to be released under the GPL. This would be drastically limit the adoption of open source libraries and is one of the reasons the LGPL was created. - Brian From crisscott at netzero.com Fri Jul 2 10:55:15 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Fri, 02 Jul 2004 10:55:15 -0400 Subject: [nycphp-talk] Smarty Error In-Reply-To: <5fb5df5fb78e.5fb78e5fb5df@optonline.net> References: <5fb5df5fb78e.5fb78e5fb5df@optonline.net> Message-ID: <40E57753.8000709@netzero.com> dorgan at optonline.net wrote: > Warning: Smarty error: unable to read resource: "error.tpl" in /usr/local/Smarty/Smarty.class.php on line 1083 It can't find the template file that it needs to display. Make sure that you have error.tpl in the right place. Scott Mattocks >From hans not junk at nyphp.com Fri Jul 2 10:57:50 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 0B035A85EA for ; Fri, 2 Jul 2004 10:57:50 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Fri, 2 Jul 2004 07:49:36 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] Draft of tutorial on creating rich web, applications with XUL and PHP posted Date: Fri, 2 Jul 2004 07:57:47 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702DC0DC1 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] Draft of tutorial on creating rich web, applications with XUL and PHP posted Thread-Index: AcRfcXO2piZfRvFnS9abJHAlo3Fo3wA01sGQ From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 02 Jul 2004 14:49:36.0444 (UTC) FILETIME=[CB613FC0:01C46043] 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: Fri, 02 Jul 2004 14:57:50 -0000 > For more information on that article, please see: >=20 > http://www.moztips.com/index.php?id=3D254 A presentation would be a great idea. Last year sometime, we also had a couple of core developers from Mozdev come in and talk (and XUL was young in those days). We can easily have them come back and do something again, in coop with others. H From dorgan at optonline.net Fri Jul 2 11:00:02 2004 From: dorgan at optonline.net (Donald J. Organ IV) Date: Fri, 02 Jul 2004 11:00:02 -0400 Subject: [nycphp-talk] Smarty Error References: <5fb5df5fb78e.5fb78e5fb5df@optonline.net> <40E57753.8000709@netzero.com> Message-ID: <000901c46045$40a7df90$16020a0a@dj> i have copied this file to all the obvious places that i can think of and still nothing. ----- Original Message ----- From: "Scott Mattocks" To: "NYPHP Talk" Sent: Friday, July 02, 2004 10:55 AM Subject: Re: [nycphp-talk] Smarty Error > dorgan at optonline.net wrote: > > > Warning: Smarty error: unable to read resource: "error.tpl" in /usr/local/Smarty/Smarty.class.php on line 1083 > It can't find the template file that it needs to display. Make sure > that you have error.tpl in the right place. > > Scott Mattocks > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From crisscott at netzero.com Fri Jul 2 11:06:29 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Fri, 02 Jul 2004 11:06:29 -0400 Subject: [nycphp-talk] Smarty Error In-Reply-To: <000901c46045$40a7df90$16020a0a@dj> References: <5fb5df5fb78e.5fb78e5fb5df@optonline.net> <40E57753.8000709@netzero.com> <000901c46045$40a7df90$16020a0a@dj> Message-ID: <40E579F5.70901@netzero.com> Donald J. Organ IV wrote: > i have copied this file to all the obvious places that i can think of and > still nothing. You tell it where to look when you call display. $smarty->display('path/to/templates/error.tpl'); If you are including the template in another template it works the same way. {include file="path/to/templates/error.tpl"} If you are using a relative path, it is relative to the script that is calling the display method or the template that has the include statement. Also double check that your web server user has permission to view the file. Scott Mattocks From tgales at tgaconnect.com Fri Jul 2 11:12:05 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 2 Jul 2004 11:12:05 -0400 Subject: [nycphp-talk] Keeping the PHP license separate from GPL'd code In-Reply-To: <1088780100.14688.12.camel@brian.vermonster.com> Message-ID: <008101c46046$efeadba0$e98d3818@oberon1> Brian Kaney writes: > As I understand it, typically extensions and libraries are released > under the LGPL. This allows people use the extension in some larger > application without binding it (i.e. the application could be released > under any license). However, if changes are made to the specific > library, the modifications would also fall under the LGPL. > Thanks for you response. In the case that I am considering, I would take something which is already GPL and sort of turn it into a library. It seems (I think) I would not be allowed to turn GPL code into LGPL just by making it into a library. I am starting to think I should just write the whole thing from scratch and license it however the client wants -- seems a shame though. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From brian at vermonster.com Fri Jul 2 11:18:44 2004 From: brian at vermonster.com (Brian Kaney) Date: Fri, 02 Jul 2004 11:18:44 -0400 Subject: [nycphp-talk] What's going on here? PHP conditional. Message-ID: <1088781524.14688.23.camel@brian.vermonster.com> Just came across this problem. Consider the following code: I get Equivalent: evaluates true Equivalent and same type: evaluates false Does anyone know why (0 == 'string') evaluates to true? According to the manual, the integer 0 converts to FALSE. A non-empty (or non-zero) string is considered TRUE. I would think if (FALSE == TRUE) should be evaluated as false? http://us2.php.net/manual/en/language.types.boolean.php#language.types.boolean.casting - Brian From enunez at tiaa-cref.org Fri Jul 2 11:24:13 2004 From: enunez at tiaa-cref.org (Nunez, Eddy) Date: Fri, 2 Jul 2004 11:24:13 -0400 Subject: [nycphp-talk] What's going on here? PHP conditional. Message-ID: <7CE0EC1FC2D0D411910700508BE38D0F17B91695@msxnyusr01.msx.ops.tiaa-cref.org> Well that sure is interesting. Anyone with intimate knowledge of PHP internals care to answer this one? -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Brian Kaney Sent: Friday, July 02, 2004 11:19 AM To: NYPHP Talk Subject: [nycphp-talk] What's going on here? PHP conditional. Just came across this problem. Consider the following code: I get Equivalent: evaluates true Equivalent and same type: evaluates false Does anyone know why (0 == 'string') evaluates to true? According to the manual, the integer 0 converts to FALSE. A non-empty (or non-zero) string is considered TRUE. I would think if (FALSE == TRUE) should be evaluated as false? http://us2.php.net/manual/en/language.types.boolean.php#language.types.boole an.casting - Brian _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk ************************************************************** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ************************************************************** From agfische at email.smith.edu Fri Jul 2 11:22:11 2004 From: agfische at email.smith.edu (Aaron Fischer) Date: Fri, 2 Jul 2004 11:22:11 -0400 Subject: [nycphp-talk] What's going on here? PHP conditional. In-Reply-To: <1088781524.14688.23.camel@brian.vermonster.com> References: <1088781524.14688.23.camel@brian.vermonster.com> Message-ID: <96FBE26C-CC3B-11D8-AA39-0003930D07F2@email.smith.edu> From the NYPHP Phundamentals site, I think this may help answer your question: http://phundamentals.nyphp.org/PH_variableevaluation.php?expiredate=10/ 10/2003 -Aaron On Jul 2, 2004, at 11:18 AM, Brian Kaney wrote: > Does anyone know why (0 == 'string') evaluates to true? > > According to the manual, the integer 0 converts to FALSE. A non-empty > (or non-zero) string is considered TRUE. I would think if (FALSE == > TRUE) should be evaluated as false? > > http://us2.php.net/manual/en/ > language.types.boolean.php#language.types.boolean.casting > > > - Brian From ajai at bitblit.net Fri Jul 2 11:22:08 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Fri, 02 Jul 2004 11:22:08 -0400 Subject: [nycphp-talk] SNMP really that "simple"? In-Reply-To: <20040702035017.GB2689@jonbaer.net> References: <5f14645f335d.5f335d5f1464@optonline.net> <22529-69166@sneakemail.com> <20040702035017.GB2689@jonbaer.net> Message-ID: <40E57DA0.6050300@bitblit.net> Jon Baer wrote: >Is SNMP really that "simple"? > >Maybe its just me or does it sometimes seem like MIBS are so entirely complex that >the name of the protocol does not do it justice? I dont see that many PHP based >admin tools, does anyone know of any? It also seems like many of the hardware >items Ive toyed around with are Ver 1 based vs. 3 ... its a protocol that screams >for XML yet they stick with this SMI stuff. Maybe someone w/ more SNMP experience >can explain. > I feel the same way - and there are no books that explain it in simple terms. (Hence my request yesterday). Im playing with cacti (which uses SNMP). -- Aj. Systems Administrator / Developer From jlacey at att.net Fri Jul 2 11:29:35 2004 From: jlacey at att.net (John Lacey) Date: Fri, 02 Jul 2004 09:29:35 -0600 Subject: [nycphp-talk] What's going on here? PHP conditional. In-Reply-To: <96FBE26C-CC3B-11D8-AA39-0003930D07F2@email.smith.edu> References: <1088781524.14688.23.camel@brian.vermonster.com> <96FBE26C-CC3B-11D8-AA39-0003930D07F2@email.smith.edu> Message-ID: <40E57F5F.2000708@att.net> Aaron Fischer wrote: > From the NYPHP Phundamentals site, I think this may help answer your > question: > http://phundamentals.nyphp.org/PH_variableevaluation.php?expiredate=10/ > 10/2003 > > -Aaron > > On Jul 2, 2004, at 11:18 AM, Brian Kaney wrote: > >> Does anyone know why (0 == 'string') evaluates to true? >> >> According to the manual, the integer 0 converts to FALSE. A non-empty >> (or non-zero) string is considered TRUE. I would think if (FALSE == >> TRUE) should be evaluated as false? >> >> http://us2.php.net/manual/en/ >> language.types.boolean.php#language.types.boolean.casting >> I believe it's because the 0 is being cast internally to a string value since it's being compared against a string. So, a 0 int is a '30' ASCII string value and therefore TRUE since it's now a non-zero John From sklar at sklar.com Fri Jul 2 11:31:31 2004 From: sklar at sklar.com (David Sklar) Date: Fri, 02 Jul 2004 11:31:31 -0400 Subject: [nycphp-talk] What's going on here? PHP conditional. In-Reply-To: <1088781524.14688.23.camel@brian.vermonster.com> References: <1088781524.14688.23.camel@brian.vermonster.com> Message-ID: <40E57FD3.9040305@sklar.com> When you compare two scalars of different types, the scalar on the right hand side is converted into the type of the scalar on the left hand side. So in the first comparison, the PHP interpreter turns 'Some String' into an integer, following the rules it always does for things like that (e.g. if you wrote "print 6 + 'pants';") which is that anything numbery-looking at the start of the string is turned into a number and the rest is discarded. There are no numbers in 'Some String', so the "integer value" of the string is 0. You can see the same thing at work with something like this: if (5 == "5 alive") { print "true"; } else { print "false"; } This prints "true". David Brian Kaney wrote: > Just came across this problem. Consider the following code: > > > echo "Equivalent: "; > if (0 == 'Some String') { echo 'evaluates true'; } else { echo > 'evaluates false'; } > > echo "\n"; > > echo "Equivalent and same type: "; > if (0 === 'Some String') { echo 'evaluates true'; } else { echo > 'evaluates false'; } > > ?> > > I get > > Equivalent: evaluates true > Equivalent and same type: evaluates false > > > > Does anyone know why (0 == 'string') evaluates to true? > > According to the manual, the integer 0 converts to FALSE. A non-empty > (or non-zero) string is considered TRUE. I would think if (FALSE == > TRUE) should be evaluated as false? > > http://us2.php.net/manual/en/language.types.boolean.php#language.types.boolean.casting From tgales at tgaconnect.com Fri Jul 2 11:31:43 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 2 Jul 2004 11:31:43 -0400 Subject: [nycphp-talk] What's going on here? PHP conditional. In-Reply-To: <1088781524.14688.23.camel@brian.vermonster.com> Message-ID: <008601c46049$ae844680$e98d3818@oberon1> "If the string starts with valid numeric data, this will be the value used. Otherwise, the value will be 0 (zero)." http://us2.php.net/manual/en/language.types.string.php#language.types.stri ng.conversion 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 Brian Kaney > Sent: Friday, July 02, 2004 11:19 AM > To: NYPHP Talk > Subject: [nycphp-talk] What's going on here? PHP conditional. > > > Just came across this problem. Consider the following code: > > > echo "Equivalent: "; > if (0 == 'Some String') { echo 'evaluates true'; } else { > echo 'evaluates false'; } > > echo "\n"; > > echo "Equivalent and same type: "; > if (0 === 'Some String') { echo 'evaluates true'; } else { > echo 'evaluates false'; } > > ?> > > I get > > Equivalent: evaluates true > Equivalent and same type: evaluates false > > > > Does anyone know why (0 == 'string') evaluates to true? > > According to the manual, the integer 0 converts to FALSE. A > non-empty (or non-zero) string is considered TRUE. I would > think if (FALSE == > TRUE) should be evaluated as false? > > http://us2.php.net/manual/en/language.types.boolean.php#langua ge.types.boolean.casting - Brian _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From sklar at sklar.com Fri Jul 2 11:33:08 2004 From: sklar at sklar.com (David Sklar) Date: Fri, 02 Jul 2004 11:33:08 -0400 Subject: [nycphp-talk] What's going on here? PHP conditional. In-Reply-To: <40E57FD3.9040305@sklar.com> References: <1088781524.14688.23.camel@brian.vermonster.com> <40E57FD3.9040305@sklar.com> Message-ID: <40E58034.3080106@sklar.com> David Sklar wrote: > When you compare two scalars of different types, the scalar on the right > hand side is converted into the type of the scalar on the left hand side. Actually to be precise, I should say that when you compare a string and a number, the string is turned into a number, independent of who is on the right and who is on the left. David From jonbaer at jonbaer.net Fri Jul 2 11:39:06 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 2 Jul 2004 11:39:06 -0400 Subject: [nycphp-talk] SNMP really that "simple"? In-Reply-To: <30763-49432@sneakemail.com> References: <5f14645f335d.5f335d5f1464@optonline.net> <22529-69166@sneakemail.com> <20040702035017.GB2689@jonbaer.net> <30763-49432@sneakemail.com> Message-ID: <20040702153906.GA14972@jonbaer.net> Good point, I actually witnessed this first hand with a trap flood which took a long time to nail down ... I thought there was encryption support of some kind in v3. BTW, does the net-smtp lib allow you to create traps? Ive noticed with php5 stream_socket_server() you can receive them but there is no interface for snmptrap ... does anyone write apps that send them? Im guessing its trivial ... - Jon > Just in case anyone is looking to start to play with SNMP, beware that > last I looked there were numerous problems with Microsoft's SNMP on > WindowsNT/2000, and that SNMP is clear text (so community passwords and > network device info are out in the open for all to see). There are IPSEC > solutions to the clear text issue, for those doing that. -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From adam at trachtenberg.com Fri Jul 2 11:42:01 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Fri, 2 Jul 2004 11:42:01 -0400 (EDT) Subject: [nycphp-talk] What's going on here? PHP conditional. In-Reply-To: <40E57FD3.9040305@sklar.com> References: <1088781524.14688.23.camel@brian.vermonster.com> <40E57FD3.9040305@sklar.com> Message-ID: On Fri, 2 Jul 2004, David Sklar wrote: > if (5 == "5 alive") { print "true"; } else { print "false"; } Who keeps Steve Guttenberg a star? We do! We do! -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From sm11szw02 at sneakemail.com Fri Jul 2 12:13:42 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Fri, 02 Jul 2004 12:13:42 -0400 Subject: [nycphp-talk] SNMP really that "simple"? In-Reply-To: <40E57DA0.6050300@bitblit.net> References: <5f14645f335d.5f335d5f1464@optonline.net> <22529-69166@sneakemail.com> <20040702035017.GB2689@jonbaer.net> <40E57DA0.6050300@bitblit.net> Message-ID: <2822-47256@sneakemail.com> Ajai Khattri ajai-at-bitblit.net |nyphp 04/2004| wrote: > Jon Baer wrote: > >> Is SNMP really that "simple"? >> Maybe its just me or does it sometimes seem like MIBS are so entirely >> complex that the name of the protocol does not do it justice? I dont >> see that many PHP based admin tools, does anyone know of any? It >> also seems like many of the hardware items Ive toyed around with are >> Ver 1 based vs. 3 ... its a protocol that screams for XML yet they >> stick with this SMI stuff. Maybe someone w/ more SNMP experience can >> explain. >> > > I feel the same way - and there are no books that explain it in simple > terms. (Hence my request yesterday). Im playing with cacti (which uses > SNMP). > I spent 2 hours studyig SNMP as a management tool for internetworks under Mark Miller many moons ago. He was *passionate* about hands-on control of the SNMP process, from hand-crafting MIBS from the ground up (for any device you like), to capturing data streams and breaking apart each piece for knowledge of what was happening on the network. As I recall he was way ahead of his time, in that network management tools at the time were all but ridiculously over hyped and under powered. Standards held back reliable deployment then, which he aptly demonstrated every other minute or so. His book "*Managing Internetworks With SNMP" *was good after taking that course, but without the training it is considered a very difficult book, not for beginners. The "official" books are listed here http://www.snmp.com/protocol/snmpbooks.html. -=john ** From jayeshsh at ceruleansky.com Fri Jul 2 12:22:00 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Fri, 02 Jul 2004 12:22:00 -0400 Subject: [nycphp-talk] Draft of tutorial on creating rich web, , applications with XUL and PHP posted Message-ID: <40E58BA8.4030404@ceruleansky.com> Hi Hans and others, I would be happy to work with others (especially those from MozDev who know more than I do on the subject of XUL) to do a presentation on using XUL with PHP. I think Pete Collins is the main MozDev person ... Best Regards, - Jay Hans wrote: >A presentation would be a great idea. Last year sometime, we also had >a >couple of core developers from Mozdev come in and talk (and XUL was >young in those days). We can easily have them come back and do >something again, in coop with others. > >H >From hans not junk at nyphp.com Fri Jul 2 12:24:19 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 92347A8635 for ; Fri, 2 Jul 2004 12:24:19 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Fri, 2 Jul 2004 09:16:05 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] Draft of tutorial on creating rich web, , applications with XUL and PHP posted Date: Fri, 2 Jul 2004 09:24:14 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702DC0E79 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] Draft of tutorial on creating rich web, , applications with XUL and PHP posted Thread-Index: AcRgULyAaGgoY+2DTyCQ4VxPsPS8uQAADfcw From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 02 Jul 2004 16:16:05.0715 (UTC) FILETIME=[E06D2A30:01C4604F] 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: Fri, 02 Jul 2004 16:24:20 -0000 > Hi Hans and others, >=20 > I would be happy to work with others (especially those from=20 > MozDev who know more than I do on the subject of XUL) to do a=20 > presentation on using XUL with PHP. >=20 > I think Pete Collins is the main MozDev person ... He is... I'll get you guys in touch. H From jonbaer at jonbaer.net Fri Jul 2 12:50:49 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 2 Jul 2004 12:50:49 -0400 Subject: [nycphp-talk] Keeping the PHP license separate from GPL'd code In-Reply-To: <007a01c4603c$9b498f10$e98d3818@oberon1> References: <007a01c4603c$9b498f10$e98d3818@oberon1> Message-ID: <20040702165049.GB22051@jonbaer.net> I just gave a talk @ NYCwireless on the WRT54G router and this came up, you should google for the discussions between Linksys and their position on the GPL because it puts a better perspective on it (for me anyways) and it was an interesting case where they have absolutley no choice but to release the code or face the Stallman wrath. On the flip side from what I read, Linus made comments pertaining to "modules" which do not need to be open and can be provided as binary form only. So in the case of the router, the source is completely available except Broadcom not releasing source code for the radio drivers. I think the saying would be "anything that happens at the GPL stays at the GPL", but if you based code on something you wrote from scratch, released it as a binary "module", it would be ok (guessing). I would venture and take a guess that the same applies in the area of PHP, the extensions can be released closed, although I have not personally seen any closed extensions for PHP anywhere. I dont know what the rules are governing including "php.h" (and its functions). You are really not making modifications to PHP itself. However Im sure if it was later found out that you did use GPL material (as in the Linksys case), it would be a no no. - Jon (not a lawyer) On Fri, Jul 02, 2004 at 09:58:06AM -0400, Tim Gales wrote: > Does the client have to keep track of all > the changes he makes, because he is forced > by the GPL license to give them back to > the open source community from which the > original code came from. -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From jonbaer at jonbaer.net Fri Jul 2 12:55:59 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 2 Jul 2004 12:55:59 -0400 Subject: [nycphp-talk] [ot] Web tree command available? In-Reply-To: <30763-49432@sneakemail.com> References: <5f14645f335d.5f335d5f1464@optonline.net> <22529-69166@sneakemail.com> <20040702035017.GB2689@jonbaer.net> <30763-49432@sneakemail.com> Message-ID: <20040702165559.GC22051@jonbaer.net> I was looking around for a "web" tree like application (cli) that did something like this (before ending up to hack it myself): tree http://www.example.com / | +-/images | +-/scripts | +-/sub | | | +-/sub2 | +-/help seen it? any funky wget or curl flags can do this? - Jon -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From tommyo at gmail.com Fri Jul 2 12:58:31 2004 From: tommyo at gmail.com (Thomas O'Neill) Date: Fri, 2 Jul 2004 11:58:31 -0500 Subject: [nycphp-talk] setcookie, sub-domains, IE Message-ID: Hey everyone, I have run into a strange problem. I am setting a cookie that I want to access across multiple sub domains on my companies site. I set the cookie: setcookie('test','testvalue',strtotime("+1 year"),'/','.ourdomain.com'); This works fine in Mozilla, Netscape, and Firefox. But IE doesn't recognize the cookie when trying to access it from $_COOKIE['test'] on the other subdomain. I read on the very bottom of http://www.php.net/setcookie that "Internet Exploer 6 now requires sites that set cookies to have P3P policies. " does this have anything do to with my problem? IE seems to set and hold cookies with in the same sub domain just fine on our site. Any ideas!?! Thank you! Tom O'Neill tommyo at gmail.com From tgales at tgaconnect.com Fri Jul 2 13:13:02 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 2 Jul 2004 13:13:02 -0400 Subject: [nycphp-talk] [ot] Web tree command available? In-Reply-To: <20040702165559.GC22051@jonbaer.net> Message-ID: <00a201c46057$d60353a0$e98d3818@oberon1> I know this is not exactly what you want. But it might give you some ideas... "PHP Traverser is a script that makes a directory browsable recursively, i.e. with this script it is possible to browse a whole directory structure, where the root of this tree is the directory where the script was placed..." http://www.loria.fr/~szathmar/off/projects/php/phptraverse/index.php#onlin e_demo 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, July 02, 2004 12:56 PM > To: NYPHP Talk > Subject: [nycphp-talk] [ot] Web tree command available? > > > I was looking around for a "web" tree like application (cli) > that did something like this (before ending up to hack it myself): > > tree http://www.example.com > > / > | > +-/images > | > +-/scripts > | > +-/sub > | | > | +-/sub2 > | > +-/help > > seen it? any funky wget or curl flags can do this? > > - Jon > > -- > pgp key: http://www.jonbaer.net/jonbaer.asc > fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 > > --- > Incoming mail passed > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.705 / Virus Database: 461 - Release Date: 6/12/2004 > > > From jonbaer at jonbaer.net Fri Jul 2 13:39:11 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 2 Jul 2004 13:39:11 -0400 Subject: [nycphp-talk] [ot] Web tree command available? In-Reply-To: <00a201c46057$d60353a0$e98d3818@oberon1> References: <20040702165559.GC22051@jonbaer.net> <00a201c46057$d60353a0$e98d3818@oberon1> Message-ID: <20040702173911.GA1592@jonbaer.net> I was actually looking for something that was more remotely mapable ... something such as powermapper (powermapper.com i think) but not GUI, just a CLI tree overview of a website, probably not that hard using regex and wget. I should make it a little PHP5 app instead of lazily shleping around the web looking for one :-) - Jon On Fri, Jul 02, 2004 at 01:13:02PM -0400, Tim Gales wrote: > "PHP Traverser is a script that makes a directory > browsable recursively, i.e. with this script it is -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From danielc at analysisandsolutions.com Fri Jul 2 13:55:27 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 2 Jul 2004 13:55:27 -0400 Subject: [nycphp-talk] setcookie, sub-domains, IE In-Reply-To: References: Message-ID: <20040702175527.GA29700@panix.com> On Fri, Jul 02, 2004 at 11:58:31AM -0500, Thomas O'Neill wrote: > > setcookie('test','testvalue',strtotime("+1 year"),'/','.ourdomain.com'); > > This works fine in Mozilla, Netscape, and Firefox. But IE doesn't > recognize the cookie when trying to access it from $_COOKIE['test'] on > the other subdomain. Isn't IE fun! I guess a quick workaround is to check for IE and set the cookies for the various subdomains up front. --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 sm11szw02 at sneakemail.com Fri Jul 2 14:01:03 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Fri, 02 Jul 2004 14:01:03 -0400 Subject: [nycphp-talk] [ot] Web tree command available? In-Reply-To: <20040702173911.GA1592@jonbaer.net> References: <20040702165559.GC22051@jonbaer.net> <00a201c46057$d60353a0$e98d3818@oberon1> <20040702173911.GA1592@jonbaer.net> Message-ID: <28515-19888@sneakemail.com> Jon Baer jonbaer-at-jonbaer.net |nyphp 04/2004| wrote: >I was actually looking for something that was more remotely mapable ... >something such as powermapper (powermapper.com i think) but not GUI, just >a CLI tree overview of a website, probably not that hard using regex and >wget. I should make it a little PHP5 app instead of lazily shleping >around the web looking for one :-) > >- Jon > >On Fri, Jul 02, 2004 at 01:13:02PM -0400, Tim Gales wrote: > > >>"PHP Traverser is a script that makes a directory >>browsable recursively, i.e. with this script it is >> >> I don't see how you could get this info without spidering, and once you start writing a spider you need to consider all the aspects of cloaking, robots.txt, and dynamic nature (do you want a virtual tree or the real deal??). You don't want to gte caught in one of my spidertraps :-) and mine aren't nearly as vicious as many out there. Quite another story if it is your own site or one you have admin access to. -=john From jonbaer at jonbaer.net Fri Jul 2 14:35:49 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 2 Jul 2004 14:35:49 -0400 Subject: [nycphp-talk] [ot] Web tree command available? In-Reply-To: <28515-19888@sneakemail.com> References: <20040702165559.GC22051@jonbaer.net> <00a201c46057$d60353a0$e98d3818@oberon1> <20040702173911.GA1592@jonbaer.net> <28515-19888@sneakemail.com> Message-ID: <20040702183549.GA2162@jonbaer.net> I agree ... actually just found phpdig.net so I will be busy for a while :-) - Jon > I don't see how you could get this info without spidering, and once you > start writing a spider you need to consider all the aspects of cloaking, > robots.txt, and dynamic nature (do you want a virtual tree or the real > deal??). You don't want to gte caught in one of my spidertraps :-) and > mine aren't nearly as vicious as many out there. > > Quite another story if it is your own site or one you have admin access to. -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From jlacey at att.net Fri Jul 2 16:16:04 2004 From: jlacey at att.net (John Lacey) Date: Fri, 02 Jul 2004 14:16:04 -0600 Subject: [nycphp-talk] [ot] Web tree command available? In-Reply-To: <20040702183549.GA2162@jonbaer.net> References: <20040702165559.GC22051@jonbaer.net> <00a201c46057$d60353a0$e98d3818@oberon1> <20040702173911.GA1592@jonbaer.net> <28515-19888@sneakemail.com> <20040702183549.GA2162@jonbaer.net> Message-ID: <40E5C284.9040608@att.net> Jon Baer wrote: >I agree ... actually just found phpdig.net so I will be busy for a while >:-) > >- Jon > > Jon, I'll take a look at loading a test MIB into the active tree from a MIB desc file.. . Just for the record, you're interested in parsing thru (displaying) the actual MIB description, right? I need to pysch some stuff for a security tools course I'm writing, so it won't be wasted energy. btw, Talk List -- sorry for the 180degree dyslexic 'explaination' of casting int to string instead of vice-versa ... woooops, coming back from vacation is nasty. I haven't actively coded PHP for over a year now -- can you tell? "Better to let people think you're a fool than to open your mouth and remove all doubt" -- gawd, I hate it when that happens John From danielc at analysisandsolutions.com Fri Jul 2 16:29:11 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 2 Jul 2004 16:29:11 -0400 Subject: [nycphp-talk] Smarty Error In-Reply-To: <40E579F5.70901@netzero.com> References: <5fb5df5fb78e.5fb78e5fb5df@optonline.net> <40E57753.8000709@netzero.com> <000901c46045$40a7df90$16020a0a@dj> <40E579F5.70901@netzero.com> Message-ID: <20040702202911.GA13928@panix.com> On Fri, Jul 02, 2004 at 11:06:29AM -0400, Scott Mattocks wrote: > > Also double check that your web server user has permission to view the file. And write permissions on the necessary directories. When Smarty compiles pages for the first time, it writes files and you'll need the appropriate permissions on that destination. --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 Sat Jul 3 00:33:33 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Sat, 3 Jul 2004 00:33:33 -0400 Subject: [nycphp-talk] [ot] Web tree command available? In-Reply-To: <40E5C284.9040608@att.net> References: <20040702165559.GC22051@jonbaer.net> <00a201c46057$d60353a0$e98d3818@oberon1> <20040702173911.GA1592@jonbaer.net> <28515-19888@sneakemail.com> <20040702183549.GA2162@jonbaer.net> <40E5C284.9040608@att.net> Message-ID: <20040703043333.GB2413@jonbaer.net> Yep ... I have a few sensors laying around which speak SNMP (v1) and I have the MIB so I was thinking of a web interface for it, but it seems like a generic idea would be nice to have. Does having traps sent directly to email/sms make sense? Im sure this occurs all the time ... - Jon On Fri, Jul 02, 2004 at 02:16:04PM -0600, John Lacey wrote: > I'll take a look at loading a test MIB into the active tree from a MIB > desc file.. . Just for the record, you're interested in parsing thru > (displaying) the actual MIB description, right? I need to pysch some > stuff for a security tools course I'm writing, so it won't be wasted energy. -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From preinheimer at gmail.com Sat Jul 3 10:30:49 2004 From: preinheimer at gmail.com (Paul Reinheimer) Date: Sat, 3 Jul 2004 10:30:49 -0400 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d Message-ID: <6ec19ec7040703073032c89a5b@mail.gmail.com> You can see the /. article here http://developers.slashdot.org/article.pl?sid=04/07/03/1319245&mode=thread&tid=126&tid=156&tid=169 Or Chris's blog entry here http://shiflett.org/archive/46 Way to go Chris! This is mention #2 for you on /. IIRC, this and the reveiw of your book :) paul From tgales at tgaconnect.com Sat Jul 3 10:41:11 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Sat, 3 Jul 2004 10:41:11 -0400 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <6ec19ec7040703073032c89a5b@mail.gmail.com> Message-ID: <001201c4610b$c923aef0$e98d3818@oberon1> Paul Reinheimer writes " PHP Scales, Our Chris Shiflett gets /.'d " Yes *very* 'clewful' Also 'Snarky Answer' is good at: http://www.schlossnagle.org/~george/blog/archives/269_Why_PHP_Scales__A_Cr anky_Snarky_Answer.html T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From joel at tagword.com Sat Jul 3 12:25:49 2004 From: joel at tagword.com (Joel De Gan) Date: Sat, 03 Jul 2004 12:25:49 -0400 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <6ec19ec7040703073032c89a5b@mail.gmail.com> References: <6ec19ec7040703073032c89a5b@mail.gmail.com> Message-ID: <1088871949.12983.10.camel@bezel> Java "duuudes" on slashdot pounce all over anything PHP.. Any PHP article on there will have 300 of them mention how Java is better because of "x" etc.. This one I imagine will have the extra dose of it because he is talking of moving away from java.. Heh.. Anyway, maybe we should descend en-masse and defend php? -joel On Sat, 2004-07-03 at 10:30, Paul Reinheimer wrote: > You can see the /. article here > http://developers.slashdot.org/article.pl?sid=04/07/03/1319245&mode=thread&tid=126&tid=156&tid=169 > > Or Chris's blog entry here > http://shiflett.org/archive/46 > > > Way to go Chris! This is mention #2 for you on /. IIRC, this and the > reveiw of your book :) > > > paul > _______________________________________________ > 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 tgales at tgaconnect.com Sat Jul 3 11:03:17 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Sat, 3 Jul 2004 11:03:17 -0400 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <1088871949.12983.10.camel@bezel> Message-ID: <001301c4610e$dfcb8530$e98d3818@oberon1> Joel De Gan writes > Java "duuudes" on slashdot pounce all over anything PHP.. > Any PHP article on there will have 300 of them mention how > Java is better because of "x" etc.. The 'x' that they almost invariably mention is threading -- something which if not done with the utmost of care will actually act as a deterrent to scalability. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From joel at tagword.com Sat Jul 3 12:46:21 2004 From: joel at tagword.com (Joel De Gan) Date: Sat, 03 Jul 2004 12:46:21 -0400 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <001301c4610e$dfcb8530$e98d3818@oberon1> References: <001301c4610e$dfcb8530$e98d3818@oberon1> Message-ID: <1088873181.12573.12.camel@bezel> Oooo.. and I have moderator points... muhahahahah -joel On Sat, 2004-07-03 at 11:03, Tim Gales wrote: > Joel De Gan writes > > > Java "duuudes" on slashdot pounce all over anything PHP.. > > Any PHP article on there will have 300 of them mention how > > Java is better because of "x" etc.. > > The 'x' that they almost invariably mention is > threading -- something which if not done with > the utmost of care will actually act as a > deterrent to scalability. > > 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 -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From tgales at tgaconnect.com Sat Jul 3 11:20:17 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Sat, 3 Jul 2004 11:20:17 -0400 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <001301c4610e$dfcb8530$e98d3818@oberon1> Message-ID: <001401c46111$3f615c20$e98d3818@oberon1> I wrote that > Joel De Gan writes > > > Java "duuudes" on slashdot pounce all over anything PHP.. > > Any PHP article on there will have 300 of them mention how > > Java is better because of "x" etc.. > > The 'x' that they almost invariably mention is > threading -- something which if not done with > the utmost of care will actually act as a > deterrent to scalability. > As a footnote, as nearly as I can make out, Java does not automagically do threading with the 'utmost of care' I am talking about. Java programmers I know are fond of saying things like: "That's the beauty of Java -- all threading is taken care of for you." T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From preinheimer at gmail.com Sat Jul 3 12:25:12 2004 From: preinheimer at gmail.com (Paul Reinheimer) Date: Sat, 3 Jul 2004 12:25:12 -0400 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <1088873181.12573.12.camel@bezel> References: <001301c4610e$dfcb8530$e98d3818@oberon1> <1088873181.12573.12.camel@bezel> Message-ID: <6ec19ec704070309251fab897@mail.gmail.com> Yeah, I noticed my mod points arrive at a good time as well. Someone should post something and plug NYPHP and we can knock it up a few notches :) paul On Sat, 03 Jul 2004 12:46:21 -0400, Joel De Gan wrote: > Oooo.. > and I have moderator points... > muhahahahah > -joel > > > > > On Sat, 2004-07-03 at 11:03, Tim Gales wrote: > > Joel De Gan writes > > > > > Java "duuudes" on slashdot pounce all over anything PHP.. > > > Any PHP article on there will have 300 of them mention how > > > Java is better because of "x" etc.. > > > > The 'x' that they almost invariably mention is > > threading -- something which if not done with > > the utmost of care will actually act as a > > deterrent to scalability. > > > > 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 > -- > joeldg - developer, Intercosmos media group. > http://lucifer.intercosmos.net > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From nyphp at enobrev.com Sat Jul 3 12:35:58 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Sat, 3 Jul 2004 12:35:58 -0400 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <6ec19ec704070309251fab897@mail.gmail.com> Message-ID: <20040703163602.6255FA85F0@virtu.nyphp.org> While we're at it, anyone up for a pc vs mac discussion? Maybe one comparing the color blue with the color green? Regardless of my opinions of the validity of the now industry wide argument, it's nice to see some big names in the php world ensuring an appropriate defense. Mark From joel at tagword.com Sat Jul 3 14:07:07 2004 From: joel at tagword.com (Joel De Gan) Date: Sat, 03 Jul 2004 14:07:07 -0400 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <6ec19ec704070309251fab897@mail.gmail.com> References: <001301c4610e$dfcb8530$e98d3818@oberon1> <1088873181.12573.12.camel@bezel> <6ec19ec704070309251fab897@mail.gmail.com> Message-ID: <1088878027.12572.14.camel@bezel> already burned mine modding down "flamebait/troll/overrated" pro-java/anit-php drivel.. :) On Sat, 2004-07-03 at 12:25, Paul Reinheimer wrote: > Yeah, I noticed my mod points arrive at a good time as well. > > Someone should post something and plug NYPHP and we can knock it up a > few notches > > > :) > > paul > > > On Sat, 03 Jul 2004 12:46:21 -0400, Joel De Gan wrote: > > Oooo.. > > and I have moderator points... > > muhahahahah > > -joel > > > > > > > > > > On Sat, 2004-07-03 at 11:03, Tim Gales wrote: > > > Joel De Gan writes > > > > > > > Java "duuudes" on slashdot pounce all over anything PHP.. > > > > Any PHP article on there will have 300 of them mention how > > > > Java is better because of "x" etc.. > > > > > > The 'x' that they almost invariably mention is > > > threading -- something which if not done with > > > the utmost of care will actually act as a > > > deterrent to scalability. > > > > > > 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 > > -- > > joeldg - developer, Intercosmos media group. > > http://lucifer.intercosmos.net > > > > > > > > _______________________________________________ > > 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 hans not junk at nyphp.com Sat Jul 3 14:48:38 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 7522FA85F0 for ; Sat, 3 Jul 2004 14:48:38 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Sat, 3 Jul 2004 11:40:22 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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 Scales, Our Chris Shiflett gets /.'d Date: Sat, 3 Jul 2004 11:48:37 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8701F47E72 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d Thread-Index: AcRhGlssdUmjXRm0Ru2D8E9swwQ0AwAE9QMQ From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 03 Jul 2004 18:40:22.0590 (UTC) FILETIME=[32BD35E0:01C4612D] 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: Sat, 03 Jul 2004 18:48:38 -0000 > Someone should post something and plug NYPHP and we can knock it up a > few notches Sounds like a plan... Seriously though, nice article Chris... and I just love all the slashdot comments - now that's good satire! H From jeffknight at mac.com Sat Jul 3 14:55:00 2004 From: jeffknight at mac.com (Jeff Knight) Date: Sat, 3 Jul 2004 14:55:00 -0400 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8701F47E72@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8701F47E72@ehost011-1.exch011.intermedia.net> Message-ID: <7C76186E-CD22-11D8-8324-000A95C0B064@mac.com> On Jul 3, 2004, at 2:48 PM, Hans Zaunere wrote: > >> Someone should post something and plug NYPHP and we can knock it up a >> few notches > > Sounds like a plan... > > Seriously though, nice article Chris... and I just love all the > slashdot > comments - now that's good satire! > /. always reminds me of a little pearl of wisdom I saw on Fark: "Arguing on the internet is like playing Dance Dance Revolution: even when you win you still look stupid" putamare not any freakin junk at putamare.net From jlacey at att.net Sat Jul 3 15:02:31 2004 From: jlacey at att.net (John Lacey) Date: Sat, 03 Jul 2004 13:02:31 -0600 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <7C76186E-CD22-11D8-8324-000A95C0B064@mac.com> References: <41EE526EC2D3C74286415780D3BA9F8701F47E72@ehost011-1.exch011.intermedia.net> <7C76186E-CD22-11D8-8324-000A95C0B064@mac.com> Message-ID: <40E702C7.3010804@att.net> Jeff Knight wrote: > On Jul 3, 2004, at 2:48 PM, Hans Zaunere wrote: > >> >>> Someone should post something and plug NYPHP and we can knock it up a >>> few notches >> >> >> Sounds like a plan... >> >> Seriously though, nice article Chris... and I just love all the slashdot >> comments - now that's good satire! >> > > /. always reminds me of a little pearl of wisdom I saw on Fark: > "Arguing on the internet is like playing Dance Dance Revolution: even > when you win you still look stupid" > I won't argue with that... From jlacey at att.net Sat Jul 3 15:11:44 2004 From: jlacey at att.net (John Lacey) Date: Sat, 03 Jul 2004 13:11:44 -0600 Subject: [nycphp-talk] [ot] Web tree command available? In-Reply-To: <20040703043333.GB2413@jonbaer.net> References: <20040702165559.GC22051@jonbaer.net> <00a201c46057$d60353a0$e98d3818@oberon1> <20040702173911.GA1592@jonbaer.net> <28515-19888@sneakemail.com> <20040702183549.GA2162@jonbaer.net> <40E5C284.9040608@att.net> <20040703043333.GB2413@jonbaer.net> Message-ID: <40E704F0.8090204@att.net> Jon Baer wrote: >Yep ... I have a few sensors laying around which speak SNMP (v1) and I >have the MIB so I was thinking of a web interface for it, but it seems like a >generic idea would be nice to have. > >Does having traps sent directly to email/sms make sense? Im sure this >occurs all the time ... > > yeah, traps (aka alerts) are pretty handy... for example, say a core router WAN link goes down. That sends an alert to the monitoring program (eg. HPOpenView) on the UDP trap port 162. With an important router link down, a support person will probably get paged automagically. Ok, I've got a working php5 environment now and I'm using a small test MIB with the snmp_read_mib() call. I've gotten by that but cannot see anything else with the usual print_r's. Fired up my Zend Studio to have a look-see with the debugger, and got a fatal error -- no such function -- so... I'm in the process of downloading the new 3.5 Studio which should take care of that problem, since the read_mib call is new in php5. 29MB on a dialup... sheeesh. stay tuned, John From jlacey at att.net Sun Jul 4 13:26:46 2004 From: jlacey at att.net (John Lacey) Date: Sun, 04 Jul 2004 11:26:46 -0600 Subject: [nycphp-talk] [ot] Web tree command available? In-Reply-To: <40E704F0.8090204@att.net> References: <20040702165559.GC22051@jonbaer.net> <00a201c46057$d60353a0$e98d3818@oberon1> <20040702173911.GA1592@jonbaer.net> <28515-19888@sneakemail.com> <20040702183549.GA2162@jonbaer.net> <40E5C284.9040608@att.net> <20040703043333.GB2413@jonbaer.net> <40E704F0.8090204@att.net> Message-ID: <40E83DD6.5030302@att.net> Jon Baer wrote: >> Yep ... I have a few sensors laying around which speak SNMP (v1) and >> I have the MIB so I was thinking of a web interface for it, but it >> seems like a generic idea would be nice to have. >> Here's the short version: The tests were run on a win2k pro box with sp2. The SNMP service must be installed and running. You don't need the SNMP Trap service running for the tests, but I started it anyway, since I might mess with that later. To set up a quickie test environment, I used XAMPP http://www.apachefriends.org/en/xampp-windows.html If you scroll down, you'll find the php5xampp-dev package. Naturally, I went into the php.ini file and uncommented the snmp extension. With the windows version, phpinfo() shows UCD-SNMP (ver. 4.2.3) -- *nix will use net-snmp, as you know. - snmp_read_mib() is still causing a fatal error (no such function...) when debugging with Zend Studio ver. 3.5, so I moved on... After testing a few things, I believe the purpose of this function is to read in custom MIB descriptions on the fly (else, you must restart apache) so you can use names instead of numbers. If you're using just standard MIBs, like RMON for the sensors, you won't need to call snmp_read_mib(). You mention SNMPv1 sensors, but the RMON MIB is SNMPv2. Are they custom sensors, and not RMON probes? This is important if you want to use names instead of numbers in the PHP code: (the numbers cause brain damage) - on my c: drive, I created a c:\usr\mibs directory. - copy all the contents of the "extras/mibs" directory -- there are over 50 [.txt] files; some are not MIBs, bit it's easier to copy them all - after doing this, you must restart Apache which apparently causes the MIB descriptions to be loaded into the active MIB tree - this will allow the syntax: $sysdesc = snmpget('localhost', 'public', 'system.sysDescr.0'); - instead of having to use: $sysdesc = snmpget('localhost', 'public', '.1.3.6.1.2.1.1.1.0'); - note: 'system.sysDescr.0' and all the other names are case-sensitive - if you want to see names/numbers for the "system" stuff, just display SNMPv2-MIB.txt The following is a test script I hacked on to get things running -- lotsa trial and error. The SNMP community name "public" should work fine here. On a real network, if you don't change your community names to non-default values, well, shame on you.
'; $sysdesc = snmpget('localhost', 'public', 'system.sysDescr.0'); echo $sysdesc; echo '

'; // snmpwalk didn't work here // NULL says to return ALL object ids beginning at the root $arr = snmprealwalk('localhost', 'public', NULL); echo $arr['system.sysName.0']; // snmpwalk didn't work here // uncomment these and you'll see a crapload of stuff //$arr = snmpwalkoid('localhost', 'public', NULL); // print_r($arr); echo '

'; $sysname = snmpget('localhost', 'public', 'system.sysName.0'); echo $sysname; // this would return UDP (group 7) info -- udpInErrors //$udperrs = snmpget('localhost', 'public', '.1.3.6.1.2.1.7.3.0'); // or... // $udperrs = snmpget('localhost', 'public', 'udp.udpInErrors.0'); ?> I think the above will get you in the ballpark to start psyching things out. If you need any additional input, we may have to take it off-list, cause it can be a lil ugly. John p.s. I did a little "email editing" on the script, so be careful... my bad From jlacey at att.net Sun Jul 4 18:57:37 2004 From: jlacey at att.net (John Lacey) Date: Sun, 04 Jul 2004 16:57:37 -0600 Subject: [nycphp-talk] interesting groklaw article (OT) Message-ID: <40E88B61.60209@att.net> I was over checking the latest on groklaw and found this: http://www.groklaw.net/article.php?story=20040702063211668 It addresses security certifications for operating systems, and it's seems to be a rebuttal. I found it pretty much on target. enjoy, John From jonbaer at jonbaer.net Sun Jul 4 22:46:46 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Sun, 4 Jul 2004 22:46:46 -0400 Subject: [nycphp-talk] PHP5 vs. JDK5 In-Reply-To: <40E88B61.60209@att.net> References: <40E88B61.60209@att.net> Message-ID: <20040705024646.GA1680@jonbaer.net> just noticed they will be renaming java 1.5 to Java 5.0 ... i dunno, having being a J2EE developer for a while i cant really say that there is so much remarkable from jumpin from Java 2.0 to 5.0 (unless the pressure of PHP5 can get to them :-) one of the interesting things ive noticed is how "short" they are trying to make things ... and how they try to bite off foreach without actually nameing it ... String[] colors = {"blue","green","red"} for(String color: colors) hmm ... -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From amiller at criticalmedia.biz Sun Jul 4 23:26:00 2004 From: amiller at criticalmedia.biz (Alan T. Miller) Date: Sun, 4 Jul 2004 20:26:00 -0700 Subject: [nycphp-talk] What's the best way query a table with a "one-to-many" relationship? Suggestions??? References: <40E88B61.60209@att.net> <20040705024646.GA1680@jonbaer.net> Message-ID: <008401c4623f$cdd66ca0$0a01a8c0@webdev> I know what I want to do has been done a thousand times before, however I am looking for suggestions on the best way to go about it. I figured someone here might be able to suggest something. I have two tables, one holds products, the other holds photos. There is a one to many relationship between products and photographs. For example... TABLE 1 (products): products.id products.title products.description TABLE 2 (product photos) photos.id photos.id_product photos.filename photos.height photos.width photos.position the 'position' field is used to determine which is the main photo (photos are ordered by their position). IN other words the photo with position 1 would be the main thumbnail. There are two things I would like to be able to get from a SELECT statement. The first is a list of products with the thumbnail info for the product. I immediately see two ways of doing this but am looking for a better solution. SOLUTION 1: select all products, and then loop through that result set and do another select to get the photo information on each iteration of the loop. This would be slow, and create unnecesary overhead on the database. I do not think this is a good solution. SOLUTION 2: select all products and then use subselects to get the photograph information. I do not like this solution either, as there seems to be no clear way to get multiple fields such as filename and height and width etc without many subselects, or perhaps a creative concatenation routine. SOLUTION 3: I am open to suggestions... please! The other main task I would like to accomplish is to be able to select all the product information for a single product and get all the photographs for the product as well. I cannot think of an efficient way to do this without issuing two queries (one to get the product, and one to get the photo). I am very interested to hear how others have tacked simular situations like this. Any help is greatly appreciated. Alan From radical at amr.ro Mon Jul 5 03:35:13 2004 From: radical at amr.ro (Gabriel PREDA) Date: Mon, 5 Jul 2004 10:35:13 +0300 Subject: [nycphp-talk] What's the best way query a table with a "one-to-many"relationship? Suggestions??? References: <40E88B61.60209@att.net> <20040705024646.GA1680@jonbaer.net> <008401c4623f$cdd66ca0$0a01a8c0@webdev> Message-ID: <019701c46262$9c03d370$0100a8c0@amrserver> > TABLE 1 (products): > products.id > products.title > products.description > TABLE 2 (product photos) > photos.id > photos.id_product > photos.filename > photos.height > photos.width > photos.position > SOLUTION 2: select all products and then use subselects to get the > photograph information. I do not like this solution either, as there seems > to be no clear way to get multiple fields such as filename and height and > width etc without many subselects, or perhaps a creative concatenation > routine. You should JOIN tables using their relation that is "products.id=photos.id_product" So you would have: SELECT products.id, products.title, products.description, photos.id AS id_photos, photos.filename, photos.filename, photos.height, photos.width FROM products LEFT JOIN photos ON(products.id=photos.id_product) WHERE photos.position='1' > The other main task I would like to accomplish is to be able to select all > the product information for a single product and get all the photographs for > the product as well. I cannot think of an efficient way to do this without > issuing two queries (one to get the product, and one to get the photo). This can only be acomplished with 2 queryes... Because of the result... Let's say that "x" are results from products and "y" are from photos... you would have something like: xxxx yyyy yyyy yyyy This result set is imposible to be represented by an SQL server... the closest match you can get is xxxx yyyy NULLs yyyy NULLs yyyy But this would make things worse because you would have to skip many NULLs... Have a good time programming ! > Alan Gabriel From sm11szw02 at sneakemail.com Mon Jul 5 08:26:39 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Mon, 05 Jul 2004 08:26:39 -0400 Subject: [nycphp-talk] What's the best way query a table with a "one-to-many"relationship? Suggestions??? In-Reply-To: <019701c46262$9c03d370$0100a8c0@amrserver> References: <40E88B61.60209@att.net> <20040705024646.GA1680@jonbaer.net> <008401c4623f$cdd66ca0$0a01a8c0@webdev> <019701c46262$9c03d370$0100a8c0@amrserver> Message-ID: <2636-26776@sneakemail.com> Gabriel PREDA radical-at-amr.ro |nyphp 04/2004| wrote: > This can only be acomplished with 2 queryes... Because of the result... > Let's say that "x" are results from products and "y" are from photos... >you would have something like: >xxxx yyyy > yyyy > yyyy > > This result set is imposible to be represented by an SQL server... the >closest match you can get is >xxxx yyyy >NULLs yyyy >NULLs yyyy > But this would make things worse because you would have to skip many >NULLs... > >Have a good time programming ! > > >>Alan >> >> >Gabriel > While I recommend the approach described above, I add that it is possible to accompish the end result without two queries, using practical techniques that are not pure database methods. It is also possible that a non-normalized database schema would serve the application well, with a minial impact on scalabaility up to some practical limit. However, given the potential for mis-use, I agree these are best reserved for the experienced programmer, or for deployment of an "optimized" application after development is completed. Unless one understands the impact of a shortcut, taking tha shortcut involves risk (and is not generally recommended). -=john From sm11szw02 at sneakemail.com Mon Jul 5 08:27:53 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Mon, 05 Jul 2004 08:27:53 -0400 Subject: [nycphp-talk] What's the best way query a table with a "one-to-many"relationship? Suggestions??? In-Reply-To: <2636-26776@sneakemail.com> References: <40E88B61.60209@att.net> <20040705024646.GA1680@jonbaer.net> <008401c4623f$cdd66ca0$0a01a8c0@webdev> <019701c46262$9c03d370$0100a8c0@amrserver> <2636-26776@sneakemail.com> Message-ID: <5171-58053@sneakemail.com> inforequest sm11szw02-at-sneakemail.com |nyphp 04/2004| wrote: > While I recommend the approach described above, I add that it is > possible to accompish the end result without two queries, using > practical techniques that are not pure database methods. It is also > possible that a non-normalized database schema would serve the > application well, with a minial impact on scalabaility up to some > practical limit. > > However, given the potential for mis-use, I agree these are best > reserved for the experienced programmer, or for deployment of an > "optimized" application after development is completed. Unless one > understands the impact of a shortcut, taking tha shortcut involves > risk (and is not generally recommended). In opther words, yes you can, but you probably shouldn't. :-) From henry at beewh.com Mon Jul 5 08:37:56 2004 From: henry at beewh.com (Henry Ponce) Date: Mon, 5 Jul 2004 09:37:56 -0300 Subject: [nycphp-talk] What's the best way query a table with a "one-to-many"relationship? Suggestions??? In-Reply-To: <019701c46262$9c03d370$0100a8c0@amrserver> References: <40E88B61.60209@att.net> <008401c4623f$cdd66ca0$0a01a8c0@webdev> <019701c46262$9c03d370$0100a8c0@amrserver> Message-ID: <200407050937.57101.henry@beewh.com> To get all the product information with the ALL the thumbnails for each product: select * from products p inner join photos f on (p.id = f.id_product) If you want the Main thumbnail then you can add the where clause. You can add p.id=some_id to the where clause to get the result for a certain product. I hope this helps. Henry From henry at beewh.com Mon Jul 5 09:55:31 2004 From: henry at beewh.com (Henry Ponce) Date: Mon, 5 Jul 2004 10:55:31 -0300 Subject: [nycphp-talk] What's the best way query a table with a "one-to-many"relationship? Suggestions??? In-Reply-To: <200407050937.57101.henry@beewh.com> References: <40E88B61.60209@att.net> <019701c46262$9c03d370$0100a8c0@amrserver> <200407050937.57101.henry@beewh.com> Message-ID: <200407051055.32109.henry@beewh.com> Note: this will retrieve only those products that have thumbnails. Henry On Monday 05 July 2004 09:37, Henry Ponce wrote: > To get all the product information with the ALL the thumbnails for each > product: > > select * from products p inner join photos f on (p.id = f.id_product) > > If you want the Main thumbnail then you can add the where clause. You can add > p.id=some_id to the where clause to get the result for a certain product. > > I hope this helps. > > Henry > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > > From jonbaer at jonbaer.net Mon Jul 5 14:11:35 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Mon, 5 Jul 2004 14:11:35 -0400 Subject: [nycphp-talk] PHP version checking script In-Reply-To: <20040705024646.GA1680@jonbaer.net> References: <40E88B61.60209@att.net> <20040705024646.GA1680@jonbaer.net> Message-ID: <20040705181135.GA2584@jonbaer.net> came across this little snippet that was on freshmeat ... http://www.eder.us/projects/php_version/ basically you run it across a php file and it gives you the minimum php version requirement and modules needed to run it ... example: $php php_version.php *.php php_version.php ... 4.2.0 (array, dir, errorfunc, filesystem, funchand, info, math, regex, strings, tokenizer, var) test.php .......... 3.0.0 (mysql) - jon -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From danielc at analysisandsolutions.com Mon Jul 5 16:01:51 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Mon, 5 Jul 2004 16:01:51 -0400 Subject: [nycphp-talk] PHP version checking script In-Reply-To: <20040705181135.GA2584@jonbaer.net> References: <40E88B61.60209@att.net> <20040705024646.GA1680@jonbaer.net> <20040705181135.GA2584@jonbaer.net> Message-ID: <20040705200151.GA25149@panix.com> On Mon, Jul 05, 2004 at 02:11:35PM -0400, Jon Baer wrote: > > basically you run it across a php file and it gives you the minimum php > version requirement and modules needed to run it ... There's also http://pear.php.net/package/PHP_CompatInfo --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 suzerain at suzerain.com Mon Jul 5 17:28:19 2004 From: suzerain at suzerain.com (Marc Antony Vose) Date: Mon, 5 Jul 2004 17:28:19 -0400 Subject: [nycphp-talk] open_basedir is driving me batty In-Reply-To: <40E88B61.60209@att.net> References: <40E88B61.60209@att.net> Message-ID: Hey there: I'm getting this error when doing a file_exists check to see if a file exists: Warning: file_exists(): open_basedir restriction in effect. File(/home/httpd/vhosts/store.purlsoho.com/httpsdocs/controlroom/handlers/main_h.php) is not within the allowed path(s): (/home/httpd/vhosts/store.purlsoho.com/httpsdocs:/tmp) in /home/httpd/vhosts/store.purlsoho.com/httpdocs/controlroom/index.php on line 127 I get the error when the file is not present, even though the passed path is within open_basedir's limitations. Is there any way I can route around this brain-dead open_basedir bug, other than prefixing my file_exists() call with a '@'? -- 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 shiflett at php.net Mon Jul 5 19:18:45 2004 From: shiflett at php.net (Chris Shiflett) Date: Mon, 5 Jul 2004 16:18:45 -0700 (PDT) Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <6ec19ec7040703073032c89a5b@mail.gmail.com> Message-ID: <20040705231845.73657.qmail@web52809.mail.yahoo.com> --- Paul Reinheimer wrote: > Way to go Chris! Thanks, Paul. :-) I guess I missed all the fun, since I've been in the middle of nowhere in Tennessee for the past several days. I logged on Friday to read all the news about Friendster and the surrounding hoopla, so I wrote about it in my blog. I guess if you write something that can be misinterpreted as "PHP is better than Java," then you have a decent chance of getting covered by Slashdot and a bunch of blogs, because it's nice and controversial. Of course, I do think PHP is better than Java in a number of ways, but I wasn't really arguing that at all, nor did I even say that Java doesn't scale. My main point, which most Slashdot people seem to have missed (surprise), is that scalability is not what's really important to most people. You want your site to perform fast at your maximum load, whatever that may be. If your site is slow as crap, do you think your users really care that it scales well and will be just as slow (but no slower) with twice as many users? Hell no! :-) My (perhaps a bit goofy) example of a tractor and a truck was my attempt at illustrating that. The tractor, which scales far better than the truck, is a poor choice for speed. Speed is what really counts, and since scalability is a relative measurement, it's somewhat useless in that regard, especially by itself. Yes, if something scales really poorly (http://shiflett.org/images/scalability_1.png), it's inevitably going to slow down as your userbase grows, and with that slowdown being exponential, it will matter. But, with multiple approaches to the same problem, all of which can be made to scale, performance is so much more important. I guess I was also tired of hearing the false claims that Java scales and PHP doesn't, since it's much easier to argue the other way around. Of course, my argument that PHP naturally scales well doesn't take into account that most of the applications we write use sessions, a database, and the like. For a moderately complex application, PHP does not naturally scale, and it's just as hard to make it scale as it is to make Java scale, but I wasn't going to argue both sides. :-) 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 Mon Jul 5 19:31:14 2004 From: shiflett at php.net (Chris Shiflett) Date: Mon, 5 Jul 2004 16:31:14 -0700 (PDT) Subject: [nycphp-talk] open_basedir is driving me batty In-Reply-To: Message-ID: <20040705233114.38262.qmail@web52803.mail.yahoo.com> --- Marc Antony Vose wrote: > I'm getting this error when doing a file_exists check [snip] > I get the error when the file is not present, even though the passed > path is within open_basedir's limitations. I question this. Can you output the value of open_basedir just before your file_exists() check? This will give us more information to work with. 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 lists at neoncowboy.com Mon Jul 5 19:48:19 2004 From: lists at neoncowboy.com (John Corry) Date: Mon, 5 Jul 2004 13:48:19 -1000 Subject: [nycphp-talk] open_basedir is driving me batty In-Reply-To: Message-ID: <20040705234821.262E1A85F0@virtu.nyphp.org> You can. This looks like the path/directory structure on a Plesk linux server, is that the case? If it is, you need to edit either php.ini (not reccomended) or the domain's vhost.conf file (which is in /conf) You'll just add a: Php_admin_value open_basedir /all/of/the/paths:/you/want/to/be/able:/to/access/files/from That's how it works on my Plesk box... Good luck, John Corry ________________________________ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Marc Antony Vose Sent: Monday, July 05, 2004 11:28 AM To: NYPHP Talk Subject: [nycphp-talk] open_basedir is driving me batty Hey there: I'm getting this error when doing a file_exists check to see if a file exists: Warning: file_exists(): open_basedir restriction in effect. File(/home/httpd/vhosts/store.purlsoho.com/httpsdocs/controlroom/handlers/ma in_h.php) is not within the allowed path(s): (/home/httpd/vhosts/store.purlsoho.com/httpsdocs:/tmp) in /home/httpd/vhosts/store.purlsoho.com/httpdocs/controlroom/index.php on line 127 I get the error when the file is not present, even though the passed path is within open_basedir's limitations. Is there any way I can route around this brain-dead open_basedir bug, other than prefixing my file_exists() call with a '@'? -- 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 suzerain at suzerain.com Tue Jul 6 03:48:21 2004 From: suzerain at suzerain.com (Marc Antony Vose) Date: Tue, 6 Jul 2004 03:48:21 -0400 Subject: [nycphp-talk] open_basedir is driving me batty In-Reply-To: References: <40E88B61.60209@att.net> Message-ID: Hey: The error message tells you both the path of the file which it thinks is out of range, and the allowed paths. I re-quote here: /home/httpd/vhosts/store.purlsoho.com/httpsdocs/controlroom/handlers/main_h.php is the file i am looking for /home/httpd/vhosts/store.purlsoho.com/httpsdocs:/tmp You will notice that the value being passed is certainly within the allowed path. The file in question doesn't exist, but call me crazy, I thought the whole point of "file_exists()" was to tell you if the file exists or not. (Sorry, not venting my acrimony at anyone here, just at this seemingly idiotic open_basedir implementation.) So...is this just a side effect of open_basedir? It renders the file_exists() function useless? (To John: yes, this server is using the horrible, awful Plesk tool, which is also causing me stress. I want to avoid editing the httpd.include file, because each time you make a minor change to your domain, Plesk conveniently overwrites your changes for you, so error messages appear all over your site until you make the changes again. I'm trying to find a solution that won't fall prey to this inadequacy.) Marc >Hey there: > >I'm getting this error when doing a file_exists check to see if a file exists: > >Warning: file_exists(): open_basedir restriction in effect. >File(/home/httpd/vhosts/store.purlsoho.com/httpsdocs/controlroom/handlers/main_h.php) >is not within the allowed path(s): >(/home/httpd/vhosts/store.purlsoho.com/httpsdocs:/tmp) in >/home/httpd/vhosts/store.purlsoho.com/httpdocs/controlroom/index.php >on line 127 > >I get the error when the file is not present, even though the passed >path is within open_basedir's limitations. > >Is there any way I can route around this brain-dead open_basedir >bug, other than prefixing my file_exists() call with a '@'? > >-- >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 > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk -------------- next part -------------- An HTML attachment was scrubbed... URL: From tgales at tgaconnect.com Tue Jul 6 09:18:27 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Tue, 6 Jul 2004 09:18:27 -0400 Subject: [nycphp-talk] open_basedir is driving me batty In-Reply-To: Message-ID: <005501c4635b$b9b99ea0$e98d3818@oberon1> Marc Antony Vose writes: "I'm getting this error when doing a file_exists check to see if a file exists: Warning: file_exists(): open_basedir restriction in effect. File(/home/httpd/vhosts/store.purlsoho.com/httpsdocs/controlroom/handlers/ main_h.php) is not within the allowed path(s): (/home/httpd/vhosts/store.purlsoho.com/httpsdocs:/tmp) in /home/httpd/vhosts/store.purlsoho.com/httpdocs/controlroom/index.php on line 127 I get the error when the file is not present, even though the passed path is within open_basedir's limitations. Is there any way I can route around this brain-dead open_basedir bug, other than prefixing my file_exists() call with a '@'?" what happens when you do a file_exists with the open_basedir set to the empty string? T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From mitchy at spacemonkeylabs.com Tue Jul 6 09:53:51 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Tue, 06 Jul 2004 09:53:51 -0400 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <20040705231845.73657.qmail@web52809.mail.yahoo.com> References: <20040705231845.73657.qmail@web52809.mail.yahoo.com> Message-ID: <40EAAEEF.80708@spacemonkeylabs.com> Chris Shiflett wrote: >I guess I was also tired of hearing the false claims that Java scales and >PHP doesn't, since it's much easier to argue the other way around. Of >course, my argument that PHP naturally scales well doesn't take into >account that most of the applications we write use sessions, a database, >and the like. For a moderately complex application, PHP does not naturally >scale, and it's just as hard to make it scale as it is to make Java scale, >but I wasn't going to argue both sides. :-) > > Well, your website certainly didn't scale. (rimshot) ;^P - Mitch From preinheimer at gmail.com Tue Jul 6 10:16:13 2004 From: preinheimer at gmail.com (Paul Reinheimer) Date: Tue, 6 Jul 2004 10:16:13 -0400 Subject: [nycphp-talk] What's the best way query a table with a "one-to-many" relationship? Suggestions??? In-Reply-To: <008401c4623f$cdd66ca0$0a01a8c0@webdev> References: <40E88B61.60209@att.net> <20040705024646.GA1680@jonbaer.net> <008401c4623f$cdd66ca0$0a01a8c0@webdev> Message-ID: <6ec19ec704070607161b202e7c@mail.gmail.com> Hmm, As a PHP solution, you could run with solution 1 or 2, and wrap it with a class that makes everything nice and pretty for whatever ends up deailing with the data. However, more along the lines of a different solution, i have seen two posts that may be of use Building a new table with foreign keys http://forums.devshed.com/archive/t-152685 Using more specific queries http://lists.mysql.com/mysql/930 hope that helps paul On Sun, 4 Jul 2004 20:26:00 -0700, Alan T. Miller wrote: > I know what I want to do has been done a thousand times before, however I am > looking for suggestions on the best way to go about it. I figured someone > here might be able to suggest something. > > I have two tables, one holds products, the other holds photos. There is a > one to many > relationship between products and photographs. For example... > > TABLE 1 (products): > products.id > products.title > products.description > > TABLE 2 (product photos) > photos.id > photos.id_product > photos.filename > photos.height > photos.width > photos.position > > the 'position' field is used to determine which is the main photo (photos > are ordered by their position). IN other words the photo with position 1 > would be the main thumbnail. > > There are two things I would like to be able to get from a SELECT statement. > The first is a list of products with the thumbnail info for the product. I > immediately see two ways of doing this but am looking for a better solution. > > SOLUTION 1: select all products, and then loop through that result set and > do another select to get the photo information on each iteration of the > loop. This would be slow, and create unnecesary overhead on the database. I > do not think this is a good solution. > > SOLUTION 2: select all products and then use subselects to get the > photograph information. I do not like this solution either, as there seems > to be no clear way to get multiple fields such as filename and height and > width etc without many subselects, or perhaps a creative concatenation > routine. > > SOLUTION 3: I am open to suggestions... please! > > The other main task I would like to accomplish is to be able to select all > the product information for a single product and get all the photographs for > the product as well. I cannot think of an efficient way to do this without > issuing two queries (one to get the product, and one to get the photo). > > I am very interested to hear how others have tacked simular situations like > this. Any help is greatly appreciated. > > Alan > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From shiflett at php.net Tue Jul 6 12:38:24 2004 From: shiflett at php.net (Chris Shiflett) Date: Tue, 6 Jul 2004 09:38:24 -0700 (PDT) Subject: [nycphp-talk] open_basedir is driving me batty In-Reply-To: Message-ID: <20040706163824.82795.qmail@web52809.mail.yahoo.com> --- Marc Antony Vose wrote: > /home/httpd/vhosts/store.purlsoho.com/httpsdocs/controlroom/handlers/main_h.php > > is the file i am looking for > > /home/httpd/vhosts/store.purlsoho.com/httpsdocs:/tmp > > You will notice that the value being passed is certainly within the > allowed path. So that first path is the file you're looking for, and the second is the value of open_basedir? If this is true, then your file is not within the allowed path, and thus the error. 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 Jul 6 12:41:38 2004 From: shiflett at php.net (Chris Shiflett) Date: Tue, 6 Jul 2004 09:41:38 -0700 (PDT) Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <40EAAEEF.80708@spacemonkeylabs.com> Message-ID: <20040706164138.60307.qmail@web52810.mail.yahoo.com> --- Mitch Pirtle wrote: > Well, your website certainly didn't scale. (rimshot) Really? I assumed that it would be fine, since that's just static content. I set up a "cool cache" for all of my blog archives using an error handler, so the static file is only be generated the first time. Of course, I'm on a cheap shared host, but how hard is it to serve static content? :-) 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 mitchy at spacemonkeylabs.com Tue Jul 6 13:11:43 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Tue, 06 Jul 2004 13:11:43 -0400 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <20040706164138.60307.qmail@web52810.mail.yahoo.com> References: <20040706164138.60307.qmail@web52810.mail.yahoo.com> Message-ID: <40EADD4F.1080902@spacemonkeylabs.com> Chris Shiflett wrote: >--- Mitch Pirtle wrote: > > >>Well, your website certainly didn't scale. (rimshot) >> >> > >Really? I assumed that it would be fine, since that's just static content. >I set up a "cool cache" for all of my blog archives using an error >handler, so the static file is only be generated the first time. > > It was down for over an hour. I just assumed you had written it in Java. (innocent look) -- Mitch From shiflett at php.net Tue Jul 6 13:34:21 2004 From: shiflett at php.net (Chris Shiflett) Date: Tue, 6 Jul 2004 10:34:21 -0700 (PDT) Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <40EADD4F.1080902@spacemonkeylabs.com> Message-ID: <20040706173421.22228.qmail@web52806.mail.yahoo.com> --- Mitch Pirtle wrote: > It was down for over an hour. I guess you get what you pay for... > I just assumed you had written it in Java. Maybe I should have. :-) Jokes aside, static content is as good as you can do on a shared server. I gave my host the best chance of handling the traffic that I could; the rest is up to them. I plan to eventually move to a better host, but I'm cheap. :-) 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 jcrawford at codebowl.com Tue Jul 6 13:42:30 2004 From: jcrawford at codebowl.com (Joseph Crawford Jr.) Date: Tue, 06 Jul 2004 13:42:30 -0400 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <20040706173421.22228.qmail@web52806.mail.yahoo.com> References: <20040706173421.22228.qmail@web52806.mail.yahoo.com> Message-ID: <1089135750.5274.12.camel@vt-fairhaven1b-210.bur.adelphia.net> Chris, take a look at www.hostproservices.com i have hosted my site with them for about 3 years now and have had no downtime what so ever, as for the handling of traffic i cannot say because i dont have a large site however i know that the admin keeps the boxes limited on how many sites he places on them. The admin/owner is a good friend of mine, just tell him idle sent ya if ya check it out ;) Joe Crawford Jr. On Tue, 2004-07-06 at 13:34, Chris Shiflett wrote: > --- Mitch Pirtle wrote: > > It was down for over an hour. > > I guess you get what you pay for... > > > I just assumed you had written it in Java. > > Maybe I should have. :-) Jokes aside, static content is as good as you can > do on a shared server. I gave my host the best chance of handling the > traffic that I could; the rest is up to them. > > I plan to eventually move to a better host, but I'm cheap. :-) > > 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 lists at neoncowboy.com Tue Jul 6 14:00:19 2004 From: lists at neoncowboy.com (John Corry) Date: Tue, 6 Jul 2004 08:00:19 -1000 Subject: [nycphp-talk] open_basedir is driving me batty In-Reply-To: Message-ID: <20040706180025.015B3A8777@virtu.nyphp.org> (To John: yes, this server is using the horrible, awful Plesk tool, which is also causing me stress. I want to avoid editing the httpd.include file, because each time you make a minor change to your domain, Plesk conveniently overwrites your changes for you, so error messages appear all over your site until you make the changes again. I'm trying to find a solution that won't fall prey to this inadequacy.) Marc OK, so...you don't have to mess with httpd.include. Just use a block to change the value of open_basedir (the directions in my previous post should work) It's not that big a deal. You just have to learn what Plesk will let you change and what it wants to maintain control over. But remember, you'll have to restart the apache service once you add that block. Is this a rackspace box? If so, there's a lot of useful info in their support forums. From krook at us.ibm.com Tue Jul 6 14:12:04 2004 From: krook at us.ibm.com (Daniel Krook) Date: Tue, 6 Jul 2004 14:12:04 -0400 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <20040706164138.60307.qmail@web52810.mail.yahoo.com> Message-ID: > Of course, I'm on a cheap shared host, but how hard is it to serve static > content? :-) I'm sure it wasn't difficult for the machine to serve up the static pages, but the bandwidth used might have been a killer, especially if they charge you per MB/GB over your monthly quota. That may not have been an issue though if they throttled your account... but I'd keep an eye on the next bill :) Daniel Krook, Application Developer WW Web Production Services North 2, ibm.com 1133 Westchester Avenue, White Plains, NY 10604 Personal: http://info.krook.org/ Persona: http://w3.ibm.com/eworkplace/persona_bp_finder.jsp?CNUM=9A9796897 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmintz at davidmintz.org Tue Jul 6 17:37:23 2004 From: dmintz at davidmintz.org (David Mintz) Date: Tue, 6 Jul 2004 17:37:23 -0400 (EDT) Subject: [nycphp-talk] AMP development: talk me into a G4 PowerBook ? In-Reply-To: <20040706173421.22228.qmail@web52806.mail.yahoo.com> References: <20040706173421.22228.qmail@web52806.mail.yahoo.com> Message-ID: I think it's time to move on from my old Dell Inspiron 2000 and I'm trying to talk myself into a G4 PowerBook. You happy Powerbook owners, please tell me about how great they are for AMP development. Persuade me how easy it is to run Apache/PHP, mysql, and also things like the Zend and Eclipse IDEs, Tomcat, cvs (or perhaps Subversion) etc. Assure me it will also be possible to figure out a way to run the one and only Windoze program I'd like to keep, which is Paint Shop Pro. Convince me that it will be fast and stable and just plain cool and I'll wonder how I lived without it. Further, enlighten me as to what specs and features and stuff you think a geek would require in order to attain nirvana. Also -- maybe a naive question -- can you build and install something like Quanta (the html editor) on one of these things? I'd expect the install might get weird because the standard locations of things are different on Mac OS X vs. *nix platforms. Feel free to answer privately if you think this is too OT. Many thanks, --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From jlacey at att.net Tue Jul 6 17:51:23 2004 From: jlacey at att.net (John Lacey) Date: Tue, 06 Jul 2004 15:51:23 -0600 Subject: [nycphp-talk] AMP development: talk me into a G4 PowerBook ? In-Reply-To: References: <20040706173421.22228.qmail@web52806.mail.yahoo.com> Message-ID: <40EB1EDB.5040306@att.net> David Mintz wrote: > Assure me it will also be possible to figure out a way to >run the one and only Windoze program I'd like to keep, which is Paint Shop >Pro. > GIMP has a MacOSX version: http://www.gimp.org/macintosh/ From phillip.powell at adnet-sys.com Tue Jul 6 17:57:44 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 06 Jul 2004 17:57:44 -0400 Subject: [nycphp-talk] Using CURL to retrieve content of $_SESSION-dependent URL Message-ID: <40EB2058.50007@adnet-sys.com> What is the most standardized method of utilizing the CURL functions in PHP (version 4.3.2) to be able to retrieve the contents of a remote URL that happens to be dependent upon $_SESSION for its content display? I've tried the following class methods for display and I have most everything working until I get to a URL that requires $_SESSION: [PHP] class Timer extends View { function Timer() {} function &setCookieCurlSetOpt(&$ch) { // STATIC VOID METHOD if ($this->cookieName) { $qs = '&' . $this->cookieName . '='; if (is_array($_COOKIE[$this->cookieName]) || is_object($_COOKIE[$this->cookieName])) { $qs .= urlencode(serialize($_COOKIE[$this->cookieName])); } else { $qs .= urlencode($_COOKIE[$this->cookieName]); } } elseif (@sizeof(array_values($_COOKIE)) > 0) { foreach ($_COOKIE as $key => $val) if (is_array($val) || is_object($val)) $qs .= "&$key=" . urlencode(serialize($val)); else $qs .= "&$key=" . urlencode($val); } if ($qs) curl_setopt($ch, CURLOPT_COOKIE, substr($qs, 1, strlen($qs))); } function &displayHTML($url = '') { // STATIC HTML STRING METHOD global $projectFolderName, $PHPSESSID; if (is_object($this) && !$this->getURL() && $url) $this->setURL($url); if (is_object($this)) $url = $this->getURL(); if ($url && ini_get('allow_url_fopen')) { $url = $this->configureURL($url); // grab URL and pass it to the browser $ch = curl_init(); $this->setCookieCurlSetOpt($ch); //$this->setPOSTCurlSetOpt($ch); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_URL, $url); $this->setTime($this->startTime); // SET START TIME ob_start(); curl_exec($ch); $html = ob_get_contents(); ob_end_clean(); $timer = $this->setTime($timer); // close curl resource, and free up system resources curl_close($ch); $html = preg_replace('/(.*]*>)/i', '$1

' . ($timer - $this->startTime) . " seconds to run URL: \"$url\"", $html); } return $html; } } [/PHP] utilizing this class in a script: timer.php: My session from timer.php is: '; print_r($_SESSION); ... ?> I see my $_SESSION variable. Now, if timer.php instantiates a Timer object that uses the URL parameter of "http://www.myphpwebsite.com/index.php" it will scrape that site. The site's script: index.php, also has the following: My session from index.php is: '; print_r($_SESSION); ... ?> Now here's the kicker: If I call index.php directly, everything's fine, $_SESSION exists, all is fine. If I call index.php as a scrape via timer.php, then timer.php displays $_SESSION but index.php's scrape shows nothing, just an empty array instead of $_SESSION with its contents: [timer.php] My session from timer.php is: Array([lots of stuff]) My session from index.php is: Array() [/timer.php] Is there something about autoglobals and CURL in general, or is there something specific about $_SESSION and CURL, or perhaps session_start() and CURL? I am not sure what I can do about this dilemma as it means my Timer object will not accurately show how long it took for index.php to evaluate and download since the returned content is wrong due to the seeming nonexistence of $_SESSION all of a sudden ($_SESSION is not changed at any time during the run of timer.php) I hope this is detailed enough to provide a clear picture of exactly what is going on and will allow for someone to give me further insight into the workings of CURL with $_SESSION or autoglobals in general. Thanx Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From krook at us.ibm.com Tue Jul 6 17:55:39 2004 From: krook at us.ibm.com (Daniel Krook) Date: Tue, 6 Jul 2004 17:55:39 -0400 Subject: [nycphp-talk] AMP development: talk me into a G4 PowerBook ? In-Reply-To: Message-ID: > Assure me it will also be possible to figure out a way to > run the one and only Windoze program I'd like to keep, which is Paint Shop > Pro. That I can. I use the standalone version of Virtual PC for Mac along with my orginal CD of Windows 2000 to run HomeSite and TopStyle, which are two Windows-only editors that I find myself using on a daily basis. http://www.microsoft.com/mac/products/virtualpc/virtualpc.aspx http://www.microsoft.com/mac/products/virtualpc/virtualpc.aspx?pid=howtobuy Daniel Krook, Application Developer WW Web Production Services North 2, ibm.com 1133 Westchester Avenue, White Plains, NY 10604 Personal: http://info.krook.org/ Persona: http://w3.ibm.com/eworkplace/persona_bp_finder.jsp?CNUM=9A9796897 From corey at domanistudios.com Tue Jul 6 17:57:43 2004 From: corey at domanistudios.com (corey szopinski) Date: Tue, 06 Jul 2004 17:57:43 -0400 Subject: [nycphp-talk] AMP development: talk me into a G4 PowerBook ? In-Reply-To: Message-ID: David- I have a 12? powerbook G4, and I do everything you mentioned. Not only that, but I use it play DVDs through my TV (with a $20 adapter), and stream MP3s into my stereo system. Plus in addition to all the nice Unix stuff (SSH, PHP, Apache, Tomcat, Java, CVS, MySQL, etc), you can run Xwindows apps like Ethereal. Other nice features: - built in bluetooth syncs up to a phone or pocket pc (or both in my case) - you can run an external monitor and keyboard (like the wireless bluetooth mouse and keyboard) - the battery life is excellent (at least 5 hours for cruising the web) - The 1 GHz G4 processor is plenty fast - You can run a ton of app simultaneously without the machine bogging down (not like any of the windows workstations I use ) You should really consider dumping PaintShop Pro for Photoshop (OS X native), but if you _have_ to use it, Virtual PC will do nicely (not quickly, mind you). I?m not familiar with Quanta, but many unix apps compile under OS X pretty well. Plus many vendors and open source folks are realizing how many unix users on running macs and most of the best software is now available (check out DbVisualizer for example) -corey On 7/6/04 5:37 PM, "David Mintz" wrote: > > I think it's time to move on from my old Dell Inspiron 2000 and I'm trying > to talk myself into a G4 PowerBook. > > You happy Powerbook owners, please tell me about how great they are for > AMP development. Persuade me how easy it is to run Apache/PHP, mysql, and > also things like the Zend and Eclipse IDEs, Tomcat, cvs (or perhaps > Subversion) etc. Assure me it will also be possible to figure out a way to > run the one and only Windoze program I'd like to keep, which is Paint Shop > Pro. Convince me that it will be fast and stable and just plain cool and > I'll wonder how I lived without it. > > Further, enlighten me as to what specs and features and stuff you think a > geek would require in order to attain nirvana. > > Also -- maybe a naive question -- can you build and install something like > Quanta (the html editor) on one of these things? I'd expect the install > might get weird because the standard locations of things are different on > Mac OS X vs. *nix platforms. > > Feel free to answer privately if you think this is too OT. > > Many thanks, > > --- > 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 DOMANI STUDIOS Corey Szopinski Technology Director corey at domanistudios.com 70 Washington St. Suite 710 Brooklyn, NY 11201 718.797.4470 x116 -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at vermonster.com Tue Jul 6 18:34:57 2004 From: brian at vermonster.com (Brian Kaney) Date: Tue, 06 Jul 2004 18:34:57 -0400 Subject: [nycphp-talk] Using CURL to retrieve content of $_SESSION-dependent URL In-Reply-To: <40EB2058.50007@adnet-sys.com> References: <40EB2058.50007@adnet-sys.com> Message-ID: <1089153296.28174.5.camel@brian.vermonster.com> On Tue, 2004-07-06 at 17:57, Phillip Powell wrote: > Now, if timer.php instantiates a Timer object that uses the URL > parameter of "http://www.myphpwebsite.com/index.php" it will scrape that > site. If you have control over both "sites" and need to exchange information, instead of site-scraping you may want to consider an architectural change and use XML-RPC or SOAP . There are modules on PEAR as well as new native functions for PHP5. - Brian From phillip.powell at adnet-sys.com Tue Jul 6 18:45:56 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 06 Jul 2004 18:45:56 -0400 Subject: [nycphp-talk] Using CURL to retrieve content of $_SESSION-dependent URL In-Reply-To: <1089153296.28174.5.camel@brian.vermonster.com> References: <40EB2058.50007@adnet-sys.com> <1089153296.28174.5.camel@brian.vermonster.com> Message-ID: <40EB2BA4.2080805@adnet-sys.com> Brian Kaney wrote: >On Tue, 2004-07-06 at 17:57, Phillip Powell wrote: > > >>Now, if timer.php instantiates a Timer object that uses the URL >>parameter of "http://www.myphpwebsite.com/index.php" it will scrape that >>site. >> >> > >If you have control over both "sites" and need to exchange information, >instead of site-scraping you may want to consider an architectural >change and use XML-RPC or SOAP . There are modules on PEAR as well as >new native functions for PHP5. > >- Brian > > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > Unfortunately we're not running PHP 5 on all processes and the app has to be portable so we'll have to take a backwards approach and use PHP 4 solutions instead. I will look up info on XML-RPC as I am vaguely familiar with this process, SOAP I know absolutely nothing about whatsoever except that it gets you squeaky clean. Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From shiflett at php.net Tue Jul 6 18:53:50 2004 From: shiflett at php.net (Chris Shiflett) Date: Tue, 6 Jul 2004 15:53:50 -0700 (PDT) Subject: [nycphp-talk] AMP development: talk me into a G4 PowerBook ? In-Reply-To: Message-ID: <20040706225350.66726.qmail@web52802.mail.yahoo.com> --- David Mintz wrote: > I think it's time to move on from my old Dell Inspiron 2000 and I'm > trying to talk myself into a G4 PowerBook. That's a pretty easy sell, considering it's easily the best laptop money can buy. > You happy Powerbook owners, please tell me about how great they are for > AMP development. For development, I find Mac OS X comparable to Linux, with the added bonus of BBEdit, one of the finest text editors on any platform. That was my one software purchase. I was in the market for a laptop a little over a year ago, and I was pretty narrow-minded on an x86 architecture. I've been using Red Hat for years, and I didn't feel like learning anything new. After all, I just wanted something I could carry with me and do some minor development while traveling, and I also wanted to be able to give the occasional presentation from it. IBM and Dell were my top choices. IBM has a X series that is nice and small, and Dell had something like that, too. But, both made you sacrifice a lot of nice features for the smaller laptops, and none could match the elegance of the PowerBook. I finally just gave in and bought a 12" PowerBook, thinking I would just install Yellow Dog or something if Mac OS X turned out to be a pain. I've yet to uninstall Mac OS X. It has all of the niceties of a "mainstream" OS - I can buy games, tax software, and such without having to do anything weird to get them running. It also has all of the great development features of a Unix. Throw fink into the picture, and you can make it look and feel almost exactly like Linux. Only the directory structure is different, and that becomes less annoying with time. > Persuade me how easy it is to run Apache/PHP, mysql As easy as any Unix, which is pretty easy. Plus, it more closely resembles a proper server environment, so anytime I'm setting up stuff like this, I don't feel like it's a wasted effort, because I'm learning something useful (or keeping my "skills" sharp). Contrast this with setting things up on Windows... > also things like the Zend and Eclipse IDEs I don't use IDEs, so I can't say, but you will have access to arguably the best text editor. The only real competition for the throne would be UltraEdit for Windows. I still use vim a lot (and I know Dave is an avid emacs user), but these types of full-fledged GUI editors are pretty nice. > Tomcat, cvs (or perhaps Subversion) etc. I use CVS from my PowerBook, but I've never played with Tomcat or Subversion. > Assure me it will also be possible to figure out a way to run the one > and only Windoze program I'd like to keep, which is Paint Shop > Pro. Possible, yes, but unless there is a Mac version of that, it might be a hassle. I use Gimp myself, and I know all the Adobe products are available on Mac (most of the artsy folks seem to prefer Macs). > Convince me that it will be fast and stable and just plain cool and I'll > wonder how I lived without it. For what it's worth, I can't imagine ever "going back." I'm a laptop snob now, thanks to Apple. It's sort of like how I'm a barbecue snob, thanks to living in Memphis for a few years. Fast - It's no faster than a Pentium 4, and arguably slower. The architecture is quite a bit different. Coming from my PII, which is my fastest PC, it seems pretty damn fast. :-) Stable - It's FreeBSD. Cool - It's Apple. > Further, enlighten me as to what specs and features and stuff you think > a geek would require in order to attain nirvana. Install fink first thing, and if you're a Unix guy, consider buying O'Reilly's Mac OS X for Unix Geeks. > Also -- maybe a naive question -- can you build and install something Yep, everything is normal in that regard. Configure, make, make install. Another telling sign is that well more than 50% of laptops at conferences such as OSCON and ApacheCon are Apples. If you go to the speaker lounges, that number is probably well over 80%. 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 sm11szw02 at sneakemail.com Tue Jul 6 19:07:26 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Tue, 06 Jul 2004 19:07:26 -0400 Subject: [nycphp-talk] AMP development: talk me into a G4 PowerBook ? In-Reply-To: <20040706225350.66726.qmail@web52802.mail.yahoo.com> References: <20040706225350.66726.qmail@web52802.mail.yahoo.com> Message-ID: <6583-09331@sneakemail.com> Chris Shiflett shiflett-at-php.net |nyphp 04/2004| wrote: >Another telling sign is that well more than 50% of laptops at conferences >such as OSCON and ApacheCon are Apples. If you go to the speaker lounges, >that number is probably well over 80%. > >Chris > >==== > One can't help but wonder why Safari is so far behind, and there are no (?) browser options for Mac. From jlacey at att.net Tue Jul 6 19:11:17 2004 From: jlacey at att.net (John Lacey) Date: Tue, 06 Jul 2004 17:11:17 -0600 Subject: [nycphp-talk] AMP development: talk me into a G4 PowerBook ? In-Reply-To: <6583-09331@sneakemail.com> References: <20040706225350.66726.qmail@web52802.mail.yahoo.com> <6583-09331@sneakemail.com> Message-ID: <40EB3195.3040802@att.net> inforequest wrote: >> > One can't help but wonder why Safari is so far behind, and there are > no (?) browser options for Mac. > > Well, I'm a longtime Mozilla user and then switched to Firefox. IMO Firefox is a great browser, and they have a MAC version. John From shiflett at php.net Tue Jul 6 19:25:43 2004 From: shiflett at php.net (Chris Shiflett) Date: Tue, 6 Jul 2004 16:25:43 -0700 (PDT) Subject: [nycphp-talk] AMP development: talk me into a G4 PowerBook ? In-Reply-To: <6583-09331@sneakemail.com> Message-ID: <20040706232543.83257.qmail@web52809.mail.yahoo.com> --- inforequest wrote: > One can't help but wonder why Safari is so far behind, and there are no > (?) browser options for Mac. So far behind what? It has comparable features to the Gecko-based browsers. Maybe you're thinking of IE? It's hopelessly behind. As for options, I have Mozilla, Safari, Camino, Firefox, Internet Explorer, Galeon, and lynx. There are probably other options; these are just what I happen to have installed. Firefox still has a few tweaks to make before it surpasses Galeon as the best Web browser, but I think it will happen. 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 phillip.powell at adnet-sys.com Tue Jul 6 19:35:59 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 06 Jul 2004 19:35:59 -0400 Subject: [nycphp-talk] Using CURL to retrieve content of $_SESSION-dependent URL In-Reply-To: <1089153296.28174.5.camel@brian.vermonster.com> References: <40EB2058.50007@adnet-sys.com> <1089153296.28174.5.camel@brian.vermonster.com> Message-ID: <40EB375F.3090304@adnet-sys.com> Brian Kaney wrote: >On Tue, 2004-07-06 at 17:57, Phillip Powell wrote: > > >>Now, if timer.php instantiates a Timer object that uses the URL >>parameter of "http://www.myphpwebsite.com/index.php" it will scrape that >>site. >> >> > >If you have control over both "sites" > Actually I should have read your email more carefully, sorry. No I do not have control over either "site" as this is a portable application. I will ultimately have to not be able to use a messaging service client/server platform of any kind because of the necessity of portability. Back to "scraping".. :( Phil > and need to exchange information, >instead of site-scraping you may want to consider an architectural >change and use XML-RPC or SOAP . There are modules on PEAR as well as >new native functions for PHP5. > >- Brian > > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From dmintz at davidmintz.org Tue Jul 6 19:42:34 2004 From: dmintz at davidmintz.org (David Mintz) Date: Tue, 6 Jul 2004 19:42:34 -0400 (EDT) Subject: [nycphp-talk] AMP development: talk me into a G4 PowerBook ? In-Reply-To: <20040706232543.83257.qmail@web52809.mail.yahoo.com> References: <20040706232543.83257.qmail@web52809.mail.yahoo.com> Message-ID: Wow. Thank you very much everybody. A footnote: the sole reason I'm still wedded to PaintShop Pro -- well, ok, not the sole reason: it's also ~familiar~ to me and we all know how important (albeit subjectively) that can be -- is its red-eye removal tool for my digital pix. Click, click, done. I once tried to investigate how to do that with the Gimp, found a tutorial somewhere, started reading, and by Step 17 I was like, eh, I don't think so. I ain't that much of a graphics dude. As for the coolness factor, we all know that's vitally important, especially for desperately insecure adolescents like me who wanna be like the cool kids. Thanks again, (-: --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From tgales at tgaconnect.com Tue Jul 6 20:05:41 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Tue, 6 Jul 2004 20:05:41 -0400 Subject: [nycphp-talk] AMP development: talk me into a G4 PowerBook ? In-Reply-To: Message-ID: <005101c463b6$24e01740$e98d3818@oberon1> David Mintz writes: > A footnote: the sole reason I'm still wedded to PaintShop > Pro -- well, ok, not the sole reason: it's also ~familiar~ > to me and we all know how important (albeit subjectively) > that can be -- is its red-eye removal tool for my digital > pix. Click, click, done. I once tried to investigate how to > do that with the Gimp, found a tutorial somewhere, started > reading, and by Step 17 I was like, eh, I don't think so. I > ain't that much of a graphics dude. > http://www.linuxjournal.com/article.php?sid=6567 http://www.linuxjournal.com/modules.php?op=modload&name=NS-articles/HOWTO& file=6567l1 'everybody was scipt-fu hi-lighting' T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From jlacey at att.net Tue Jul 6 20:06:50 2004 From: jlacey at att.net (John Lacey) Date: Tue, 06 Jul 2004 18:06:50 -0600 Subject: [nycphp-talk] AMP development: talk me into a G4 PowerBook ? In-Reply-To: References: <20040706232543.83257.qmail@web52809.mail.yahoo.com> Message-ID: <40EB3E9A.5090105@att.net> David Mintz wrote: >Wow. Thank you very much everybody. > >A footnote: the sole reason I'm still wedded to PaintShop Pro -- well, >ok, not the sole reason: it's also ~familiar~ to me and we all know how >important (albeit subjectively) that can be -- is its red-eye removal tool >for my digital pix. Click, click, done. I once tried to investigate how to >do that with the Gimp, found a tutorial somewhere, started reading, and by >Step 17 I was like, eh, I don't think so. I ain't that much of a graphics > > well, here's a 3-stepper.. http://www.gimp.org/tutorials/Red_Eye_Removal/ From stephen at musgrave.org Tue Jul 6 22:13:29 2004 From: stephen at musgrave.org (Stephen Musgrave) Date: Tue, 6 Jul 2004 22:13:29 -0400 Subject: [nycphp-talk] AMP development: talk me into a G4 PowerBook ? In-Reply-To: Message-ID: <3CAAC0F2-CFBB-11D8-9A5A-00039375F9C8@musgrave.org> I owned nothing but PCs until I bought my 15" PowerBook (titanium edition, dual hinge) in 2002. After years of Apple propaganda hoisted at me by my brother and the emergence of OS X, the switch was on. I have never been so pleased with a computer. I should note that I did have some problems with OS X when it first came out, but ever since the 10.1 series, it's bee perfect, not one kernal panic (core dump) in two years. (I am running 10.2.8 right now and will leapfrog 10.3 for 10.4 which is not out yet: http://www.apple.com/macosx/tiger/ ) I also had a hardware problem. I have the dual hinge model which isn't on the market any longer. The hinge ceased up as I was opening the lid and tore titanium lid pretty bad. I have Apple Care, so I took it down to the SOHO store and they boxed it up and shipped it out for repair after a cursory glance a raised eyebrow of accomplishment. The laptop was delivered to my apartment 4 business days later. Before they took it in for repair, I also had them note that some of the paint around the edges was pealing (due to the excessive heat the thing produces) and that the battery life was diminishing. They replaced *everything* and it looked like I had a new machine if it weren't for the well worn keypad! I noticed that in the new models they've address the hinge problem by going to a study single hinge design and the change materials to a high grade aluminum which has absolutely not give at all. (The titanium ones bend a bit.) I installed PHP and mySQL packages from Marc Liyanage's web site (a well loved man in the OS X LAMP world.) http://www.entropy.ch/home/ O'Reilly's Mac Dev Center is a gem: http://www.macdevcenter.com/ Apple's site does a good job of rounding the edges: http://developer.apple.com/internet/opensource/ This is a PHundamental I wrote for setting up virtual domains for OS X http://phundamentals.nyphp.org/PH_virtualhosting_mac.php Good luck! Stephen On Tuesday, July 6, 2004, at 05:37 PM, David Mintz wrote: > > I think it's time to move on from my old Dell Inspiron 2000 and I'm > trying > to talk myself into a G4 PowerBook. > > You happy Powerbook owners, please tell me about how great they are for > AMP development. Persuade me how easy it is to run Apache/PHP, mysql, > and > also things like the Zend and Eclipse IDEs, Tomcat, cvs (or perhaps > Subversion) etc. Assure me it will also be possible to figure out a > way to > run the one and only Windoze program I'd like to keep, which is Paint > Shop > Pro. Convince me that it will be fast and stable and just plain cool > and > I'll wonder how I lived without it. > > Further, enlighten me as to what specs and features and stuff you > think a > geek would require in order to attain nirvana. > > Also -- maybe a naive question -- can you build and install something > like > Quanta (the html editor) on one of these things? I'd expect the install > might get weird because the standard locations of things are different > on > Mac OS X vs. *nix platforms. > > Feel free to answer privately if you think this is too OT. > > Many thanks, > > --- > 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 rsd at electronink.com Tue Jul 6 22:24:56 2004 From: rsd at electronink.com (Russ Demarest) Date: Tue, 6 Jul 2004 22:24:56 -0400 Subject: [nycphp-talk] AMP development: talk me into a G4 PowerBook ? In-Reply-To: <3CAAC0F2-CFBB-11D8-9A5A-00039375F9C8@musgrave.org> References: <3CAAC0F2-CFBB-11D8-9A5A-00039375F9C8@musgrave.org> Message-ID: iPhoto will handle your photos and red-eye and minor editing. I think everything else has been said. My god this should be an apple commercial. I would go for the ibook and save a grand unless you are producing your own movies on it. Good Luck On Jul 6, 2004, at 10:13 PM, Stephen Musgrave wrote: > I owned nothing but PCs until I bought my 15" PowerBook (titanium > edition, dual hinge) in 2002. After years of Apple propaganda hoisted > at me by my brother and the emergence of OS X, the switch was on. I > have never been so pleased with a computer. > > I should note that I did have some problems with OS X when it first > came out, but ever since the 10.1 series, it's bee perfect, not one > kernal panic (core dump) in two years. (I am running 10.2.8 right now > and will leapfrog 10.3 for 10.4 which is not out yet: > http://www.apple.com/macosx/tiger/ ) > > I also had a hardware problem. I have the dual hinge model which > isn't on the market any longer. The hinge ceased up as I was opening > the lid and tore titanium lid pretty bad. I have Apple Care, so I > took it down to the SOHO store and they boxed it up and shipped it out > for repair after a cursory glance a raised eyebrow of accomplishment. > The laptop was delivered to my apartment 4 business days later. > Before they took it in for repair, I also had them note that some of > the paint around the edges was pealing (due to the excessive heat the > thing produces) and that the battery life was diminishing. They > replaced *everything* and it looked like I had a new machine if it > weren't for the well worn keypad! I noticed that in the new models > they've address the hinge problem by going to a study single hinge > design and the change materials to a high grade aluminum which has > absolutely not give at all. (The titanium ones bend a bit.) > > I installed PHP and mySQL packages from Marc Liyanage's web site (a > well loved man in the OS X LAMP world.) > > http://www.entropy.ch/home/ > > O'Reilly's Mac Dev Center is a gem: > > http://www.macdevcenter.com/ > > Apple's site does a good job of rounding the edges: > > http://developer.apple.com/internet/opensource/ > > This is a PHundamental I wrote for setting up virtual domains for OS X > > http://phundamentals.nyphp.org/PH_virtualhosting_mac.php > > Good luck! > > Stephen > > On Tuesday, July 6, 2004, at 05:37 PM, David Mintz wrote: > >> >> I think it's time to move on from my old Dell Inspiron 2000 and I'm >> trying >> to talk myself into a G4 PowerBook. >> >> You happy Powerbook owners, please tell me about how great they are >> for >> AMP development. Persuade me how easy it is to run Apache/PHP, mysql, >> and >> also things like the Zend and Eclipse IDEs, Tomcat, cvs (or perhaps >> Subversion) etc. Assure me it will also be possible to figure out a >> way to >> run the one and only Windoze program I'd like to keep, which is Paint >> Shop >> Pro. Convince me that it will be fast and stable and just plain cool >> and >> I'll wonder how I lived without it. >> >> Further, enlighten me as to what specs and features and stuff you >> think a >> geek would require in order to attain nirvana. >> >> Also -- maybe a naive question -- can you build and install something >> like >> Quanta (the html editor) on one of these things? I'd expect the >> install >> might get weird because the standard locations of things are >> different on >> Mac OS X vs. *nix platforms. >> >> Feel free to answer privately if you think this is too OT. >> >> Many thanks, >> >> --- >> 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 >> >> > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From bpang at bpang.com Tue Jul 6 23:26:18 2004 From: bpang at bpang.com (Brian Pang) Date: Tue, 06 Jul 2004 22:26:18 -0500 Subject: [nycphp-talk] AMP development: talk me into a G4 PowerBook ? Message-ID: I had originally only sent this to David to try to keep the list On-Topic, but since so many of you jumped right in, I guess it's only fair that I get to share my ops, too. Dontcha think? :) > If you install the Debian PowerPC port, you'd have no problems running > AMP (I would still recommend using XAMPP [xampp.org - also see > Phundamentals]) > > I have put it on an iBook (one of the blue and whites) and it works > quite well. > > I used to use Macs, religiously, but I got very frustrated with OSX and > switched to Linux (RedHat then, Knoppix and/or Debian now [also got > frustrated with RedHat]). That's been about 3 years running now. After I > transitioned (3-4 months) I've hardly bothered to use my G3 powerbook. > > Windows? I have a Win2k box for when I need it, which is equally rare. > > Not sure how well WINE or other Win-Emulator will work with Paint Shop > Pro... or.. you could just drop that, too, and use the Gimp (gimp.org) > > In fact, I might just be inclined to start with Knoppix/Debian on your > Inspiron and continue from there (you could dual boot it if you want to > hang onto that legacy stuff) > > Good luck... > > Brian > > From jonbaer at jonbaer.net Wed Jul 7 06:52:56 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 07 Jul 2004 06:52:56 -0400 Subject: [nycphp-talk] [ot] Humor for the day :-) Message-ID: <40EBD608.5050308@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Yes ... an actual security bulletin ... - -----Original Message----- From: full-disclosure-admin at lists.netsys.com [mailto:full-disclosure-admin at lists.netsys.com] On Behalf Of mi2g-research at hushmail.com Sent: Wednesday, July 07, 2004 8:06 AM To: full-disclosure at lists.netsys.com Cc: bugtraq at securityfocus.com; vulnwatch at vulnwatch.org Subject: [Full-Disclosure] Wendy's Drive-up Order System Information Disclosure - -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 - - -- SIPS EXCERPT -- ADVISORY -- SIPS EXCERPT -- ADVISORY -- Wendy's Drive-up Order System Information Disclosure Reporter: mi2g (http://www.mi2g.com/) Date: July 07, 2004 Severity: Medium to High Attack Class: Physical, Remote, Race Condition Vendor: Wendy's (http://www.wendys.com/) I. BACKGROUND Wendy's International, Inc. is one of the world's largest restaurant operating and franchising companies with more than 9,300 total restaurants and quality brands - Wendy's Old Fashioned HamburgersR, Tim HortonsR and Baja FreshR Mexican Grill. The Company invested in two additional quality brands during 2002 - Cafe ExpressT and Pasta PomodoroR. II. DESCRIPTION Remote exploitation of the Wendy's Drive-up ordering system allows an attacker to gain sensitive information about the order of arbitrary customers. During customer/vendor "handshake", the customer vehicle must come to a stop beside the vendor menu ordering system which contains a large screen to display the current order. During this process, adequate protection is not given to the space between the vehicle and the menu allowing for a number of remote attackers to obtain sensitive order information. Once the victim has finished ordering, the information stays available on the screen for up to several minutes or until another customer has pulled forward. This creates a great window for exploitation and increases the chance of winning the "race condition". III. ANALYSIS Successful exploitation allows unauthenticated remote malicious arbitrary attackers to retrieve the contents of the previous customer's food order which is a serious breach of confidentiality. As proof of concept, this attack was carried out against mi2g CEO DK Matai. It was disclosed that he ordered a grilled chicken sandwich, large fries and a large Coca-Cola. IV. DETECTION mi2g has confirmed that all Wendy's with a Drive-up menu display are affected. Other vendors may be affected but were not tested. V. WORKAROUND Use a hard object such as a rock or baseball bat to disable the order display screen after the late night drive-thru has closed. VI. CVE INFORMATION The Common Vulnerabilities and Exposures (CVE) project has assigned the name CAN-2004-2934 to this issue. This is a candidate for inclusion in the CVE list (http://cve.mitre.org), which standardizes names for security problems. VII. DISCLOSURE TIMELINE 07/07/02 Exploit discovered by mi2g 07/08/02 mi2g clients (the "Inner Sanctum") notified 01/08/03 The Queen notified 03/22/03 bespoke security architecture updated 09/01/03 mi2g clients notified again 07/07/04 Public Disclosure 07/08/04 Vendor notified VIII. CREDIT Rear Admiral John Hilton and Geoffrey Hancock are credited with discovering this vulnerability. IX. SPECIAL THANKS Donny Werner for verifying Wendy's drive up systems are not vulnerable to XSS issues! X. LEGAL NOTICES Copyright (c) 2004 mi2g Limited. Permission is granted for the redistribution of this alert electronically provided a small royalty is paid. It may not be edited in any way without the express written consent of mi2g. If you wish to reprint the whole or any part of this alert in any other medium other than electronically, please email mi2g-research at hushmail.com for permission. Disclaimer: The information in the advisory is believed to be accurate at the time of publishing based on currently available information. Use of the information constitutes acceptance for use in an AS IS condition. There are no warranties with regard to this information. Neither the author nor the publisher accepts any liability for any direct, indirect, or consequential loss or damage arising from use of, or reliance on, this information. - -----BEGIN PGP SIGNATURE----- Note: This signature can be verified at https://www.hushtools.com/verify Version: Hush 2.4 wkYEARECAAYFAkDrk18ACgkQa74Q1wBemg8ZEACfTaxcsaq/mkOAWZ8A5TPRhM/gq8gA n0pcaILhtSzHGnGbdBi1BCHQCi7s =YRgk - -----END PGP SIGNATURE----- - -- 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.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFA69YIQdvbi5oMr0cRAqfmAJ9a0GnjNgu9V3ZLUuRC2S83EdHEQwCfd6Uv /Oyv5uUL+SI4xmA1kvr/NxE= =qPiT -----END PGP SIGNATURE----- From agfische at email.smith.edu Wed Jul 7 08:52:09 2004 From: agfische at email.smith.edu (Aaron Fischer) Date: Wed, 7 Jul 2004 08:52:09 -0400 Subject: [nycphp-talk] php image gallery Message-ID: <757B959D-D014-11D8-9DD0-0003930D07F2@email.smith.edu> Greetings, few questions here: 1. I was wondering what the address is for the photo galleries that have been created on the nyphp site. I don't have the URL around anymore and it doesn't appear that one can navigate to those pages via the public links. 2. I'm planning on doing an install of a php photo gallery package today and another install in the near future. Any recommendations or feedback on the various packages would be greatly appreciated. I am thinking that something using a database for the back-end and css for formatting would be desirable. Thanks, -Aaron From jeffknight at mac.com Wed Jul 7 09:15:39 2004 From: jeffknight at mac.com (Jeff Knight) Date: Wed, 7 Jul 2004 09:15:39 -0400 Subject: [nycphp-talk] Happy 7th of July... Sort of Message-ID: Unisys's last patent on compressing gifs expires today, expect to see gif support in the GD library soon. According to http://www.boutell.com/gd/faq.html Thomas Boutell says he'll get on it soon, but not immediately. It should trickle down into the bundled package soon after that (if not before). But wait... according to /. (& how could they be wrong?) IBM has a patent as well... (two patents on the same algorithm?) You could try to get to the bottom of all this, or you could just give up and use the vastly superior png format. Jeff Knight putamare not no steeeenking junk at putamare.net From bpang at bpang.com Wed Jul 7 10:27:44 2004 From: bpang at bpang.com (Brian Pang) Date: Wed, 07 Jul 2004 09:27:44 -0500 Subject: [nycphp-talk] Happy 7th of July... Sort of Message-ID: Agreed that png is better, but sadly not as well supported (or else I'm not doing something right). I can't seem to get a transparent png to be transparent in IE. Of course, it's fine in Mozilla. > You could try to get to the bottom of all this, or you could just give > up and use the vastly superior png format. >From hans not junk at nyphp.com Wed Jul 7 10:31:50 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id CA30AA87B1 for ; Wed, 7 Jul 2004 10:31:49 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Wed, 7 Jul 2004 07:23:25 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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 image gallery Date: Wed, 7 Jul 2004 07:31:43 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702EC5526 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] php image gallery Thread-Index: AcRkIajGYqL3f7u8ScOklCW+1SKsxgADT5jQ From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 07 Jul 2004 14:23:25.0932 (UTC) FILETIME=[F758E2C0:01C4642D] 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, 07 Jul 2004 14:31:50 -0000 > 1. I was wondering what the address is for the photo galleries that=20 > have been created on the nyphp site. I don't have the URL around=20 > anymore and it doesn't appear that one can navigate to those=20 > pages via the public links. http://nyphp.org/content/gallery/ The gallery is the "caught at nyphp" link in the left column of the main page. > 2. I'm planning on doing an install of a php photo gallery package=20 > today and another install in the near future. Any recommendations or=20 > feedback on the various packages would be greatly appreciated. I am=20 > thinking that something using a database for the back-end and css for=20 > formatting would be desirable. I've only ever worked with http://gallery.sf.net but I think it's generally well accepted. H From jeffknight at mac.com Wed Jul 7 10:34:31 2004 From: jeffknight at mac.com (Jeff Knight) Date: Wed, 7 Jul 2004 10:34:31 -0400 Subject: [nycphp-talk] Happy 7th of July... Sort of In-Reply-To: References: Message-ID: On Jul 7, 2004, at 10:27 AM, Brian Pang wrote: > I can't seem to get a transparent png to be transparent in IE. Bad language, nothing wrong with IE is ever your fault. Transparent pngs aren't supported by IE, that's IE's fault. From preinheimer at gmail.com Wed Jul 7 10:49:23 2004 From: preinheimer at gmail.com (Paul Reinheimer) Date: Wed, 7 Jul 2004 10:49:23 -0400 Subject: [nycphp-talk] Happy 7th of July... Sort of In-Reply-To: References: Message-ID: <6ec19ec70407070749108d5094@mail.gmail.com> I thought IE supported fully transparent layers on PNGs with some success, it just failed over poorly on anything with more than one level of alpha transparency? paul On Wed, 7 Jul 2004 10:34:31 -0400, Jeff Knight wrote: > On Jul 7, 2004, at 10:27 AM, Brian Pang wrote: > > I can't seem to get a transparent png to be transparent in IE. > > Bad language, nothing wrong with IE is ever your fault. Transparent > pngs aren't supported by IE, that's IE's fault. > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From joel at tagword.com Wed Jul 7 10:52:38 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 07 Jul 2004 10:52:38 -0400 Subject: [nycphp-talk] Happy 7th of July... Sort of In-Reply-To: References: Message-ID: <1089211957.8115.46.camel@bezel> yet another reason on the huge heap of reasons that people shouldn't be using that browser. png's should be a standard and would be if MS actually supported them on any level.. Firefox is 'the' browser currently. and firefox has a sense of humor: http://update.mozilla.org/extensions/moreinfo.php?application=firefox&id=31 On Wed, 2004-07-07 at 10:34, Jeff Knight wrote: > On Jul 7, 2004, at 10:27 AM, Brian Pang wrote: > > I can't seem to get a transparent png to be transparent in IE. > > Bad language, nothing wrong with IE is ever your fault. Transparent > pngs aren't supported by IE, that's IE's fault. > > _______________________________________________ > 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 jlacey at att.net Wed Jul 7 11:06:14 2004 From: jlacey at att.net (John Lacey) Date: Wed, 07 Jul 2004 09:06:14 -0600 Subject: [nycphp-talk] Happy 7th of July... Sort of In-Reply-To: <1089211957.8115.46.camel@bezel> References: <1089211957.8115.46.camel@bezel> Message-ID: <40EC1166.9030607@att.net> Joel De Gan wrote: >Firefox is 'the' browser currently. > > > and for mail, Thunderbird work's fine too From joel at tagword.com Wed Jul 7 11:01:19 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 07 Jul 2004 11:01:19 -0400 Subject: [nycphp-talk] Happy 7th of July... Sort of In-Reply-To: <40EC1166.9030607@att.net> References: <1089211957.8115.46.camel@bezel> <40EC1166.9030607@att.net> Message-ID: <1089212479.8115.48.camel@bezel> Oh yea, I forgot to add this for new IE exploit of the day: http://zdnet.com.com/2100-1105-5259374.html fun fun... -joeldg On Wed, 2004-07-07 at 11:06, John Lacey wrote: > Joel De Gan wrote: > > >Firefox is 'the' browser currently. > > > > > > > and for mail, Thunderbird work's fine too > > > _______________________________________________ > 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 patrick.fee at baesystems.com Wed Jul 7 11:22:24 2004 From: patrick.fee at baesystems.com (Fee, Patrick J (US SSA)) Date: Wed, 7 Jul 2004 11:22:24 -0400 Subject: [nycphp-talk] OT: Pros and cons of PGP Desktop software for email encryption.... Message-ID: <728813C3358BF04CB3A3DA2341D44A71015E60C8@e2k11.na.baesystems.com> Estemmed list memebers, I need your help. Once again I have been toosed into the deep end of an issue that is new to me. WHile I enjoy learning new things... and explaining things to others is a great way to understand it yourself ... I need to turn to my professional brethren (and sistern?) to fill in the gaps. A property law firm I support has been approached by one of their professional organizations to buy into PGP's Desktop software to encrypt emails. Certain lending institutions (e.g.:Wells Fargo)are starting to require encrypted email correspondence. However, the PGP Desktop solution (formerly PGP Enterprise) seems a wee bit expensive. Are there any other solutions out there? Do we HAVE to have the same solution as our clients? I've gotten a Thawte certificate this week, although Thawte says "Thawte no longer offers nor supports PGP Keys." I want to do right by my client... AND learn about the email encryption options for my own use. Can anyone give me some feedback? The email I received (with many question marks after it) is below. The organization's names have been changed (e.g: FOOBAR) to protect their privacy: In light of recent notification from Wells Fargo to encrypt email communications, and the anticipated need at some future time for secure transmissions between FOO Members and some of their financial service clients, the FOOBAR Network has established a relationship with a security software company - PGP Corporation. As you may or may not be aware, PGP Corporation has relationships with many of the well-known financial services companies. FOOBAR has reached an agreement with PGP Corporation to allow FOOBAR to purchase PGP Desktop software at a discount: 25% off the retail price. This discount is available through FOOBAR directly, as they are acting as a reseller. From mmclar at drexel.edu Wed Jul 7 11:23:08 2004 From: mmclar at drexel.edu (Michael R. McLarnon) Date: Wed, 07 Jul 2004 11:23:08 -0400 Subject: [nycphp-talk] Happy 7th of July... Sort of In-Reply-To: References: Message-ID: <40EC155C.60604@drexel.edu> I have an idea: 1. Find a patch to make IE correctly display .PNG's 2. Add code on your website that takes advantage of one of IE's security holes to install that patch on visitors' browsers. 3. Voila! Now your users can see your graphics correctly. Turn that bug into a feature! (Note: I originally meant this humorously, but now I am really curious as to whether it could be done.) Brian Pang wrote: >Agreed that png is better, but sadly not as well supported (or else I'm >not doing something right). > >I can't seem to get a transparent png to be transparent in IE. Of >course, it's fine in Mozilla. > > > > >> You could try to get to the bottom of all this, or you could just give >>up and use the vastly superior png format. >> From jlacey at att.net Wed Jul 7 11:35:08 2004 From: jlacey at att.net (John Lacey) Date: Wed, 07 Jul 2004 09:35:08 -0600 Subject: [nycphp-talk] OT: Pros and cons of PGP Desktop software for email encryption.... In-Reply-To: <728813C3358BF04CB3A3DA2341D44A71015E60C8@e2k11.na.baesystems.com> References: <728813C3358BF04CB3A3DA2341D44A71015E60C8@e2k11.na.baesystems.com> Message-ID: <40EC182C.90105@att.net> Fee, Patrick J (US SSA) wrote: >Estemmed list memebers, > >I need your help. Once again I have been toosed into the deep end of an issue that is new to me. WHile I enjoy learning new things... and explaining things to others is a great way to understand it yourself ... I need to turn to my professional brethren (and sistern?) to fill in the gaps. > >A property law firm I support has been approached by one of their professional organizations to buy into PGP's Desktop software to encrypt emails. Certain lending institutions (e.g.:Wells Fargo)are starting to require encrypted email correspondence. > >However, the PGP Desktop solution (formerly PGP Enterprise) seems a wee bit expensive. Are there any other solutions out there? Do we HAVE to have the same solution as our clients? > > Switch 'em over to Thunderbird and use the OpenPGP extension :) http://update.mozilla.org/extensions/moreinfo.php?application=thunderbird&id=71&vid=76 From joel at tagword.com Wed Jul 7 11:33:30 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 07 Jul 2004 11:33:30 -0400 Subject: [nycphp-talk] Happy 7th of July... Sort of In-Reply-To: <40EC155C.60604@drexel.edu> References: <40EC155C.60604@drexel.edu> Message-ID: <1089214410.8107.55.camel@bezel> It is ridiculously easy to make activex controls to install in browsers. I hopped into windows and fired up delphi6 and made one (for fun) that replaces any instance (in any webpage, replaced before IE parses) of the word "Yahoo" with the word "shit".. Then surfed around looking at "shit mail" and "shit autos" was funny but was really a test for doing ones that replace graphics such as 468x60 with whatever I want, or finding amazon.com referral codes and replacing them with mine etc. I.E is a minefield for easy hacks like these. (as a side note, I didn't do anything with that code, but did consider selling it..) -joeldg On Wed, 2004-07-07 at 11:23, Michael R. McLarnon wrote: > I have an idea: > 1. Find a patch to make IE correctly display .PNG's > 2. Add code on your website that takes advantage of one of IE's security > holes to install that patch on visitors' browsers. > 3. Voila! Now your users can see your graphics correctly. > > Turn that bug into a feature! > > (Note: I originally meant this humorously, but now I am really curious > as to whether it could be done.) > > Brian Pang wrote: -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From yury at heavenspa.com Wed Jul 7 11:44:52 2004 From: yury at heavenspa.com (Yury Rush) Date: Wed, 7 Jul 2004 11:44:52 -0400 Subject: [nycphp-talk] Happy 7th of July... Sort of In-Reply-To: <1089214410.8107.55.camel@bezel> Message-ID: how much? -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Joel De Gan Sent: Wednesday, July 07, 2004 10:34 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Happy 7th of July... Sort of It is ridiculously easy to make activex controls to install in browsers. I hopped into windows and fired up delphi6 and made one (for fun) that replaces any instance (in any webpage, replaced before IE parses) of the word "Yahoo" with the word "shit".. Then surfed around looking at "shit mail" and "shit autos" was funny but was really a test for doing ones that replace graphics such as 468x60 with whatever I want, or finding amazon.com referral codes and replacing them with mine etc. I.E is a minefield for easy hacks like these. (as a side note, I didn't do anything with that code, but did consider selling it..) -joeldg On Wed, 2004-07-07 at 11:23, Michael R. McLarnon wrote: > I have an idea: > 1. Find a patch to make IE correctly display .PNG's > 2. Add code on your website that takes advantage of one of IE's security > holes to install that patch on visitors' browsers. > 3. Voila! Now your users can see your graphics correctly. > > Turn that bug into a feature! > > (Note: I originally meant this humorously, but now I am really curious > as to whether it could be done.) > > Brian Pang wrote: -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From joel at tagword.com Wed Jul 7 11:39:37 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 07 Jul 2004 11:39:37 -0400 Subject: [nycphp-talk] Happy 7th of July... Sort of In-Reply-To: References: Message-ID: <1089214777.8211.57.camel@bezel> On Wed, 2004-07-07 at 11:44, Yury Rush wrote: > how much? How much would that be worth? I don't even know.. > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Joel De Gan > Sent: Wednesday, July 07, 2004 10:34 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Happy 7th of July... Sort of > > > It is ridiculously easy to make activex controls to install in browsers. > I hopped into windows and fired up delphi6 and made one (for fun) that > replaces any instance (in any webpage, replaced before IE parses) of the > word "Yahoo" with the word "shit".. Then surfed around looking at "shit > mail" and "shit autos" was funny but was really a test for doing ones > that replace graphics such as 468x60 with whatever I want, or finding > amazon.com referral codes and replacing them with mine etc. > > I.E is a minefield for easy hacks like these. > > (as a side note, I didn't do anything with that code, but did consider > selling it..) > -joeldg -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From phillip.powell at adnet-sys.com Wed Jul 7 11:52:27 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Wed, 07 Jul 2004 11:52:27 -0400 Subject: [nycphp-talk] Happy 7th of July... Sort of In-Reply-To: <1089214410.8107.55.camel@bezel> References: <40EC155C.60604@drexel.edu> <1089214410.8107.55.camel@bezel> Message-ID: <40EC1C3B.2050505@adnet-sys.com> Joel De Gan wrote: >It is ridiculously easy to make activex controls to install in browsers. > > That is, of course, given the typical Joe User's understanding of ActiveX. Do you truly think that Soccer Mom and Factory Worker Dad is an ActiveX hack and/or has knowledge of or access to Delphi6? I hate to say this, sometimes, we coders live in a world very far removed from the rest of the known universe, the universe of "typical people" that wouldn't know such hacks and would then not feel the need to do so when surfing on Ebay for a 6-pack of beer. Just a thought. Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From dmintz at davidmintz.org Wed Jul 7 11:52:51 2004 From: dmintz at davidmintz.org (David Mintz) Date: Wed, 7 Jul 2004 11:52:51 -0400 (EDT) Subject: [nycphp-talk] Re: ....Using HTML_QuickForm with Smarty with David Mintz In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702EC54E8@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8702EC54E8@ehost011-1.exch011.intermedia.net> Message-ID: On Wed, 7 Jul 2004, Hans Zaunere wrote: > > NYPHP July Meeting > ------------------ > > When: July 27th, 2004 at 6:30pm sharp > Where: (new location) IBM, 590 Madison Avenue, Room 306 (3rd > Floor) Manhattan. > > Join David and the New York PHP crew and see how the powerful > HTML_QuickForm and elegant Smarty engine can be combined for engineering > the perfect frontend[...] and after all the tsuris he put us through, he damn well better show up with a sexy new Powerbook. --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From danielc at analysisandsolutions.com Wed Jul 7 11:53:43 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 7 Jul 2004 11:53:43 -0400 Subject: [nycphp-talk] OT: Pros and cons of PGP Desktop software for email encryption.... In-Reply-To: <728813C3358BF04CB3A3DA2341D44A71015E60C8@e2k11.na.baesystems.com> References: <728813C3358BF04CB3A3DA2341D44A71015E60C8@e2k11.na.baesystems.com> Message-ID: <20040707155343.GA972@panix.com> Hi: There's a free drop in alternative for PGP called GPG (GNU Privacy Guard), found at http://www.gnupg.org/. Since you're talking about using this for email, check the "MUA Frontend" (mail user agent) section of the "Related Software" | "Frontend" page http://www.gnupg.org/(en)/related_software/frontends.html#mua . There are even plugins for Outlook. --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 joel at tagword.com Wed Jul 7 11:50:02 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 07 Jul 2004 11:50:02 -0400 Subject: [nycphp-talk] Happy 7th of July... Sort of In-Reply-To: <40EC1C3B.2050505@adnet-sys.com> References: <40EC155C.60604@drexel.edu> <1089214410.8107.55.camel@bezel> <40EC1C3B.2050505@adnet-sys.com> Message-ID: <1089215402.8114.67.camel@bezel> On Wed, 2004-07-07 at 11:52, Phillip Powell wrote: > That is, of course, given the typical Joe User's understanding of > ActiveX. Do you truly think that Soccer Mom and Factory Worker Dad is > an ActiveX hack and/or has knowledge of or access to Delphi6? true.. > > I hate to say this, sometimes, we coders live in a world very far > removed from the rest of the known universe, the universe of "typical > people" that wouldn't know such hacks and would then not feel the need > to do so when surfing on Ebay for a 6-pack of beer. This is very true, I should have prefaced that with "for a coder with any experience..." which effectively knocks out 99.9% of the population. I would like to that that people would be interested in programming, but reality is that is like cars, a lot of people talk the talk, but still take their cars into the shop to get the oil changed. So yea, that was an ivory tower comment... > > Just a thought. > > Phil -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From danielc at analysisandsolutions.com Wed Jul 7 12:01:02 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 7 Jul 2004 12:01:02 -0400 Subject: [nycphp-talk] Happy 7th of July... Sort of In-Reply-To: <1089214410.8107.55.camel@bezel> References: <40EC155C.60604@drexel.edu> <1089214410.8107.55.camel@bezel> Message-ID: <20040707160102.GB972@panix.com> On Wed, Jul 07, 2004 at 11:33:30AM -0400, Joel De Gan wrote: > I hopped into windows and fired up delphi6 and made one (for fun) that > replaces any instance (in any webpage, replaced before IE parses) of the > word "Yahoo" with the word "shit". Tell me about it. The "IT" "staff" at my girlfriend's job didn't secure her machine properly. It got exploited and started popping up porn. I told her to go search Google for "spybot." Well, guess what. The exploit changed the results to put some other piece of software in the number one spot, which I suspect was a trojan. To confirm, I did the same search and got the expected results. While this can be explained by Google altering results for different browsers/IP's/etc, I doubt it. --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 Wed Jul 7 12:01:50 2004 From: yury at heavenspa.com (Yury Rush) Date: Wed, 7 Jul 2004 12:01:50 -0400 Subject: [nycphp-talk] Happy 7th of July... Sort of In-Reply-To: <1089214777.8211.57.camel@bezel> Message-ID: something that will rewrite someones's affiliate number with another for: amazon.com, cj.com, linkshare.com and will self-install without the user knowing.. right? yury -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Joel De Gan Sent: Wednesday, July 07, 2004 10:40 AM To: NYPHP Talk Subject: RE: [nycphp-talk] Happy 7th of July... Sort of On Wed, 2004-07-07 at 11:44, Yury Rush wrote: > how much? How much would that be worth? I don't even know.. > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Joel De Gan > Sent: Wednesday, July 07, 2004 10:34 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Happy 7th of July... Sort of > > > It is ridiculously easy to make activex controls to install in browsers. > I hopped into windows and fired up delphi6 and made one (for fun) that > replaces any instance (in any webpage, replaced before IE parses) of the > word "Yahoo" with the word "shit".. Then surfed around looking at "shit > mail" and "shit autos" was funny but was really a test for doing ones > that replace graphics such as 468x60 with whatever I want, or finding > amazon.com referral codes and replacing them with mine etc. > > I.E is a minefield for easy hacks like these. > > (as a side note, I didn't do anything with that code, but did consider > selling it..) > -joeldg -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From jlacey at att.net Wed Jul 7 12:02:33 2004 From: jlacey at att.net (John Lacey) Date: Wed, 07 Jul 2004 10:02:33 -0600 Subject: [nycphp-talk] Re: ....Using HTML_QuickForm with Smarty with David Mintz In-Reply-To: References: <41EE526EC2D3C74286415780D3BA9F8702EC54E8@ehost011-1.exch011.intermedia.net> Message-ID: <40EC1E99.5070704@att.net> David Mintz wrote: >On Wed, 7 Jul 2004, Hans Zaunere wrote: > > > >> >>NYPHP July Meeting >>------------------ >> >>When: July 27th, 2004 at 6:30pm sharp >>Where: (new location) IBM, 590 Madison Avenue, Room 306 (3rd >>Floor) Manhattan. >> >>Join David and the New York PHP crew and see how the powerful >>HTML_QuickForm and elegant Smarty engine can be combined for engineering >>the perfect frontend[...] >> >> > >and after all the tsuris he put us through, he damn well better show up >with a sexy new Powerbook. > > > ...and speaking of setting up an AMP development environment on a Mac, Kai Seidler of XAMPP fame tells me they have a MacOSX version in the works to join their linux, windows and now solaris versions. XAMPP rocks -- I can have a ready-to-go AMP platform in under 30 secs, after it's downloaded. From joel at tagword.com Wed Jul 7 12:00:29 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 07 Jul 2004 12:00:29 -0400 Subject: [nycphp-talk] Happy 7th of July... Sort of In-Reply-To: References: Message-ID: <1089216029.8115.72.camel@bezel> On Wed, 2004-07-07 at 12:01, Yury Rush wrote: > something that will rewrite someones's affiliate number with another for: > amazon.com, cj.com, linkshare.com and will self-install without the user > knowing.. right? > > yury Well, actually the user needs to click (which is any activex) and it can be embedded in a form for "winning a 52 inch plasma TV or whatever" etc.. I have a search site that gets 50,000 hits/day (mostly i.e.) the numbers there just on users who hit okay just by accident would make it worth it.. And yea, it could find any of those codes using regex replace. Just wondering how much that would actually be worth.. -joeldg joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From adam at trachtenberg.com Wed Jul 7 12:24:39 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Wed, 7 Jul 2004 12:24:39 -0400 (EDT) Subject: [nycphp-talk] Happy 7th of July... Sort of In-Reply-To: <40EC1C3B.2050505@adnet-sys.com> References: <40EC155C.60604@drexel.edu> <1089214410.8107.55.camel@bezel> <40EC1C3B.2050505@adnet-sys.com> Message-ID: On Wed, 7 Jul 2004, Phillip Powell wrote: > I hate to say this, sometimes, we coders live in a world very far > removed from the rest of the known universe, the universe of "typical > people" that wouldn't know such hacks and would then not feel the need > to do so when surfing on Ebay for a 6-pack of beer. Actually, eBay only allows sales of 6-packs when they're deemed "collectibles." Otherwise, there's all sorts of government regulation about the sale of alcohol over the Internet and across state lines. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From ajai at bitblit.net Wed Jul 7 12:29:25 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 07 Jul 2004 12:29:25 -0400 Subject: [nycphp-talk] AMP development: talk me into a G4 PowerBook ? In-Reply-To: References: <20040706173421.22228.qmail@web52806.mail.yahoo.com> Message-ID: <40EC24E5.6050600@bitblit.net> David Mintz wrote: >I think it's time to move on from my old Dell Inspiron 2000 and I'm trying >to talk myself into a G4 PowerBook. > >You happy Powerbook owners, please tell me about how great they are for >AMP development. Persuade me how easy it is to run Apache/PHP, mysql, and >also things like the Zend and Eclipse IDEs, Tomcat, cvs (or perhaps >Subversion) etc. Assure me it will also be possible to figure out a way to > AMP is very well supported on MacOS X - there are nice installers here: http://www.entropy.ch/software/macosx/ The other nice thing is Fink (fink.sourceforge.net) - basically this gives you Linux-like apt-get package system for OS X. -- Aj. Systems Administrator / Developer From dmintz at davidmintz.org Wed Jul 7 12:43:35 2004 From: dmintz at davidmintz.org (David Mintz) Date: Wed, 7 Jul 2004 12:43:35 -0400 (EDT) Subject: [nycphp-talk] Happy 7th of July... Sort of In-Reply-To: References: <40EC155C.60604@drexel.edu> <1089214410.8107.55.camel@bezel> <40EC1C3B.2050505@adnet-sys.com> Message-ID: On Wed, 7 Jul 2004, Adam Maccabee Trachtenberg wrote: > On Wed, 7 Jul 2004, Phillip Powell wrote: > > > I hate to say this, sometimes, we coders live in a world very far > > removed from the rest of the known universe, the universe of "typical > > people" that wouldn't know such hacks and would then not feel the need > > to do so when surfing on Ebay for a 6-pack of beer. > > Actually, eBay only allows sales of 6-packs when they're deemed > "collectibles." Otherwise, there's all sorts of government regulation > about the sale of alcohol over the Internet and across state lines. Which reminds me of one I heard about the 2000 World Series tickets being resold on eBay. When sellers were told that was against policy, they (reportedly) said "OK, then make it a baseball cap. Price: $5000. Comes with 2 complimentary World Series tickets." Call that a "collectible" baseball cap and you've got yourself a theory... sort of. --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From list at harveyk.com Wed Jul 7 13:14:41 2004 From: list at harveyk.com (harvey) Date: Wed, 7 Jul 2004 13:14:41 -0400 Subject: [nycphp-talk] Multidimensional Arrays? References: <40EC155C.60604@drexel.edu><1089214410.8107.55.camel@bezel> <40EC1C3B.2050505@adnet-sys.com> Message-ID: <059b01c46445$e7c4ec60$0200a8c0@desktop> Hello, I have code that loops through the database and outputs something like the following: TEAM 1 Year 1 Year 2 Year 3 8 9 22 TEAM 2 Year 1 Year 2 Year 3 18 94 12 TEAM 3 Year 1 Year 2 Year 3 23 44 45 ALL TEAMS Year 1 Year 2 Year 3 ?? ?? ?? I can't figure out how to easily get the ?? totals. I think I want a major array of three minor arrays (I probably just invented my own vocabulary): the major array would increment by one each year; the three minor arrays would hold the Year 1 values, Year 2 values, and Year 3 values. Conceptually, it would be something like $all_teams[$year_id][ ]. Is something like that possible? I know that php allows multidimensional arrays, but I guess I don't know the proper syntax or usage. Thanks in advance for any help! Harvey From csnyder at chxo.com Wed Jul 7 13:28:39 2004 From: csnyder at chxo.com (csnyder at chxo.com) Date: Wed, 7 Jul 2004 13:28:39 -0400 Subject: [nycphp-talk] Happy 7th of July... Sort of In-Reply-To: <6ec19ec70407070749108d5094@mail.gmail.com> References: <6ec19ec70407070749108d5094@mail.gmail.com> Message-ID: <1089221319.40ec32c728e03@webmail.tuffmail.net> PNG-8 with transparency index (a la GIF) is fine. PNG-24 with alpha channel displays background color instead of transparency. MS decided to drag their feet on full PNG support until after they wiped out their browser unit. Oh well, the world doesn't need transparency. See this if you like crazy MS workarounds: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q294714 From joel at tagword.com Wed Jul 7 13:45:58 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 07 Jul 2004 13:45:58 -0400 Subject: [nycphp-talk] Happy 7th of July... Sort of In-Reply-To: <1089216029.8115.72.camel@bezel> References: <1089216029.8115.72.camel@bezel> Message-ID: <1089222358.8111.77.camel@bezel> Took a minute and looked over the specs for firefox/mozilla extensions, it would also be easy for a js/xul programmer to add in similar functionality for those browsers, though would require installing an extension. -joel On Wed, 2004-07-07 at 12:00, Joel De Gan wrote: > Well, actually the user needs to click (which is any activex) and it can > be embedded in a form for "winning a 52 inch plasma TV or whatever" > etc.. I have a search site that gets 50,000 hits/day (mostly i.e.) the > numbers there just on users who hit okay just by accident would make it > worth it.. And yea, it could find any of those codes using regex > replace. > > Just wondering how much that would actually be worth.. > > -joeldg joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From phillip.powell at adnet-sys.com Wed Jul 7 14:01:33 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Wed, 07 Jul 2004 14:01:33 -0400 Subject: [nycphp-talk] Happy 7th of July... Sort of In-Reply-To: References: <40EC155C.60604@drexel.edu> <1089214410.8107.55.camel@bezel> <40EC1C3B.2050505@adnet-sys.com> Message-ID: <40EC3A7D.1000207@adnet-sys.com> Adam Maccabee Trachtenberg wrote: >On Wed, 7 Jul 2004, Phillip Powell wrote: > > > >>I hate to say this, sometimes, we coders live in a world very far >>removed from the rest of the known universe, the universe of "typical >>people" that wouldn't know such hacks and would then not feel the need >>to do so when surfing on Ebay for a 6-pack of beer. >> >> > >Actually, eBay only allows sales of 6-packs when they're deemed >"collectibles." Otherwise, there's all sorts of government regulation >about the sale of alcohol over the Internet and across state lines. > >-adam > > > You missed it. I said " when surfing on Ebay for a 6-pack of beer. " Notice the phrase "when surfing on Ebay for...". Again, Joe User's world wouldn't necessarily know about the government regulations on anything (except to complain more than likely that there are too many w/o any sort of concrete recollection as to what they are or apply to what/when/where/why/how much) Ok, this is becoming tangential to the point of absurdity! AUGH! I need a Belgian Pale Ale or a Jever! Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From yury at heavenspa.com Wed Jul 7 13:57:27 2004 From: yury at heavenspa.com (Yury Rush) Date: Wed, 7 Jul 2004 13:57:27 -0400 Subject: [nycphp-talk] Happy 7th of July... Sort of In-Reply-To: <1089222358.8111.77.camel@bezel> Message-ID: not sure of the value.. but you'd ave alot of upset website owners L: regards yury -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Joel De Gan Sent: Wednesday, July 07, 2004 12:46 PM To: NYPHP Talk Subject: RE: [nycphp-talk] Happy 7th of July... Sort of Took a minute and looked over the specs for firefox/mozilla extensions, it would also be easy for a js/xul programmer to add in similar functionality for those browsers, though would require installing an extension. -joel On Wed, 2004-07-07 at 12:00, Joel De Gan wrote: > Well, actually the user needs to click (which is any activex) and it can > be embedded in a form for "winning a 52 inch plasma TV or whatever" > etc.. I have a search site that gets 50,000 hits/day (mostly i.e.) the > numbers there just on users who hit okay just by accident would make it > worth it.. And yea, it could find any of those codes using regex > replace. > > Just wondering how much that would actually be worth.. > > -joeldg joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From joel at tagword.com Wed Jul 7 14:09:02 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 07 Jul 2004 14:09:02 -0400 Subject: [nycphp-talk] Happy 7th of July... Sort of In-Reply-To: References: Message-ID: <1089223742.8112.81.camel@bezel> On Wed, 2004-07-07 at 13:57, Yury Rush wrote: > not sure of the value.. but you'd ave alot of upset website owners L: > > regards > yury well, in either of these instances you are bound to have a *LOT* of upset webmasters. It is already a huge problem for IE users, kazaa and some of the other programs install(ed ??) spyware to rewrite amazon and other affiliate url's .. There was a big stink over that a while back. -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From jeffknight at mac.com Wed Jul 7 15:01:44 2004 From: jeffknight at mac.com (putamare) Date: Wed, 7 Jul 2004 15:01:44 -0400 Subject: [nycphp-talk] Multidimensional Arrays? In-Reply-To: <059b01c46445$e7c4ec60$0200a8c0@desktop> References: <40EC155C.60604@drexel.edu> <1089214410.8107.55.camel@bezel> <40EC1C3B.2050505@adnet-sys.com> <059b01c46445$e7c4ec60$0200a8c0@desktop> Message-ID: <16DE81ED-D048-11D8-9516-000393B9FB36@mac.com> Well Harvey, assuming you defined something like $all_teams['Team 1'][2002] = 8; $all_teams['Team 1'][2003] = 9; $all_teams['Team 1'][2004] = 22; $all_teams['Team 2'][2002] = 18; $all_teams['Team 2'][2003] = 94; $all_teams['Team 2'][2004] = 12; $all_teams['Team 3'][2002] = 23; $all_teams['Team 3'][2003] = 44; $all_teams['Team 3'][2004] = 45; The code foreach ($all_teams as $team) foreach ($team as $year => $score) $all_teams['sum'][$year] += $score ; would give you a brute force calculation of what you're looking for, use a print_r($all_teams) to get the hang of it. Note also that array_sum($all_teams['Team 1']); would give you the sum of 'Team 1' across all three years. Experiment with $all_teams[2002]['Team 1'] = 8; $all_teams[2002]['Team 2'] = 18; $all_teams[2002]['Team 3'] = 23; $all_teams[2003]['Team 1'] = 9; $all_teams[2003]['Team 2'] = 94; $all_teams[2003]['Team 3'] = 44; $all_teams[2004]['Team 1'] = 22; $all_teams[2004]['Team 2'] = 12; $all_teams[2004]['Team 3'] = 45; run a few more print_r's and you'll be well on your way to getting the hang of multidimensional arrays. And don't forget http://www.php.net/manual/en/language.types.array.php and http://www.php.net/manual/en/ref.array.php On Jul 7, 2004, at 1:14 PM, harvey wrote: > Hello, > > I have code that loops through the database and outputs something like > the > following: > > > TEAM 1 > > Year 1 Year 2 Year 3 > > 8 9 22 > > TEAM 2 > > Year 1 Year 2 Year 3 > > 18 94 12 > > TEAM 3 > > Year 1 Year 2 Year 3 > > 23 44 45 > > ALL TEAMS > > Year 1 Year 2 Year 3 > > ?? ?? ?? > > > I can't figure out how to easily get the ?? totals. I think I want a > major > array of three minor arrays (I probably just invented my own > vocabulary): > the major array would increment by one each year; the three minor > arrays > would hold the Year 1 values, Year 2 values, and Year 3 values. > Conceptually, it would be something like $all_teams[$year_id][ ]. Is > something like that possible? I know that php allows multidimensional > arrays, but I guess I don't know the proper syntax or usage. > > Thanks in advance for any help! > > Harvey > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From jeffknight at mac.com Wed Jul 7 15:06:48 2004 From: jeffknight at mac.com (putamare) Date: Wed, 7 Jul 2004 15:06:48 -0400 Subject: [nycphp-talk] AMP development: talk me into a G4 PowerBook ? In-Reply-To: <20040706225350.66726.qmail@web52802.mail.yahoo.com> References: <20040706225350.66726.qmail@web52802.mail.yahoo.com> Message-ID: For those interested in this sort of thing, might I suggest the Lower East Side Mac UNIX Users Group lesmuug.org (kind of rolls right of the tongue there don't it?) From danielc at analysisandsolutions.com Wed Jul 7 15:29:42 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 7 Jul 2004 15:29:42 -0400 Subject: [nycphp-talk] Multidimensional Arrays? In-Reply-To: <059b01c46445$e7c4ec60$0200a8c0@desktop> References: <059b01c46445$e7c4ec60$0200a8c0@desktop> Message-ID: <20040707192942.GA24950@panix.com> On Wed, Jul 07, 2004 at 01:14:41PM -0400, harvey wrote: > I can't figure out how to easily get the ?? totals. Without giving this too much thought, _perhaps_ http://php.net/function.array-sum.php will help, but maybe not. --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 list at harveyk.com Wed Jul 7 16:19:37 2004 From: list at harveyk.com (harvey) Date: Wed, 7 Jul 2004 16:19:37 -0400 Subject: [nycphp-talk] Multidimensional Arrays? References: <059b01c46445$e7c4ec60$0200a8c0@desktop> <20040707192942.GA24950@panix.com> Message-ID: <064501c4645f$bf424ac0$0200a8c0@desktop> Thanks, but it's not the sum part that I'm having problems with (I don't think). It's creating the multidimensional array. I get the sums fine for normal arrays. Thanks again. ----- Original Message ----- From: "Daniel Convissor" To: "NYPHP Talk" Sent: Wednesday, July 07, 2004 3:29 PM Subject: Re: [nycphp-talk] Multidimensional Arrays? > On Wed, Jul 07, 2004 at 01:14:41PM -0400, harvey wrote: > > > I can't figure out how to easily get the ?? totals. > > Without giving this too much thought, _perhaps_ > http://php.net/function.array-sum.php will help, but maybe not. > > --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 jv_nyphp at duikerbok.com Wed Jul 7 17:03:50 2004 From: jv_nyphp at duikerbok.com (Jose Villegas) Date: Wed, 7 Jul 2004 17:03:50 -0400 Subject: [nycphp-talk] Multidimensional Arrays? In-Reply-To: <059b01c46445$e7c4ec60$0200a8c0@desktop> References: <40EC155C.60604@drexel.edu><1089214410.8107.55.camel@bezel> <40EC1C3B.2050505@adnet-sys.com> <059b01c46445$e7c4ec60$0200a8c0@desktop> Message-ID: <2524F6DA-D059-11D8-9215-000A95D78076@duikerbok.com> what about something like this: $all_teams = array( 'TEAM 1' => array( 'Year 1' => 8, 'Year 2' => 9, 'Year 3' => 22 ), 'TEAM 2' => array( 'Year 1' => 18, 'Year 2' => 94, 'Year 3' => 12 ), etc... ); $year1 = 0; $year2 = 0; $year3 = 0; foreach ($all_teams as $next_array) { $year1 += $next_array['Year 1']; $year2 += $next_array['Year 2']; $year3 += $next_array['Year 3']; } -jose On Jul 7, 2004, at 1:14 PM, harvey wrote: > Hello, > > I have code that loops through the database and outputs something like > the > following: > > > TEAM 1 > > Year 1 Year 2 Year 3 > > 8 9 22 > > TEAM 2 > > Year 1 Year 2 Year 3 > > 18 94 12 > > TEAM 3 > > Year 1 Year 2 Year 3 > > 23 44 45 > > ALL TEAMS > > Year 1 Year 2 Year 3 > > ?? ?? ?? > > > I can't figure out how to easily get the ?? totals. I think I want a > major > array of three minor arrays (I probably just invented my own > vocabulary): > the major array would increment by one each year; the three minor > arrays > would hold the Year 1 values, Year 2 values, and Year 3 values. > Conceptually, it would be something like $all_teams[$year_id][ ]. Is > something like that possible? I know that php allows multidimensional > arrays, but I guess I don't know the proper syntax or usage. > > Thanks in advance for any help! > > Harvey From joel at tagword.com Wed Jul 7 16:58:12 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 07 Jul 2004 16:58:12 -0400 Subject: [nycphp-talk] Happy 7th of July... Sort of In-Reply-To: <1089222358.8111.77.camel@bezel> References: <1089216029.8115.72.camel@bezel> <1089222358.8111.77.camel@bezel> Message-ID: <1089233892.8211.85.camel@bezel> As a note to the below: http://www.g4techtv.com/feature.aspx?article_key=41046&pg=1 is a tutorial on creating them. All js and xul, but the xul guys here may find it interesting. cheers -joel On Wed, 2004-07-07 at 13:45, Joel De Gan wrote: > Took a minute and looked over the specs for firefox/mozilla extensions, > it would also be easy for a js/xul programmer to add in similar > functionality for those browsers, though would require installing an > extension. > > -joel -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From danielc at analysisandsolutions.com Wed Jul 7 17:39:12 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 7 Jul 2004 17:39:12 -0400 Subject: [nycphp-talk] Multidimensional Arrays? In-Reply-To: <059b01c46445$e7c4ec60$0200a8c0@desktop> References: <059b01c46445$e7c4ec60$0200a8c0@desktop> Message-ID: <20040707213911.GA23145@panix.com> On Wed, Jul 07, 2004 at 01:14:41PM -0400, harvey wrote: > > I have code that loops through the database and outputs something like the > following: > > TEAM 1 > Year 1 Year 2 Year 3 > 8 9 22 > > TEAM 2 ...snip... > ALL TEAMS > Year 1 Year 2 Year 3 > ?? ?? ?? Pseudo code... PLEASE extrapolate the concept here to fit your actual needs. while ($row = fetchrow($result)) { echo $row['year'] . ' ' . $row['score']; $total[$row['year']] += $row['score']; } Then, to get the totals: foreach ($total as $year => $val) { echo "$year = $val"; } > I know that php allows multidimensional > arrays, but I guess I don't know the proper syntax or usage. $x['key1']['level2']['level3']['level4']['yougettheidea'] --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 list at harveyk.com Wed Jul 7 18:41:03 2004 From: list at harveyk.com (harvey) Date: Wed, 7 Jul 2004 18:41:03 -0400 Subject: [nycphp-talk] Multidimensional Arrays? References: <059b01c46445$e7c4ec60$0200a8c0@desktop> <20040707213911.GA23145@panix.com> Message-ID: <068001c46473$8077fba0$0200a8c0@desktop> Thanks, Daniel. Your previous post got me where I needed to go. The key was the note below. I actually had something like that in my code, but it didn't work. I thought it was because you couldn't do [ ][ ][ ]. (I just guessed that the syntax would be like that; didn't know that it really was the syntax). I think the problem was the ' ' marks. I took them out, and all works fine now. Thanks to everyone with suggestions... > From: "Daniel Convissor" > > $x['key1']['level2']['level3']['level4']['yougettheidea'] From danielc at analysisandsolutions.com Wed Jul 7 18:48:08 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 7 Jul 2004 18:48:08 -0400 Subject: [nycphp-talk] Multidimensional Arrays? In-Reply-To: <068001c46473$8077fba0$0200a8c0@desktop> References: <20040707213911.GA23145@panix.com> <068001c46473$8077fba0$0200a8c0@desktop> Message-ID: <20040707224808.GA10107@panix.com> Harvey: On Wed, Jul 07, 2004 at 06:41:03PM -0400, harvey wrote: > I think the problem was the ' ' marks. I took them out, and all > works fine now. The quote marks may be helpful or not, depending on the context, which is?... --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 keithjr at gmail.com Wed Jul 7 19:19:51 2004 From: keithjr at gmail.com (Keith Richardson) Date: Wed, 7 Jul 2004 19:19:51 -0400 Subject: [nycphp-talk] AMP development: talk me into a G4 PowerBook ? In-Reply-To: References: <20040706173421.22228.qmail@web52806.mail.yahoo.com> Message-ID: <4e1a9bc040707161942d0d5d5@mail.gmail.com> I have used a mac for the past 4 years, but went to pc solely on my limited budget from my son and I needed better hardware to play the newer games, like the World of Warcraft beta, which would need a 1ghz g4, and I only had a 733. Apache is built-in to os x - and the entropy site that is linked in this thread is what I used to update php and also mysql. PHP is built in, but it most likely isnt the most recent build, unless they just updated it in a software-update combined with other things. I had a fully-fledged email server running using sendmail, and web server using amp. The aliases on the mail server are great, because you can just create them using their built-in administration tools. I like the built-in iApps, iPhoto, iChat, iTunes (Which I now use on pc) - one of the reasons that I went to one. I used bbedit or dreamweaver mx, but bbedit had better FTP compatibility, which I loved. It was fast, so you could open right off of the ftp server within a few seconds, and it kept the connection alive in the background. Saving was instantaneous. The only problem that I saw with using the mac was their built-in ssh client, and when I went into VIM, the home/end/etc keys did not work, since they had different ascii codes bound to them, but that was something that I probabally could have fixed. All in all - I prefer the mac, but I have to settle with a pc for my cost - 500 bucks for a dell p4 3.06ghz on a 2 day special? Couldn't pass that up... but I will wait to buy an apple again until they come out with powerbooks running G5's with a true 64bit OS, instead of the 64bit wrapper on OS X like they have now. On Tue, 6 Jul 2004 17:37:23 -0400 (EDT), David Mintz wrote: > > I think it's time to move on from my old Dell Inspiron 2000 and I'm trying > to talk myself into a G4 PowerBook. > > You happy Powerbook owners, please tell me about how great they are for > AMP development. Persuade me how easy it is to run Apache/PHP, mysql, and > also things like the Zend and Eclipse IDEs, Tomcat, cvs (or perhaps > Subversion) etc. Assure me it will also be possible to figure out a way to > run the one and only Windoze program I'd like to keep, which is Paint Shop > Pro. Convince me that it will be fast and stable and just plain cool and > I'll wonder how I lived without it. > > Further, enlighten me as to what specs and features and stuff you think a > geek would require in order to attain nirvana. > > Also -- maybe a naive question -- can you build and install something like > Quanta (the html editor) on one of these things? I'd expect the install > might get weird because the standard locations of things are different on > Mac OS X vs. *nix platforms. > > Feel free to answer privately if you think this is too OT. > > Many thanks, > > --- > 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 > -- Keith Richardson keith at keithjr.net From list at harveyk.com Wed Jul 7 22:34:56 2004 From: list at harveyk.com (harvey) Date: Wed, 7 Jul 2004 22:34:56 -0400 Subject: [nycphp-talk] Multidimensional Arrays? Message-ID: <073d01c46494$2c64d6c0$0200a8c0@desktop> Database reports for a national organization with a number of different local offices, each of which runs workshops with a sponsoring organization, speaker, and attendees. The orgs, speakers, and attendees all have certain characteristics also. So I'm trying to create a database input and reporting system that allows the group to easily input and view all different combos of the info above. > ----- Original Message ----- > From: "Daniel Convissor" > To: "NYPHP Talk" > Sent: Wednesday, July 07, 2004 6:48 PM > Subject: Re: [nycphp-talk] Multidimensional Arrays? > > > > Harvey: > > > > On Wed, Jul 07, 2004 at 06:41:03PM -0400, harvey wrote: > > > I think the problem was the ' ' marks. I took them out, and all > > > works fine now. > > > > The quote marks may be helpful or not, depending on the context, which > > is?... > > > > --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 Thu Jul 8 00:18:24 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 8 Jul 2004 00:18:24 -0400 Subject: [nycphp-talk] Multidimensional Arrays? In-Reply-To: <073d01c46494$2c64d6c0$0200a8c0@desktop> References: <073d01c46494$2c64d6c0$0200a8c0@desktop> Message-ID: <20040708041823.GA22366@panix.com> Harvey: By "context" I meant "show me the line of PHP code" where you removed the quotes. --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 rolan at omnistep.com Thu Jul 8 01:33:55 2004 From: rolan at omnistep.com (Rolan Yang) Date: Thu, 08 Jul 2004 01:33:55 -0400 Subject: [nycphp-talk] OT: Pros and cons of PGP Desktop software for email encryption.... In-Reply-To: <728813C3358BF04CB3A3DA2341D44A71015E60C8@e2k11.na.baesystems.com> References: <728813C3358BF04CB3A3DA2341D44A71015E60C8@e2k11.na.baesystems.com> Message-ID: <40ECDCC3.2090102@omnistep.com> Fee, Patrick J (US SSA) wrote: >Estemmed list memebers, > >I need your help. Once again I have been toosed into the deep end of an issue that is new to me. WHile I enjoy learning new things... and explaining things to others is a great way to understand it yourself ... I need to turn to my professional brethren (and sistern?) to fill in the gaps. > >A property law firm I support has been approached by one of their professional organizations to buy into PGP's Desktop software to encrypt emails. Certain lending institutions (e.g.:Wells Fargo)are starting to require encrypted email correspondence. > > > I use Thunderbird and Enigmail (the GPG extension). It works well. You might want to verify the compatibility of GPG with PGP Desktop 8.x I had an issue with incomptibility between GPG and PGP's Universal Server (encryption proxy appliance). Read up on stuff at http://forums.pgpsupport.com/ If you can get away with SMIME key's, Thawte's free email certs are easy to use. ~Rolan From jonbaer at jonbaer.net Thu Jul 8 08:30:36 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Thu, 08 Jul 2004 08:30:36 -0400 Subject: [nycphp-talk] OT: Pros and cons of PGP Desktop software for email encryption.... In-Reply-To: <40ECDCC3.2090102@omnistep.com> References: <728813C3358BF04CB3A3DA2341D44A71015E60C8@e2k11.na.baesystems.com> <40ECDCC3.2090102@omnistep.com> Message-ID: <40ED3E6C.6010200@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thunderbird/Enigmail/GPG *was* my approach but I found that a) thunderbird did crash a few times where i had set plain text display only + there was a large html based email b) the junk option was not really working too well Then (just to learn more) I went to fetchmail -> procmail -> (clamav -> spamassasin) -> mutt This option is so high tech that I lost half my vision editing the config files. But despite all the stuff that is out there alot of people still dont sign/encrypt there email, I use it mainly for emailing passwords around. I do however like the PGPDisk option that does come w/ PGPDesktop software, this allows you to create + mount a virtual encrypted "drive" for storage, have not found a decent option like that for Linux without gpg encrypting entire files but im sure there is an easier way. However I must say if *I* was a lawyer and my client wanted email confidentiality Im sure the softwares purpose will pay for itself over time and will be worth it due to its Windows friendly nature. My .01. - - Jon | Fee, Patrick J (US SSA) wrote: | |> Estemmed list memebers, |> |> I need your help. Once again I have been toosed into the deep end of |> an issue that is new to me. WHile I enjoy learning new things... and |> explaining things to others is a great way to understand it yourself |> ... I need to turn to my professional brethren (and sistern?) to fill |> in the gaps. |> |> A property law firm I support has been approached by one of their |> professional organizations to buy into PGP's Desktop software to |> encrypt emails. Certain lending institutions (e.g.:Wells Fargo)are |> starting to require encrypted email correspondence. - -- 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.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFA7T5rQdvbi5oMr0cRAqinAJ4oIF3d9NFaEQXCgspBaDyOniQ3aQCaA3pY AOfhGWONmZfh4aMuahG2OIk= =cWnr -----END PGP SIGNATURE----- From radical at amr.ro Thu Jul 8 09:30:22 2004 From: radical at amr.ro (Gabriel PREDA) Date: Thu, 8 Jul 2004 16:30:22 +0300 Subject: [nycphp-talk] Multidimensional Arrays? References: <40EC155C.60604@drexel.edu><1089214410.8107.55.camel@bezel><40EC1C3B.2050505@adnet-sys.com> <059b01c46445$e7c4ec60$0200a8c0@desktop> Message-ID: <019001c464ef$b8a3f250$0100a8c0@amrserver> You could try to leave this to MySQL (or whatever SQL server you have): SELECT team, SUM(year1), SUM(year2), SUM(year3) FROM `tablename` [WHERE where_conditions_if_any ] GROU BY team [ORDER BY order_clauses_if_any ] If you can give me a detailed description of the table(s) I can write the query corectly. Gabriel PREDA www.amr.ro ----- Original Message ----- From: "harvey" To: "NYPHP Talk" Sent: Wednesday, July 07, 2004 8:14 PM Subject: [nycphp-talk] Multidimensional Arrays? > Hello, > I have code that loops through the database and outputs something like the > following: > TEAM 1 > Year 1 Year 2 Year 3 > 8 9 22 > > TEAM 2 > Year 1 Year 2 Year 3 > 18 94 12 > > TEAM 3 > Year 1 Year 2 Year 3 > 23 44 45 > > ALL TEAMS > Year 1 Year 2 Year 3 > ?? ?? ?? > > I can't figure out how to easily get the ?? totals. I think I want a major > array of three minor arrays (I probably just invented my own vocabulary): > the major array would increment by one each year; the three minor arrays > would hold the Year 1 values, Year 2 values, and Year 3 values. > Conceptually, it would be something like $all_teams[$year_id][ ]. Is > something like that possible? I know that php allows multidimensional > arrays, but I guess I don't know the proper syntax or usage. > Thanks in advance for any help! > Harvey From jlacey at att.net Thu Jul 8 21:22:37 2004 From: jlacey at att.net (John Lacey) Date: Thu, 08 Jul 2004 19:22:37 -0600 Subject: [nycphp-talk] firefox security fix Message-ID: <40EDF35D.2090301@att.net> if anyone's interested... there's a new firefox ver. 0.9.2 that fixes a security flaw that's XP and win2K related http://mozilla.org/ >From hans not junk at nyphp.com Fri Jul 9 09:42:13 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id D9A60A85F0 for ; Fri, 9 Jul 2004 09:42:12 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Fri, 9 Jul 2004 06:33:44 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Fri, 9 Jul 2004 06:42:06 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702F7C2F7 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: YNPN-NYC Tech Hang Out Thread-Index: AcRlDzCJBHlFV2MET9O6tzlH3Z17qwAqzfmw From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 09 Jul 2004 13:33:44.0788 (UTC) FILETIME=[5B45E940:01C465B9] Subject: [nycphp-talk] FW: YNPN-NYC Tech Hang Out 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: Fri, 09 Jul 2004 13:42:13 -0000 Good morning, Wanted to pass this on... a bunch of NYPHPers will be going, so hope to see you there! > _________________________ > Hi fellow YNPN-NYCers, > For those of you who work in technology or are interested in it ( or > loking for something to do) check out the event below. There has been a > great response already. I currently work in a non-profit in the IT > department. Hope to see some of you there... > Scott >=20 > TECH HANG OUT >=20 > This is a non-networking (no nametags) monthly (every 2nd Wednesday) get > together for all IT and tech professionals > (helpdesk/desktop/networking/technical training/web development/database > or any other area in IT). This event is about hanging out, having fun, > having a drink, and building a community with others in the same field > as you, the IT field. We experience similar things at work, but it would > be great to be able to share those with people at different companies. >=20 > Come on down and make this event a SUCCESS! >=20 > Details: >=20 > July 14th, 2004 > Tech Hang Out @ Naked Lunch Bar & Lounge > 17 Thompson Street (Corner of Grand Street) > SOHO//NYC > Time: 5:30pm - 9:00pm > Take the A/C/E or 1/9 to Canal Street >=20 > *Happy Hour Specials from 5-9pm: $2 off all drinks, $5 Pearl Vodka > drinks, $3 Bud & Bud Light from 5-7pm >=20 > *No Charge.free BBQ >=20 > *Feel free to forward this email to your friends and colleagues. Looking > forward to see all of you! >=20 > For more information contact Scott Fellheimer or Steve Larosiliere @ > techhangout at yahoo.com > http://www.evite.com/pages/gt/events/view.jsp?event=3DODMGDLMYURHZJAKGNFL= K > &src=3Demail >=20 >=20 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >=20 > "The Young Nonprofit Professionals Network of New York City: Providing > Our Members with the Tools They Need to Strengthen the Nonprofit > Community." >=20 > YNPN NYC LIST INSTRUCTIONS: > To send a message to this entire list, send a *plain text only* email to > ynpn-nyc at topica.com. HTML messages will be rejected (in Outlook, check > the Format menu). >=20 > To subscribe, send a blank email to: ynpn-nyc-subscribe at topica.com >=20 > To get all messages batched into one daily email, send a blank email to: > ynpn-nyc-request-digest at topica.com >=20 > To unsubscribe, send a blank message to: ynpn-nyc-unsubscribe at topica.com >=20 > Need help with this list? Email nyctech at ynpn.org. Questions about > YNPN-NYC? Email newyork at ynpn.org. >=20 > YNPN CAREER CENTER! > Browse or post jobs for free. NYC postings are automatically emailed to > this list. Visit YNPN's Career Center at > http://www.ynpn.org/careercenter > --^---------------------------------------------------------------- > This email was sent to: nhart at musicpf.org >=20 > EASY UNSUBSCRIBE click here: http://topica.com/u/?a2iWLN.bnWKAs.bmhhcnRA > Or send an email to: ynpn-nyc-unsubscribe at topica.com >=20 > For Topica's complete suite of email marketing solutions visit: > http://www.topica.com/?p=3DTEXFOOTER > --^---------------------------------------------------------------- >=20 >=20 >=20 >=20 From csnyder at chxo.com Fri Jul 9 11:30:18 2004 From: csnyder at chxo.com (csnyder at chxo.com) Date: Fri, 9 Jul 2004 11:30:18 -0400 Subject: [nycphp-talk] mysqldump and foreign keys on InnoDB tables Message-ID: <1089387018.40eeba0a8c355@webmail.tuffmail.net> As a mysql user from way back, I don't generally hold with all this fancy FOREIGN KEY stuff. But recently I've has occasion to work on tables that are heavily keyed to each other, and I've run into a nasty problem when trying to backup and restore the database using mysqldump --opt Despite the fact that the sql file wraps all the inserts in *!40000 ALTER TABLE tablename DISABLE KEYS */; the inserts are failing on foreign key checks. I'm using Mysql 4.0.15a ... Is this expected behavior? Seems to me that if the foreign key indexes aren't being created until after everything is inserted, the inserts should succeed no matter what, especially as mysqldump --opt is advertised as the best/fastest way to backup and restore a database. chris. >From hans not junk at nyphp.com Fri Jul 9 14:23:33 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 3FF62A85F0 for ; Fri, 9 Jul 2004 14:23:33 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Fri, 9 Jul 2004 11:15:04 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] mysqldump and foreign keys on InnoDB tables Date: Fri, 9 Jul 2004 11:23:30 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702F7C5E1 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] mysqldump and foreign keys on InnoDB tables Thread-Index: AcRlyast2+MXiiTPRoeLQhlNgZ0rGQAFsbEQ From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 09 Jul 2004 18:15:04.0824 (UTC) FILETIME=[A88EFF80:01C465E0] 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: Fri, 09 Jul 2004 18:23:33 -0000 > As a mysql user from way back, I don't generally hold with all this fancy > FOREIGN KEY stuff. But recently I've has occasion to work on tables that are > heavily keyed to each other, and I've run into a nasty problem when trying to > backup and restore the database using mysqldump --opt >=20 > Despite the fact that the sql file wraps all the inserts in *!40000 ALTER TABLE > tablename DISABLE KEYS */; the inserts are failing on foreign key checks. >=20 > I'm using Mysql 4.0.15a ... http://dev.mysql.com/doc/mysql/en/SET_OPTION.html SET FOREIGN_KEY_CHECKS=3D0; > Is this expected behavior? Seems to me that if the foreign key indexes aren't > being created until after everything is inserted, the inserts should succeed no > matter what, especially as mysqldump --opt is advertised as the best/fastest > way to backup and restore a database. Well: http://dev.mysql.com/doc/mysql/en/Backing_up.html And, when working with InnoDB, see the 8th bullet (AUTOCOMMIT): http://dev.mysql.com/doc/mysql/en/InnoDB_tuning.html LOAD DATA INFILE and SELECT INTO OUTFILE are also nice. H From csnyder at chxo.com Fri Jul 9 14:44:31 2004 From: csnyder at chxo.com (csnyder at chxo.com) Date: Fri, 9 Jul 2004 14:44:31 -0400 Subject: [nycphp-talk] mysqldump and foreign keys on InnoDB tables In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702F7C5E1@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8702F7C5E1@ehost011-1.exch011.intermedia.net> Message-ID: <1089398671.40eee78fc411a@webmail.tuffmail.net> Quoting Hans Zaunere : > http://dev.mysql.com/doc/mysql/en/SET_OPTION.html > > SET FOREIGN_KEY_CHECKS=0; Seems the best option in this case, thanks. > http://dev.mysql.com/doc/mysql/en/Backing_up.html At 390 Eu per server? I'd rather buy a MySQL license. *grin* >From hans not junk at nyphp.com Fri Jul 9 14:54:53 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id E5957A87DB for ; Fri, 9 Jul 2004 14:54:52 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Fri, 9 Jul 2004 11:46:24 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] mysqldump and foreign keys on InnoDB tables Date: Fri, 9 Jul 2004 11:54:48 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702F7C650 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] mysqldump and foreign keys on InnoDB tables Thread-Index: AcRl5MomH5tUsAyrQvybE5ZGTheEaQAAUKZA From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 09 Jul 2004 18:46:24.0498 (UTC) FILETIME=[08EE7D20:01C465E5] 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: Fri, 09 Jul 2004 18:54:53 -0000 > > http://dev.mysql.com/doc/mysql/en/Backing_up.html >=20 > At 390 Eu per server? I'd rather buy a MySQL license. *grin* At the top of the link it mentions the backup product, but the rest of the page describes how to do much of it manually. You can do it all with the tools included with MySQL, except for the true hot backup, since it's an engine level thing (and specific to InnoDB). H From sol2ray at yahoo.fr Fri Jul 9 15:59:57 2004 From: sol2ray at yahoo.fr (Sol) Date: Fri, 9 Jul 2004 12:59:57 -0700 (PDT) Subject: [nycphp-talk] DB resultset Message-ID: <20040709195957.24028.qmail@web50203.mail.yahoo.com> Hi all! What to do in the following situation? while working with a database result set that I need to use more than once. But I don't need the same number of record each time. Should I get the whole thing in an array or live it in the database result handle and work with it. Which one is the best practice? ===== Sol Tour? PHPBTREE http://phpbtree.com __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail From preinheimer at gmail.com Fri Jul 9 17:00:35 2004 From: preinheimer at gmail.com (Paul Reinheimer) Date: Fri, 9 Jul 2004 17:00:35 -0400 Subject: [nycphp-talk] DB resultset In-Reply-To: <20040709195957.24028.qmail@web50203.mail.yahoo.com> References: <20040709195957.24028.qmail@web50203.mail.yahoo.com> Message-ID: <6ec19ec704070914007e574d1e@mail.gmail.com> If you can do some basic checking to determine the max number of records you will need, only grab that. Beyond that, I think that the best practice would be to get all the records you could need, then use them as needed. If you can guarantee that you won't need the same peice again, unset it. A caveat: If the result set includes some huge feilds, blobs or text feilds with tonnes of data, you may want to re-consider :). paul On Fri, 9 Jul 2004 12:59:57 -0700 (PDT), Sol wrote: > Hi all! > > What to do in the following situation? > > while working with a database result set that I need > to use more than once. But I don't need the same > number of record each time. Should I get the whole > thing in an array or live it in the database result > handle and work with it. > Which one is the best practice? > > ===== > Sol Tour? > PHPBTREE > http://phpbtree.com > > __________________________________ > Do you Yahoo!? > Yahoo! Mail Address AutoComplete - You start. We finish. > http://promotions.yahoo.com/new_mail > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From sol2ray at yahoo.fr Fri Jul 9 17:33:33 2004 From: sol2ray at yahoo.fr (Sol) Date: Fri, 9 Jul 2004 14:33:33 -0700 (PDT) Subject: [nycphp-talk] DB resultset In-Reply-To: <6ec19ec704070914007e574d1e@mail.gmail.com> Message-ID: <20040709213333.53563.qmail@web50202.mail.yahoo.com> It's not a huge resultset and I know how many I need for the lifetime of the script. The question is: I don't want to make a different query each time. But I was thinking since the resultset is already stored in memory by the database server, isn't it a wast of time to loop through it and store it in an array? --- Paul Reinheimer wrote: > If you can do some basic checking to determine the > max number of > records you will need, only grab that. Beyond that, > I think that the > best practice would be to get all the records you > could need, then use > them as needed. If you can guarantee that you won't > need the same > peice again, unset it. > > A caveat: If the result set includes some huge > feilds, blobs or text > feilds with tonnes of data, you may want to > re-consider :). > > > paul > > > On Fri, 9 Jul 2004 12:59:57 -0700 (PDT), Sol > wrote: > > Hi all! > > > > What to do in the following situation? > > > > while working with a database result set that I > need > > to use more than once. But I don't need the same > > number of record each time. Should I get the whole > > thing in an array or live it in the database > result > > handle and work with it. > > Which one is the best practice? > > > > ===== > > Sol Tour??? > > PHPBTREE > > http://phpbtree.com > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Mail Address AutoComplete - You start. We > finish. > > http://promotions.yahoo.com/new_mail > > _______________________________________________ > > 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! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail From shiflett at php.net Fri Jul 9 18:43:26 2004 From: shiflett at php.net (Chris Shiflett) Date: Fri, 9 Jul 2004 15:43:26 -0700 (PDT) Subject: [nycphp-talk] SDK/IDE - Lightbulb Message-ID: <20040709224326.10371.qmail@web52801.mail.yahoo.com> I'm not sure if I remembered to send this to the list, but this is from chromatic at O'Reilly. --- chromatic wrote: > Hi Chris, > > Know anyone in the PHP community who might be interested? > > Best, > -- c > > -----Forwarded Message----- > From: Curt Craig > > Ok; as a caveat, I'm a biz-dev guy and we're bootstrapping our young > company...we've developed some very interesting technology; PHP > Architect Magazine ran their second story/review on us in their April > '04 issue. > > We're trying to get the word out about our unique SDK/IDE called > "Lightbulb", and would greatly appreciate any suggestions you might > have as to working with the groups that you do, or with publishers so > that we might compete for awards and have our solutions reviewed. > Here's a link, and I'll be happy to put you in touch with our engineers > if you'd like to take a look. > > http://www.lumensoftware.com/applications/website/outsideView.php?outVOU=9&p > g=/web_disk/1-9/webfiles/lumen_lightBulb.html?outVOU=9&height= > > Thank you SO much! From LeeEyerman at aol.com Sat Jul 10 09:05:02 2004 From: LeeEyerman at aol.com (LeeEyerman at aol.com) Date: Sat, 10 Jul 2004 09:05:02 EDT Subject: [nycphp-talk] Linux vs. Windows in PC Magazine August 3 Edition - "Smear Factor" Message-ID: Linux vs. Windows in PC Magazine August 3 Edition - "Smear Factor" In John C. Dvorak's monthly column (8/3/04) he has written an article entitled "Smear Factor." The gist of the article is that Microsoft has basically started a fierce underground smear campaign against Linux. Now I know a bunch of you went no da -- where have you been? But before you chop my head off read on. The article goes far beyond the usual anti-Linux propaganda. The article identifies past and new "developing" PR campaigns that allow Microsoft to bash Linux with untruths while maintaining distance from the negative PR. Quoting from the article: "Making one of these campaigns work takes a lot of resources and skill, and has to be secret too.... We may be witnessing a whole new way of trashing a product [Linux] -- an eclectic assault on all known fronts and even in the creation of new ones." This is a director quote from PC Magazine (8/3/04) page 51. John Dvorak outlines the newest attack against Linux - that Torvalds did write the OS - it is an assembly of stolen code from SCO and others. John Dvorak also reports of an institute named Alexis de Tocqueville Institution (AdTi) _http://www.adti.net/_ (http://www.adti.net/) that supports this attack -- prior to this attack, AdTi never consulted and worked in this arena. On their homepage they state: "Welcome to AdTI.net, ground zero for the global controversy over the hybrid-source operating system, Linux." (ground zero...hmmm) The entire anti-Linux portion of the site seems devoted to establishing one fact: That Torvalds did not write Linux from scratch and all those who assisted may have used bits and pieces of copyrighted software. In my opinion this is one of the essential elements for SCO to make their copyright infringement case. If Torvalds and the Linux community used some SCO code to speed the production of Linux, then there may be copyright infringement (triple damages, accounting for profits, etc, etc) This is the part of the campaign that establishes possible infringement that I believe Dvorak is referring to. Parts of the site even call Torvalds credibility into question. It is really shocking stuff. The funny part is, this site which claims to be ground zero for global controversy on Linux has articles on: Reagan, Roosevelt Rushmore - Gandhi's Unpower-Grab, Federal and State Savings from Internet Phone Calls, Federal Policy Review with Greenspan, Democracy in Iraq, etc. Really weird stuff. This is all very scary, all my websites and servers are Linux based.... does this scary anyone else? Dvorak's article is really great work. I have been reading his articles since I was a little kid, and is the only reason I keep buying PC Magazine. The article ends stating that Microsoft's intent is to slow the Linux growth by making Corp and Individuals take a "wait and see approach" - while Microsoft keeps selling its products. If I had to take two things away from the article: 1) Linux needs to be MUCH securer than MS. Now I have talked to so many Linux admins who say Linux is far more secure. Is it really or are we just kidding ourselves because Linux hardly gets attacked. Elsewhere in the same edition, a statistic is quoted that computers are attacked by viruses, worms, etc within 15 seconds of being placed on the Internet. If Linux wants to compete, we need to know we are secure. 2) The SCO issue is big. It needs to be addressed. I think a more proactive stance to international and US copyright law needs to be put in place that ensures the legal transfer of intellectual property to the Linux community. Lastly, in John Dvorak's weekly "Inside Track" (page 51) John outlines the many issues surrounding the Microsoft $2 Billion investment in Sun and its ramifications. I am not going to review it but it is almost as alarming as the first article. (One quick note MS went up against Sun in a bid for Thailand - Microsoft dropped there price of $500-600 MSRP US software to $40 a copy to compete with Linux/Sun/Star Office. Linux Won! This has to scare the ^#$& out of Bill.) The gist of the article is that Sun may be bought by Fujitsu, Star Office may be scrapped, and Java spun off (and if I had to bet MS would buy it.) I would strongly suggest people pick up these articles. I truly believe that John Dvorak is a fair man, and I think he has opened this issue for a reason. Here is the no da part - Microsoft has launched a secretive all out assault against Linux. Linux is there biggest threat - and it makes them so nervous. As a community, we need to start thinking of proactive positive strategies that strengthen the computer infrastructure, continue to make computers easier and far more secure for users to use, and bring back REAL competition to this marketplace. The first step I will make is joining everyone on the 14th (I think) for a drink. It is a start anyway. Any other suggestions? Have a great weekend. And let everyone know about these articles. Lee Eyerman _LeeEyeran at aol.com_ (mailto:LeeEyeran at aol.com) | _lee at leyerman.com_ (mailto:lee at leyerman.com) PHP/MySQL/Linux/Perl/.NET/Apache/ODBC 201-255-2939 | Cell 551-404-7587 (24 Hours) NY / NJ Based One last thing, this month's PC Magazine has an extensive article on Internet security. PC Mag did a great job this month! -------------- next part -------------- An HTML attachment was scrubbed... URL: From sm11szw02 at sneakemail.com Sun Jul 11 21:39:39 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Sun, 11 Jul 2004 21:39:39 -0400 Subject: [nycphp-talk] small designer/photoshop freelance oppty Message-ID: <14741-70322@sneakemail.com> The list seems quiet these days, and many of you have design associates... so I figured I'd throw this on to the community before looking elsewhere: I have a small job for a photoshopper - it requires generating a 300dpi color scan of a postage-stamp sized graphic, and then retouching it to alter certain aspects of text, graphics. No real creative involved, but meticulous attention to detail and a love of the kind of minutia that satisfies a perfectionist client (me). Should be a few hours of work for the right person. Recommendations appreciated, or feel free to pass along to appropriate individuals. Thanks. John Andrews pcps -at- XXXXXXXXXXXXX From Cbielanski at inta.org Mon Jul 12 09:30:21 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Mon, 12 Jul 2004 09:30:21 -0400 Subject: [nycphp-talk] Setting up https as a registered stream Message-ID: This question may require some help off the list, because I seem to need a bit of spoon-feeding here. I need to get this server running such that I can call file_get_contents over https to a remote server. Server is running Apache2.0.48 and PHP 4.3.4(cli) and does not have mod_openssl or mod_php installed. So the real question is, if I get mod_openssl installed in Apache, will PHP magically register https as a stream type? 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 jayeshsh at ceruleansky.com Mon Jul 12 11:22:49 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Mon, 12 Jul 2004 11:22:49 -0400 Subject: [nycphp-talk] making a manual http POST using a PHP client (USPS web services) Message-ID: <40F2ACC9.6070002@ceruleansky.com> Hello all, I am trying to build a PHP script that requests information from the United States Postal Service (USPS) using their web services interface. More specifically, I want to look up 9 digit zip codes for a given street address. The USPS does not use a standard web services protocol such as XML-RPC or SOAP. If they were using XML-RPC, then I could just use the PEAR XML-RPC library to automatically POST the XML request to their server (and also to automatically decode the XML response that I receive from them). The USPS has some documents on this matter, but their (less than abundant) code samples are restricted to Perl, ASP, and Visual Basic. Their Perl code sample looks like this: -------------------------------------- print "content-type: text/html\n\n"; print $htmlBegin; $ua = new LWP::UserAgent; $req = new HTTP::Request 'POST', 'http://SERVERNAME/ShippingAPI.dll'; $req->content_type('application/x-www-form-urlencoded'); $req->content('API=Rate&XML=' . $rateReqDoc->toString); $response = $ua->request($req); if ($response->is_success) { $resp = $response->content; } else { print "

There was an error processing your request

\n"; print $htmlEnd; exit 0; } --------------------------------------------- I have not really used Perl before, but the first time I looked at this code, I thought it looked a lot like PHP. Here's what I think is happening: The Perl script manually opening an HTTP connection and posting a chunk of XML encoded text to server using the "LWP::UserAgent" and "HTTP::Request" things. So my question is: which function (or objects) should I use in PHP to do something. I know, this is kind of a stupid question - I should probably know how to do this, but until now I just let the web services libraries do this "dirty work" for me. On a related note, I was wondering if anyone knows of open source PHP code that does what I would like to do. Thanks in advance. Best Regards, - Jay From jayeshsh at ceruleansky.com Mon Jul 12 11:29:46 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Mon, 12 Jul 2004 11:29:46 -0400 Subject: [nycphp-talk] making a manual http POST using a PHP client (USPS web services) Message-ID: <40F2AE6A.7010903@ceruleansky.com> Hello all, please excuse the incoherence in parts of my previous message. (I really need some more coffee so that I wake up!). Instead of : "So my question is: which function (or objects) should I use in PHP to do something.", I meant: "So my question is: which function (or objects) should I use in PHP to do the same thing ?" Thanks! - Jay Sheth From rolan at omnistep.com Mon Jul 12 11:35:24 2004 From: rolan at omnistep.com (Rolan Yang) Date: Mon, 12 Jul 2004 11:35:24 -0400 Subject: [nycphp-talk] making a manual http POST using a PHP client (USPS web services) In-Reply-To: <40F2AE6A.7010903@ceruleansky.com> References: <40F2AE6A.7010903@ceruleansky.com> Message-ID: <40F2AFBC.9090002@omnistep.com> CURL. http://www.php.net/manual/en/ref.curl.php Jayesh Sheth wrote: > Hello all, > > please excuse the incoherence in parts of my previous message. (I > really need some more coffee so that I wake up!). > > Instead of : > "So my question is: which function (or objects) should I use in PHP to > do something.", > > I meant: > "So my question is: which function (or objects) should I use in PHP to > do the same thing ?" > > Thanks! > > - Jay Sheth > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From phillip.powell at adnet-sys.com Mon Jul 12 11:54:40 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Mon, 12 Jul 2004 11:54:40 -0400 Subject: [nycphp-talk] making a manual http POST using a PHP client (USPS web services) In-Reply-To: <40F2AFBC.9090002@omnistep.com> References: <40F2AE6A.7010903@ceruleansky.com> <40F2AFBC.9090002@omnistep.com> Message-ID: <40F2B440.2040203@adnet-sys.com> Rolan Yang wrote: > CURL. > http://www.php.net/manual/en/ref.curl.php I have grown to greatly distrust CURL. It's too simple a solution and I don't believe it fully works. I built a Timer class object based upon Curl (using 7.10) for PHP 4.3.2 and it works on all remote URLs except for those that are $_COOKIE or $_SESSION-dependent. In those cases the remote url returns incorrect information simply because the remote $_COOKIE is not there. I am thinking the best solution is XML-RPC or SOAP, but for a simple page-download-timing scrape, it's way overkill! Phil > > Jayesh Sheth wrote: > >> Hello all, >> >> please excuse the incoherence in parts of my previous message. (I >> really need some more coffee so that I wake up!). >> >> Instead of : >> "So my question is: which function (or objects) should I use in PHP >> to do something.", >> >> I meant: >> "So my question is: which function (or objects) should I use in PHP >> to do the same thing ?" >> >> Thanks! >> >> - Jay Sheth >> >> _______________________________________________ >> 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 BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 >From hans not junk at nyphp.com Mon Jul 12 12:11:31 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id DE47BA85EA for ; Mon, 12 Jul 2004 12:11:30 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Mon, 12 Jul 2004 09:02:56 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] DB resultset Date: Mon, 12 Jul 2004 09:11:28 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870306C4E8 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] DB resultset Thread-Index: AcRl/GbXg8XT9wMhSYOcInLXKoRtZwCLfCIg From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 12 Jul 2004 16:02:56.0311 (UTC) FILETIME=[B2092C70:01C46829] 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, 12 Jul 2004 16:11:31 -0000 > It's not a huge resultset and I know how many I need > for the lifetime of the script. If it's not that big of a resultset, it might make more sense to just fetch it all into an array and walk through the array as needed. > The question is: >=20 > I don't want to make a different query each time. > But I was thinking since the resultset is already > stored in memory by the database server, isn't it a > wast of time to loop through it and store it in an > array? There lies the issue - the resultset isn't stored by the database. What you really want is a cursor. However, I assume we're talking about MySQL, in which case there are no cursors (they're coming in MySQL 5.0). You might find some value in these functions: http://us2.php.net/manual/en/function.mysql-unbuffered-query.php http://us2.php.net/manual/en/function.mysql-data-seek.php Depending on the approach you want to take. H From brian at vermonster.com Mon Jul 12 12:14:09 2004 From: brian at vermonster.com (Brian Kaney) Date: Mon, 12 Jul 2004 12:14:09 -0400 Subject: [nycphp-talk] making a manual http POST using a PHP client (USPS web services) In-Reply-To: <40F2ACC9.6070002@ceruleansky.com> References: <40F2ACC9.6070002@ceruleansky.com> Message-ID: <1089648849.11643.9.camel@brian.vermonster.com> We use CURL to talk to UPS and FedEx API's on a regular basis. Our FedEx library is open source and available for download: http://freshmeat.net/redir/fedexdc/42837/url_tgz/fedexdc.tar.gz It looks like same technique could be used for USPS: http://www.usps.com/webtools/welcome.htm BTW: If you don't like the CURL library, I think you could try compiling PHP with OpenSSL (so you can go over https) and use the fopen() function (http://us4.php.net/function.fopen) or PEAR::HTTP module (http://pear.php.net/manual/en/package.http.php). - Brian On Mon, 2004-07-12 at 11:22, Jayesh Sheth wrote: > Hello all, > > I am trying to build a PHP script that requests information from the > United States Postal Service (USPS) using their web services interface. > More specifically, I want to look up 9 digit zip codes for a given > street address. > > The USPS does not use a standard web services protocol such as XML-RPC > or SOAP. If they were using XML-RPC, then I could just use the PEAR > XML-RPC library to automatically POST the XML request to their server > (and also to automatically decode the XML response that I receive from > them). > > The USPS has some documents on this matter, but their (less than > abundant) code samples are restricted to Perl, ASP, and Visual Basic. > > Their Perl code sample looks like this: > > -------------------------------------- > print "content-type: text/html\n\n"; > > print $htmlBegin; > > $ua = new LWP::UserAgent; > > $req = new HTTP::Request 'POST', 'http://SERVERNAME/ShippingAPI.dll'; > > $req->content_type('application/x-www-form-urlencoded'); > > $req->content('API=Rate&XML=' . $rateReqDoc->toString); > > $response = $ua->request($req); > > if ($response->is_success) { > > $resp = $response->content; > > } else { > > print "

There was an error processing your request

\n"; > > print $htmlEnd; > > exit 0; > > } > --------------------------------------------- > > I have not really used Perl before, but the first time I looked at this > code, I thought it looked a lot like PHP. Here's what I think is happening: > > The Perl script manually opening an HTTP connection and posting a chunk > of XML encoded text to server using the "LWP::UserAgent" and > "HTTP::Request" things. > > So my question is: which function (or objects) should I use in PHP to do > something. I know, this is kind of a stupid question - I should probably > know how to do this, but until now I just let the web services libraries > do this "dirty work" for me. > > On a related note, I was wondering if anyone knows of open source PHP > code that does what I would like to do. > > Thanks in advance. > > Best Regards, > > - Jay > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From drydell at att.net Mon Jul 12 12:21:04 2004 From: drydell at att.net (drydell at att.net) Date: Mon, 12 Jul 2004 16:21:04 +0000 Subject: [nycphp-talk] making a manual http POST using a PHP client (USPS web services) Message-ID: <071220041621.961.40F2BA7000098F2C000003C1216038311604040A0B979D0B@att.net> something like this: $remote_url = 'http://SERVERNAME/ShippingAPI.dll'; $remote_server = 'http://SERVERNAME' $request = 'API=Rate&XML='.$rateReqDoc->toString."\n\n"; $header = "POST $remote_url HTTP/1.0\n"; $header .= "Host: $remote_server\n"; $header .= "User-Agent: {$_SERVER['HTTP_USER_AGENT']}\n"; $header .= "Content-type: application/x-www-form-urlencoded\n"; $header .= "Content-length: ".strlen($request)."\n"; $header .= "Connection: Close\n\n"; $fp = fsockopen($remote_server, 80, &$errno, &$errstr); if ($fp) { fputs($fp, "$header$request"); $response = "

Connected to $remote_server$remote_url

RESPONSE ::
"; while (!feof($fp)) { $response .= fgets($fp, 128); } fclose($fp); $return .= $response; } else { $return = "

Cannot connect to $remote_server
errno::$errno
errstr::$errstr"; } -------------- next part -------------- An HTML attachment was scrubbed... URL: From sol2ray at yahoo.fr Mon Jul 12 12:27:08 2004 From: sol2ray at yahoo.fr (Sol) Date: Mon, 12 Jul 2004 09:27:08 -0700 (PDT) Subject: [nycphp-talk] DB resultset In-Reply-To: <41EE526EC2D3C74286415780D3BA9F870306C4E8@ehost011-1.exch011.intermedia.net> Message-ID: <20040712162708.81495.qmail@web50203.mail.yahoo.com> --- Hans Zaunere wrote: > There lies the issue - the resultset isn't stored by > the database. What > you really want is a cursor. However, I assume > we're talking about > MySQL, in which case there are no cursors (they're > coming in MySQL 5.0). But what's wrong with using "mysql_data_seek()" ===== Sol Tour? PHPBTREE http://phpbtree.com __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail From adam at trachtenberg.com Mon Jul 12 12:39:04 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 12 Jul 2004 12:39:04 -0400 (EDT) Subject: [nycphp-talk] making a manual http POST using a PHP client (USPS web services) In-Reply-To: <1089648849.11643.9.camel@brian.vermonster.com> References: <40F2ACC9.6070002@ceruleansky.com> <1089648849.11643.9.camel@brian.vermonster.com> Message-ID: On Mon, 12 Jul 2004, Brian Kaney wrote: > BTW: If you don't like the CURL library, I think you could try compiling > PHP with OpenSSL (so you can go over https) and use the fopen() function > (http://us4.php.net/function.fopen) or PEAR::HTTP module > (http://pear.php.net/manual/en/package.http.php). Yes, you can definitely also go with streams here in both PHP 4.3 and PHP 5. PHP 5, in particular, has http_build_query(), which simplifies the task of constructing and urlencoding the query string. Then you can use file_get_contents() to suck the whole file in a single gulp. Shameless plug: there an example of this in "Upgrading to PHP 5," available from Amazon and finer bookstores later this month. (It should be out in time for OSCON.) -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From jayeshsh at ceruleansky.com Mon Jul 12 12:47:48 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Mon, 12 Jul 2004 12:47:48 -0400 Subject: [nycphp-talk] making a manual http POST using a PHP client (USPS web services) Message-ID: <40F2C0B4.4090701@ceruleansky.com> Hello all, Thanks for all of your replies and help. Before I read your replies, I tried to send this message (at first with code sample attachments). Thanks very much to drydell for porting the code snippet I posted from Perl to PHP and for the others who recommended Curl and the other open source Fedex code. I have now made available all the relevant code that I found (and other bits posted to this list) at my website ( http://www.ceruleansky.com/code/usps_php/ ) . I can also make a sourceforge project with the new code I come up with, since this seems to be of interest to others. Here is an edited copy of the email I wanted to send: I think I just found some sample PHP code which works with the USPS's web services interface. It is part of the OsCommerce ( www.oscommerce.com ) shipping module. I thought I would share this code with all of you, since it might be useful to others. It calls a different remote (USPS) function to do determine shipping costs for a package of a certain weight; thus, it does something different than what I wanted to do (look up the zip code for an address) - but still, the methodology of making the XML request and receiving the XML response is the same. The method from OsCommerce (along with other relevant code) is available for others' reference (it can be found in root/catalog/includes/modules/shipping/usps.php) at: http://www.ceruleansky.com/code/usps_php/ Here is (part of) the answer to my earlier question, though (it is a snippet from the usps module of osCommerce): ------ $http = new httpClient(); if ($http->Connect($usps_server, 80)) { $http->addHeader('Host', $usps_server); $http->addHeader('User-Agent', 'osCommerce'); $http->addHeader('Connection', 'Close'); if ($http->Get('/' . $api_dll . '?' . $request)) $body = $http->getBody(); $http->Disconnect(); } else { return false; } ----- (Oddly enough, the code above seems to be making a GET request). The httpClient object is something unique to to osCommerce, and is found in root/catalog/includes/classes/httpclient.php. Other options to do the same thing are the PEAR library at http://pear.php.net/package/HTTP_Client , or something like Simon Willison's httpClient() library found at: http://scripts.incutio.com/httpclient/index.php If the PHP code that I come up with to look up zip codes from an address (using USPS web services) is of interest to others, I could make a project for it at sourceforge.net. Best Regards, - Jay From adam at trachtenberg.com Mon Jul 12 12:48:31 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 12 Jul 2004 12:48:31 -0400 (EDT) Subject: [nycphp-talk] making a manual http POST using a PHP client (USPS webservices) In-Reply-To: <41EE526EC2D3C74286415780D3BA9F870306C511@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F870306C511@ehost011-1.exch011.intermedia.net> Message-ID: On Mon, 12 Jul 2004, Hans Zaunere wrote: > Pseudo code (meaning it probably won't work exactly, but it's a start); > > $fp = fsockopen('webserver.usps.com',80); > > $buffer = "POST /ShippingAPI.dll\r\n" > .= "Content-Type: application/x-www-form-urlencoded\r\n" > .= "X-Other-Headers: blah blah\r\n\r\n" > .= "API=Rate&XML=somethingelse\r\n"; > > fwrite($fp,$buffer); Barf. > Aside from CURL, as previously mentioned, there are no native functions > to do this. Then again, in Perl, there aren't either (it's CPAN). Actually, this is false. Check out my last message about streams. You need to use a stream context to override the default method from GET to POST and to set the body, but it'll work. It's just not well documented. Here's a code snippet from "Upgrading to PHP 5" > $post_variables = array('API' => Rate', 'XML' => 'somethingelse'); > $content = http_build_query($post_variables); > $options = array( > 'http'=>array( > 'method' => 'POST', > 'header' => "Content-type: application/x-www-form-urlencoded\r\n" . 'content' => $content > ) > ); > $context = stream_context_create($options); > $index = file_get_contents('http://www.example.com/index.php', > false, $context); This should make a POST request for you and it's a little nicer than having to do all that fsockopen stuff because you don't need to handle all the details of negotiating the connection. It'll also work with https requests if you're installed OpenSSL. -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! >From hans not junk at nyphp.com Mon Jul 12 13:54:47 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id D9BA8A85EA for ; Mon, 12 Jul 2004 13:54:46 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Mon, 12 Jul 2004 10:46:11 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] DB resultset Date: Mon, 12 Jul 2004 10:54:42 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870306C673 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] DB resultset Thread-Index: AcRoLRfXnk3SOrGZSVSHfC0fOZ6cjQACwAEg From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 12 Jul 2004 17:46:11.0118 (UTC) FILETIME=[1E6DB4E0:01C46838] 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, 12 Jul 2004 17:54:47 -0000 > > There lies the issue - the resultset isn't stored by > > the database. What > > you really want is a cursor. However, I assume > > we're talking about > > MySQL, in which case there are no cursors (they're > > coming in MySQL 5.0). >=20 > But what's wrong with using "mysql_data_seek()" Nothing, but it isn't a true cursor. A database cursor (at least in common terms) is where the result set is stored on the server and client side API calls can operate on it completely - generally known as scrollable cursors. mysql_data_seek() works on the results after they've been stored on the client side as a result of using mysql_query(). mysql_unbuffered_query() approaches cursors, but isn't really a cursor, and doesn't provide much of the niceness of cursors (scrolling, multiple results, lower network usage, etc). Thus, in the documentation, it says mysql_data_seek(), among other functions, can't be used after an unbuffered query (because nothing is stored on the client side initially). H >From hans not junk at nyphp.com Mon Jul 12 14:09:36 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 593D4A85EA for ; Mon, 12 Jul 2004 14:09:36 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Mon, 12 Jul 2004 11:01:01 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] making a manual http POST using a PHP client (USPSwebservices) Date: Mon, 12 Jul 2004 11:09:35 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870306C69C at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] making a manual http POST using a PHP client (USPSwebservices) Thread-Index: AcRoMBQi1I9f25R1SpiLGTAsFLJvQAACTycg From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 12 Jul 2004 18:01:01.0759 (UTC) FILETIME=[314ABCF0:01C4683A] 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, 12 Jul 2004 18:09:36 -0000 > > Pseudo code (meaning it probably won't work exactly, but it's a start); > > > > $fp =3D fsockopen('webserver.usps.com',80); > > > > $buffer =3D "POST /ShippingAPI.dll\r\n" > > .=3D "Content-Type: application/x-www-form-urlencoded\r\n" > > .=3D "X-Other-Headers: blah blah\r\n\r\n" > > .=3D "API=3DRate&XML=3Dsomethingelse\r\n"; > > > > fwrite($fp,$buffer); >=20 > Barf. I know, I know... > > Aside from CURL, as previously mentioned, there are no native functions > > to do this. Then again, in Perl, there aren't either (it's CPAN). >=20 > Actually, this is false. Check out my last message about streams. You > need to use a stream context to override the default method from GET > to POST and to set the body, but it'll work. Depends on what version of PHP... in PHP 4, which is the version I'm sure he's using, it's correct. > It's just not well documented. Here's a code snippet from "Upgrading > to PHP 5" >=20 > > $post_variables =3D array('API' =3D> Rate', 'XML' =3D> = 'somethingelse'); > > $content =3D http_build_query($post_variables); > > $options =3D array( > > 'http'=3D>array( > > 'method' =3D> 'POST', > > 'header' =3D> "Content-type: application/x-www-form-urlencoded\r\n" . > 'content' =3D> $content > > ) > > ); > > $context =3D stream_context_create($options); > > $index =3D file_get_contents('http://www.example.com/index.php', > > false, $context); >=20 > This should make a POST request for you and it's a little nicer than > having to do all that fsockopen stuff because you don't need to handle > all the details of negotiating the connection. It'll also work with > https requests if you're installed OpenSSL. Yeah, but sockets are cool. And yes, streams are very cool, but unless I'm writing in PHP 5, I wouldn't make extensive use of them in my code. Especially since file_get_contents() doesn't support contexts until 5, per the above example. H From sol2ray at yahoo.fr Mon Jul 12 14:27:12 2004 From: sol2ray at yahoo.fr (Sol) Date: Mon, 12 Jul 2004 11:27:12 -0700 (PDT) Subject: [nycphp-talk] DB resultset In-Reply-To: <41EE526EC2D3C74286415780D3BA9F870306C673@ehost011-1.exch011.intermedia.net> Message-ID: <20040712182712.19389.qmail@web50204.mail.yahoo.com> --- Hans Zaunere wrote: > > > > There lies the issue - the resultset isn't > stored by > > > the database. What > > > you really want is a cursor. However, I assume > > > we're talking about > > > MySQL, in which case there are no cursors > (they're > > > coming in MySQL 5.0). > > > > But what's wrong with using "mysql_data_seek()" > > Nothing, but it isn't a true cursor. > > A database cursor (at least in common terms) is > where the result set is > stored on the server and client side API calls can > operate on it > completely - generally known as scrollable cursors. > mysql_data_seek() > works on the results after they've been stored on > the client side as a > result of using mysql_query(). Ok, since it is stored on the client and using mysql_data_seek I can scroll through it back and forth, isn't it better to just keep it where it is and work with it? ===== Sol Tour? PHPBTREE http://phpbtree.com __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail From yury at heavenspa.com Mon Jul 12 14:48:21 2004 From: yury at heavenspa.com (Yury Rush) Date: Mon, 12 Jul 2004 14:48:21 -0400 Subject: [nycphp-talk] Images//Pages Message-ID: Hi folks. Here is the situation, I have 20 folders, each folder has 10 various images in it. I'd like to build a web page and directories for each image like so: /people/john.php ( containing johns picture and some php/html design includes ) is there a simple/fast way to do this? ultimately I'd like to have a compelte page built, with <keyword> and some other helpful tags. One thing to keep in mind, I cannot use a mySQL db in this case.. has to be some type of php scripting without DB use. any tutorials? or code snippets avail? tia yury From danielc at analysisandsolutions.com Mon Jul 12 15:52:19 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Mon, 12 Jul 2004 15:52:19 -0400 Subject: [nycphp-talk] Images//Pages In-Reply-To: <ECEKLPHECCLGFGAFEPEJGEDBCFAA.yury@heavenspa.com> References: <ECEKLPHECCLGFGAFEPEJGEDBCFAA.yury@heavenspa.com> Message-ID: <20040712195219.GA3753@panix.com> On Mon, Jul 12, 2004 at 02:48:21PM -0400, Yury Rush wrote: > > Here is the situation, I have 20 folders, each folder has 10 various images > in it. I'd like to build > a web page and directories for each image like so: $DirHandle=opendir('.'); while ($FileName = readdir($DirHandle)) { // if file extension is .jpg, display an <img /> with it } > One thing to keep in mind, I cannot use a mySQL db in this case. How about SQLite? --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 Mon Jul 12 16:12:26 2004 From: yury at heavenspa.com (Yury Rush) Date: Mon, 12 Jul 2004 16:12:26 -0400 Subject: [nycphp-talk] Images//Pages In-Reply-To: <20040712195219.GA3753@panix.com> Message-ID: <ECEKLPHECCLGFGAFEPEJEEDKCFAA.yury@heavenspa.com> Dan, My limited php/mySQl is why i'd prefer not to use it, not due to its availability.. Also wanting to have search engine friendly pages.. regards yury -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Daniel Convissor Sent: Monday, July 12, 2004 2:52 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Images//Pages On Mon, Jul 12, 2004 at 02:48:21PM -0400, Yury Rush wrote: > > Here is the situation, I have 20 folders, each folder has 10 various images > in it. I'd like to build > a web page and directories for each image like so: $DirHandle=opendir('.'); while ($FileName = readdir($DirHandle)) { // if file extension is .jpg, display an <img /> with it } > One thing to keep in mind, I cannot use a mySQL db in this case. How about SQLite? --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 adam at trachtenberg.com Mon Jul 12 16:18:09 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 12 Jul 2004 16:18:09 -0400 (EDT) Subject: [nycphp-talk] Images//Pages In-Reply-To: <20040712195219.GA3753@panix.com> References: <ECEKLPHECCLGFGAFEPEJGEDBCFAA.yury@heavenspa.com> <20040712195219.GA3753@panix.com> Message-ID: <Pine.LNX.4.58.0407121615010.11356@miranda.org> On Mon, 12 Jul 2004, Daniel Convissor wrote: > $DirHandle=opendir('.'); > while ($FileName = readdir($DirHandle)) { > // if file extension is .jpg, display an <img /> with it > } The anal side to my personality requires me to mention that this code will fail if your directory contains a file named "0" (zero). (Hey! It's a valid filename.) A more robust check is: while (($FileName = readdir($DirHandle) !== false)) { Alternatively, if you're using PHP 5, check out the DirectoryIterator class from SPL. -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From adam at trachtenberg.com Mon Jul 12 16:19:55 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 12 Jul 2004 16:19:55 -0400 (EDT) Subject: [nycphp-talk] making a manual http POST using a PHP client (USPSwebservices) In-Reply-To: <41EE526EC2D3C74286415780D3BA9F870306C69C@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F870306C69C@ehost011-1.exch011.intermedia.net> Message-ID: <Pine.LNX.4.58.0407121618150.11356@miranda.org> On Mon, 12 Jul 2004, Hans Zaunere wrote: > Yeah, but sockets are cool. And yes, streams are very cool, but unless > I'm writing in PHP 5, I wouldn't make extensive use of them in my code. > Especially since file_get_contents() doesn't support contexts until 5, > per the above example. You're right. You can probably do most of it inside 4.3.x, but you may need to fopen() and fread() the data. -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From Cbielanski at inta.org Mon Jul 12 16:27:22 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Mon, 12 Jul 2004 16:27:22 -0400 Subject: [nycphp-talk] making a manual http POST using a PHP client (US PSwebservices) Message-ID: <C0CDB9F5E81C234FBB42D84E7853125D013B0A4D@intamail1.inta> This begs the question "Does file_get_contents in PHP 4.3.x have an upper limit to the size of the return data?" IE, if you do: $string = file_get_contents("https://www.someserver.com/path/page.php?query=str"); will "str_len($string)" max out at some multiple of 4096? ..don't forget I'm talking PHP 4.3.x 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: Adam Maccabee Trachtenberg [mailto:adam at trachtenberg.com] > Sent: Monday, July 12, 2004 4:20 PM > To: NYPHP Talk > Subject: RE: [nycphp-talk] making a manual http POST using a PHP client > (USPSwebservices) > > > On Mon, 12 Jul 2004, Hans Zaunere wrote: > > > Yeah, but sockets are cool. And yes, streams are very > cool, but unless > > I'm writing in PHP 5, I wouldn't make extensive use of them > in my code. > > Especially since file_get_contents() doesn't support > contexts until 5, > > per the above example. > > You're right. You can probably do most of it inside 4.3.x, but you may > need to fopen() and fread() the data. > > -adam > > -- > adam at trachtenberg.com > author of o'reilly's "upgrading to php 5" and "php cookbook" > avoid the holiday rush, buy your copies today! > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From adam at trachtenberg.com Mon Jul 12 16:27:06 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 12 Jul 2004 16:27:06 -0400 (EDT) Subject: [nycphp-talk] making a manual http POST using a PHP client (US PSwebservices) In-Reply-To: <C0CDB9F5E81C234FBB42D84E7853125D013B0A4D@intamail1.inta> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A4D@intamail1.inta> Message-ID: <Pine.LNX.4.58.0407121625200.11356@miranda.org> On Mon, 12 Jul 2004, Chris Bielanski wrote: > This begs the question "Does file_get_contents in PHP 4.3.x have an upper > limit to the size of the return data?" IE, if you do: > > $string = > file_get_contents("https://www.someserver.com/path/page.php?query=str"); > > will "str_len($string)" max out at some multiple of 4096? > > ..don't forget I'm talking PHP 4.3.x AFAIK, there's no limit to file_get_contents() beyond the usual limits for strings in PHP. However, that doesn't mean I'd use it to request a 100 Mb file because it needs to store the whole string in memory. -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From tom at supertom.com Mon Jul 12 17:20:43 2004 From: tom at supertom.com (Tom) Date: Mon, 12 Jul 2004 17:20:43 -0400 Subject: [nycphp-talk] custom controls to represent DB relationships In-Reply-To: <C0CDB9F5E81C234FBB42D84E7853125D013B0A4D@intamail1.inta> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A4D@intamail1.inta> Message-ID: <1089667242.4909.6.camel@tmelendez.int.bascom.com> Hey folks, I'm looking for examples of "more advanced" page controls that people have developed to represent one to many and/or many to many DB relationships on a web page, using PHP, JS and CSS. The purpose of these controls is to allow uses to execute "mass" actions on data, such as deleting a group of records at once, or reassigning several records to a different category. Any thoughts, suggestions and examples would be greatly appreciated! Thanks, Tom www.liphp.org From brian at vermonster.com Mon Jul 12 17:53:26 2004 From: brian at vermonster.com (Brian Kaney) Date: Mon, 12 Jul 2004 17:53:26 -0400 Subject: [nycphp-talk] PHP5 SOAP Extension with Attachments Message-ID: <1089669206.11643.59.camel@brian.vermonster.com> Wondering if anyone has used the SOAP extensions found in PHP5 or the PEAR libraries to work with multipart SOAP messages (http://www.w3.org/TR/SOAP-attachments)? We are seeing if there are suitable PHP libraries or if we should go with perl (i.e. SOAP::Lite). Thanks for any advice! - Brian From adam at trachtenberg.com Mon Jul 12 18:02:06 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 12 Jul 2004 18:02:06 -0400 (EDT) Subject: [nycphp-talk] PHP5 SOAP Extension with Attachments In-Reply-To: <1089669206.11643.59.camel@brian.vermonster.com> References: <1089669206.11643.59.camel@brian.vermonster.com> Message-ID: <Pine.LNX.4.58.0407121757060.4293@miranda.org> On Mon, 12 Jul 2004, Brian Kaney wrote: > Wondering if anyone has used the SOAP extensions found in PHP5 or the > PEAR libraries to work with multipart SOAP messages > (http://www.w3.org/TR/SOAP-attachments)? IIRC, the PHP 5 version of PEAR SOAP supports attachments. Unfortunately, my copy of "Essential PHP Tools" by David Sklar is packed in 1 of 20 book boxes that have just arrived at my SF apartment. It's by far the best documentation of the PEAR SOAP extension I've ever seen. (Even if it is a little overwhelming, it covers more topics than any place else.) I don't know about ext/soap, but I'd be interested in finding out. I am trying to get the eBay WSDL to work with ext/soap, but I'm having problems. -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! >From hans not junk at nyphp.com Mon Jul 12 18:16:04 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 71A41A85EA for <talk at lists.nyphp.org>; Mon, 12 Jul 2004 18:16:04 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Mon, 12 Jul 2004 15:07:29 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] PHP5 SOAP Extension with Attachments Date: Mon, 12 Jul 2004 15:16:01 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870306C9E3 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] PHP5 SOAP Extension with Attachments Thread-Index: AcRoWpOsLGEQ0eFSSRKCw7evy2VocwAAmuaw From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 12 Jul 2004 22:07:29.0216 (UTC) FILETIME=[9F4D9C00:01C4685C] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Mon, 12 Jul 2004 22:16:04 -0000 > Wondering if anyone has used the SOAP extensions found in PHP5 or the > PEAR libraries to work with multipart SOAP messages > (http://www.w3.org/TR/SOAP-attachments)? >=20 > We are seeing if there are suitable PHP libraries or if we should go > with perl (i.e. SOAP::Lite). In our March presentation (http://nyphp.org/content/presentations/ and http://nyphp.org/content/presentations/paxi/) we talked just about this topic. At the end of the day, we decided not to go with PEAR for a couple of key reasons: -- speed; the overhead of PEAR coupled with the large amounts of data we needed to frequently deal with, was prohibitive. We got slammed with quite a bit of traffic. -- at the time, nothing supported *receiving* attachments (this could have change since we did the project in Jan). PEAR could create a SOAP request with attachments, but couldn't parse it out. In the end, we used pMIME which I had written for general MIME parsing, which is all SOAP is. H From sm11szw02 at sneakemail.com Mon Jul 12 19:33:57 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Mon, 12 Jul 2004 19:33:57 -0400 Subject: [nycphp-talk] PHP5 SOAP Extension with Attachments In-Reply-To: <41EE526EC2D3C74286415780D3BA9F870306C9E3@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F870306C9E3@ehost011-1.exch011.intermedia.net> Message-ID: <27738-54400@sneakemail.com> Hans Zaunere hans-at-nyphp.com |nyphp 04/2004| wrote: >>Wondering if anyone has used the SOAP extensions found in PHP5 or the >>PEAR libraries to work with multipart SOAP messages >>(http://www.w3.org/TR/SOAP-attachments)? >> >>We are seeing if there are suitable PHP libraries or if we should go >>with perl (i.e. SOAP::Lite). >> >> > >In our March presentation (http://nyphp.org/content/presentations/ and >http://nyphp.org/content/presentations/paxi/) we talked just about this >topic. > >At the end of the day, we decided not to go with PEAR for a couple of >key reasons: > >-- speed; the overhead of PEAR coupled with the large amounts of data we >needed to frequently deal with, was prohibitive. We got slammed with >quite a bit of traffic. > >-- at the time, nothing supported *receiving* attachments (this could >have change since we did the project in Jan). PEAR could create a SOAP >request with attachments, but couldn't parse it out. > >In the end, we used pMIME which I had written for general MIME parsing, >which is all SOAP is. > >H >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > maybe, but the name SOAP (rhymes with NOPE) is far more brandable than "pee myme" ;-) From tgales at tgaconnect.com Mon Jul 12 20:12:37 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Mon, 12 Jul 2004 20:12:37 -0400 Subject: [nycphp-talk] Images//Pages In-Reply-To: <ECEKLPHECCLGFGAFEPEJGEDBCFAA.yury@heavenspa.com> Message-ID: <001001c4686e$1b1ea160$e98d3818@oberon1> Yury Rush writes: ... I have 20 folders, each folder has 10 > various images in it. I'd like to build a web page and > directories for each image like so: > > /people/john.php ( containing johns picture and some > php/html design includes ) > > is there a simple/fast way to do this? > have a look at scandir (PHP 5 only) http://www.php.net/manual/en/function.scandir.php and then http://pear.php.net/package/PHP_Compat/docs/1.1.0/PHP_Compat/_PHP_Compat-1 .1.0_Compat_Function_scandir_php.html T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From jcrawford at codebowl.com Mon Jul 12 20:49:13 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Mon, 12 Jul 2004 20:49:13 -0400 Subject: [nycphp-talk] Images//Pages In-Reply-To: <001001c4686e$1b1ea160$e98d3818@oberon1> References: <001001c4686e$1b1ea160$e98d3818@oberon1> Message-ID: <1089679753.20919.0.camel@vt-fairhaven1b-210.bur.adelphia.net> have a look at the scandir function but look for Example 2. PHP 4 alternatives to scandir that will let you do the same thing in php 4 Joe Crawford Jr. On Mon, 2004-07-12 at 20:12, Tim Gales wrote: > Yury Rush writes: > > ... I have 20 folders, each folder has 10 > > various images in it. I'd like to build a web page and > > directories for each image like so: > > > > /people/john.php ( containing johns picture and some > > php/html design includes ) > > > > is there a simple/fast way to do this? > > > > have a look at scandir (PHP 5 only) > http://www.php.net/manual/en/function.scandir.php > > and then > > http://pear.php.net/package/PHP_Compat/docs/1.1.0/PHP_Compat/_PHP_Compat-1 > .1.0_Compat_Function_scandir_php.html > > 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 danielc at analysisandsolutions.com Tue Jul 13 00:42:24 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Tue, 13 Jul 2004 00:42:24 -0400 Subject: [nycphp-talk] security focus 255 and 256 Message-ID: <20040713044224.GA13617@panix.com> SecurityFocus Newsletter #255 ----------------------------- ArbitroWeb PHP Proxy Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/10592 PHP-Nuke Multiple Vulnerabilities http://www.securityfocus.com/bid/10595 php-exec-dir Patch Command Access Restriction Bypass Vulnera... http://www.securityfocus.com/bid/10598 VBulletin Multiple Module HTML Injection Vulnerability http://www.securityfocus.com/bid/10602 SecurityFocus Newsletter #256 ----------------------------- vBulletin newreply.php Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/10612 PHPMyFamily Authentication Bypass Vulnerability http://www.securityfocus.com/bid/10616 CuteNews Multiple Cross-site Scripting Vulnerabilities http://www.securityfocus.com/bid/10620 PowerPortal Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/10622 phpMyAdmin Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/10629 -- 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 csnyder at chxo.com Tue Jul 13 01:04:48 2004 From: csnyder at chxo.com (Chris Snyder) Date: Tue, 13 Jul 2004 01:04:48 -0400 Subject: [nycphp-talk] making a manual http POST using a PHP client (USPS web services) In-Reply-To: <Pine.LNX.4.58.0407121221140.28991@miranda.org> References: <40F2ACC9.6070002@ceruleansky.com> <1089648849.11643.9.camel@brian.vermonster.com> <Pine.LNX.4.58.0407121221140.28991@miranda.org> Message-ID: <40F36D70.6050607@chxo.com> Adam Maccabee Trachtenberg wrote: >PHP 5, in particular, has http_build_query() > > You mean http://us2.php.net/manual/en/function.http-build-query.php >Shameless plug: there an example of this in "Upgrading to PHP 5," >available from Amazon and finer bookstores later this month. (It >should be out in time for OSCON.) > > (rolls eyes) You forgot the trademarks. From adam at trachtenberg.com Tue Jul 13 01:13:01 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Tue, 13 Jul 2004 01:13:01 -0400 (EDT) Subject: [nycphp-talk] making a manual http POST using a PHP client (USPS web services) In-Reply-To: <40F36D70.6050607@chxo.com> References: <40F2ACC9.6070002@ceruleansky.com> <1089648849.11643.9.camel@brian.vermonster.com> <Pine.LNX.4.58.0407121221140.28991@miranda.org> <40F36D70.6050607@chxo.com> Message-ID: <Pine.LNX.4.58.0407130110050.24931@miranda.org> On Tue, 13 Jul 2004, Chris Snyder wrote: > >Shameless plug: there an example of this in "Upgrading to PHP 5," > >available from Amazon and finer bookstores later this month. (It > >should be out in time for OSCON.) > > > (rolls eyes) You forgot the trademarks. It's tough to do a trademark symbol when you're only using ASCII. :) Besides, I did preface the paragraph with "shameless plug" and I ended up posting the code in my next message. -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From csnyder at chxo.com Tue Jul 13 01:30:10 2004 From: csnyder at chxo.com (Chris Snyder) Date: Tue, 13 Jul 2004 01:30:10 -0400 Subject: [nycphp-talk] making a manual http POST using a PHP client (USPSwebservices) In-Reply-To: <41EE526EC2D3C74286415780D3BA9F870306C69C@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F870306C69C@ehost011-1.exch011.intermedia.net> Message-ID: <40F37362.3000205@chxo.com> Hans Zaunere wrote: > Yeah, but sockets are cool. And yes, streams are very cool, but unless > I'm writing in PHP 5, I wouldn't make extensive use of them in my code. But... sockets *are* streams. ?!? I use fsockopen because you can set timeouts, both for the initial connect and for data on the wire. file_get_contents() is great until the other guy's site goes down. >From hans not junk at nyphp.com Tue Jul 13 10:35:52 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id A97EBA86BF for <talk at lists.nyphp.org>; Tue, 13 Jul 2004 10:35:52 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Tue, 13 Jul 2004 07:27:16 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] making a manual http POST using a PHPclient (USPSwebservices) Date: Tue, 13 Jul 2004 07:35:48 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870306CC93 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] making a manual http POST using a PHPclient (USPSwebservices) Thread-Index: AcRomm3AiN48Kx8hT1uos3wBvPnY7QASd1SQ From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 13 Jul 2004 14:27:16.0180 (UTC) FILETIME=[7F107140:01C468E5] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Tue, 13 Jul 2004 14:35:53 -0000 > > Yeah, but sockets are cool. And yes, streams are very cool, but unless > > I'm writing in PHP 5, I wouldn't make extensive use of them in my code. >=20 >=20 > But... sockets *are* streams. ?!? Right... and a "tomato" is the same as a "tomatoe"... That's a question that can be answered 100 different ways depending on who you ask: BSD vs ATT vs Windows vs TCP vs UDP vs PHP vs C vs Kernel land vs User land.... they are some overused terms to put it frankly. Anyway, in PHP they are quite similar. What "streams" are now in late PHP 4 and PHP 5, was a rewrite/extension of the original socket/stream niceness of earlier PHP versions. So what does this really mean? Today's streams are enhanced sockets... but with a twist. Generally a socket is considered related to network or intra-process connectivity somehow. Streams, in PHP anyway, can also be used for disk-based "communication". So a PHP stream is extremely powerful, and can be used for essentially any type of communication, and in fact, the line between network and disk communication becomes blurred in PHP. Thus, there is a single API that allows almost transparent communication, regardless of whether it's going out on a network wire, or a disk-controller wire. > I use fsockopen because you can set timeouts, both for the initial > connect and for data on the wire. file_get_contents() is great until the > other guy's site goes down. Yes, but this is where PHP streams come in, and especially in PHP 5. In 5, the full power of filters/contexts/wrappers/etc is available, which allows you to control timeouts and so forth in powerful and dynamic new ways. And there's http://php.net/stream_set_timeout which is even available in 4, and the only way to AFAIK in 5 to change the timeout of a "socket". So yeah, sockets and streams are the same :) H >From hans not junk at nyphp.com Tue Jul 13 10:39:21 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id AA25AA86BF for <talk at lists.nyphp.org>; Tue, 13 Jul 2004 10:39:21 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Tue, 13 Jul 2004 07:30:45 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] PHP5 SOAP Extension with Attachments Date: Tue, 13 Jul 2004 07:39:17 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870306CC9B at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] PHP5 SOAP Extension with Attachments Thread-Index: AcRoaLwo5X5AwthzRA2xFxSjH4l/GwAfhrRA From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 13 Jul 2004 14:30:45.0433 (UTC) FILETIME=[FBC9EA90:01C468E5] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Tue, 13 Jul 2004 14:39:22 -0000 > maybe, but the name SOAP (rhymes with NOPE) is far more brandable than > "pee myme" ;-) Yes, pMIME needs a new image :) By the way, if anyone wants the code, a practically perfect copy is at: http://cvs.nyphp.org/cvsweb.cgi/pmail/ I say practically because I never finished the parseField() method H >From hans not junk at nyphp.com Tue Jul 13 10:54:55 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id EA7A6A86BF for <talk at lists.nyphp.org>; Tue, 13 Jul 2004 10:54:54 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Tue, 13 Jul 2004 07:46:18 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] SDK/IDE - Lightbulb Date: Tue, 13 Jul 2004 07:54:49 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870306CCB4 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] SDK/IDE - Lightbulb Thread-Index: AcRmBipXSamRHz8hSPSqta07mSTafQC4Xy6w From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 13 Jul 2004 14:46:18.0637 (UTC) FILETIME=[28058BD0:01C468E8] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Tue, 13 Jul 2004 14:54:55 -0000 > I'm not sure if I remembered to send this to the list, but this is from > chromatic at O'Reilly. >=20 > --- chromatic <chromatic at oreilly.com> wrote: > > Hi Chris, > > > > Know anyone in the PHP community who might be interested? > > > > Best, > > -- c > > > > -----Forwarded Message----- > > > > Ok; as a caveat, I'm a biz-dev guy and we're bootstrapping our young > > company... On June 30th, New York PHP announced (http://lists.nyphp.org/pipermail/announce/2004-June/000106.html) that the NYPHP Charter had been revised to prevent the use of the NYPHP mailing lists "to promote any commercial activities unless that posting has received prior board approval." Although we're all supportive of PHP's growth, success and adoption, we want to be sure NYPHP-Talk isn't subjected to unsolicited commercial mailings, and in keeping with its history of high technical content and community support. This message has been reviewed and determined that it violates that prohibition. Since, however, this is the first violation of a new policy which may have been incompletely understood or even overlooked by users of NYPHP-Talk, I am taking this opportunity to simply publicize the policy further. I do urge everyone to review http://nyphp.org/charter and specifically the section "Appropriate Use of Mailing Lists". The proper way to handle posting this information would have been to use the form at http://nyphp.org/contact.php to ask the Board whether the posting would be permitted. Please follow this procedure whenever you are contemplating submitting a post with this kind of commercial slant. Thank you everyone. --- Hans Zaunere President New York PHP http://nyphp.org > > we've developed some very interesting technology; PHP > > Architect Magazine ran their second story/review on us in their April > > '04 issue. > > > > We're trying to get the word out about our unique SDK/IDE called > > "Lightbulb", and would greatly appreciate any suggestions you might > > have as to working with the groups that you do, or with publishers so > > that we might compete for awards and have our solutions reviewed. > > Here's a link, and I'll be happy to put you in touch with our engineers > > if you'd like to take a look. From sol2ray at yahoo.fr Tue Jul 13 14:33:27 2004 From: sol2ray at yahoo.fr (Sol) Date: Tue, 13 Jul 2004 11:33:27 -0700 (PDT) Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <20040706164138.60307.qmail@web52810.mail.yahoo.com> Message-ID: <20040713183327.48934.qmail@web50202.mail.yahoo.com> > Really? I assumed that it would be fine, since > that's just static content. > I set up a "cool cache" for all of my blog archives > using an error > handler, so the static file is only be generated the > first time. > > Of course, I'm on a cheap shared host, but how hard > is it to serve static > content? :-) > >From Chris' website: "I think PHP scales well because Apache scales well because the Web scales well. PHP doesn't try to reinvent the wheel; it simply tries to fit into the existing paradigm, and this is the beauty of it." ----------------- Sorry for bringing this back but I still don't understand this "SCALABILITY" thing. The more I read you guyz, the more I get confused about the whole thing. Can someone give me a more "IDIOT PROOF" explanation? __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail From george at omniti.com Tue Jul 13 14:41:15 2004 From: george at omniti.com (George Schlossnagle) Date: Tue, 13 Jul 2004 14:41:15 -0400 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <20040713183327.48934.qmail@web50202.mail.yahoo.com> References: <20040713183327.48934.qmail@web50202.mail.yahoo.com> Message-ID: <38CFBC46-D4FC-11D8-9E11-000D93359332@omniti.com> On Jul 13, 2004, at 2:33 PM, Sol wrote: > Sorry for bringing this back but I still don't > understand this "SCALABILITY" thing. The more I read > you guyz, the more I get confused about the whole > thing. What don't you get about it precisely? Chris' statement had a bunch of fluff to it, but his basic argument (or at least my paraphrase of it) is that stateless applications have infinite horizontal scalability since they persist no data from request to request. Of course this ignores the point that you often have to persist data from request to request, which is why I find that general argument to be a bit fluffy. Many (most?) applications need both some intra-session inter-request data persistence as well as inter-session data persistance. Simply saying 'its someone else's reponsibility' (mysql or whatever) is a cop-out, because you still need your whole application to run. It's like saying that my car can do 400 mph, it just needs the right engine. George From sol2ray at yahoo.fr Tue Jul 13 14:50:56 2004 From: sol2ray at yahoo.fr (Sol) Date: Tue, 13 Jul 2004 11:50:56 -0700 (PDT) Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <38CFBC46-D4FC-11D8-9E11-000D93359332@omniti.com> Message-ID: <20040713185056.87395.qmail@web50208.mail.yahoo.com> --- Simply saying 'its someone else's > reponsibility' > (mysql or whatever) is a cop-out, because you still > need your whole > application to run. It's like saying that my car > can do 400 mph, it > just needs the right engine. I don't thing it's someone else's responsibility. I should be able to change my engine without changing my car. ===== Sol Tour? PHPBTREE http://phpbtree.com __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail From george at omniti.com Tue Jul 13 14:53:48 2004 From: george at omniti.com (George Schlossnagle) Date: Tue, 13 Jul 2004 14:53:48 -0400 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <20040713185056.87395.qmail@web50208.mail.yahoo.com> References: <20040713185056.87395.qmail@web50208.mail.yahoo.com> Message-ID: <F953186A-D4FD-11D8-9E11-000D93359332@omniti.com> On Jul 13, 2004, at 2:50 PM, Sol wrote: > --- Simply saying 'its someone else's >> reponsibility' >> (mysql or whatever) is a cop-out, because you still >> need your whole >> application to run. It's like saying that my car >> can do 400 mph, it >> just needs the right engine. > > > I don't thing it's someone else's responsibility. > I should be able to change my engine without changing > my car. The modularity of the system is completely orthogonal to the point. George From jlacey at att.net Tue Jul 13 15:05:49 2004 From: jlacey at att.net (John Lacey) Date: Tue, 13 Jul 2004 13:05:49 -0600 Subject: [nycphp-talk] PHP-related book comments Message-ID: <40F4328D.4010600@att.net> In preparation to writing two security courses -- a security survey and a security tools course, the usual suspects of the latest reference books were purchased, as well as knoppix STD. btw, my area of expertise has primarily been in LAN/WAN networking, TCP/IP and routing protocols, and forensics. One book that I hadn't seen before is "Exploiting Software: How to Break Code" by Greg Hoglund and Gary McGraw. Overall, it's not a bad book for the most part. It was published Feb. 2004. One small section that I took issue with and am about to write the authors about is their characterization of PHP. I quote: from page 190: "In many cases, software may come preset with various parameters set by default. In many cases, the default values are set with no regard for security..." The authors go on to mention PHP global variables and characterizes PHP as "In seriously broken languages like PHP, a number of default configurations are poorly set." First, the authors apparently don't know anything about PHP 4.2.0 which, I believe, was released over 2 years ago. Ironically, their next paragraph begins with "In the interest of convenience (laziness?), some programmers..." Seems the authors were too lazy to check their facts. It makes me wonder if they've even bothered to research their subject to find a file called php.ini-recommended. Further down the page is this paragraph: "PHP is a study in bad security." I believe that if the authors had said something like "phpBB is a study in bad security" they might have stated the problem correctly. So, before I send an email to these guys, is there anything else I should point out? John From mitchy at spacemonkeylabs.com Tue Jul 13 15:21:30 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Tue, 13 Jul 2004 15:21:30 -0400 Subject: [nycphp-talk] PHP-related book comments In-Reply-To: <40F4328D.4010600@att.net> References: <40F4328D.4010600@att.net> Message-ID: <40F4363A.3070602@spacemonkeylabs.com> John Lacey wrote: > First, the authors apparently don't know anything about PHP 4.2.0 > which, I believe, was released over 2 years ago. Ironically, their > next paragraph begins with "In the interest of convenience > (laziness?), some programmers..." > Seems the authors were too lazy to check their facts. It makes me > wonder if they've even bothered to research their subject to find a > file called php.ini-recommended. They seem to be aware that the problem is not inherent to the language, but with lazy programmers. How unfortunate that they then single out PHP as an insecure language, without looking at recent efforts to provide better security. > Further down the page is this paragraph: > "PHP is a study in bad security." I believe that if the authors had > said something like "phpBB is a study in bad security" they might > have stated the problem correctly. That is hitting the proverbial nail right on the head. There are a slew of PHP applications out there that commit grievous crimes regarding security. Unfortunately, the PHP language is being singled out by non-PHP programmers that don't take the time to learn the language. They see the letters 'php' on bugtraq and immediately reach for pitchforks without attempting to get an understanding of what is really going on. > So, before I send an email to these guys, is there anything else I > should point out? I don't know a more secure scripting language than python - but other than that I can write shoddy code in just about any language you want. It is not only a disservice to the people that put so much effort into creating a language and give it away for free, but to anyone who is considering using that language in the future. This sadly sounds like a perl/c programmer's typical and monotonous language-specific troll. -- Mitch, feeling rather rambunctious From sol2ray at yahoo.fr Tue Jul 13 15:23:44 2004 From: sol2ray at yahoo.fr (Sol) Date: Tue, 13 Jul 2004 12:23:44 -0700 (PDT) Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <F953186A-D4FD-11D8-9E11-000D93359332@omniti.com> Message-ID: <20040713192344.95132.qmail@web50208.mail.yahoo.com> > > --- Simply saying 'its someone else's > >> reponsibility' > >> (mysql or whatever) is a cop-out, because you > still > >> need your whole > >> application to run. It's like saying that my car > >> can do 400 mph, it > >> just needs the right engine. > > > > > > I don't thing it's someone else's responsibility. > > I should be able to change my engine without > changing > > my car. > > The modularity of the system is completely > orthogonal to the point. > I thought that's what scalability means. Being able adapt to change. "How well a solution to some problem will work when the size of the problem increases" Sorry I'm trying to get it right. ===== Sol Tour? PHPBTREE http://phpbtree.com __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail From sm11szw02 at sneakemail.com Tue Jul 13 15:38:57 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Tue, 13 Jul 2004 15:38:57 -0400 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <20040713183327.48934.qmail@web50202.mail.yahoo.com> References: <20040713183327.48934.qmail@web50202.mail.yahoo.com> Message-ID: <26710-44927@sneakemail.com> Sol sol2ray-at-yahoo.fr |nyphp 04/2004| wrote: >>Of course, I'm on a cheap shared host, but how hard >>is it to serve static >>content? :-) >> >> >> >>From Chris' website: >"I think PHP scales well because Apache scales well >because the Web scales well. PHP doesn't try to >reinvent the wheel; it simply tries to fit into the >existing paradigm, and this is the beauty of it." >----------------- >Sorry for bringing this back but I still don't >understand this "SCALABILITY" thing. The more I read >you guyz, the more I get confused about the whole >thing. > >Can someone give me a more "IDIOT PROOF" explanation? > > George Wrote: "The modularity of the system is completely orthogonal to the point." Hah hah.. George I think he was asking for simpler... and besides it is not possible to be orthogonal to a point... you need a plane ;-) Anyways by my read Chris was offloading responsibility for his blog not "sclaing well" or (not serving his pages well as the demand increased), because serving the pages is a job of his web host's servers. They obviously weren't configured to "scale well" with respect to Chris' blog, but that is not a function of Chris pages (which he tells are not even PHP - they are prepared static "images" of his pages). So now that we understand Chris' site going down has no relation to his comments about the scalability of PHP. What about those comments? PHP is a scripting engine -- it runs code. If the PHP engine is asked to run alot of code, does it perform about as well as it did when it was asked to run a little code? Herein lies the problem.. is the "quantity" of code a matter of server requests or complexity of script? Hard to say. Perhaps Chris refers to complexity of code, such that code fragments are re-used (functions, modules, objects, libraries, whatever). Does PHP lend itself to neat and efficient organization of those "fragments" such that as programs get complex, they stay organized well enough for the rest of the components (server, Apache, cache, etc) to continue to perform well? What about shared memory, as in variables? As they are shared, does performance continue at similar levels or does the system slow down with increased shared demand? Hard to say if these aspects are of ultimate importance.... but certainly they are all part of the picture, no? So perhaps the argument of "scalability of PHP" is best addressed through empirical examples.... if it is being successfully deployed in scaled applications by happy customers. or perhaps even "evangelically happy(TM)" customers, then can we say it is scalable.. or perhaps we can simply say scalability doesn't seem to be an issue? It is obvious that the BASIC computer language did not scale well. It is obvious that the COBOL computer language did scale well. It is obvious that Windows does not scale well, when compared to Linux. It is obvious that MS Access does not scale well, especialy when compared to any other database on the face of the earth. It seems Chris was driven to comment on the fact that someone who needed an application that could scale well had abandoned one tchnology (based on empirical judgement) and adopted a PHP solution. perhaps highlioghting the adoption and success is the most important thing that can be done to make an argument for the "scalability" of PHP. --=john John F Andrews (insert commercial signature lines here) (Disclaimer: I do not own any M$ stock, nor do I recommend it to my clients). From sm11szw02 at sneakemail.com Tue Jul 13 15:41:51 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Tue, 13 Jul 2004 15:41:51 -0400 Subject: [nycphp-talk] PHP-related book comments In-Reply-To: <40F4363A.3070602@spacemonkeylabs.com> References: <40F4328D.4010600@att.net> <40F4363A.3070602@spacemonkeylabs.com> Message-ID: <26250-43912@sneakemail.com> Mitch Pirtle mitchy-at-spacemonkeylabs.com |nyphp 04/2004| wrote: > John Lacey wrote: > >> So, before I send an email to these guys, is there anything else I >> should point out? > > I don't know a more secure scripting language than python - but other > than that I can write shoddy code in just about any language you > want. It is not only a disservice to the people that put so much > effort into creating a language and give it away for free, but to > anyone who is considering using that language in the future. This > sadly sounds like a perl/c programmer's typical and monotonous > language-specific troll. > > -- Mitch, feeling rather rambunctious > _______________________________________________ Them's fightin words.... perhaps a class-action lawsuit for tortuous interference, brought by NewYork PHP on behalf of PHP consultants and programmers worldwide? -=john From Cbielanski at inta.org Tue Jul 13 15:53:53 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Tue, 13 Jul 2004 15:53:53 -0400 Subject: [OT][nycphp-talk] PHP-related book comments Message-ID: <C0CDB9F5E81C234FBB42D84E7853125D013B0A57@intamail1.inta> Just ignore Mitchy ;) He likes to be argumentative and inflammatory for the sake of humor ;) I kinda enjoy 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: inforequest [mailto:sm11szw02 at sneakemail.com] > Sent: Tuesday, July 13, 2004 3:42 PM > To: talk at lists.nyphp.org > Subject: Re: [nycphp-talk] PHP-related book comments > > > Mitch Pirtle mitchy-at-spacemonkeylabs.com |nyphp 04/2004| wrote: > > > John Lacey wrote: > > > >> So, before I send an email to these guys, is there anything else I > >> should point out? > > > > I don't know a more secure scripting language than python - > but other > > than that I can write shoddy code in just about any language you > > want. It is not only a disservice to the people that put so much > > effort into creating a language and give it away for free, but to > > anyone who is considering using that language in the future. This > > sadly sounds like a perl/c programmer's typical and monotonous > > language-specific troll. > > > > -- Mitch, feeling rather rambunctious > > _______________________________________________ > > Them's fightin words.... perhaps a class-action lawsuit for tortuous > interference, brought by NewYork PHP on behalf of PHP consultants and > programmers worldwide? > > -=john > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From rolan at omnistep.com Tue Jul 13 16:44:03 2004 From: rolan at omnistep.com (Rolan Yang) Date: Tue, 13 Jul 2004 16:44:03 -0400 Subject: [nycphp-talk] PHP-related book comments In-Reply-To: <40F4328D.4010600@att.net> References: <40F4328D.4010600@att.net> Message-ID: <40F44993.3080206@omnistep.com> John Lacey wrote: > from page 190: > "In many cases, software may come preset with various parameters set > by default. In many cases, the default values are set with no regard > for security..." The authors go on to mention PHP global variables > and characterizes PHP as "In seriously broken languages like PHP, a > number of default configurations are poorly set." > > > Further down the page is this paragraph: > "PHP is a study in bad security." I believe that if the authors had > said something like "phpBB is a study in bad security" they might > have stated the problem correctly. > > So, before I send an email to these guys, is there anything else I > should point out? > I wouldn't say that PHP is broken in regards to security. Global variables (or register_globals) are not in themselves security holes. They do allow sloppy programmers to more easily write code that is exploitable though. That's not a language problem, it's a programmer problem. I don't think it should be the responsibility of the scripting language to save us from ourselves. Input validation should be performed regardless what system is employed. For me, the speed and simplicity of programming in PHP far outweighs the alleged "security issues" people claim to exist. If you design the system smart and write clean secure code, your apps should run as well if not better than with any other scripting language. ~Rolan >From hans not junk at nyphp.com Tue Jul 13 17:50:36 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 3570EA86CD for <talk at lists.nyphp.org>; Tue, 13 Jul 2004 17:50:36 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Tue, 13 Jul 2004 14:41:59 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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-related book comments Date: Tue, 13 Jul 2004 14:50:32 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870306D1A2 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] PHP-related book comments Thread-Index: AcRpDIBUyOhHD92FRxKFdzBUtNjmUwAFMFIg From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 13 Jul 2004 21:41:59.0120 (UTC) FILETIME=[39B53D00:01C46922] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Tue, 13 Jul 2004 21:50:36 -0000 > In preparation to writing two security courses -- a security survey and > a security tools course, the usual suspects of the latest reference > books were purchased, as well as knoppix STD. btw, my area of > expertise has primarily been in LAN/WAN networking, TCP/IP and routing > protocols, and forensics. One book that I hadn't seen before is > "Exploiting Software: How to Break Code" by Greg Hoglund and Gary > McGraw. Overall, it's not a bad book for the most part. It was > published Feb. 2004. > One small section that I took issue with and am about to write the > authors about is their characterization of PHP. I quote: >=20 > from page 190: > "In many cases, software may come preset with various parameters set by > default. In many cases, the default values are set with no regard for > security..." The authors go on to mention PHP global variables and > characterizes PHP as "In seriously broken languages like PHP, a number > of default configurations are poorly set." I like how he apparently confuses "software" by then giving a programming language as an example. Outlook is software that comes with various parameters set by default with no regard for security - PHP isn't. But I know what he's getting at, and he's right... register_globals (as we all know :) was a bad idea. True, it's still possible to write secure code with it on, but by having it enabled, a world of inexperienced people could throw sloppy code together and have it magically "work." In fact, PHP has had several of these bad ideas (directives with the word "magic" in them come to mind). But security is really dependant on the programmer or user - I *always* turn the default settings off in Outlook. And, I *always* use php.ini-recommended (which the PHP group has made available for years, for this exact reason). > First, the authors apparently don't know anything about PHP 4.2.0 which, > I believe, was released over 2 years ago. Ironically, their next > paragraph begins with "In the interest of convenience (laziness?), some > programmers..." >=20 > Seems the authors were too lazy to check their facts. It makes me > wonder if they've even bothered to research their subject to find a file > called php.ini-recommended. Well, I guess I should have read your message a little further :) I agree 100% - I doubt they did. Or, they looked at it 3 years ago, and assumed nothing changed before writing the book 3 years later. > Further down the page is this paragraph: > "PHP is a study in bad security." I believe that if the authors had > said something like "phpBB is a study in bad security" they might have > stated the problem correctly. >=20 > So, before I send an email to these guys, is there anything else I > should point out? I think it's basically that PHP the language has actually had very few problems over its lifetime. In fact, it's up to the programmer to ensure his application is secure - not the programming language. Is C insecure because you can write over memory? Is Assembly insecure because I can make your IDE controller do evil things? Is C++ insecure because Windows has loads of holes (5 new today)? Is PHP insecure because it makes it easy for people to write applications? H From adam at trachtenberg.com Tue Jul 13 17:59:01 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Tue, 13 Jul 2004 17:59:01 -0400 (EDT) Subject: [nycphp-talk] PHP-related book comments In-Reply-To: <41EE526EC2D3C74286415780D3BA9F870306D1A2@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F870306D1A2@ehost011-1.exch011.intermedia.net> Message-ID: <Pine.LNX.4.58.0407131755130.631@miranda.org> On Tue, 13 Jul 2004, Hans Zaunere wrote: > But I know what he's getting at, and he's right... register_globals (as > we all know :) was a bad idea. True, it's still possible to write > secure code with it on, but by having it enabled, a world of > inexperienced people could throw sloppy code together and have it > magically "work." > > In fact, PHP has had several of these bad ideas (directives with the > word "magic" in them come to mind). Blame Rasmus. AFAIK, all (almost all?) of those directives date back to PHP/FI days. But it's unfair to project back 2004 (or even 2001) realities upon 1996. Different sets of programmers used PHP back then, the Web was a very different place, and PHP was just a quick and dirty language for guest books, hit counters, and e-mailing forms. -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From jlacey at att.net Tue Jul 13 18:05:52 2004 From: jlacey at att.net (John Lacey) Date: Tue, 13 Jul 2004 16:05:52 -0600 Subject: [nycphp-talk] PHP-related book comments In-Reply-To: <40F4363A.3070602@spacemonkeylabs.com> References: <40F4328D.4010600@att.net> <40F4363A.3070602@spacemonkeylabs.com> Message-ID: <40F45CC0.8000206@att.net> Mitch Pirtle wrote: > > I don't know a more secure scripting language than python ... care to elaborate? >From hans not junk at nyphp.com Tue Jul 13 18:12:05 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 1CBE8A86CD for <talk at lists.nyphp.org>; Tue, 13 Jul 2004 18:12:05 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Tue, 13 Jul 2004 15:03:27 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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 Scales, Our Chris Shiflett gets /.'d Date: Tue, 13 Jul 2004 15:12:02 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870306D1D4 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d Thread-Index: AcRpDu9PYOB795G5SNKH3gBFu+xKHQAFIiGw From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 13 Jul 2004 22:03:27.0987 (UTC) FILETIME=[39EEBC30:01C46925] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Tue, 13 Jul 2004 22:12:05 -0000 > I thought that's what scalability means. Being able > adapt to change. >=20 > "How well a solution to some problem will work when > the size of the problem increases" Yeah, but that change is generally an increase in requests/second and that problem is generally getting more and more users on your website. Scalability or the ability to scale can mean many different things. In the web world, it generally reflects the ability of an application to take on more and more load while maintaining a consistent level of performance, responsiveness, reliability, and stability. To do this, an application has to be able to be distributed across multiple physical servers. For example, any piece of hardware - running any application - will eventually become useless if a big enough load is put on it. The ability to scale is the ability to add additional hardware to distribute the load across, without making significant changes to the application's architecture each time a new server comes online. The more hardware, the more load your application can handle. So you add one piece of new hardware, and you can handle twice as much load as before - this is a linear scale. The ability to do this is really an architectural issue, which is why Shiflett is exactly right. It has less to do with your programming language, database, or OS, than it does with your application's design. Good design =3D=3D scalable Bad design !=3D scalable So why do so many people consider Java to scale? Because this "good design" and architecture is built into the language itself. In other words, Java (really, J2EE) has mechanisms for adding new servers and sharing load and data between these new servers transparently (or, at least that's the intent). This allows new hardware to easily be added indefinitely, thus handling increased load indefinitely, and thus scale. Or so that's the theory. H >From hans not junk at nyphp.com Tue Jul 13 18:15:07 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 625E4A86BF for <talk at lists.nyphp.org>; Tue, 13 Jul 2004 18:15:07 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Tue, 13 Jul 2004 15:06:30 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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-related book comments Date: Tue, 13 Jul 2004 15:15:00 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870306D1D7 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] PHP-related book comments Thread-Index: AcRpJKCXT/FhNU9NQe6FGrtBfisdCgAAg7fg From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 13 Jul 2004 22:06:30.0492 (UTC) FILETIME=[A6B6C9C0:01C46925] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Tue, 13 Jul 2004 22:15:07 -0000 > > But I know what he's getting at, and he's right... register_globals (as > > we all know :) was a bad idea. True, it's still possible to write > > secure code with it on, but by having it enabled, a world of > > inexperienced people could throw sloppy code together and have it > > magically "work." > > > > In fact, PHP has had several of these bad ideas (directives with the > > word "magic" in them come to mind). >=20 > Blame Rasmus. AFAIK, all (almost all?) of those directives date back > to PHP/FI days. >=20 > But it's unfair to project back 2004 (or even 2001) realities upon > 1996. >=20 > Different sets of programmers used PHP back then, the Web was a > very different place, and PHP was just a quick and dirty language for > guest books, hit counters, and e-mailing forms. Agreed 100%. There was a time when sendmail defaulted as an open relay for convenience :) H >From hans not junk at nyphp.com Tue Jul 13 18:16:29 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 7A399A86BF for <talk at lists.nyphp.org>; Tue, 13 Jul 2004 18:16:29 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Tue, 13 Jul 2004 15:07:52 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] custom controls to represent DB relationships Date: Tue, 13 Jul 2004 15:16:26 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870306D1DC at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] custom controls to represent DB relationships Thread-Index: AcRoViBL368F2zQtTiybDDiJDkMUBgA0HgGA From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 13 Jul 2004 22:07:52.0555 (UTC) FILETIME=[D7A09BB0:01C46925] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Tue, 13 Jul 2004 22:16:29 -0000 > I'm looking for examples of "more advanced" page controls that people have > developed to represent one to many and/or many to many DB relationships on a > web page, using PHP, JS and CSS. The purpose of these controls is to > allow uses to execute "mass" actions on data, such as deleting a group of > records at once, or reassigning several records to a different category. > Any thoughts, suggestions and examples would be greatly appreciated! Not sure I understand 100% - you mean transactions? Foreign key constraints? It sounds more like SQL level stuff, rather than something at a JS/CSS or even PHP level. H From kushner at gmail.com Tue Jul 13 18:18:53 2004 From: kushner at gmail.com (Daniel Kushner) Date: Tue, 13 Jul 2004 15:18:53 -0700 Subject: [nycphp-talk] PHP 5.0.0 live! In-Reply-To: <41EE526EC2D3C74286415780D3BA9F870306D1DC@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F870306D1DC@ehost011-1.exch011.intermedia.net> Message-ID: <7ac626ed040713151817bb6c5a@mail.gmail.com> Hi all, After two years of development PHP 5.0.0 is finally up! (http://www.php.net) This is a big step forward for open-source PHP. Daniel From csnyder at chxo.com Tue Jul 13 18:32:55 2004 From: csnyder at chxo.com (csnyder at chxo.com) Date: Tue, 13 Jul 2004 18:32:55 -0400 Subject: [nycphp-talk] PHP 5.0.0 live! In-Reply-To: <7ac626ed040713151817bb6c5a@mail.gmail.com> References: <41EE526EC2D3C74286415780D3BA9F870306D1DC@ehost011-1.exch011.intermedia.net> <7ac626ed040713151817bb6c5a@mail.gmail.com> Message-ID: <1089757975.40f463172fe3b@webmail.tuffmail.net> Quoting Daniel Kushner <kushner at gmail.com>: > > After two years of development PHP 5.0.0 is finally up! > (http://www.php.net) This is a big step forward for open-source PHP. > Hey!!! You guys were supposed to wait for Perl6 !!! From krook at us.ibm.com Tue Jul 13 18:39:12 2004 From: krook at us.ibm.com (Daniel Krook) Date: Tue, 13 Jul 2004 18:39:12 -0400 Subject: [nycphp-talk] PHP 5.0.0 live! In-Reply-To: <7ac626ed040713151817bb6c5a@mail.gmail.com> Message-ID: <OF6A416997.07332C99-ON85256ED0.007C5A63-85256ED0.007C7061@us.ibm.com> > After two years of development PHP 5.0.0 is finally up! Time for a Mozilla 1.0 - style release party? :) Daniel Krook, Application Developer WW Web Production Services North 2, ibm.com 1133 Westchester Avenue, White Plains, NY 10604 Personal: http://info.krook.org/ Persona: http://w3.ibm.com/eworkplace/persona_bp_finder.jsp?CNUM=9A9796897 From jlacey at att.net Tue Jul 13 18:40:22 2004 From: jlacey at att.net (John Lacey) Date: Tue, 13 Jul 2004 16:40:22 -0600 Subject: [nycphp-talk] PHP 5.0.0 live! In-Reply-To: <OF6A416997.07332C99-ON85256ED0.007C5A63-85256ED0.007C7061@us.ibm.com> References: <OF6A416997.07332C99-ON85256ED0.007C5A63-85256ED0.007C7061@us.ibm.com> Message-ID: <40F464D6.202@att.net> Daniel Krook wrote: >>After two years of development PHP 5.0.0 is finally up! >> >> > >Time for a Mozilla 1.0 - style release party? :) > > > > > and... how well does the beer supply scale?? From jonbaer at jonbaer.net Tue Jul 13 18:33:22 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Tue, 13 Jul 2004 18:33:22 -0400 Subject: [nycphp-talk] PHP 5.0.0 live! In-Reply-To: <7ac626ed040713151817bb6c5a@mail.gmail.com> References: <41EE526EC2D3C74286415780D3BA9F870306D1DC@ehost011-1.exch011.intermedia.net> <7ac626ed040713151817bb6c5a@mail.gmail.com> Message-ID: <40F46332.4010109@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Congrats and special thank you to everyone (including this list) for making PHP5 a reality ... (going to the bookstore now to pick up all 100 books that just came out lol) Sending a case of beer to Zend HQ right now. - - Jon Daniel Kushner wrote: | Hi all, | | After two years of development PHP 5.0.0 is finally up! | (http://www.php.net) This is a big step forward for open-source PHP. | | Daniel | _______________________________________________ | talk mailing list | talk at lists.nyphp.org | http://lists.nyphp.org/mailman/listinfo/talk | | - -- 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.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA9GMyQdvbi5oMr0cRAprQAKCEETGfMweDKOP7sW+rKqpdpzqC0ACg1pfv YCEhiLS6E64XGFpzPmkSbV4= =mheW -----END PGP SIGNATURE----- >From hans not junk at nyphp.com Tue Jul 13 18:47:30 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id BCC93A8807 for <talk at lists.nyphp.org>; Tue, 13 Jul 2004 18:47:29 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Tue, 13 Jul 2004 15:38:52 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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 5.0.0 live! Date: Tue, 13 Jul 2004 15:47:26 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870306D229 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] PHP 5.0.0 live! Thread-Index: AcRpJ2eHDsVpmfluQf2KZHHct2DNDwAA+gxA From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 13 Jul 2004 22:38:52.0652 (UTC) FILETIME=[2C54E2C0:01C4692A] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Tue, 13 Jul 2004 22:47:30 -0000 > After two years of development PHP 5.0.0 is finally up! > (http://www.php.net) This is a big step forward for open-source PHP. Excellent news... it is a big step forward. I'll get something on nyphp.org's frontpage as well. H From preinheimer at gmail.com Tue Jul 13 18:51:26 2004 From: preinheimer at gmail.com (Paul Reinheimer) Date: Tue, 13 Jul 2004 18:51:26 -0400 Subject: [nycphp-talk] PHP 5.0.0 live! In-Reply-To: <40F464D6.202@att.net> References: <OF6A416997.07332C99-ON85256ED0.007C5A63-85256ED0.007C7061@us.ibm.com> <40F464D6.202@att.net> Message-ID: <6ec19ec704071315513fe52191@mail.gmail.com> /me laughs I'm in for a party. Beer will scale, because the system it is built upon scales. :) Bartending is a stateless protocoll, customer makes a request, request is filled, connection is terminated. If another request needs to be made a seperate connection is required. Suggested configuration for an open bar that scales: StartServers 10 MinSpareServers 5 MaxSpareServers 20 MaxClients 2000 MaxRequestsPerChild 20 StartKegs 20 MinSpareKegs 5 #Order new kegs from store MaxSpareKegs 30 #Return excess kegs to store paul On Tue, 13 Jul 2004 16:40:22 -0600, John Lacey <jlacey at att.net> wrote: > Daniel Krook wrote: > > >>After two years of development PHP 5.0.0 is finally up! > >> > >> > > > >Time for a Mozilla 1.0 - style release party? :) > > > > > > > > > > > > and... how well does the beer supply scale?? > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From preinheimer at gmail.com Tue Jul 13 18:55:21 2004 From: preinheimer at gmail.com (Paul Reinheimer) Date: Tue, 13 Jul 2004 18:55:21 -0400 Subject: [nycphp-talk] PHP 5.0.0 live! In-Reply-To: <6ec19ec704071315513fe52191@mail.gmail.com> References: <OF6A416997.07332C99-ON85256ED0.007C5A63-85256ED0.007C7061@us.ibm.com> <40F464D6.202@att.net> <6ec19ec704071315513fe52191@mail.gmail.com> Message-ID: <6ec19ec704071315551ad55cc7@mail.gmail.com> I'm having trouble downloading the source from php.net, this isn't likely to get any better as it just got /.'d If anyone manages to grab them, are they willing to provide a download to others on the list? paul On Tue, 13 Jul 2004 18:51:26 -0400, Paul Reinheimer <preinheimer at gmail.com> wrote: > /me laughs > > I'm in for a party. > > Beer will scale, because the system it is built upon scales. :) > > Bartending is a stateless protocoll, customer makes a request, request > is filled, connection is terminated. If another request needs to be > made a seperate connection is required. > > Suggested configuration for an open bar that scales: > StartServers 10 > MinSpareServers 5 > MaxSpareServers 20 > MaxClients 2000 > MaxRequestsPerChild 20 > StartKegs 20 > MinSpareKegs 5 #Order new kegs from store > MaxSpareKegs 30 #Return excess kegs to store > > > paul > > > > > On Tue, 13 Jul 2004 16:40:22 -0600, John Lacey <jlacey at att.net> wrote: > > Daniel Krook wrote: > > > > >>After two years of development PHP 5.0.0 is finally up! > > >> > > >> > > > > > >Time for a Mozilla 1.0 - style release party? :) > > > > > > > > > > > > > > > > > > > and... how well does the beer supply scale?? > > > > > > > > _______________________________________________ > > talk mailing list > > talk at lists.nyphp.org > > http://lists.nyphp.org/mailman/listinfo/talk > > > From csnyder at chxo.com Tue Jul 13 18:59:51 2004 From: csnyder at chxo.com (csnyder at chxo.com) Date: Tue, 13 Jul 2004 18:59:51 -0400 Subject: [nycphp-talk] PHP 5.0.0 live! In-Reply-To: <6ec19ec704071315551ad55cc7@mail.gmail.com> References: <OF6A416997.07332C99-ON85256ED0.007C5A63-85256ED0.007C7061@us.ibm.com> <40F464D6.202@att.net> <6ec19ec704071315513fe52191@mail.gmail.com> <6ec19ec704071315551ad55cc7@mail.gmail.com> Message-ID: <1089759591.40f4696790a74@webmail.tuffmail.net> Quoting Paul Reinheimer <preinheimer at gmail.com>: > If anyone manages to grab them, are they willing to provide a download > to others on the list? I picked up the source BZip, which is here: http://chxo.com/php-5.0.0.tar.bz2 From preinheimer at gmail.com Tue Jul 13 19:09:07 2004 From: preinheimer at gmail.com (Paul Reinheimer) Date: Tue, 13 Jul 2004 19:09:07 -0400 Subject: [nycphp-talk] PHP 5.0.0 live! In-Reply-To: <1089757975.40f463172fe3b@webmail.tuffmail.net> References: <41EE526EC2D3C74286415780D3BA9F870306D1DC@ehost011-1.exch011.intermedia.net> <7ac626ed040713151817bb6c5a@mail.gmail.com> <1089757975.40f463172fe3b@webmail.tuffmail.net> Message-ID: <6ec19ec704071316094d98c48@mail.gmail.com> Thanks for the mirror! Got it fine Should there be issues with your mirror, hir is another http://www.donkeydownloads.com/php-5.0.0.tar.bz2 paul On Tue, 13 Jul 2004 18:32:55 -0400, csnyder at chxo.com <csnyder at chxo.com> wrote: > Quoting Daniel Kushner <kushner at gmail.com>: > > > > > After two years of development PHP 5.0.0 is finally up! > > (http://www.php.net) This is a big step forward for open-source PHP. > > > > Hey!!! You guys were supposed to wait for Perl6 !!! > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From krook at us.ibm.com Tue Jul 13 19:10:41 2004 From: krook at us.ibm.com (Daniel Krook) Date: Tue, 13 Jul 2004 19:10:41 -0400 Subject: [nycphp-talk] PHP 5.0.0 live! In-Reply-To: <6ec19ec704071315551ad55cc7@mail.gmail.com> Message-ID: <OF4053E009.F47540D2-ON85256ED0.007EFD81-85256ED0.007F5226@us.ibm.com> > If anyone manages to grab them, are they willing to provide a download > to others on the list? I know it's asking for trouble... but if anyone wants to grab it before I take it down at midnight: http://krook.org/etc/php-5.0.0.tar.gz Please compare MD5 after downloading... http://www.php.net/downloads.php Daniel Krook, Application Developer WW Web Production Services North 2, ibm.com 1133 Westchester Avenue, White Plains, NY 10604 Personal: http://info.krook.org/ Persona: http://w3.ibm.com/eworkplace/persona_bp_finder.jsp?CNUM=9A9796897 >From hans not junk at nyphp.com Tue Jul 13 19:15:40 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id B4D16A86CD for <talk at lists.nyphp.org>; Tue, 13 Jul 2004 19:15:39 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Tue, 13 Jul 2004 16:07:02 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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 5.0.0 live! Date: Tue, 13 Jul 2004 16:15:36 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870306D260 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] PHP 5.0.0 live! Thread-Index: AcRpLIJe7Alkr6gLQ4GdqBDOqM4PeQAApiPw From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 13 Jul 2004 23:07:02.0514 (UTC) FILETIME=[1B915D20:01C4692E] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Tue, 13 Jul 2004 23:15:40 -0000 > If anyone manages to grab them, are they willing to provide a download > to others on the list? I always go direct to a mirror, and generally that's us2.php.net (since it's Hurricane Electric and they have loads of bandwidth). http://us2.php.net/downloads.php >From hans not junk at nyphp.com Tue Jul 13 19:18:32 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 285FDA86CD for <talk at lists.nyphp.org>; Tue, 13 Jul 2004 19:18:32 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Tue, 13 Jul 2004 16:09:54 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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 5.0.0 live! Date: Tue, 13 Jul 2004 16:18:29 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870306D265 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] PHP 5.0.0 live! Thread-Index: AcRpK/X0s6CncngNTPSW+pZ+QgoubAAA1jmw From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 13 Jul 2004 23:09:55.0112 (UTC) FILETIME=[8271BA80:01C4692E] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Tue, 13 Jul 2004 23:18:32 -0000 > /me laughs >=20 > I'm in for a party. >=20 > Beer will scale, because the system it is built upon scales. :) Agreed... beer scales. It has a good architecture and is designed well :) Tomorrow night is the Tech Hangout, which many from NYPHP planned on attending. I think a PHP 5 toast there tomorrow night could be a good idea. http://tinyurl.com/5uv5p It's free and has cheap drinks. Looking forward to it, H From preinheimer at gmail.com Tue Jul 13 19:27:33 2004 From: preinheimer at gmail.com (Paul Reinheimer) Date: Tue, 13 Jul 2004 19:27:33 -0400 Subject: [nycphp-talk] PHP 5.0.0 live! In-Reply-To: <41EE526EC2D3C74286415780D3BA9F870306D265@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F870306D265@ehost011-1.exch011.intermedia.net> Message-ID: <6ec19ec704071316271020f91f@mail.gmail.com> I was being redirected to the HE mirror, it was giving me a file not found error. paul On Tue, 13 Jul 2004 16:18:29 -0700, Hans Zaunere <hans not junk at nyphp.com> wrote: > > > /me laughs > > > > I'm in for a party. > > > > Beer will scale, because the system it is built upon scales. :) > > Agreed... beer scales. It has a good architecture and is designed well > :) > > Tomorrow night is the Tech Hangout, which many from NYPHP planned on > attending. I think a PHP 5 toast there tomorrow night could be a good > idea. > > http://tinyurl.com/5uv5p > > It's free and has cheap drinks. > > Looking forward to it, > > H > > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From bpang at bpang.com Tue Jul 13 19:32:43 2004 From: bpang at bpang.com (Brian Pang) Date: Tue, 13 Jul 2004 18:32:43 -0500 Subject: [nycphp-talk] PHP 5.0.0 live! Message-ID: <E1BkWlP-0004ZX-UM@thc3.thehostingcompany.us> But what if I open a tab? Would that be akin to a socket? > /me laughs > > I'm in for a party. > > Beer will scale, because the system it is built upon scales. :) > > Bartending is a stateless protocoll, customer makes a request, request > is filled, connection is terminated. If another request needs to be > made a seperate connection is required. From sm11szw02 at sneakemail.com Tue Jul 13 19:39:57 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Tue, 13 Jul 2004 19:39:57 -0400 Subject: [nycphp-talk] Roadsend compiler for PHP In-Reply-To: <6ec19ec704071316271020f91f@mail.gmail.com> References: <41EE526EC2D3C74286415780D3BA9F870306D265@ehost011-1.exch011.intermedia.net> <6ec19ec704071316271020f91f@mail.gmail.com> Message-ID: <31200-21177@sneakemail.com> Does anyone have additional knowledge of this? How/why/how well/problems/whatever ? http://www.roadsend.com/home/index.php?pageID=featBene From joel at tagword.com Tue Jul 13 19:40:26 2004 From: joel at tagword.com (Joel De Gan) Date: Tue, 13 Jul 2004 23:40:26 +0000 Subject: [nycphp-talk] PHP 5.0.0 live! In-Reply-To: <E1BkWlP-0004ZX-UM@thc3.thehostingcompany.us> References: <E1BkWlP-0004ZX-UM@thc3.thehostingcompany.us> Message-ID: <1089762026.7514.51.camel@bezel> Before the "will it work with Apache2?" questions come rolling in.. See: http://ca3.php.net/manual/en/faq.installation.php#faq.installation.apache2 Anyway.. Exciting stuff, been quite a while in the works.. -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From joel at tagword.com Tue Jul 13 19:46:02 2004 From: joel at tagword.com (Joel De Gan) Date: Tue, 13 Jul 2004 23:46:02 +0000 Subject: [nycphp-talk] Roadsend compiler for PHP In-Reply-To: <31200-21177@sneakemail.com> References: <41EE526EC2D3C74286415780D3BA9F870306D265@ehost011-1.exch011.intermedia.net> <6ec19ec704071316271020f91f@mail.gmail.com> <31200-21177@sneakemail.com> Message-ID: <1089762362.7512.55.camel@bezel> On Tue, 2004-07-13 at 23:39, inforequest wrote: > Does anyone have additional knowledge of this? How/why/how > well/problems/whatever ? It is not opensource... it is about $400 .. That right there means it will not be heavily used. I had signed up for the beta test and was not impressed at all. Maybe they have fixed some stuff now.. but this was about two months ago so I am not sure how much they could have fixed.. > > http://www.roadsend.com/home/index.php?pageID=featBene > > > _______________________________________________ > 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 csnyder at chxo.com Tue Jul 13 21:01:07 2004 From: csnyder at chxo.com (Chris Snyder) Date: Tue, 13 Jul 2004 21:01:07 -0400 Subject: [nycphp-talk] custom controls to represent DB relationships In-Reply-To: <41EE526EC2D3C74286415780D3BA9F870306D1DC@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F870306D1DC@ehost011-1.exch011.intermedia.net> Message-ID: <40F485D3.9090308@chxo.com> Hans Zaunere wrote: > Not sure I understand 100% - you mean transactions? Foreign key > >constraints? It sounds more like SQL level stuff, rather than something >at a JS/CSS or even PHP level. > I think what the poster meant was code/classes that let you display sortable pages of records -- I have 100 songs in my database, I want to display them 25 per page sortable by artist, title, or genre. And I want to be able to select 10 songs and click a button that sends them to me as a zip file. It would be really useful to abstract the code needed to generate xhtml + css + js lists like that. From jonbaer at jonbaer.net Tue Jul 13 21:09:12 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Tue, 13 Jul 2004 21:09:12 -0400 Subject: [nycphp-talk] PHP5 vs. PHP-CVS In-Reply-To: <E1BkWlP-0004ZX-UM@thc3.thehostingcompany.us> References: <E1BkWlP-0004ZX-UM@thc3.thehostingcompany.us> Message-ID: <40F487B8.4040402@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hey - im just curious ive been normally doing a quick cvs update before bedtime and was wondering (in general) if its better to grab the release ~ and compile as well or does it not really matter ... - - 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.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA9Ie4Qdvbi5oMr0cRAoewAKDswPM1GY3XSDl/JvQLtopOWEncRgCg04sH XuOQJGLEefhbAsvH+rlcq4U= =X10q -----END PGP SIGNATURE----- From danielc at analysisandsolutions.com Tue Jul 13 21:32:38 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Tue, 13 Jul 2004 21:32:38 -0400 Subject: [nycphp-talk] PHP5 vs. PHP-CVS In-Reply-To: <40F487B8.4040402@jonbaer.net> References: <E1BkWlP-0004ZX-UM@thc3.thehostingcompany.us> <40F487B8.4040402@jonbaer.net> Message-ID: <20040714013238.GA21021@panix.com> Hey Jon: On Tue, Jul 13, 2004 at 09:09:12PM -0400, Jon Baer wrote: > > im just curious ive been normally doing a quick cvs update before > bedtime and was wondering (in general) if its better to grab the release > ~ and compile as well or does it not really matter ... Depends if you want to have "official" 5.0.0 release. If so, you can obtain that from CVS too by using the "php_5_0_0" release tag. I generally run the snapshots, though I downloaded 5.0.0 just to make sure it's all okay. 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 adam at trachtenberg.com Tue Jul 13 21:34:55 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Tue, 13 Jul 2004 21:34:55 -0400 (EDT) Subject: [nycphp-talk] PHP5 vs. PHP-CVS In-Reply-To: <40F487B8.4040402@jonbaer.net> References: <E1BkWlP-0004ZX-UM@thc3.thehostingcompany.us> <40F487B8.4040402@jonbaer.net> Message-ID: <Pine.LNX.4.58.0407132132290.15709@miranda.org> On Tue, 13 Jul 2004, Jon Baer wrote: > im just curious ive been normally doing a quick cvs update before > bedtime and was wondering (in general) if its better to grab the release > ~ and compile as well or does it not really matter ... In general, it doesn't matter. In fact, there's already some bug fixes in the CVS that didn't make it into 5.0. Of course, there are some bug fixes in 5.0 that weren't in last night's CVS. -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From mitchy at spacemonkeylabs.com Tue Jul 13 22:26:10 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Tue, 13 Jul 2004 22:26:10 -0400 Subject: [OT][nycphp-talk] PHP-related book comments In-Reply-To: <C0CDB9F5E81C234FBB42D84E7853125D013B0A57@intamail1.inta> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A57@intamail1.inta> Message-ID: <40F499C2.5050505@spacemonkeylabs.com> Chris Bielanski wrote: >Just ignore Mitchy ;) He likes to be argumentative and inflammatory for the >sake of humor ;) > > Dadgummit, I almost got a rise outta these guys, and you had to go expose me to the whole list! ;^P Before this gets out of hand, I wasn't trying to say PHP is worse or better than any other scripting language, just that poorly written code is language-independent. Looks like my python comment requires a response, and I will have to carefully prepare my defense... -- Mitch From preinheimer at gmail.com Tue Jul 13 22:48:31 2004 From: preinheimer at gmail.com (Paul Reinheimer) Date: Tue, 13 Jul 2004 22:48:31 -0400 Subject: [nycphp-talk] PHP 5.0.0 live! In-Reply-To: <1089762026.7514.51.camel@bezel> References: <E1BkWlP-0004ZX-UM@thc3.thehostingcompany.us> <1089762026.7514.51.camel@bezel> Message-ID: <6ec19ec7040713194877c0963a@mail.gmail.com> I have it installed with apache 2 No one told me there would be problems so I just assumed it would work. paul On Tue, 13 Jul 2004 23:40:26 +0000, Joel De Gan <joel at tagword.com> wrote: > Before the "will it work with Apache2?" questions come rolling in.. > See: > http://ca3.php.net/manual/en/faq.installation.php#faq.installation.apache2 > > Anyway.. Exciting stuff, been quite a while in the works.. > > -- > joeldg - developer, Intercosmos media group. > http://lucifer.intercosmos.net > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From shiflett at php.net Tue Jul 13 23:24:03 2004 From: shiflett at php.net (Chris Shiflett) Date: Tue, 13 Jul 2004 20:24:03 -0700 (PDT) Subject: [nycphp-talk] PHP-related book comments In-Reply-To: <40F4328D.4010600@att.net> Message-ID: <20040714032403.28868.qmail@web52804.mail.yahoo.com> --- John Lacey <jlacey at att.net> wrote: > One book that I hadn't seen before is "Exploiting Software: How to > Break Code" by Greg Hoglund and Gary McGraw. This is a good book. I found myself in agreement with a majority of what they say, which is rare for most books on Web application security. I came away feeling like the authors had a good grasp on the subject. > One small section that I took issue with and am about to write the > authors about is their characterization of PHP. I noticed this, too. I'm not sure that it's poor research on their part as much as a weak attempt at gaining credibility with an uneducated audience. PHP is an easy target for "poor security" arguments, even if the reputation isn't deserved. > So, before I send an email to these guys, is there anything else I > should point out? You might simply point out that a book like that is meant to help developers write more secure code, and since the authors seem to have difficulty distinguishing between a platform and applications developed with that platform, you are having doubts about their credibility. :-) 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 preinheimer at gmail.com Tue Jul 13 23:52:07 2004 From: preinheimer at gmail.com (Paul Reinheimer) Date: Tue, 13 Jul 2004 23:52:07 -0400 Subject: [nycphp-talk] PHP 5.0.0 live! In-Reply-To: <6ec19ec7040713194877c0963a@mail.gmail.com> References: <E1BkWlP-0004ZX-UM@thc3.thehostingcompany.us> <1089762026.7514.51.camel@bezel> <6ec19ec7040713194877c0963a@mail.gmail.com> Message-ID: <6ec19ec70407132052d094292@mail.gmail.com> Okay, So it isn't working quite yet, I will get there though... I hope. If only i could find libphp5.so paul On Tue, 13 Jul 2004 22:48:31 -0400, Paul Reinheimer <preinheimer at gmail.com> wrote: > I have it installed with apache 2 > > No one told me there would be problems so I just assumed it would work. > > > paul > > > > > On Tue, 13 Jul 2004 23:40:26 +0000, Joel De Gan <joel at tagword.com> wrote: > > Before the "will it work with Apache2?" questions come rolling in.. > > See: > > http://ca3.php.net/manual/en/faq.installation.php#faq.installation.apache2 > > > > Anyway.. Exciting stuff, been quite a while in the works.. > > > > -- > > joeldg - developer, Intercosmos media group. > > http://lucifer.intercosmos.net > > > > > > > > _______________________________________________ > > talk mailing list > > talk at lists.nyphp.org > > http://lists.nyphp.org/mailman/listinfo/talk > > > From shiflett at php.net Wed Jul 14 00:13:28 2004 From: shiflett at php.net (Chris Shiflett) Date: Tue, 13 Jul 2004 21:13:28 -0700 (PDT) Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <38CFBC46-D4FC-11D8-9E11-000D93359332@omniti.com> Message-ID: <20040714041328.72600.qmail@web52802.mail.yahoo.com> --- George Schlossnagle <george at omniti.com> wrote: > Chris' statement had a bunch of fluff to it, but his basic argument (or > at least my paraphrase of it) is that stateless applications have > infinite horizontal scalability since they persist no data from request > to request. That's it, except you and I seem to have different definitions of fluff. :-) (I think fluff means unnecessary or superfluous information, whereas your statement below makes it seem like you believe fluff to be misleading information.) > Of course this ignores the point that you often have to persist data > from request to request, which is why I find that general argument to > be a bit fluffy. This is a valid criticism, and it's something I mention in my brief discussion with Jack Herrington, author of The PHP Scalability Myth that got a lot of attention last fall. You can read my comments here: http://www.codegeneration.net/lth_archives/000248.html You could say I "come clean" with the following: "Also, regarding my most recent blog entry, it isn't entirely fair to Java, but my focus is on PHP (and I never state that Java doesn't scale). With so many people thinking Java scales more naturally than PHP, I find it somewhat funny that the opposite is closer to the truth. But, realistically, no PHP application is going to live in isolation, and as soon as databases, session stores, and the like enter the picture, the two are back on pretty even ground." I just don't like seeing arguments about scalability that are pretty much the opposite of the truth. I've written my share of applications for platforms with an "application server" (ColdFusion, JSP), and I definitely enjoy some of the conveniences that this type of environment offers me as a developer. But, I would never kid myself and argue that this environment scales better than something like PHP or mod_perl. That's not really a good argument at all, but it's common. > It's like saying that my car can do 400 mph, it just needs the right > engine. I don't really get that analogy, but I understand your argument anyway. :-) 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 Jul 14 00:31:53 2004 From: shiflett at php.net (Chris Shiflett) Date: Tue, 13 Jul 2004 21:31:53 -0700 (PDT) Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <26710-44927@sneakemail.com> Message-ID: <20040714043153.75451.qmail@web52802.mail.yahoo.com> --- inforequest <sm11szw02 at sneakemail.com> wrote: > > Can someone give me a more "IDIOT PROOF" explanation? > > George Wrote: > "The modularity of the system is completely orthogonal to the > point." > > Hah hah.. George I think he was asking for simpler... and besides it > is not possible to be orthogonal to a point... you need a plane ;-) That was just George's fancy way of saying modularity has nothing to do with the present discussion. :-) 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 Jul 14 00:33:11 2004 From: shiflett at php.net (Chris Shiflett) Date: Tue, 13 Jul 2004 21:33:11 -0700 (PDT) Subject: [nycphp-talk] PHP-related book comments In-Reply-To: <40F44993.3080206@omnistep.com> Message-ID: <20040714043311.75813.qmail@web52802.mail.yahoo.com> --- Rolan Yang <rolan at omnistep.com> wrote: > I wouldn't say that PHP is broken in regards to security. Global > variables (or register_globals) are not in themselves security holes. If global variables were security holes, we'd all be in trouble. :-) 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 george at omniti.com Wed Jul 14 01:21:45 2004 From: george at omniti.com (George Schlossnagle) Date: Wed, 14 Jul 2004 01:21:45 -0400 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <20040714041328.72600.qmail@web52802.mail.yahoo.com> References: <20040714041328.72600.qmail@web52802.mail.yahoo.com> Message-ID: <B2860AFC-D555-11D8-9E11-000D93359332@omniti.com> On Jul 14, 2004, at 12:13 AM, Chris Shiflett wrote: > >> It's like saying that my car can do 400 mph, it just needs the right >> engine. > > I don't really get that analogy, but I understand your argument anyway. The analogy was supposed to mean that it's meaningless to say that PHP is intrinsically horizontally scalable when necessary components of the majority of applications aren't intrinsically horizontally scalable. PHP isn't the application (neither is Java). The discussion should really be about 'applications written in (Java|PHP|Python|Lisp|OCaml|foo)' which is what I think most people are talking about when they talk about the scalability of language X. Or at least that's what they should be talking about. :) George From tgales at tgaconnect.com Wed Jul 14 01:56:03 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 14 Jul 2004 01:56:03 -0400 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <20040714043153.75451.qmail@web52802.mail.yahoo.com> Message-ID: <001601c46967$3f86bfc0$e98d3818@oberon1> Chris Shiflett writes: > --- inforequest <sm11szw02 at sneakemail.com> wrote: > > > Can someone give me a more "IDIOT PROOF" explanation? > > > > George Wrote: > > "The modularity of the system is completely orthogonal to > the point." > > > > Hah hah.. George I think he was asking for simpler... and > besides it > > is not possible to be orthogonal to a point... you need a plane ;-) > > That was just George's fancy way of saying modularity has > nothing to do with the present discussion. :-) > Oh no, could it be you are adding froth (again) -- this time with a 'fancy' fluff? Wasn't George's aim precision rather than panache? T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com "One must be able to say at all times-instead of points, straight lines, and [in place of ] planes -- tables, chairs, and beer mugs" --David Hilbert From amiller at criticalmedia.biz Wed Jul 14 03:17:34 2004 From: amiller at criticalmedia.biz (Alan T. Miller) Date: Wed, 14 Jul 2004 00:17:34 -0700 Subject: [nycphp-talk] PHP5 and domxml... any up to date docs or examples? Message-ID: <40F4DE0E.7000006@criticalmedia.biz> Now that PHP5 is out, I wanted to play around with the new XML implimentation. What I specifically want to do, is pull records from a database and create XML files using the new libxml2 library. However, it seems I cannot find any good examples or any definitive documentation on how to do this with PHP5. So much has been in flux with the domxml implimentation in PHP5 everything I come across is out of date. Any suggestions? Any examples out there? Alan From suzerain at suzerain.com Wed Jul 14 03:56:23 2004 From: suzerain at suzerain.com (Marc Antony Vose) Date: Wed, 14 Jul 2004 03:56:23 -0400 Subject: [nycphp-talk] sending multipart email In-Reply-To: <1089669206.11643.59.camel@brian.vermonster.com> References: <1089669206.11643.59.camel@brian.vermonster.com> Message-ID: <p06110403bd1a97244209@[192.168.1.44]> Hey: Admittedly this is off-topic, but I am sending it with PHP, so...:) I have never sent multipart email before and am reading up on it, and I see that different portions of messages are separated by something like: boundary="============_-1122330894==_ma============" I've read several little tutorials on the subject online, but no one has answered what is, for me, a semi-crucial question: namely, is the string that is used for the boundary arbitrary? Or must it follow a certain convention? Cheers, -- Marc Antony Vose http://www.suzerain.com/ Goddamn writers -- all they do is use up trees and ruin people's eyes. -- Gus, from Basic Instinct, by Joe Esterhaus From amiller at criticalmedia.biz Wed Jul 14 05:51:09 2004 From: amiller at criticalmedia.biz (Alan T. Miller) Date: Wed, 14 Jul 2004 02:51:09 -0700 Subject: [nycphp-talk] sending multipart email In-Reply-To: <p06110403bd1a97244209@[192.168.1.44]> References: <1089669206.11643.59.camel@brian.vermonster.com> <p06110403bd1a97244209@[192.168.1.44]> Message-ID: <40F5020D.8030507@criticalmedia.biz> I could be wrong, but I believe I read somewhere a while ago that is was arbitrary. Perhaps the easiest way to deal with multipart messages I know of is to use the excellent mailing class at http://phpmailer.sourceforge.net/ and then you do not have to worry about it. It is by far the best mail class I have come across for PHP. Alan Marc Antony Vose wrote: > Hey: > > Admittedly this is off-topic, but I am sending it with PHP, so...:) > > I have never sent multipart email before and am reading up on it, and > I see that different portions of messages are separated by something > like: > > boundary="============_-1122330894==_ma============" > > > I've read several little tutorials on the subject online, but no one > has answered what is, for me, a semi-crucial question: namely, is the > string that is used for the boundary arbitrary? Or must it follow a > certain convention? > > Cheers, > From suzerain at suzerain.com Wed Jul 14 07:11:40 2004 From: suzerain at suzerain.com (Marc Antony Vose) Date: Wed, 14 Jul 2004 07:11:40 -0400 Subject: [nycphp-talk] sending multipart email In-Reply-To: <40F5020D.8030507@criticalmedia.biz> References: <1089669206.11643.59.camel@brian.vermonster.com> <p06110403bd1a97244209@[192.168.1.44]> <40F5020D.8030507@criticalmedia.biz> Message-ID: <p06110404bd1ac5551598@[192.168.1.44]> Indeed. I just reworked my own class to extend that one instead of doing this for myself. Thanks, Marc >I could be wrong, but I believe I read somewhere a while ago that is >was arbitrary. Perhaps the easiest way to deal with multipart >messages I know of is to use the excellent mailing class at >http://phpmailer.sourceforge.net/ and then you do not have to worry >about it. It is by far the best mail class I have come across for >PHP. > >Alan > > > >Marc Antony Vose wrote: > >>Hey: >> >>Admittedly this is off-topic, but I am sending it with PHP, so...:) >> >>I have never sent multipart email before and am reading up on it, >>and I see that different portions of messages are separated by >>something like: >> >>boundary="============_-1122330894==_ma============" >> >> >>I've read several little tutorials on the subject online, but no >>one has answered what is, for me, a semi-crucial question: namely, >>is the string that is used for the boundary arbitrary? Or must it >>follow a certain convention? >> >>Cheers, >> > > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk From tom at supertom.com Wed Jul 14 09:30:38 2004 From: tom at supertom.com (Tom) Date: Wed, 14 Jul 2004 09:30:38 -0400 Subject: [nycphp-talk] custom controls to represent DB relationships In-Reply-To: <41EE526EC2D3C74286415780D3BA9F870306D1DC@ehost011-1.exch011.intermedia.net> Message-ID: <0I0U004ZKFHOC8@mta10.srv.hcvlny.cv.net> Hi Hans, Thanks for the response. What I am looking for is page widgets - HTML/JS doohickeys (technical term!) that enhance the user experience. Say you have a product that can be assigned to multiple categories - how are you representing this on the screen, so that users can quickly add/edit/delete multiple categories to that product? Also, how to you let them add a new category? The emphasis is on minimizing page refreshes, and trying to make it more like an application. Just trying to see what people have come up with. Thanks, Tom -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Hans Zaunere Sent: Tuesday, July 13, 2004 6:16 PM To: NYPHP Talk Subject: RE: [nycphp-talk] custom controls to represent DB relationships > I'm looking for examples of "more advanced" page controls that people have > developed to represent one to many and/or many to many DB relationships on a > web page, using PHP, JS and CSS. The purpose of these controls is to > allow uses to execute "mass" actions on data, such as deleting a group of > records at once, or reassigning several records to a different category. > Any thoughts, suggestions and examples would be greatly appreciated! Not sure I understand 100% - you mean transactions? Foreign key constraints? It sounds more like SQL level stuff, rather than something at a JS/CSS or even PHP level. H _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From sol2ray at yahoo.fr Wed Jul 14 09:27:05 2004 From: sol2ray at yahoo.fr (Sol) Date: Wed, 14 Jul 2004 06:27:05 -0700 (PDT) Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <B2860AFC-D555-11D8-9E11-000D93359332@omniti.com> Message-ID: <20040714132705.19238.qmail@web50201.mail.yahoo.com> --- George Schlossnagle <george at omniti.com> wrote: > > The analogy was supposed to mean that it's > meaningless to say that PHP > is intrinsically horizontally scalable when > necessary components of the > majority of applications aren't intrinsically > horizontally scalable. > PHP isn't the application (neither is Java). The > discussion should > really be about 'applications written in > (Java|PHP|Python|Lisp|OCaml|foo)' which is what I > think most people are > talking about when they talk about the scalability > of language X. > > Or at least that's what they should be talking > about. :) It seems that everyone agree on the meaning of "scalability" but not "WHERE" and "HOW" to apply it. Can an expert weight in here? __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail From danielc at analysisandsolutions.com Wed Jul 14 09:27:29 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 14 Jul 2004 09:27:29 -0400 Subject: [nycphp-talk] sending multipart email In-Reply-To: <p06110403bd1a97244209@[192.168.1.44]> References: <1089669206.11643.59.camel@brian.vermonster.com> <p06110403bd1a97244209@[192.168.1.44]> Message-ID: <20040714132729.GA19525@panix.com> On Wed, Jul 14, 2004 at 03:56:23AM -0400, Marc Antony Vose wrote: > boundary="============_-1122330894==_ma============" > > is the string that is used for the boundary arbitrary? Or must it > follow a certain convention? Each boundary in an email must be the same, except the last one, which needs to have "--" tacked on the end. But, each email must have a unique boundary. --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 george at omniti.com Wed Jul 14 09:48:59 2004 From: george at omniti.com (George Schlossnagle) Date: Wed, 14 Jul 2004 09:48:59 -0400 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <20040714132705.19238.qmail@web50201.mail.yahoo.com> References: <20040714132705.19238.qmail@web50201.mail.yahoo.com> Message-ID: <8E9D2FE6-D59C-11D8-9E11-000D93359332@omniti.com> On Jul 14, 2004, at 9:27 AM, Sol wrote: > It seems that everyone agree on the meaning of > "scalability" but not "WHERE" and "HOW" to apply it. > Can an expert weight in here? To make a semantic nitpick, I would say that you can't apply 'scalability'. You can aply 'scalability principles'. As far as how, that's quite beyond an email conversation. There are plenty of books, papers, talks and discussions about what design factors contribute to scalable design. Probably the best advice is to figure out what components of an architecture are unscalable (i.e. cannot be grown without changing their architectural design) and figuring out how to change them into something which can be scaled. As far as where (or I'd say 'when') you should try to make you applications scalable, I guess that's up to you. There are some folks who would say that you should always build your applications to be scalable. I think that's definitely valid if you're building any sort of commercial software or software you plan to set free in the wild. It's much easier to build something right from the ground-up than to redesign it later, and apps which leave your control often have a way of being pulled into uses you never suspected. As an aside, the stock definition of scalability that Hans threw out (which is an excellent one, imho) ignores the resource cost of scaling. In general, you would prefer a solution whose cost scales linearly (or better yet sub-linearly, good luck there) with cost. What this means is that if you are at capacity and you double your traffic, your costs should double as well. There are many applications which scale, but not linearly (due for example to interdependencies between services). These apps 'scale' but become cost prohibitive. > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail Address AutoComplete - You start. We finish. > http://promotions.yahoo.com/new_mail > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From tgales at tgaconnect.com Wed Jul 14 10:58:39 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 14 Jul 2004 10:58:39 -0400 Subject: [nycphp-talk] custom controls to represent DB relationships In-Reply-To: <0I0U004ZKFHOC8@mta10.srv.hcvlny.cv.net> Message-ID: <002201c469b3$0caa8220$e98d3818@oberon1> Tom writes: > > What I am looking for is page widgets - HTML/JS doohickeys > (technical term!) that enhance the user experience. > I don't know -- the following might interest you: http://webcomp.sourceforge.net/demo/examples/treestr.php T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From bpang at bpang.com Wed Jul 14 11:10:32 2004 From: bpang at bpang.com (Brian Pang) Date: Wed, 14 Jul 2004 10:10:32 -0500 Subject: [nycphp-talk] sending multipart email Message-ID: <E1BklOy-0002y2-E1@thc3.thehostingcompany.us> As far as I know, it's arbitrary, however it should be something that is 100% unique as any other matching string will be interpretted as a boundary. This is why they are usually long and perhaps appear to follow a convention, such as your example. But, technically, they don't have to be long or contain N instances of X. A perfectly legit boundary could be: boundary="and" tho the result would not be desirable. > Hey: > > Admittedly this is off-topic, but I am sending it with PHP, so...:) > > I have never sent multipart email before and am reading up on it, and > I see that different portions of messages are separated by something > like: > > boundary="============_-1122330894==_ma============" > > > I've read several little tutorials on the subject online, but no one > has answered what is, for me, a semi-crucial question: namely, is > the string that is used for the boundary arbitrary? Or must it > follow a certain convention? > > Cheers, > > -- > Marc Antony Vose > http://www.suzerain.com/ > > Goddamn writers -- all they do is use up trees and ruin people's eyes. > -- Gus, from Basic Instinct, by Joe Esterhaus > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From bpang at bpang.com Wed Jul 14 11:11:41 2004 From: bpang at bpang.com (Brian Pang) Date: Wed, 14 Jul 2004 10:11:41 -0500 Subject: [nycphp-talk] sending multipart email Message-ID: <E1BklQ5-00036P-Ly@thc3.thehostingcompany.us> oh yeah.. he's right about that "--" I forgot > On Wed, Jul 14, 2004 at 03:56:23AM -0400, Marc Antony Vose wrote: > > boundary="============_-1122330894==_ma============" > > > > is the string that is used for the boundary arbitrary? Or must it > > follow a certain convention? > > Each boundary in an email must be the same, except the last one, which > needs to have "--" tacked on the end. > > But, each email must have a unique boundary. > From bpang at bpang.com Wed Jul 14 11:21:13 2004 From: bpang at bpang.com (Brian Pang) Date: Wed, 14 Jul 2004 10:21:13 -0500 Subject: [nycphp-talk] PHP-related book comments Message-ID: <E1BklZJ-00048H-Qo@thc3.thehostingcompany.us> I agree. One of the things that originally got me started with PHP was that it was so easy to get started using it, without really having to think. It did feel like "magic". Now that I'm {a little|a lot} more familiar with it, I don't miss those "features" and even appreciate their absence. But I wonder to what degree it has raised the bar to newcomers/rookies. (I know that things like register_globals can be turned back on, but to explain that to a noob....) > Different sets of programmers used PHP back then, the Web was a > very different place, and PHP was just a quick and dirty language for > guest books, hit counters, and e-mailing forms. > From tgales at tgaconnect.com Wed Jul 14 11:49:41 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 14 Jul 2004 11:49:41 -0400 Subject: [nycphp-talk] PHP-related book comments In-Reply-To: <E1BklZJ-00048H-Qo@thc3.thehostingcompany.us> Message-ID: <002301c469ba$2deb10b0$e98d3818@oberon1> Brian Pang writes: > > I agree. One of the things that originally got me started > with PHP was that it was so easy to get started using it, > without really having to think. It did feel like "magic". > I had a similar feeling when first introduced to PHP (and to a certain extent still get this feeling from time to time) It reminds me of what a client once told me: "Oh boy, this is great -- I always wanted a computer to do my accounting". I cautioned him, "Whoa there, this computer is not going to 'do' your accounting for you. You will still have to 'do' your accounting. You will have to decide whether something is an office supplies expense or whether you should capitalize the money you spend on a new Xerox machine. The computer will only record your decisions -- you will still have to do the accounting". I was so happy when first working with PHP, because I was under the impression that PHP would 'do' all the HTTP stuff for me (without me having to learn anything about it). My bubble burst with the arrival of my first 'header already sent' message. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From bpang at bpang.com Wed Jul 14 12:04:13 2004 From: bpang at bpang.com (Brian Pang) Date: Wed, 14 Jul 2004 11:04:13 -0500 Subject: [nycphp-talk] PHP-related book comments Message-ID: <E1BkmEv-0000Jz-C7@thc3.thehostingcompany.us> If there was any "magic" feature to be added, it should be an auto trim() to include[_once]|require[_once] files so frustrating to get that message because of a trailing \n|\r after the closing ?> but if you close your (included) php with return;?> those trailing chars won't matter... try it create your own magic :) > My bubble burst with the arrival of my first > 'header already sent' message. From adam at trachtenberg.com Wed Jul 14 12:33:54 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Wed, 14 Jul 2004 12:33:54 -0400 (EDT) Subject: [nycphp-talk] PHP5 and domxml... any up to date docs or examples? In-Reply-To: <40F4DE0E.7000006@criticalmedia.biz> References: <40F4DE0E.7000006@criticalmedia.biz> Message-ID: <Pine.LNX.4.58.0407141229470.22857@miranda.org> On Wed, 14 Jul 2004, Alan T. Miller wrote: > Now that PHP5 is out, I wanted to play around with the new XML > implimentation. What I specifically want to do, is pull records from a > database and create XML files using the new libxml2 library. However, it > seems I cannot find any good examples or any definitive documentation on > how to do this with PHP5. So much has been in flux with the domxml > implimentation in PHP5 everything I come across is out of date. Any > suggestions? Any examples out there? I wrote this for PHP Magazine a few months ago, but it should still be correct. Happily, the whole article is now online for free: http://www.php-mag.net/itr/online_artikel/psecom,id,503,nodeid,114.html Christian Stocker also has a good set of slides on XML in PHP 5: http://php5.bitflux.org/phpconf2004/ -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From jeffknight at mac.com Wed Jul 14 12:48:56 2004 From: jeffknight at mac.com (Jeff Knight) Date: Wed, 14 Jul 2004 12:48:56 -0400 Subject: [nycphp-talk] PHP 5.0.0 live! In-Reply-To: <7ac626ed040713151817bb6c5a@mail.gmail.com> References: <41EE526EC2D3C74286415780D3BA9F870306D1DC@ehost011-1.exch011.intermedia.net> <7ac626ed040713151817bb6c5a@mail.gmail.com> Message-ID: <B295D321-D5B5-11D8-A8AF-000A95C0B064@mac.com> For all you 5'ers out there, I've got gif write support with RC3, is it in 5 now by default (if gd is enabled)? I muck around so much that I can't remember if this is something I did or it just came with the package. Did the php developers once again not wait for Boutell? On Jul 13, 2004, at 6:18 PM, Daniel Kushner wrote: > Hi all, > > After two years of development PHP 5.0.0 is finally up! > > Daniel Jeff Knight putamare not no freakin' junk at putamare.net >From hans not junk at nyphp.com Wed Jul 14 13:10:13 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 9F144A86BF for <talk at lists.nyphp.org>; Wed, 14 Jul 2004 13:10:13 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Wed, 14 Jul 2004 10:10:12 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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-related book comments Date: Wed, 14 Jul 2004 10:10:09 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870311B7F3 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] PHP-related book comments Thread-Index: AcRpvDmkBqfLy0QDRUypmt8vzdCoWwACIo2Q From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 14 Jul 2004 17:10:12.0928 (UTC) FILETIME=[6CDF8C00:01C469C5] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Wed, 14 Jul 2004 17:10:14 -0000 > If there was any "magic" feature to be added, it should be an auto > trim() to include[_once]|require[_once] files >=20 > so frustrating to get that message because of a trailing \n|\r after the > closing ?> >=20 > but if you close your (included) php with > return;?> >=20 > those trailing chars won't matter... try it > create your own magic :) This is exactly why I always leave off the closing tag on included files. Extra spaces etc. at the end of the file have no relevance, since PHP continues to parse until the end of the file. People say its sloppy style, but I disagree. It's worked perfectly for years, and in fact has saved me loads of time. I suspect, although haven't done any testing, that it's an added cycle of performance, too - albeit a small one, I admit - because PHP just folds in whitespace until the EOF, instead of seeing the closing tag and potentially then having to send more data to the output buffer H >From hans not junk at nyphp.com Wed Jul 14 13:12:36 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 6B2C9A86BF for <talk at lists.nyphp.org>; Wed, 14 Jul 2004 13:12:36 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Wed, 14 Jul 2004 10:12:35 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] custom controls to represent DB relationships Date: Wed, 14 Jul 2004 10:12:33 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870311B7FA at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] custom controls to represent DB relationships Thread-Index: AcRoViBL368F2zQtTiybDDiJDkMUBgA0HgGAAB/h4mAAB90pQA== From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 14 Jul 2004 17:12:35.0963 (UTC) FILETIME=[C220F4B0:01C469C5] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Wed, 14 Jul 2004 17:12:36 -0000 > Hi Hans, >=20 > Thanks for the response. >=20 > What I am looking for is page widgets - HTML/JS doohickeys (technical term!) > that enhance the user experience. >=20 > Say you have a product that can be assigned to multiple categories - how are > you representing this on the screen, so that users can quickly > add/edit/delete multiple categories to that product? Also, how to you let > them add a new category? The emphasis is on minimizing page refreshes, and > trying to make it more like an application. Just trying to see what people > have come up with. Ahh, sorry for the misunderstanding. I'm the wrong guy for getting stuff to look good on the screen :) This might be a good topic for NYPHP Front-End, too (http://nyphp.org/lists) H From bpang at bpang.com Wed Jul 14 13:20:49 2004 From: bpang at bpang.com (Brian Pang) Date: Wed, 14 Jul 2004 12:20:49 -0500 Subject: [nycphp-talk] custom controls to represent DB relationships Message-ID: <E1BknR3-0008Tv-T8@thc3.thehostingcompany.us> I'd use checkboxes, one for each category, and an "other" checkbox with an accompanying text field... if "other" is checked and a value entered in the text field, during form processing, I would add that value to my categories table. > > > Hi Hans, > > > > Thanks for the response. > > > > What I am looking for is page widgets - HTML/JS doohickeys (technical > term!) > > that enhance the user experience. > > > > Say you have a product that can be assigned to multiple categories - > how are > > you representing this on the screen, so that users can quickly > > add/edit/delete multiple categories to that product? Also, how to you > let > > them add a new category? The emphasis is on minimizing page > refreshes, and > > trying to make it more like an application. Just trying to see what > people > > have come up with. >From hans not junk at nyphp.com Wed Jul 14 13:23:08 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id F127EA86BF for <talk at lists.nyphp.org>; Wed, 14 Jul 2004 13:23:07 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Wed, 14 Jul 2004 10:23:07 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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 Scales, Our Chris Shiflett gets /.'d Date: Wed, 14 Jul 2004 10:23:05 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870311B823 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d Thread-Index: AcRpqVwTrR5UGYC4RR2IAZdsadq0DgAHHEzw From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 14 Jul 2004 17:23:07.0450 (UTC) FILETIME=[3A8639A0:01C469C7] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Wed, 14 Jul 2004 17:23:08 -0000 > As an aside, the stock definition of scalability that Hans threw out > (which is an excellent one, imho) ignores the resource cost of scaling. > In general, you would prefer a solution whose cost scales linearly (or > better yet sub-linearly, good luck there) with cost. What this means > is that if you are at capacity and you double your traffic, your costs > should double as well. There are many applications which scale, but > not linearly (due for example to interdependencies between services). > These apps 'scale' but become cost prohibitive. That's an excellent point. It's also interesting, however, how this point is so often left out. For instance, much of the stock definitions of scalability come from hardware manufactures... don't forget, Java is Sun. It seems a clever example of a marketing memory lapse. While they tout the ability for their hardware and software to scale, they never mention that it'd take their $25K server and $100K SANS to do it. Not to mention the cost of the software itself. Probably the primordial example of scaling is Google. 6000+ servers, none of which (that I'm aware) are much more than nearly throw away i386 boxes. And what language does most of it run? Basic, old school, C (although some Python/PHP is coming in house I hear). This is a perfect case where good architecture and design is what scaling is all about. Or maybe their cost of scaling is measured in PhD's? H From ajai at bitblit.net Wed Jul 14 13:36:19 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 14 Jul 2004 13:36:19 -0400 Subject: [nycphp-talk] custom controls to represent DB relationships In-Reply-To: <0I0U004ZKFHOC8@mta10.srv.hcvlny.cv.net> References: <0I0U004ZKFHOC8@mta10.srv.hcvlny.cv.net> Message-ID: <40F56F13.4040707@bitblit.net> Tom wrote: >What I am looking for is page widgets - HTML/JS doohickeys (technical term!) >that enhance the user experience. > >Say you have a product that can be assigned to multiple categories - how are >you representing this on the screen, so that users can quickly >add/edit/delete multiple categories to that product? Also, how to you let >them add a new category? The emphasis is on minimizing page refreshes, and >trying to make it more like an application. Just trying to see what people >have come up with. > Generally, I would use a multi-choice list for the categories and an extra field for adding a new category. I dont think you can avoid the roundtrip to the server when adding a category. I once wrote something (in ASP - bleh!) like this that loaded all the choices into JavaScript array objects from a database. Then as the user switches products, the categories can switch too by changing the array objects used in the category pulldowns through JavaScript callbacks. (A bit fiddly but it worked pretty well and it avoided a trip back to the server to just refresh the categories list). -- Aj. Systems Administrator / Developer From sm11szw02 at sneakemail.com Wed Jul 14 13:54:11 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Wed, 14 Jul 2004 13:54:11 -0400 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <41EE526EC2D3C74286415780D3BA9F870311B823@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F870311B823@ehost011-1.exch011.intermedia.net> Message-ID: <19422-65355@sneakemail.com> Hans Zaunere hans-at-nyphp.com |nyphp 04/2004| wrote: > Probably the primordial example of scaling is Google. 6000+ servers, > >none of which (that I'm aware) are much more than nearly throw away i386 >boxes. And what language does most of it run? Basic, old school, C >(although some Python/PHP is coming in house I hear). This is a perfect >case where good architecture and design is what scaling is all about. > > Or, a complete focus on *function* which boils down to http requests, querying a database and inserting functionality into the results set via html. If that is all you do, and you do tons of it, then you do it fast/cheap/efficient and that means as low level a language as you can bear on your platform (so they chose C.. pretty bare bones and completely in control). Let's not forget that when a company gets as big as Google, they own the platform so they do not need to accommodate anything that is not functional (unlike the rest of us, who must accommodate Windows bloat, PHP bloat, PyThon bloat, or the whims of the consumer marketplace). Usually companies had to go that route by makng specialized custom hardware, and the volume + dominance coming from being the absolute best at that "thing" paid for the extra expenses. Google's "custom hardware" is made of common components. I think it must be very interesting to discuss the pros/cons of COTS (commercial off the shelf technology) at Google. Yes then went COTS, but they did so on a platform that is out of date (x86 architecture?). Where is the threshold?.... 6000+ old servers with old power consumption, old connector requirements, old cooling requirements, old failure rates, old memory/component requirements, need for C experts, etc.... at some point I imagine a strong case can be made for replacing it with a modern solution. If they did that, however, they would lose some of their fly-by-the-seat-of-their-pants flexibility. Let's face it, they used to have to worry about what they would be tomorrow, but now it's pretty clear they will always need to be Google the search engine that communicates via http and serves up query results with inserted XHTML codes in the results set. Ever hear the joke about why Google programs in C? Because it's the only language that Ph.D's know how to code. From jlacey at att.net Wed Jul 14 14:02:49 2004 From: jlacey at att.net (John Lacey) Date: Wed, 14 Jul 2004 12:02:49 -0600 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <41EE526EC2D3C74286415780D3BA9F870311B823@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F870311B823@ehost011-1.exch011.intermedia.net> Message-ID: <40F57549.8020404@att.net> Hans Zaunere wrote: >Probably the primordial example of scaling is Google. 6000+ servers, >none of which (that I'm aware) are much more than nearly throw away i386 >boxes. And what language does most of it run? Basic, old school, C >(although some Python/PHP is coming in house I hear). This is a perfect >case where good architecture and design is what scaling is all about. > >Or maybe their cost of scaling is measured in PhD's? > > > > I don't recall if this was mentioned but the comment about "PhD's" is one that is often left out of technical discussions on scaling and scalability -- and that is the people cost. To count the cost of scaling an app or set of apps, the people cost can be significant, which is why the systems management issue is critical. Several years ago when I was teaching the network 'capstone' course, Network Analysis & Design, I would remind people both verbally and in role-playing that some of the technical aspects of the job are easy, it's the people problems that are gonna bite them in the ass :) J From tgales at tgaconnect.com Wed Jul 14 14:14:30 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 14 Jul 2004 14:14:30 -0400 Subject: [nycphp-talk] PHP Scales, Our Chris Shiflett gets /.'d In-Reply-To: <40F57549.8020404@att.net> Message-ID: <000801c469ce$68959730$e98d3818@oberon1> John Lacey writes: > > I would remind people both verbally and in role-playing that > some of the > technical aspects of the job are easy, it's the people > problems that are gonna bite them in the ass :) > In some cases its easier to get the computers to talk to each other, than it is to get the people communicating. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From preinheimer at gmail.com Wed Jul 14 15:22:27 2004 From: preinheimer at gmail.com (Paul Reinheimer) Date: Wed, 14 Jul 2004 15:22:27 -0400 Subject: [nycphp-talk] Basic security question Message-ID: <6ec19ec70407141222152c4559@mail.gmail.com> Every attack wether web or otherwise I have heard about starts with learning as much as you can about the target's systems, then seeking to exploit some either known or unknown security holes in the software that system is running. Knowing that, why reveal anything? Make the potential attacker work for every peice of information they want. Set the apache server string to claim it is some recent release of IIS, tell all the services not to advertise they are running, save your .php files as .exe and tell apache just to interpret apropriatly. etc. Obviously if you choose to run some off the shelf application (ie phpBB) you will let the cat out of the bag, but seperating it to a subdomain may only add to the confusion. Does anyone see any real advantage to this approach? paul From phillip.powell at adnet-sys.com Wed Jul 14 15:33:08 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Wed, 14 Jul 2004 15:33:08 -0400 Subject: [nycphp-talk] Basic security question In-Reply-To: <6ec19ec70407141222152c4559@mail.gmail.com> References: <6ec19ec70407141222152c4559@mail.gmail.com> Message-ID: <40F58A74.9040904@adnet-sys.com> I can tell you PHP folk up in NY do not work for the US Feds nor for a federal contractor, but were you ever to do so, you'd find how horribly security measures that deal with the Web fly in the face of federally-mandated Section 508 Compliance. Augh! You have to put your EMAIL address on your website, how secure is THAT??? I do know of some PHP programmers in DC for the Labor Dept that once "spoofed" Apache into interpreting PHP files as ".asp" (and to show itself as IIS!) to spoof the higher-ups that everything was in a M$ environment to "make them happy". Phil Paul Reinheimer wrote: >Every attack wether web or otherwise I have heard about starts with >learning as much as you can about the target's systems, then seeking >to exploit some either known or unknown security holes in the software >that system is running. > >Knowing that, why reveal anything? Make the potential attacker work >for every peice of information they want. Set the apache server string >to claim it is some recent release of IIS, tell all the services not >to advertise they are running, save your .php files as .exe and tell >apache just to interpret apropriatly. etc. Obviously if you choose to >run some off the shelf application (ie phpBB) you will let the cat out >of the bag, but seperating it to a subdomain may only add to the >confusion. > >Does anyone see any real advantage to this approach? > > >paul >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From preinheimer at gmail.com Wed Jul 14 15:35:00 2004 From: preinheimer at gmail.com (Paul Reinheimer) Date: Wed, 14 Jul 2004 15:35:00 -0400 Subject: [nycphp-talk] Basic security question In-Reply-To: <40F58A74.9040904@adnet-sys.com> References: <6ec19ec70407141222152c4559@mail.gmail.com> <40F58A74.9040904@adnet-sys.com> Message-ID: <6ec19ec704071412353f885725@mail.gmail.com> See, if that was convincing enough prospective attacker would spend a lot of time going after IIS and ASP vulnerabilities that presumably (in the same form) exist in Apache and php. paul On Wed, 14 Jul 2004 15:33:08 -0400, Phillip Powell <phillip.powell at adnet-sys.com> wrote: > I can tell you PHP folk up in NY do not work for the US Feds nor for a > federal contractor, but were you ever to do so, you'd find how horribly > security measures that deal with the Web fly in the face of > federally-mandated Section 508 Compliance. > > Augh! You have to put your EMAIL address on your website, how secure is > THAT??? > > I do know of some PHP programmers in DC for the Labor Dept that once > "spoofed" Apache into interpreting PHP files as ".asp" (and to show > itself as IIS!) to spoof the higher-ups that everything was in a M$ > environment to "make them happy". > > Phil > > > > Paul Reinheimer wrote: > > >Every attack wether web or otherwise I have heard about starts with > >learning as much as you can about the target's systems, then seeking > >to exploit some either known or unknown security holes in the software > >that system is running. > > > >Knowing that, why reveal anything? Make the potential attacker work > >for every peice of information they want. Set the apache server string > >to claim it is some recent release of IIS, tell all the services not > >to advertise they are running, save your .php files as .exe and tell > >apache just to interpret apropriatly. etc. Obviously if you choose to > >run some off the shelf application (ie phpBB) you will let the cat out > >of the bag, but seperating it to a subdomain may only add to the > >confusion. > > > >Does anyone see any real advantage to this approach? > > > > > >paul > >_______________________________________________ > >talk mailing list > >talk at lists.nyphp.org > >http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > -- > --------------------------------------------------------------------------------- > Phil Powell > Multimedia Programmer > BPX Technologies, Inc. > #: (703) 709-7218 x107 > Fax: (703) 709-7219 > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From andrew at digitalpulp.com Wed Jul 14 15:42:00 2004 From: andrew at digitalpulp.com (Andrew Yochum) Date: Wed, 14 Jul 2004 15:42:00 -0400 Subject: [nycphp-talk] Basic security question In-Reply-To: <6ec19ec70407141222152c4559@mail.gmail.com> References: <6ec19ec70407141222152c4559@mail.gmail.com> Message-ID: <20040714194151.GO15587@thighmaster.digitalpulp.com> On Wed, Jul 14, 2004 at 03:22:27PM -0400, Paul Reinheimer wrote: > Every attack wether web or otherwise I have heard about starts with > learning as much as you can about the target's systems, then seeking > to exploit some either known or unknown security holes in the software > that system is running. > > Knowing that, why reveal anything? Make the potential attacker work > for every peice of information they want. Set the apache server string > to claim it is some recent release of IIS, tell all the services not > to advertise they are running, save your .php files as .exe and tell > apache just to interpret apropriatly. etc. Obviously if you choose to > run some off the shelf application (ie phpBB) you will let the cat out > of the bag, but seperating it to a subdomain may only add to the > confusion. > > Does anyone see any real advantage to this approach? Many call this "security through obscurity." IMO, it only will stall an attacker by confusing them for a bit. Its easy to use forensics to determine what technologies / platforms are being used. There is a decent discussion of this here: http://en.wikipedia.org/wiki/Security_through_obscurity ... and I'm sure many other places if you google around. Andrew From Cbielanski at inta.org Wed Jul 14 15:47:46 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Wed, 14 Jul 2004 15:47:46 -0400 Subject: [nycphp-talk] Basic security question Message-ID: <C0CDB9F5E81C234FBB42D84E7853125D013B0A65@intamail1.inta> I had a much longer response in preparation, but Andrew just nailed it. Obscurity is not security. And yes, it only stops the timid assailant. A determined cracker will take it *personally* that you configured your server to tell *lies* to its "friendly users"!! The NERVE!! He'll fix YOU, buddy! :) And *poof* another one bites the dust, nah? 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: Paul Reinheimer [mailto:preinheimer at gmail.com] > Sent: Wednesday, July 14, 2004 3:35 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Basic security question > > > See, if that was convincing enough prospective attacker would spend a > lot of time going after IIS and ASP vulnerabilities that presumably > (in the same form) exist in Apache and php. > > > paul > > On Wed, 14 Jul 2004 15:33:08 -0400, Phillip Powell > <phillip.powell at adnet-sys.com> wrote: > > I can tell you PHP folk up in NY do not work for the US > Feds nor for a > > federal contractor, but were you ever to do so, you'd find > how horribly > > security measures that deal with the Web fly in the face of > > federally-mandated Section 508 Compliance. > > > > Augh! You have to put your EMAIL address on your website, > how secure is > > THAT??? > > > > I do know of some PHP programmers in DC for the Labor Dept that once > > "spoofed" Apache into interpreting PHP files as ".asp" (and to show > > itself as IIS!) to spoof the higher-ups that everything was in a M$ > > environment to "make them happy". > > > > Phil > > > > > > > > Paul Reinheimer wrote: > > > > >Every attack wether web or otherwise I have heard about starts with > > >learning as much as you can about the target's systems, > then seeking > > >to exploit some either known or unknown security holes in > the software > > >that system is running. > > > > > >Knowing that, why reveal anything? Make the potential attacker work > > >for every peice of information they want. Set the apache > server string > > >to claim it is some recent release of IIS, tell all the > services not > > >to advertise they are running, save your .php files as > .exe and tell > > >apache just to interpret apropriatly. etc. Obviously if > you choose to > > >run some off the shelf application (ie phpBB) you will let > the cat out > > >of the bag, but seperating it to a subdomain may only add to the > > >confusion. > > > > > >Does anyone see any real advantage to this approach? > > > > > > > > >paul > > >_______________________________________________ > > >talk mailing list > > >talk at lists.nyphp.org > > >http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > > > > > > -- > > > -------------------------------------------------------------- > ------------------- > > Phil Powell > > Multimedia Programmer > > BPX Technologies, Inc. > > #: (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 sklar at sklar.com Wed Jul 14 15:44:42 2004 From: sklar at sklar.com (David Sklar) Date: Wed, 14 Jul 2004 15:44:42 -0400 Subject: [nycphp-talk] Basic security question In-Reply-To: <6ec19ec70407141222152c4559@mail.gmail.com> References: <6ec19ec70407141222152c4559@mail.gmail.com> Message-ID: <40F58D2A.4030201@sklar.com> Paul Reinheimer wrote: > Every attack wether web or otherwise I have heard about starts with > learning as much as you can about the target's systems, then seeking > to exploit some either known or unknown security holes in the software > that system is running. > > Knowing that, why reveal anything? Make the potential attacker work > for every peice of information they want. Set the apache server string > to claim it is some recent release of IIS, tell all the services not > to advertise they are running, save your .php files as .exe and tell > apache just to interpret apropriatly. etc. Obviously if you choose to > run some off the shelf application (ie phpBB) you will let the cat out > of the bag, but seperating it to a subdomain may only add to the > confusion. > > Does anyone see any real advantage to this approach? Like all potentially security-increasing activities, this one is a trade-off. You are certainly confusing potential attackers, but you may also be confusing yourself (or your staff) -- the nonstandard configuration that makes your Apache/PHP setup look like IIS or some imaginary server requires more maintenance overhead to keep up to date, to explain to new employees, to edit when submitting bug reports, etc. It's not a huge overhead, but it's there. A middle ground that I have used in the past is to tell Apache that files that end in ".html" should be handled by PHP. This provides a little bit of masking-from-attackers, makes things easy for non-technical folks working on the web site (since "everything" can have PHP in it, just save all files as .html), and is easy to maintain. David From jlacey at att.net Wed Jul 14 15:45:07 2004 From: jlacey at att.net (John Lacey) Date: Wed, 14 Jul 2004 13:45:07 -0600 Subject: [nycphp-talk] Basic security question In-Reply-To: <6ec19ec70407141222152c4559@mail.gmail.com> References: <6ec19ec70407141222152c4559@mail.gmail.com> Message-ID: <40F58D43.7010306@att.net> Paul Reinheimer wrote: >Every attack wether web or otherwise I have heard about starts with >learning as much as you can about the target's systems, then seeking >to exploit some either known or unknown security holes in the software >that system is running. > > "know your enemy" is never a bad strategy :) >Knowing that, why reveal anything? Make the potential attacker work >for every peice of information they want. Set the apache server string >to claim it is some recent release of IIS, tell all the services not >to advertise they are running, save your .php files as .exe and tell >apache just to interpret apropriatly. etc. Obviously if you choose to >run some off the shelf application (ie phpBB) you will let the cat out >of the bag, but seperating it to a subdomain may only add to the >confusion. > >Does anyone see any real advantage to this approach? > > > Like locks on doors, doing things like this will keep the casual attacker and script kiddies at bay. For the more serious and persistent attacker who wants to gain entry, it's a bit more complicated. For example, you can try to hide your operating system type, but the TCP/IP stack will have a certain "signature". Running carefully crafted packets against this stack can pretty much reveal what the site is running, regardless of what they're "advertising". John From mitchy at spacemonkeylabs.com Wed Jul 14 15:46:34 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Wed, 14 Jul 2004 15:46:34 -0400 Subject: [nycphp-talk] Basic security question In-Reply-To: <6ec19ec70407141222152c4559@mail.gmail.com> References: <6ec19ec70407141222152c4559@mail.gmail.com> Message-ID: <40F58D9A.6080808@spacemonkeylabs.com> Paul Reinheimer wrote: >Every attack wether web or otherwise I have heard about starts with >learning as much as you can about the target's systems, then seeking >to exploit some either known or unknown security holes in the software >that system is running. > >Knowing that, why reveal anything? Make the potential attacker work >for every peice of information they want. Set the apache server string >to claim it is some recent release of IIS, tell all the services not >to advertise they are running, save your .php files as .exe and tell >apache just to interpret apropriatly. etc. Obviously if you choose to >run some off the shelf application (ie phpBB) you will let the cat out >of the bag, but seperating it to a subdomain may only add to the >confusion. > >Does anyone see any real advantage to this approach? > > This is called 'security through obscurity', and can be effective as part of a LAYERED approach, but certainly cannot achieve better results than hardened operating systems and carefully configured application services. -- Mitch From mitchy at spacemonkeylabs.com Wed Jul 14 15:50:44 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Wed, 14 Jul 2004 15:50:44 -0400 Subject: [nycphp-talk] Basic security question In-Reply-To: <C0CDB9F5E81C234FBB42D84E7853125D013B0A65@intamail1.inta> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A65@intamail1.inta> Message-ID: <40F58E94.50106@spacemonkeylabs.com> Chris Bielanski wrote: >I had a much longer response in preparation, but Andrew just nailed it. >Obscurity is not security. And yes, it only stops the timid assailant. > Not anymore, the script kiddies' scripts are smart enough to not rely on the HTTP headers for server/OS identification, and many use NMAP for its fingerprinting prowess. Perhaps the only thing you would fool is the next NIMDA variant, at best... Whatever time you spend modifying your banners and HTTP headers is wasted, IMHO. -- Mitch From jlacey at att.net Wed Jul 14 15:53:18 2004 From: jlacey at att.net (John Lacey) Date: Wed, 14 Jul 2004 13:53:18 -0600 Subject: [nycphp-talk] Basic security question In-Reply-To: <40F58E94.50106@spacemonkeylabs.com> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A65@intamail1.inta> <40F58E94.50106@spacemonkeylabs.com> Message-ID: <40F58F2E.9050501@att.net> Mitch Pirtle wrote: > > Whatever time you spend modifying your banners and HTTP headers is > wasted, IMHO. Well, not if everyone pretends they're running a SCO box :) From preinheimer at gmail.com Wed Jul 14 15:55:12 2004 From: preinheimer at gmail.com (Paul Reinheimer) Date: Wed, 14 Jul 2004 15:55:12 -0400 Subject: [nycphp-talk] Basic security question In-Reply-To: <40F58E94.50106@spacemonkeylabs.com> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A65@intamail1.inta> <40F58E94.50106@spacemonkeylabs.com> Message-ID: <6ec19ec7040714125542b23bdb@mail.gmail.com> I never intended this to be the end all approach to my security (as some seem to be under that impression), but instead combine it with carefull coding, keeping packages up to date, apropriate firewall rules, etc. I hadn't really considered the trade offs to be that severe, but it certainly seems to be something I should look at more closely. I wasn't aware that tools capable of really determining what applications was really running were that wide spread, I saw that one had been updated recently on slashdot, but hadn't considered them that common in script kiddie world. paul On Wed, 14 Jul 2004 15:50:44 -0400, Mitch Pirtle <mitchy at spacemonkeylabs.com> wrote: > Chris Bielanski wrote: > > >I had a much longer response in preparation, but Andrew just nailed it. > >Obscurity is not security. And yes, it only stops the timid assailant. > > > > Not anymore, the script kiddies' scripts are smart enough to not rely on > the HTTP headers for server/OS identification, and many use NMAP for its > fingerprinting prowess. Perhaps the only thing you would fool is the > next NIMDA variant, at best... > > Whatever time you spend modifying your banners and HTTP headers is > wasted, IMHO. > > -- Mitch > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From phillip.powell at adnet-sys.com Wed Jul 14 16:00:31 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Wed, 14 Jul 2004 16:00:31 -0400 Subject: [nycphp-talk] Basic security question In-Reply-To: <C0CDB9F5E81C234FBB42D84E7853125D013B0A65@intamail1.inta> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A65@intamail1.inta> Message-ID: <40F590DF.6090202@adnet-sys.com> Chris Bielanski wrote: >I had a much longer response in preparation, but Andrew just nailed it. >Obscurity is not security. And yes, it only stops the timid assailant. A >determined cracker will take it *personally* that you configured your server >to tell *lies* to its "friendly users"!! The NERVE!! He'll fix YOU, buddy! >:) > > > I don't think they did it for the added "security through obsecurity" inasmuch as the fact that they were PHP programmers that were working on a federal government contract that mandated that everything web-wise be done in ASP. So that was their "workaround". Not "obscurity" as much as plain ol' foolin'. Phil >And *poof* another one bites the dust, nah? > > >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: Paul Reinheimer [mailto:preinheimer at gmail.com] >>Sent: Wednesday, July 14, 2004 3:35 PM >>To: NYPHP Talk >>Subject: Re: [nycphp-talk] Basic security question >> >> >>See, if that was convincing enough prospective attacker would spend a >>lot of time going after IIS and ASP vulnerabilities that presumably >>(in the same form) exist in Apache and php. >> >> >>paul >> >>On Wed, 14 Jul 2004 15:33:08 -0400, Phillip Powell >><phillip.powell at adnet-sys.com> wrote: >> >> >>>I can tell you PHP folk up in NY do not work for the US >>> >>> >>Feds nor for a >> >> >>>federal contractor, but were you ever to do so, you'd find >>> >>> >>how horribly >> >> >>>security measures that deal with the Web fly in the face of >>>federally-mandated Section 508 Compliance. >>> >>>Augh! You have to put your EMAIL address on your website, >>> >>> >>how secure is >> >> >>>THAT??? >>> >>>I do know of some PHP programmers in DC for the Labor Dept that once >>>"spoofed" Apache into interpreting PHP files as ".asp" (and to show >>>itself as IIS!) to spoof the higher-ups that everything was in a M$ >>>environment to "make them happy". >>> >>>Phil >>> >>> >>> >>>Paul Reinheimer wrote: >>> >>> >>> >>>>Every attack wether web or otherwise I have heard about starts with >>>>learning as much as you can about the target's systems, >>>> >>>> >>then seeking >> >> >>>>to exploit some either known or unknown security holes in >>>> >>>> >>the software >> >> >>>>that system is running. >>>> >>>>Knowing that, why reveal anything? Make the potential attacker work >>>>for every peice of information they want. Set the apache >>>> >>>> >>server string >> >> >>>>to claim it is some recent release of IIS, tell all the >>>> >>>> >>services not >> >> >>>>to advertise they are running, save your .php files as >>>> >>>> >>.exe and tell >> >> >>>>apache just to interpret apropriatly. etc. Obviously if >>>> >>>> >>you choose to >> >> >>>>run some off the shelf application (ie phpBB) you will let >>>> >>>> >>the cat out >> >> >>>>of the bag, but seperating it to a subdomain may only add to the >>>>confusion. >>>> >>>>Does anyone see any real advantage to this approach? >>>> >>>> >>>>paul >>>>_______________________________________________ >>>>talk mailing list >>>>talk at lists.nyphp.org >>>>http://lists.nyphp.org/mailman/listinfo/talk >>>> >>>> >>>> >>>> >>>> >>>-- >>> >>> >>> >>-------------------------------------------------------------- >>------------------- >> >> >>>Phil Powell >>>Multimedia Programmer >>>BPX Technologies, Inc. >>>#: (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 >> >> >> >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From Cbielanski at inta.org Wed Jul 14 16:05:17 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Wed, 14 Jul 2004 16:05:17 -0400 Subject: [nycphp-talk] Basic security question Message-ID: <C0CDB9F5E81C234FBB42D84E7853125D013B0A67@intamail1.inta> Believe it. A lot of the security people I know got their start playing with toys from the old l0pht team (now part of @Stake security), and the tools of even two and three sophisticated and freely available (gotta love P2P filesharing). For example, Back Orifice was such a nightmare because it was *everywhere* and it did a really good job of sneaking past NT security. Combine that with the omnipresent l0pht-crack and you had a one-two punch that could keep Ops busy for a week trying to find and plug the holes because M$ didn't have patches - or worse *couldn't* fix it at the OS level because things like BO used ports that Windows generally couldn't live without. I never let the thought enter my mind that "the apps aren't out there" because they are, and they're both sophisticated and supported. Many people sit up late every night thinking and plotting and planning and coding, just to make life difficult for other people's PCs. 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: Paul Reinheimer [mailto:preinheimer at gmail.com] > Sent: Wednesday, July 14, 2004 3:55 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Basic security question > > > I never intended this to be the end all approach to my security (as > some seem to be under that impression), but instead combine it with > carefull coding, keeping packages up to date, apropriate firewall > rules, etc. > > I hadn't really considered the trade offs to be that severe, but it > certainly seems to be something I should look at more closely. > > I wasn't aware that tools capable of really determining what > applications was really running were that wide spread, I saw that one > had been updated recently on slashdot, but hadn't considered them that > common in script kiddie world. > > > paul > > > > > On Wed, 14 Jul 2004 15:50:44 -0400, Mitch Pirtle > <mitchy at spacemonkeylabs.com> wrote: > > Chris Bielanski wrote: > > > > >I had a much longer response in preparation, but Andrew > just nailed it. > > >Obscurity is not security. And yes, it only stops the > timid assailant. > > > > > > > Not anymore, the script kiddies' scripts are smart enough > to not rely on > > the HTTP headers for server/OS identification, and many use > NMAP for its > > fingerprinting prowess. Perhaps the only thing you would > fool is the > > next NIMDA variant, at best... > > > > Whatever time you spend modifying your banners and HTTP headers is > > wasted, IMHO. > > > > -- Mitch > > > > > > _______________________________________________ > > 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 Wed Jul 14 16:07:50 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Wed, 14 Jul 2004 16:07:50 -0400 Subject: [nycphp-talk] RE: Basic Security Question Message-ID: <C0CDB9F5E81C234FBB42D84E7853125D013B0A68@intamail1.inta> <? preg_replace("/two or three sophisticated/i","two or three years ago were sophisticated", $my_prev_post); ?> oops :) 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 Jul 14 16:10:42 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 14 Jul 2004 16:10:42 -0400 Subject: [nycphp-talk] Basic security question In-Reply-To: <6ec19ec70407141222152c4559@mail.gmail.com> Message-ID: <002c01c469de$a5a77d90$e98d3818@oberon1> Paul Reinheimer writes: > Subject: [nycphp-talk] Basic security question > > > Every attack wether web or otherwise I have heard about > starts with learning as much as you can about the target's > systems > Knowing that, why reveal anything? Make the potential > attacker work for every peice of information they want. Set > the apache server string to claim it is some recent release > of IIS... > Does anyone see any real advantage to this approach? > before going down the mis-direction route, you might be interested in reading: http://jerry.cs.uiuc.edu/~plop/plop2002/final/mkis_plop_2002.pdf It discusses 2 antipatterns (or patterns that are known to be faulty or problematic) in security. The first pattern is my personal favorite -- you can't just 'bolt on security' after the application is built (very roughly paraphrased) The second I would name 'what you don't know could definitely hurt you'. (overlooking data sensitivity classification) T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From mitchy at spacemonkeylabs.com Wed Jul 14 16:17:54 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Wed, 14 Jul 2004 16:17:54 -0400 Subject: [nycphp-talk] Basic security question In-Reply-To: <6ec19ec7040714125542b23bdb@mail.gmail.com> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A65@intamail1.inta> <40F58E94.50106@spacemonkeylabs.com> <6ec19ec7040714125542b23bdb@mail.gmail.com> Message-ID: <40F594F2.3040808@spacemonkeylabs.com> Paul Reinheimer wrote: >I never intended this to be the end all approach to my security (as >some seem to be under that impression), but instead combine it with >carefull coding, keeping packages up to date, apropriate firewall >rules, etc. > >I hadn't really considered the trade offs to be that severe, but it >certainly seems to be something I should look at more closely. > >I wasn't aware that tools capable of really determining what >applications was really running were that wide spread, I saw that one >had been updated recently on slashdot, but hadn't considered them that >common in script kiddie world. > > Here is a very good starting point to see just how many tools are available: http://www.insecure.org/tools.html The swiss-army knife of scanners seems to be NMAP, with Nessus good for purty reports and ethereal for snooping. My favorite is ettercap, an evil tool that enables you to poison a switch, therefore seeing the rest of the traffic on that segment (that you weren't supposed to see). I got a great security story about that if anyone is interested off-line. ;) -- Mitch From jlacey at att.net Wed Jul 14 16:22:55 2004 From: jlacey at att.net (John Lacey) Date: Wed, 14 Jul 2004 14:22:55 -0600 Subject: [nycphp-talk] Basic security question In-Reply-To: <40F594F2.3040808@spacemonkeylabs.com> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A65@intamail1.inta> <40F58E94.50106@spacemonkeylabs.com> <6ec19ec7040714125542b23bdb@mail.gmail.com> <40F594F2.3040808@spacemonkeylabs.com> Message-ID: <40F5961F.9080807@att.net> Mitch Pirtle wrote: > > The swiss-army knife of scanners seems to be NMAP, with Nessus good > for purty reports and ethereal for snooping. My favorite is ettercap, > an evil tool that enables you to poison a switch, therefore seeing the > rest of the traffic on that segment (that you weren't supposed to > see). I got a great security story about that if anyone is interested > off-line. ;) hmmm... if you can "convert" the switch port to be a monitor port, assuming it's not running VLANs or in full duplex mode... I'm familiar with poisoning a RIP route, but haven't heard that term applies to a switched segment. btw, if anyone wants a swiss army knife of security tools: http://www.edmunds-enterprises.com/linux/cart.php/ba/pdtl/product/225 and the home: http://knoppix-std.org/ John From jlacey at att.net Wed Jul 14 16:37:30 2004 From: jlacey at att.net (John Lacey) Date: Wed, 14 Jul 2004 14:37:30 -0600 Subject: [nycphp-talk] Basic security question In-Reply-To: <40F594F2.3040808@spacemonkeylabs.com> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A65@intamail1.inta> <40F58E94.50106@spacemonkeylabs.com> <6ec19ec7040714125542b23bdb@mail.gmail.com> <40F594F2.3040808@spacemonkeylabs.com> Message-ID: <40F5998A.9030802@att.net> Mitch Pirtle wrote: > The swiss-army knife of scanners seems to be NMAP, with Nessus good > for purty reports and ethereal for snooping. My favorite is ettercap, > an evil tool that enables you to poison a switch, therefore seeing the > rest of the traffic on that segment (that you weren't supposed to > see). I got a great security story about that if anyone is interested > off-line. ;) > ahh... poisoning the switch's ARP cache... now I see From mitchy at spacemonkeylabs.com Wed Jul 14 17:17:17 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Wed, 14 Jul 2004 17:17:17 -0400 Subject: [nycphp-talk] Basic security question In-Reply-To: <40F5998A.9030802@att.net> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A65@intamail1.inta> <40F58E94.50106@spacemonkeylabs.com> <6ec19ec7040714125542b23bdb@mail.gmail.com> <40F594F2.3040808@spacemonkeylabs.com> <40F5998A.9030802@att.net> Message-ID: <40F5A2DD.8080705@spacemonkeylabs.com> John Lacey wrote: > Mitch Pirtle wrote: > >> The swiss-army knife of scanners seems to be NMAP, with Nessus good >> for purty reports and ethereal for snooping. My favorite is >> ettercap, an evil tool that enables you to poison a switch, therefore >> seeing the rest of the traffic on that segment (that you weren't >> supposed to see). I got a great security story about that if anyone >> is interested off-line. ;) >> > ahh... poisoning the switch's ARP cache... now I see Yep, and it is pretty rude as the only way to returnthe network to normal operations is to reset the switch. Only use in emergency! -- Mitch From sm11szw02 at sneakemail.com Wed Jul 14 17:38:48 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Wed, 14 Jul 2004 17:38:48 -0400 Subject: [nycphp-talk] Basic security question In-Reply-To: <6ec19ec70407141222152c4559@mail.gmail.com> References: <6ec19ec70407141222152c4559@mail.gmail.com> Message-ID: <17735-46397@sneakemail.com> You get some great advice out of the PHP community on some pretty sophisticated stuff, because as we have all heard it ain't so much about PHP as it is about the PLATFORM and the APPS. When the discussion approaches ARP cache poisoning, you know there is some real depth to this commuity :-) Now let's make it also clear that when you step into the realm of *security* (or privacy) you need to adddress the DATA in addition to all else. Im my view it is essential that you: -be able to restore your data easily and efficiently *at any time* (how many can do that?) to the same or another system -have nothing of high value to hackers available to hackers (not as hard as it sounds, but the devil is in the details) e.g. translucent databases -have a process in place (tested, secure, reliable) to respond to compromise in the course of normal business (as normal as possible) -determine and document and publicize (raise awareness internally ) of the downtime and risks associated with your setup, so there are no surprises if *everything* is lost. It should be just a normal business event to rebuild/restore everything (planned to be a rare event, but not a disastrous event) There are many businesses that would not survive a fire - they would be devastated and go bankrupt. Ditto for compromise or breech of servers and networks. It doesn't have to be that way, and those who are prepared will survive. Now, to get the costs of preparedness approved by management.... that is another story. -=john Paul Reinheimer preinheimer-at-gmail.com |nyphp 04/2004| wrote: >Every attack wether web or otherwise I have heard about starts with >learning as much as you can about the target's systems, then seeking >to exploit some either known or unknown security holes in the software >that system is running. > >Knowing that, why reveal anything? Make the potential attacker work >for every peice of information they want. Set the apache server string >to claim it is some recent release of IIS, tell all the services not >to advertise they are running, save your .php files as .exe and tell >apache just to interpret apropriatly. etc. Obviously if you choose to >run some off the shelf application (ie phpBB) you will let the cat out >of the bag, but seperating it to a subdomain may only add to the >confusion. > >Does anyone see any real advantage to this approach? > > >paul > From phillip.powell at adnet-sys.com Wed Jul 14 18:00:07 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Wed, 14 Jul 2004 18:00:07 -0400 Subject: [nycphp-talk] Basic security question In-Reply-To: <40F5A2DD.8080705@spacemonkeylabs.com> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A65@intamail1.inta> <40F58E94.50106@spacemonkeylabs.com> <6ec19ec7040714125542b23bdb@mail.gmail.com> <40F594F2.3040808@spacemonkeylabs.com> <40F5998A.9030802@att.net> <40F5A2DD.8080705@spacemonkeylabs.com> Message-ID: <40F5ACE7.2080800@adnet-sys.com> Mitch Pirtle wrote: > John Lacey wrote: > >> Mitch Pirtle wrote: >> >>> The swiss-army knife of scanners seems to be NMAP, with Nessus good >>> for purty reports and ethereal for snooping. My favorite is >>> ettercap, an evil tool that enables you to poison a switch, >>> therefore seeing the rest of the traffic on that segment (that you >>> weren't supposed to see). I got a great security story about that >>> if anyone is interested off-line. ;) >>> >> ahh... poisoning the switch's ARP cache... now I see > > > > Yep, and it is pretty rude as the only way to returnthe network to > normal operations is to reset the switch. Only use in emergency! > > -- Mitch > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > I am getting the impression that the reason for my "outside status" from an e-psychological approach comes from the fact that, from what I can tell of your postings here, you guys are PHP developers with extensive networking and engineering backgrounds for large public sectors.. I happen to be a PHP/ASP/TCL/Javascript web application developer with no networking and engineering background for small private and governmental sectors.. no matter 98% of what you all talk about projects so far over my head it orbits Titan! But if anything, I do know that *nix, though currently more airtight against the wave of viral assaults than M$ solutions, is not fully accepted (but getting there) in the federal universe. Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From sm11szw02 at sneakemail.com Wed Jul 14 18:47:03 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Wed, 14 Jul 2004 18:47:03 -0400 Subject: [nycphp-talk] Basic security question In-Reply-To: <40F5ACE7.2080800@adnet-sys.com> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A65@intamail1.inta> <40F58E94.50106@spacemonkeylabs.com> <6ec19ec7040714125542b23bdb@mail.gmail.com> <40F594F2.3040808@spacemonkeylabs.com> <40F5998A.9030802@att.net> <40F5A2DD.8080705@spacemonkeylabs.com> <40F5ACE7.2080800@adnet-sys.com> Message-ID: <4610-71179@sneakemail.com> Phillip Powell phillip.powell-at-adnet-sys.com |nyphp 04/2004| wrote: > I am getting the impression that the reason for my "outside status" > from an e-psychological approach comes from the fact that, from what I > can tell of your postings here, you guys are PHP developers with > extensive networking and engineering backgrounds for large public > sectors.. > > I happen to be a PHP/ASP/TCL/Javascript web application developer with > no networking and engineering background for small private and > governmental sectors.. no matter 98% of what you all talk about > projects so far over my head it orbits Titan! > > But if anything, I do know that *nix, though currently more airtight > against the wave of viral assaults than M$ solutions, is not fully > accepted (but getting there) in the federal universe. > > Phil I suspect it is more about "how" people learn than "what" people already know. I'd rather play squash with an expert who beats my ass every time than a newbie at the same skill level as me. From shiflett at php.net Wed Jul 14 19:13:06 2004 From: shiflett at php.net (Chris Shiflett) Date: Wed, 14 Jul 2004 16:13:06 -0700 (PDT) Subject: [nycphp-talk] PHP-related book comments In-Reply-To: <E1BkmEv-0000Jz-C7@thc3.thehostingcompany.us> Message-ID: <20040714231306.50319.qmail@web52808.mail.yahoo.com> --- Brian Pang <bpang at bpang.com> wrote: > If there was any "magic" feature to be added, it should be an auto > trim() to include[_once]|require[_once] files > > so frustrating to get that message because of a trailing \n|\r after the > closing ?> Actually, you have to have two newlines after a closing PHP tag to matter, and this annoys me (I think it annoys Hans, too, since I seem to recall a bug report with his name on it). Here's why it annoys me. Run this code: <table> <tr> <td> <? echo 'Foo'; ?> </td> </tr> </table> You'll get this: <table> <tr> <td> Foo </td> </tr> </table> Yuck. :-) The reasoning behind this, as I understand it, is simply to help avoid problems caused by undesired output at the end of included files. It seems that there is surely a way to avoid the problem without resorting to this "solution," but I may be missing something important. 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 sklar at sklar.com Wed Jul 14 19:17:05 2004 From: sklar at sklar.com (David Sklar) Date: Wed, 14 Jul 2004 19:17:05 -0400 Subject: [nycphp-talk] PHP-related book comments In-Reply-To: <20040714231306.50319.qmail@web52808.mail.yahoo.com> References: <20040714231306.50319.qmail@web52808.mail.yahoo.com> Message-ID: <40F5BEF1.1080309@sklar.com> Chris Shiflett wrote: > Here's why it annoys me. Run this code: > > <table> > <tr> > <td> > <? echo 'Foo'; ?> > </td> > </tr> > </table> > > You'll get this: > > <table> > <tr> > <td> > Foo </td> > </tr> > </table> > > Yuck. :-) > > The reasoning behind this, as I understand it, is simply to help avoid > problems caused by undesired output at the end of included files. It seems > that there is surely a way to avoid the problem without resorting to this > "solution," but I may be missing something important. Do you want the output to be: <table> <tr> <td>Foo</td> </tr> </table> ? (I.e. PHP scans backwards from the start tag and forwards from the end tag and removes whitespace?) What if your code is: <pre> Top Level Next Level <?php print $relevant_info; ?> End Next Level End Top Level </pre> Then, the whitespace is important. Perhaps I am missing something. (BTW, I am also a fan of the leave-the-?>-off-the-end-of-the-file technique.) David From drydell at att.net Wed Jul 14 19:18:24 2004 From: drydell at att.net (drydell at att.net) Date: Wed, 14 Jul 2004 23:18:24 +0000 Subject: [nycphp-talk] PHP-related book comments Message-ID: <071420042318.23364.40F5BF400009748500005B44216038311604040A0B979D0B@att.net> how about: <table> <tr> <td> <? echo "Foo\n"; ?> </td> </tr> </table> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040714/a818c355/attachment.html> From shiflett at php.net Wed Jul 14 19:25:43 2004 From: shiflett at php.net (Chris Shiflett) Date: Wed, 14 Jul 2004 16:25:43 -0700 (PDT) Subject: [nycphp-talk] RE: Basic Security Question In-Reply-To: <C0CDB9F5E81C234FBB42D84E7853125D013B0A68@intamail1.inta> Message-ID: <20040714232543.22773.qmail@web52807.mail.yahoo.com> --- Chris Bielanski <Cbielanski at inta.org> wrote: > <? > preg_replace("/two or three sophisticated/i","two or three years ago > were sophisticated", $my_prev_post); > ?> This is a good example of when a str_replace() would be better. :-) 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 Jul 14 19:48:07 2004 From: shiflett at php.net (Chris Shiflett) Date: Wed, 14 Jul 2004 16:48:07 -0700 (PDT) Subject: [nycphp-talk] PHP-related book comments In-Reply-To: <40F5BEF1.1080309@sklar.com> Message-ID: <20040714234807.24340.qmail@web52806.mail.yahoo.com> --- David Sklar <sklar at sklar.com> wrote: > Chris Shiflett wrote: > > > Here's why it annoys me. Run this code: > > > > <table> > > <tr> > > <td> > > <? echo 'Foo'; ?> > > </td> > > </tr> > > </table> > > > > You'll get this: > > > > <table> > > <tr> > > <td> > > Foo </td> > > </tr> > > </table> > > > > Yuck. :-) > > > > The reasoning behind this, as I understand it, is simply to help avoid > > problems caused by undesired output at the end of included files. It > > seems that there is surely a way to avoid the problem without resorting > > to this "solution," but I may be missing something important. > > Do you want the output to be: > > <table> > <tr> > <td>Foo</td> > </tr> > </table> Nope, I want it to leave everything alone that is not within PHP tags, thus: <table> <tr> <td> Foo </td> </tr> </table> I don't want the newline that I intentionally put after the closing PHP tag to be stripped. > What if your code is: > > <pre> > Top Level > Next Level > <?php print $relevant_info; ?> > End Next Level > End Top Level > </pre> > > Then, the whitespace is important. Yes, so I would prefer it not output this: <pre> Top Level Next Level Foo End Next Level End Top Level </pre> 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 jlacey at att.net Wed Jul 14 19:52:19 2004 From: jlacey at att.net (John Lacey) Date: Wed, 14 Jul 2004 17:52:19 -0600 Subject: [nycphp-talk] PHP-related book comments In-Reply-To: <20040714231306.50319.qmail@web52808.mail.yahoo.com> References: <20040714231306.50319.qmail@web52808.mail.yahoo.com> Message-ID: <40F5C733.8030408@att.net> Chris Shiflett wrote: >The reasoning behind this, as I understand it, is simply to help avoid >problems caused by undesired output at the end of included files... > if I can pick up on the topic again, since we both agree that "Exploiting Software" is a good book overall, have you read: Innocent Code: A Security Wake-Up Call for Web Programmers I have it on order so I haven't read it yet. John From shiflett at php.net Wed Jul 14 19:59:05 2004 From: shiflett at php.net (Chris Shiflett) Date: Wed, 14 Jul 2004 16:59:05 -0700 (PDT) Subject: [nycphp-talk] PHP-related book comments In-Reply-To: <40F5C733.8030408@att.net> Message-ID: <20040714235905.46693.qmail@web52802.mail.yahoo.com> --- John Lacey <jlacey at att.net> wrote: > if I can pick up on the topic again, since we both agree that > "Exploiting Software" is a good book overall, have you read: > > Innocent Code: A Security Wake-Up Call for Web Programmers Oops! That's actually the book I thought I was talking about. I got my titles confused, and I guess I gave away the fact that I haven't read it all yet. :-) I just grabbed the book to verify. It is "Innocent Code" that I think is a good book, from what I've read. 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 danielc at analysisandsolutions.com Wed Jul 14 21:10:28 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 14 Jul 2004 21:10:28 -0400 Subject: [nycphp-talk] PHP 5.0.0 live! In-Reply-To: <B295D321-D5B5-11D8-A8AF-000A95C0B064@mac.com> References: <41EE526EC2D3C74286415780D3BA9F870306D1DC@ehost011-1.exch011.intermedia.net> <7ac626ed040713151817bb6c5a@mail.gmail.com> <B295D321-D5B5-11D8-A8AF-000A95C0B064@mac.com> Message-ID: <20040715011028.GA11430@panix.com> On Wed, Jul 14, 2004 at 12:48:56PM -0400, Jeff Knight wrote: > For all you 5'ers out there, I've got gif write support with RC3, is it > in 5 now by default (if gd is enabled)? I muck around so much that I > can't remember if this is something I did or it just came with the > package. >From the discussions on PHP's internals list, it's something you did. It's not going to be in PHP until 4.3.8 and likely 5.1.0, though maybe 5.0.1. --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 Cbielanski at inta.org Thu Jul 15 09:20:03 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Thu, 15 Jul 2004 09:20:03 -0400 Subject: [nycphp-talk] RE: Basic Security Question Message-ID: <C0CDB9F5E81C234FBB42D84E7853125D013B0A6B@intamail1.inta> > -----Original Message----- > From: Chris Shiflett [mailto:shiflett at php.net] > Sent: Wednesday, July 14, 2004 7:26 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] RE: Basic Security Question > > > --- Chris Bielanski <Cbielanski at inta.org> wrote: > > <? > > preg_replace("/two or three sophisticated/i","two or three years ago > > were sophisticated", $my_prev_post); > > ?> > > This is a good example of when a str_replace() would be better. :-) ...Ouch!! ;) Ah well, I love my RE's :) 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 mmclar at drexel.edu Thu Jul 15 09:39:56 2004 From: mmclar at drexel.edu (Michael R. McLarnon) Date: Thu, 15 Jul 2004 09:39:56 -0400 Subject: [nycphp-talk] PHP5 on K5 Message-ID: <40F6892C.4080902@drexel.edu> There is a long article on kuro5hin.org that just hit the front page, in response to the release of 5. It has a nice little tutorial, and even goes into OO and what is new in this release. My favorite quote: "The syntax of PHP looks like the offspring of a drunken alley-fondle between C and Perl." Just thought I'd mention it for those who are interested. MRM From jeffknight at mac.com Thu Jul 15 10:04:15 2004 From: jeffknight at mac.com (Jeff Knight) Date: Thu, 15 Jul 2004 10:04:15 -0400 Subject: [nycphp-talk] PHP 5.0.0 live! In-Reply-To: <20040715011028.GA11430@panix.com> References: <41EE526EC2D3C74286415780D3BA9F870306D1DC@ehost011-1.exch011.intermedia.net> <7ac626ed040713151817bb6c5a@mail.gmail.com> <B295D321-D5B5-11D8-A8AF-000A95C0B064@mac.com> <20040715011028.GA11430@panix.com> Message-ID: <DB61FBD8-D667-11D8-A8AF-000A95C0B064@mac.com> On Jul 14, 2004, at 9:10 PM, Daniel Convissor wrote: > From the discussions on PHP's internals list, it's something you did. > It's not going to be in PHP until 4.3.8 and likely 5.1.0, though maybe > 5.0.1. Ah, I see now I installed libungif, more out of habit than anything else I suppose. From jlacey at att.net Thu Jul 15 10:40:05 2004 From: jlacey at att.net (John Lacey) Date: Thu, 15 Jul 2004 08:40:05 -0600 Subject: [nycphp-talk] PHP5 on K5 In-Reply-To: <40F6892C.4080902@drexel.edu> References: <40F6892C.4080902@drexel.edu> Message-ID: <40F69745.9040904@att.net> Michael R. McLarnon wrote: > There is a long article on kuro5hin.org that just hit the front page, > in response to the release of 5. It has a nice little tutorial, and > even goes into OO and what is new in this release. My favorite quote: > "The syntax of PHP looks like the offspring of a drunken alley-fondle > between C and Perl." Once you get past the "emotional" part, it's a somewhat interesting piece. I would be more interested in what the Convissors, Shifletts, Sklars, Tractenbergs and Zauneres and other people of that technical caliber on this list have to say... John From bpang at bpang.com Thu Jul 15 10:48:20 2004 From: bpang at bpang.com (Brian Pang) Date: Thu, 15 Jul 2004 09:48:20 -0500 Subject: [nycphp-talk] PHP-related book comments Message-ID: <E1Bl7X2-0007sb-Uh@thc3.thehostingcompany.us> oh.. so that's how that happens... it annoys me, too, as I like to have nicely formatted html (even tho it doesn't affect the output) I guess I would trade losing that "feature" for having to make sure there were no trailing chars that might mess up headers or using my return;?> solution at the end of every file. > --- Brian Pang <bpang at bpang.com> wrote: > > If there was any "magic" feature to be added, it should be an auto > > trim() to include[_once]|require[_once] files > > > > so frustrating to get that message because of a trailing \n|\r after the > > closing ?> > > Actually, you have to have two newlines after a closing PHP tag to matter, > and this annoys me (I think it annoys Hans, too, since I seem to recall a > bug report with his name on it). > > Here's why it annoys me. Run this code: > > <table> > <tr> > <td> > <? echo 'Foo'; ?> > </td> > </tr> > </table> > > You'll get this: > > <table> > <tr> > <td> > Foo </td> > </tr> > </table> > > Yuck. :-) > > The reasoning behind this, as I understand it, is simply to help avoid > problems caused by undesired output at the end of included files. It seems > that there is surely a way to avoid the problem without resorting to this > "solution," but I may be missing something important. From wfan at encogent.com Thu Jul 15 12:42:06 2004 From: wfan at encogent.com (wfan at encogent.com) Date: 15 Jul 2004 16:42:06 -0000 Subject: [nycphp-talk] (no subject) Message-ID: <20040715164206.6073.qmail@post.phpwebhosting.com> Hello Listies, I am creating files with a PHP script. I want the script to 'scp' the just-created file to a Windows box running a SSH/SCP server (WinSSHD) The created files are owned by 'www' I want to scp the files so that there is no prompt for a password -- as I understand it, this is 'RSA Authentication' I created a keypair using 'ssh-keygen -t dsa' and registered the public key with the WinSSHD server. Then, in the PHP script: #####PHP####### $command = 'scp -q -B -i <PRIVATE_KEY> ' . $filename . ' <USER>@<IP_ADDY>:' . basename($filename); system( $command, $rc ); #####PHP####### where: <PRIVATE_KEY> is the private key of the keypair $filename is the just-created file <USER> is a Windows account <IP_ADDY> is the IP of the Windows machine Now, if I shell into the webserver and run the command, it works fine. BUT, the system() looks like it fails... Any hints? Can you tell me where else to look? -- Wellington From joel at tagword.com Thu Jul 15 12:45:59 2004 From: joel at tagword.com (Joel De Gan) Date: Thu, 15 Jul 2004 16:45:59 +0000 Subject: [nycphp-talk] (no subject) In-Reply-To: <20040715164206.6073.qmail@post.phpwebhosting.com> References: <20040715164206.6073.qmail@post.phpwebhosting.com> Message-ID: <1089909959.7508.107.camel@bezel> You may want to look at dsa keys, that is how I do it. You create a dsa key and then add it to your known hosts file in ~home/.ssh/ Another alternative which works well is using php to call an expect script, that way you don't need to bother with dsa keys (if security is a concern). 'expect' comes with a script called autoexpect that you can quickly use to create an expect script just 'autoexpect scp ..whatever..' and it will create a script that you can call with 'expect script.exp' that will do what you did during the autoexpect situation. I have found that it is usually good to modify scripts done with autoexpect though. cheers On Thu, 2004-07-15 at 16:42, wfan at encogent.com wrote: > Hello Listies, > > I am creating files with a PHP script. I want the script to 'scp' the > just-created file to a Windows box running a SSH/SCP server (WinSSHD) > > The created files are owned by 'www' > > I want to scp the files so that there is no prompt for a password -- as I > understand it, this is 'RSA Authentication' > > I created a keypair using 'ssh-keygen -t dsa' and registered the public key > with the WinSSHD server. > > Then, in the PHP script: > > #####PHP####### > $command = 'scp -q -B -i <PRIVATE_KEY> ' . $filename . ' > <USER>@<IP_ADDY>:' . basename($filename); > system( $command, $rc ); > #####PHP####### > > where: > > <PRIVATE_KEY> is the private key of the keypair > $filename is the just-created file > <USER> is a Windows account > <IP_ADDY> is the IP of the Windows machine > > > > Now, if I shell into the webserver and run the command, it works fine. BUT, > the system() looks like it fails... > > Any hints? Can you tell me where else to look? > > -- > Wellington > > > > > > _______________________________________________ > 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 csnyder at chxo.com Thu Jul 15 13:03:10 2004 From: csnyder at chxo.com (csnyder at chxo.com) Date: Thu, 15 Jul 2004 13:03:10 -0400 Subject: [nycphp-talk] (no subject) In-Reply-To: <20040715164206.6073.qmail@post.phpwebhosting.com> References: <20040715164206.6073.qmail@post.phpwebhosting.com> Message-ID: <1089910990.40f6b8ceaceca@webmail.tuffmail.net> Quoting wfan at encogent.com: > > Now, if I shell into the webserver and run the command, it works fine. BUT, > the system() looks like it fails... > > Any hints? Can you tell me where else to look? > > Be sure to specify the full path to scp... From jeffknight at mac.com Thu Jul 15 14:50:02 2004 From: jeffknight at mac.com (putamare) Date: Thu, 15 Jul 2004 14:50:02 -0400 Subject: [nycphp-talk] OO & database connections Message-ID: <C768E236-D68F-11D8-9516-000393B9FB36@mac.com> Here's a best practices question: my script has several objects, say one to do authorization and one or more others to display content, or whatever. Most, if not all, of these objects access multiple databases, one for authorization, one for content, etc. Is it better to have object create its own private connection object (in my case I'm goofing off with the new mysqli_ functions, but I'm sure this would apply equally to PEAR::DB, or even an old school connection string), or creating a single connection object and passing that around to the other objects as needed? Jeff Knight putamare not junk at putamare.net From sklar at sklar.com Thu Jul 15 14:53:42 2004 From: sklar at sklar.com (David Sklar) Date: Thu, 15 Jul 2004 14:53:42 -0400 Subject: [nycphp-talk] OO & database connections In-Reply-To: <C768E236-D68F-11D8-9516-000393B9FB36@mac.com> References: <C768E236-D68F-11D8-9516-000393B9FB36@mac.com> Message-ID: <40F6D2B6.5080706@sklar.com> putamare wrote: > Here's a best practices question: my script has several objects, say one > to do authorization and one or more others to display content, or > whatever. Most, if not all, of these objects access multiple databases, > one for authorization, one for content, etc. > > Is it better to have object create its own private connection object (in > my case I'm goofing off with the new mysqli_ functions, but I'm sure > this would apply equally to PEAR::DB, or even an old school connection > string), or creating a single connection object and passing that around > to the other objects as needed? My weasely answer (below), turns on how you'd like to define "better". The performance optimization is: Assuming the different databases are on the same server, create one connection and then pass that around in your program. Saves DB server resources, network overhead, connection start up time, etc. The encapsulation and object re-use optimization is: Have each object connect separately with its own credentials, allowing you freedom in the future to move the databases to different servers, tweak access control from each object, etc. That said, unless you have immediate and large code re-use needs, my gut is to do the performance optimization. David From danielc at analysisandsolutions.com Thu Jul 15 15:41:50 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 15 Jul 2004 15:41:50 -0400 Subject: [nycphp-talk] OO & database connections In-Reply-To: <40F6D2B6.5080706@sklar.com> References: <C768E236-D68F-11D8-9516-000393B9FB36@mac.com> <40F6D2B6.5080706@sklar.com> Message-ID: <20040715194149.GA13221@panix.com> Hi Jeff and David: On Thu, Jul 15, 2004 at 02:53:42PM -0400, David Sklar wrote: > > The performance optimization is: > Assuming the different databases are on the same server, create one > connection and then pass that around in your program. ... > The encapsulation and object re-use optimization is: > Have each object connect separately with its own credentials, allowing > you freedom in the future to move the databases to different servers, > tweak access control from each object, etc. You can put the two ideas together. Have each class extend it's database connection from a common database class. When instantiating, do a check to see if a database connection already exists with the given criteria. If so, use the existing connection object. If not, create a new connection object. A singleton method may be what you're looking for. Hmm, but isn't that kind of what PHP does automatically? "If a second call is made to mysql_connect() with the same arguments, no new link will be established, but instead, the link identifier of the already opened link will be returned." -- http://us3.php.net/mysql_connect Not sure of the performance implications of trying multiple connects with the same credentials. If PHP does it without contacting the datbase server, it may be about the same speed as doing your own checks. I'm to busy right now to try some tests. 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 csnyder at chxo.com Thu Jul 15 19:57:34 2004 From: csnyder at chxo.com (Chris Snyder) Date: Thu, 15 Jul 2004 19:57:34 -0400 Subject: [nycphp-talk] OO & database connections In-Reply-To: <20040715194149.GA13221@panix.com> References: <C768E236-D68F-11D8-9516-000393B9FB36@mac.com> <40F6D2B6.5080706@sklar.com> <20040715194149.GA13221@panix.com> Message-ID: <40F719EE.7070504@chxo.com> Daniel Convissor wrote: > "If a second call is made to mysql_connect() with the same arguments, no > >new link will be established, but instead, the link identifier of the >already opened link will be returned." > -- http://us3.php.net/mysql_connect > > I didn't believe this when I first read it, but can confirm: $dbcon1 = mysql_connect( $h, $u, $p ); mysql_select_db( 'clew', $dbcon1 ); $dbcon2 = mysql_connect( $h, $u, $p ); mysql_select_db( 'chxo', $dbcon2 ); $result = mysql_query( "show tables", $dbcon1 ); while ( $record = mysql_fetch_array( $result ) ) { print $record[0]."<br />"; } ... will show the tables in the "second" database, even though the query was sent via the "first" connection. Weird. From tgales at tgaconnect.com Thu Jul 15 21:59:41 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 15 Jul 2004 21:59:41 -0400 Subject: [nycphp-talk] OO & database connections In-Reply-To: <C768E236-D68F-11D8-9516-000393B9FB36@mac.com> Message-ID: <003d01c46ad8$8f6026e0$e98d3818@oberon1> putamare writes: > > Here's a best practices question: my script has several objects, say > one to do authorization and one or more others to display content, or > whatever. Most, if not all, of these objects access multiple > databases, > one for authorization, one for content, etc. > > Is it better to have object create its own private connection object > (in my case I'm goofing off with the new mysqli_ functions, but I'm > sure this would apply equally to PEAR::DB, or even an old school > connection string), or creating a single connection object > and passing > that around to the other objects as needed? > One thing is that a user's authorization to do things is typically determined by the permissions which are granted to him. Once a user is authenticated MySQL knows what that user can and can't do. This authentication process is pretty well tuned to be fast. In general terms, I would suggest that you set up usernames for each role or roles that you want your objects to be authorized to play. (in other words going and selecting role information from a separate table is a relatively time consuming operation when compared to how quickly MySQL can do effectively the same thing under the hood) The actual process of creating a connection is pretty slow. You could create a class that has a $db_link variable set up (during construction) with a procedural call something like $this->db_link = mysqli_connect("localhost", "main_user", "main_password", "usual_db"); Then if a function (inside the class -- aka method) had to switch databases to do something, you could try something along the lines of mysqli_change_user($this->db_link, "special_user", "special_password", "special_db"); and could keep the connection and just take advantage of the (fast) authentication operation. I would be fairly wary though of a design that required classes to go to different databases to get things done -- I don't see how the class structure could be too coherent. One of the tenets of OO design it to keep all data that is functionally related in one place -- not in disparate databases. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From sklar at sklar.com Thu Jul 15 22:08:52 2004 From: sklar at sklar.com (David Sklar) Date: Thu, 15 Jul 2004 22:08:52 -0400 Subject: [nycphp-talk] PHP5 on K5 In-Reply-To: <40F69745.9040904@att.net> References: <40F6892C.4080902@drexel.edu> <40F69745.9040904@att.net> Message-ID: <40F738B4.9050303@sklar.com> John Lacey wrote: > Michael R. McLarnon wrote: > >> There is a long article on kuro5hin.org that just hit the front page, >> in response to the release of 5. It has a nice little tutorial, and >> even goes into OO and what is new in this release. My favorite quote: >> "The syntax of PHP looks like the offspring of a drunken alley-fondle >> between C and Perl." > > > Once you get past the "emotional" part, it's a somewhat interesting > piece. I would be more interested in what the Convissors, Shifletts, > Sklars, Tractenbergs and Zauneres and other people of that technical > caliber on this list have to say... I must admit to being underwhelmed by this article. I am not sure what the author's point(s) was/were. New PHP 5 features make it possible to write non-web apps in PHP? Heavily OO PHP 5 code looks a lot like Java? I suppose if today is the first time you are taking a look at PHP 5, then these might seem like notable and mildly amazing aspects of it, but otherwise they don't seem too surprising. PHP-GTK and the cli SAPI have been around for a while; the PHP 5 OO syntax has been available for perusal for plenty of time as well. A more interesting area for PHP futurology, IMHO, is whether future versions of PHP will run on the Zend Engine (v2 or a future version), Parrot, or the CLR. David From LeeEyerman at aol.com Fri Jul 16 00:01:22 2004 From: LeeEyerman at aol.com (LeeEyerman at aol.com) Date: Fri, 16 Jul 2004 00:01:22 EDT Subject: [nycphp-talk] A little network help Message-ID: <ce.522f5f3e.2e28ad12@aol.com> I have a ton of PHP and MySQL experience and I have decided to put a little network in my apartment. So I got my Linux box, I have two windows boxes, I have a single static IP, a Cisco router, and a manual? Can anyone give me some pointers? A path in the right direction? 1) What Linux should I use? I have a free distribution of Red Hat 9? Is Fedora better? Any advice? 2) Currently my router is dynamically assigning TCP/IP #'s to each machine. I know I have to set this up differently. I want the linux box to be a http server, ftp, email, etc, and I want the windows boxes to have access to the net. Any suggestions on how I should do this? I think I have to setup a DNS, but with only one static IP I think this gets tricky. Any assistance would be greatly appreciated. 3) Also, when I unpack RPM distributions and the RPM needs a library, where is the best place to find it. And if you can't find it what do you do. For example, I was trying to install PICO under Red Hat and it kept asking for libncurses.so.5. I check the web but could not find it. Any help? Thanks so much! Lee -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040716/9b766520/attachment.html> From csnyder at chxo.com Fri Jul 16 00:14:29 2004 From: csnyder at chxo.com (Chris Snyder) Date: Fri, 16 Jul 2004 00:14:29 -0400 Subject: [nycphp-talk] A little network help In-Reply-To: <ce.522f5f3e.2e28ad12@aol.com> References: <ce.522f5f3e.2e28ad12@aol.com> Message-ID: <40F75625.7020601@chxo.com> LeeEyerman at aol.com wrote: > Currently my router is dynamically assigning TCP/IP #'s to each > machine. I know I have to set this up differently. I want the linux > box to be a http server, ftp, email, etc, and I want the windows boxes > to have access to the net. Any suggestions on how I should do this? If your router does "port forwarding", you can set it to forward port 80 on its static ip address to your linux box's dynamic ip. From jonbaer at jonbaer.net Fri Jul 16 00:15:38 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 16 Jul 2004 00:15:38 -0400 Subject: [nycphp-talk] A little network help In-Reply-To: <ce.522f5f3e.2e28ad12@aol.com> References: <ce.522f5f3e.2e28ad12@aol.com> Message-ID: <40F7566A.9090008@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 LeeEyerman at aol.com wrote: | 1) What Linux should I use? I have a free distribution of Red Hat 9? Is | Fedora better? Any advice? Debian is top notch, Ive heard issue w/ things not compiling right on Fedora (Ive been holding off for a while now + still using 9), im not 100% sure what the issues are. | 2) Currently my router is dynamically assigning TCP/IP #'s to each machine. | I know I have to set this up differently. I want the linux box to be a http | server, ftp, email, etc, and I want the windows boxes to have access to the You should never dynamically assign static boxes ... I think DHCP on a network you actually run is kinda evil .. if its just you, statically assign everything, I personally think its better in the long run considering dhcpd had a few sec alerts this past year. | 3) Also, when I unpack RPM distributions and the RPM needs a library, where | is the best place to find it. And if you can't find it what do you do. For | example, I was trying to install PICO under Red Hat and it kept asking for | libncurses.so.5. I check the web but could not find it. Any help? I find this to be a PITA as well. Sometime downloading the source and doing a ./configure --prefix=/usr fixes things, other times you should really grab the libraries from the original RH9 disks, there are things like yum and apt-get as well which are suppose to alleviate issues like this but (from reading) each has its own pros and cons. Sometimes if you build a library yourself (configure/make/sudo make install) you can run RPM with --nodeps to get it to override that error message if you know you have the library. Whether this method is really recommended I have yet to find out (how to keep RPMs and libs in sync). - - 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.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA91ZqQdvbi5oMr0cRApduAJwLD4pC6eovLVWYzhqMpivLvlBB0ACfayjJ RuoWTM2sT67EXosExE2gfCA= =Qn6U -----END PGP SIGNATURE----- From LeeEyerman at aol.com Fri Jul 16 00:45:23 2004 From: LeeEyerman at aol.com (LeeEyerman at aol.com) Date: Fri, 16 Jul 2004 00:45:23 EDT Subject: [nycphp-talk] A little network help Message-ID: <133.3191902b.2e28b763@aol.com> Jon- When you say statically assign everything, you mean setup a DNS server, create names for each machine, point the router at my DNS server to resolve the web/ftp/emails, etc. The win pcs will then have their own name foo.myserver.com and check the Linux DNS first, and then the router to the net? Thanks for the help. In a message dated 7/16/2004 12:27:21 AM Eastern Daylight Time, jonbaer at jonbaer.net writes: | 2) Currently my router is dynamically assigning TCP/IP #'s to each machine. | I know I have to set this up differently. I want the linux box to be a http | server, ftp, email, etc, and I want the windows boxes to have access to the You should never dynamically assign static boxes ... I think DHCP on a network you actually run is kinda evil .. if its just you, statically assign everything, I personally think its better in the long run considering dhcpd had a few sec alerts this past year. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040716/35fe716a/attachment.html> From sgchen at verizon.net Fri Jul 16 00:50:29 2004 From: sgchen at verizon.net (Shai G Chen) Date: Fri, 16 Jul 2004 00:50:29 -0400 Subject: [nycphp-talk] PHP and IIS Site Creation Message-ID: <001001c46af0$6b8d63a0$0300a8c0@Doodle> I'm currently working on IIS 5.0 and PHP 4.3.8. I running my own web server at my place. Here is the task I would like my script to accomplished: - Bind an exisiting IP address I have on my IIS server (ie. 189.176.2.104) to the web folder itself. At this point I'm manually linking the folder and IP together. So if I create a folder name "newsite" and I bind the IP 189.176.2.104 to it., I would be able to access the folder content if I put the IP address on the web browser. I know there is ways to do it using VBScript and all the .NET series. What I am interested in using is PHP, or even javascript. Thanks in advance for the help. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040716/f7ed538e/attachment.html> From csnyder at chxo.com Fri Jul 16 00:58:40 2004 From: csnyder at chxo.com (Chris Snyder) Date: Fri, 16 Jul 2004 00:58:40 -0400 Subject: [nycphp-talk] A little network help In-Reply-To: <40F7566A.9090008@jonbaer.net> References: <ce.522f5f3e.2e28ad12@aol.com> <40F7566A.9090008@jonbaer.net> Message-ID: <40F76080.10608@chxo.com> Jon Baer wrote: > > LeeEyerman at aol.com wrote: > > Also, when I unpack RPM distributions and the RPM needs a library, > I check the web but could not find it. Any help? > > I find this to be a PITA as well. Agreed. Consider a ports-based distro -- or heck, do it by hand. Portability is fun, and you don't have to depend on any single software source for updates or patches to your libraries. From adam at trachtenberg.com Fri Jul 16 00:58:36 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Fri, 16 Jul 2004 00:58:36 -0400 (EDT) Subject: [nycphp-talk] PHP5 on K5 In-Reply-To: <40F69745.9040904@att.net> References: <40F6892C.4080902@drexel.edu> <40F69745.9040904@att.net> Message-ID: <Pine.LNX.4.58.0407160042480.9078@miranda.org> On Thu, 15 Jul 2004, John Lacey wrote: > Once you get past the "emotional" part, it's a somewhat interesting > piece. I would be more interested in what the Convissors, Shifletts, > Sklars, Tractenbergs and Zauneres and other people of that technical > caliber on this list have to say... In Issac Asimov's "Foundation," one of the chapters contains a scene when a diplomat visits a planet. During his stay, the diplomat talks the entire time. After he leaves one of the political figures turns to his opponent and says something to the effect of: "See. I told you he'd support our position." As it turns out, the opponent had secretly taped everything the diplomat said over the entire trip, and submitted it to the chair of the university's linguistic department for lexical evaluation. The evaluation was to filter out all the superfluous diplomatese and conflicting statements, so the people on the planet could know exactly what he said. After a complete analysis, it turns out the diplomat said nothing at all. Everything canceled out, and they were left with an empty piece of paper. I feel that way about the this piece. I spent 10 minutes reading it, but afterwards, I don't feel he said anything meaningful. I think if he had taken the time to edit the piece and shortened it up, it would have been 25% the length and 25x more useful. To quote Pascal: I am sorry for the length of my letter, but I had not the time to write a short one. -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From jonbaer at jonbaer.net Fri Jul 16 01:07:06 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 16 Jul 2004 01:07:06 -0400 Subject: [nycphp-talk] A little network help In-Reply-To: <133.3191902b.2e28b763@aol.com> References: <133.3191902b.2e28b763@aol.com> Message-ID: <40F7627A.4040100@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The question really pertains to your level of paranoia (or LOP) ... if your LOP > 2 x the average sysadmin, then static for everything is your best bet (even if you have to learn how to accomplish it (static arping for example)) ... if your LOP < 1 x the average sysadmin then you can take the lazy route :-) I can understand the practical frustration in firewall/iptables configuration for such a setup but I think it comes down to what you would like to protect if (something bad were to happen){} .. Im really not a sysadmin so Id be a bad judge vs. the topology layout of your personal network ... but I always think straight route is the best. ~ Security wise Id hope something is monitoring your "router to the net" :-) - - Jon LeeEyerman at aol.com wrote: | | Jon- | | When you say statically assign everything, you mean setup a DNS server, | create names for each machine, point the router at my DNS server to resolve the | web/ftp/emails, etc. The win pcs will then have their own name | foo.myserver.com and check the Linux DNS first, and then the router to the net? | | Thanks for the help. 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.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA92J5Qdvbi5oMr0cRApj/AJ4sxQbJ68SbLwUVVjwdjeCDotSIdwCgw51j yQlZ/N1dkAFpKBwff84e4uY= =wY4f -----END PGP SIGNATURE----- From jonbaer at jonbaer.net Fri Jul 16 01:10:38 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 16 Jul 2004 01:10:38 -0400 Subject: [nycphp-talk] Java/PHP swirl fudge ... In-Reply-To: <133.3191902b.2e28b763@aol.com> References: <133.3191902b.2e28b763@aol.com> Message-ID: <40F7634E.5030809@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 uggg ... i got a new gig - however its back to Java for me, is anyone here also attending Java sigs @ Sun? did i miss the July meeting? i cant tell from the website. does anyone here run the servlet sapi module? can php5 run up against jdk1.5? - - 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.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA92NOQdvbi5oMr0cRAo+gAJ0ffbx4vh89SaOLSjeeF2LoanvjJACg8n/1 52kK/f6cIlSO28wK4wAWaCU= =6KER -----END PGP SIGNATURE----- From jonbaer at jonbaer.net Fri Jul 16 01:35:23 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 16 Jul 2004 01:35:23 -0400 Subject: [nycphp-talk] Re: Java/PHP swirl fudge ... In-Reply-To: <40F7634E.5030809@jonbaer.net> References: <133.3191902b.2e28b763@aol.com> <40F7634E.5030809@jonbaer.net> Message-ID: <40F7691B.3010205@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 actually in PHP5/Win there seems to be no more php_java.dll ... so i think thats out ... time for someone to write java2php for beans :-) - - jon Jon Baer wrote: | uggg ... | | i got a new gig - however its back to Java for me, is anyone here also | attending Java sigs @ Sun? did i miss the July meeting? i cant tell from | the website. | | does anyone here run the servlet sapi module? can php5 run up against | jdk1.5? | | - jon | | pgp key: http://www.jonbaer.net/jonbaer.asc | fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 - -- 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.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA92kbQdvbi5oMr0cRArY+AJ4o3Ug891dkVhvT73XxWEVEmXPAXACcCSOW klLLINXVV9/H7kmPS8NMxKc= =ymBB -----END PGP SIGNATURE----- From dg_francisco at hotmail.com Fri Jul 16 09:08:01 2004 From: dg_francisco at hotmail.com (Francisco Marin) Date: Fri, 16 Jul 2004 09:08:01 -0400 Subject: [nycphp-talk] OT - Prepaid Dial-up Service References: <40F6892C.4080902@drexel.edu> <40F69745.9040904@att.net> <Pine.LNX.4.58.0407160042480.9078@miranda.org> Message-ID: <BAY7-DAV323TGJ2TUSz00049bbe@hotmail.com> Any one knows a reliable Pre-paid Dial-up ISP (if there is such thing as pre-paid internet service) and where I can get it?? Thanks in advance Francisco ----- Original Message ----- From: "Adam Maccabee Trachtenberg" <adam at trachtenberg.com> To: "NYPHP Talk" <talk at lists.nyphp.org> Sent: Friday, July 16, 2004 12:58 AM Subject: Re: [nycphp-talk] PHP5 on K5 > On Thu, 15 Jul 2004, John Lacey wrote: > > > Once you get past the "emotional" part, it's a somewhat interesting > > piece. I would be more interested in what the Convissors, Shifletts, > > Sklars, Tractenbergs and Zauneres and other people of that technical > > caliber on this list have to say... > > In Issac Asimov's "Foundation," one of the chapters contains a scene > when a diplomat visits a planet. During his stay, the diplomat talks > the entire time. After he leaves one of the political figures > turns to his opponent and says something to the effect of: "See. I > told you he'd support our position." > > As it turns out, the opponent had secretly taped everything the > diplomat said over the entire trip, and submitted it to the chair of > the university's linguistic department for lexical evaluation. The > evaluation was to filter out all the superfluous diplomatese and > conflicting statements, so the people on the planet could know exactly > what he said. > > After a complete analysis, it turns out the diplomat said nothing at > all. Everything canceled out, and they were left with an empty piece > of paper. > > I feel that way about the this piece. I spent 10 minutes reading it, > but afterwards, I don't feel he said anything meaningful. > > I think if he had taken the time to edit the piece and shortened it > up, it would have been 25% the length and 25x more useful. > > To quote Pascal: > > I am sorry for the length of my letter, but I had not the time to > write a short one. > > -adam > > -- > adam at trachtenberg.com > author of o'reilly's "upgrading to php 5" and "php cookbook" > avoid the holiday rush, buy your copies today! > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From agfische at email.smith.edu Fri Jul 16 09:13:31 2004 From: agfische at email.smith.edu (Aaron Fischer) Date: Fri, 16 Jul 2004 09:13:31 -0400 Subject: [nycphp-talk] Oreilly's Spidering Hacks... Message-ID: <EF704040-D729-11D8-B46A-0003930D07F2@email.smith.edu> Greetings, On Wednesday I was in Boston attending Macworld and found myself inevitably drooling over the various book offerings at the O'Reilly booth. One of the many titles that jumped out was "Spidering Hacks" by Kevin Hemenway and Tara Calishain. However, I refrained from purchasing because the book is based on the use of Perl to perform most or all of the spidering functionality. http://www.oreilly.com/catalog/spiderhks/ So far, PHP is the only programming/scripting language that I have played with. I thought I would ponder the following before purchasing this book: A. Can I be achieving the same results using PHP that I can using this book and Perl? B. Are there other technologies that would be more desirable to achieve spidering functionality? C. What is the perceived future of Perl? Does it still have something to offer when compared with other programming languages today? Is it worth me spending the time to learn it? Granted, some of these questions may bring a certain level of subjectivity into play. I'd be interested to hear any thoughts/suggestions that folks would like to provide. I'm not averse to getting my feet wet with Perl if I feel that I am developing a skillset that will increase my marketability. Thanks! -Aaron From wfan at encogent.com Fri Jul 16 09:41:30 2004 From: wfan at encogent.com (Wellington Fan) Date: Fri, 16 Jul 2004 09:41:30 -0400 Subject: [nycphp-talk] (no subject) In-Reply-To: <1089910990.40f6b8ceaceca@webmail.tuffmail.net> Message-ID: <001c01c46b3a$9a1f8a50$0a00a8c0@twonky> > Be sure to specify the full path to scp... Thanks! This is a good thing to remember. As it turns out, I *think* the problem is that user that is trying to scp ('www') cannot use the private key that I created without providing a passphrase. I'm not *positive* that this was the problem, but I ran around the problem by re-writing some of the script and calling the script from root's cron job. Thanks! From yury at heavenspa.com Fri Jul 16 09:43:43 2004 From: yury at heavenspa.com (Yury Rush) Date: Fri, 16 Jul 2004 09:43:43 -0400 Subject: [nycphp-talk] Oreilly's Spidering Hacks... In-Reply-To: <EF704040-D729-11D8-B46A-0003930D07F2@email.smith.edu> Message-ID: <ECEKLPHECCLGFGAFEPEJMEKNCFAA.yury@heavenspa.com> Hi Aaron, being a complete noobie using php ( me ), i can tell you i've seem most of the stuff mentioned at the site possible with PHP. It might even be easier in some instances. Scraping content, inclusion of content, and weather are all possible via PHP. :) hth yury http://www.flashgimp.com -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Aaron Fischer Sent: Friday, July 16, 2004 8:14 AM To: NYPHP Talk Subject: [nycphp-talk] Oreilly's Spidering Hacks... Greetings, On Wednesday I was in Boston attending Macworld and found myself inevitably drooling over the various book offerings at the O'Reilly booth. One of the many titles that jumped out was "Spidering Hacks" by Kevin Hemenway and Tara Calishain. However, I refrained from purchasing because the book is based on the use of Perl to perform most or all of the spidering functionality. http://www.oreilly.com/catalog/spiderhks/ So far, PHP is the only programming/scripting language that I have played with. I thought I would ponder the following before purchasing this book: A. Can I be achieving the same results using PHP that I can using this book and Perl? B. Are there other technologies that would be more desirable to achieve spidering functionality? C. What is the perceived future of Perl? Does it still have something to offer when compared with other programming languages today? Is it worth me spending the time to learn it? Granted, some of these questions may bring a certain level of subjectivity into play. I'd be interested to hear any thoughts/suggestions that folks would like to provide. I'm not averse to getting my feet wet with Perl if I feel that I am developing a skillset that will increase my marketability. Thanks! -Aaron _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From hans at cyberxdesigns.com Fri Jul 16 09:45:34 2004 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Fri, 16 Jul 2004 09:45:34 -0400 Subject: [nycphp-talk] A little network help References: <133.3191902b.2e28b763@aol.com> Message-ID: <40F7DBFE.8040307@cyberxdesigns.com> This all seems terribly complicated to set up a little routing between three machines. I have 4 machines at home each with a static IP address. I modified the hosts file on each machine to know about the other three machines. I use my router for DNS and routing to the outside word. This bypasses having to set up a dns server. Each time I add a new virtual server on a machine I update the hosts file on each of the machines. I do this for my linux box, Win2k box, OSX box, ect. The hosts file can be found in, C:\WINNT\system32\drivers\etc\hosts on Win2k. It is in etc/ in Linux and OSX. Host file might look like this: # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host 127.0.0.1 localhost 192.168.0.103 ftp.linuxboxen 192.168.0.103 www.linuxboxen 192.168.0.104 Win98Boxen 192.168.0.104 www.Win98Boxen 127.0.0.1 ftp.localmachine 127.0.0.1 www.localmachine Just my approach to this problem. Hans LeeEyerman at aol.com wrote: > Jon- > > When you say statically assign everything, you mean setup a DNS > server, create names for each machine, point the router at my DNS > server to resolve the web/ftp/emails, etc. The win pcs will then have > their own name foo.myserver.com and check the Linux DNS first, and > then the router to the net? > > Thanks for the help. > > > In a message dated 7/16/2004 12:27:21 AM Eastern Daylight Time, > jonbaer at jonbaer.net writes: > > | 2) Currently my router is dynamically assigning TCP/IP #'s to each > machine. > | I know I have to set this up differently. I want the linux box > to be > a http > | server, ftp, email, etc, and I want the windows boxes to have > access > to the > > You should never dynamically assign static boxes ... I think DHCP on a > network you actually run is kinda evil .. if its just you, statically > assign everything, I personally think its better in the long run > considering dhcpd had a few sec alerts this past year. > > > >------------------------------------------------------------------------ > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040716/a2518ee9/attachment.html> From LeeEyerman at aol.com Fri Jul 16 10:01:21 2004 From: LeeEyerman at aol.com (LeeEyerman at aol.com) Date: Fri, 16 Jul 2004 10:01:21 EDT Subject: [nycphp-talk] A little network help Message-ID: <142.2e5b23aa.2e2939b1@aol.com> That was my initial reaction too, but how would you then route the http, ftp, etc requests with just one static ip from the ISP? Thanks, Lee FYI - I found a great 90% finished guide to IP networking, routing, forwarding and layering: _http://linux-ip.net/html/linux-ip.html#routing-forwarding_ (http://linux-ip.net/html/linux-ip.html#routing-forwarding) It is very well done. In a message dated 7/16/2004 9:45:56 AM Eastern Daylight Time, hans at cyberxdesigns.com writes: This all seems terribly complicated to set up a little routing between three machines. I have 4 machines at home each with a static IP address. I modified the hosts file on each machine to know about the other three machines. I use my router for DNS and routing to the outside word. This bypasses having to set up a dns server. Each time I add a new virtual server on a machine I update the hosts file on each of the machines. I do this for my linux box, Win2k box, OSX box, ect. The hosts file can be found in, C:\WINNT\system32\drivers\etc\hosts on Win2k. It is in etc/ in Linux and OSX. Host file might look like this: # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host 127.0.0.1 localhost 192.168.0.103 _ftp.linuxboxen_ (ftp://ftp.linuxboxen/) 192.168.0.103 _www.linuxboxen_ (http://www.linuxboxen/) 192.168.0.104 Win98Boxen 192.168.0.104 www.Win98Boxen 127.0.0.1 _ftp.localmachine_ (ftp://ftp.localmachine/) 127.0.0.1 www.localmachine Just my approach to this problem. Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040716/4e9410ce/attachment.html> From dg_francisco at hotmail.com Fri Jul 16 10:06:53 2004 From: dg_francisco at hotmail.com (Francisco Marin) Date: Fri, 16 Jul 2004 10:06:53 -0400 Subject: [nycphp-talk] A little network help References: <142.2e5b23aa.2e2939b1@aol.com> Message-ID: <BAY7-DAV40Smz6UuEhj00005443@hotmail.com> I'm not a CISCO expert but I think you can set up NAT to point those ports to a specific local IP address. You should have a configuration section on your router to setup NAT tables. ----- Original Message ----- From: LeeEyerman at aol.com To: talk at lists.nyphp.org Sent: Friday, July 16, 2004 10:01 AM Subject: Re: [nycphp-talk] A little network help That was my initial reaction too, but how would you then route the http, ftp, etc requests with just one static ip from the ISP? Thanks, Lee FYI - I found a great 90% finished guide to IP networking, routing, forwarding and layering: http://linux-ip.net/html/linux-ip.html#routing-forwarding It is very well done. In a message dated 7/16/2004 9:45:56 AM Eastern Daylight Time, hans at cyberxdesigns.com writes: This all seems terribly complicated to set up a little routing between three machines. I have 4 machines at home each with a static IP address. I modified the hosts file on each machine to know about the other three machines. I use my router for DNS and routing to the outside word. This bypasses having to set up a dns server. Each time I add a new virtual server on a machine I update the hosts file on each of the machines. I do this for my linux box, Win2k box, OSX box, ect. The hosts file can be found in, C:\WINNT\system32\drivers\etc\hosts on Win2k. It is in etc/ in Linux and OSX. Host file might look like this: # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host 127.0.0.1 localhost 192.168.0.103 ftp.linuxboxen 192.168.0.103 www.linuxboxen 192.168.0.104 Win98Boxen 192.168.0.104 www.Win98Boxen 127.0.0.1 ftp.localmachine 127.0.0.1 www.localmachine Just my approach to this problem. Hans ------------------------------------------------------------------------------ _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040716/19a186ad/attachment.html> From dmintz at davidmintz.org Fri Jul 16 10:16:56 2004 From: dmintz at davidmintz.org (David Mintz) Date: Fri, 16 Jul 2004 10:16:56 -0400 (EDT) Subject: [nycphp-talk] A little network help In-Reply-To: <142.2e5b23aa.2e2939b1@aol.com> References: <142.2e5b23aa.2e2939b1@aol.com> Message-ID: <Pine.BSF.4.58.0407161011180.37736@emra.pair.com> On Fri, 16 Jul 2004 LeeEyerman at aol.com wrote: > > That was my initial reaction too, but how would you then route the http, > ftp, etc requests with just one static ip from the ISP? > Unless I'm missing something.... The gateway/router is the device that has the static IP from the ISP, right? So you configure the router to forward the appropriate port to the IP (static, assigned by you) of the appropriate machine inside your LAN. --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From jlacey at att.net Fri Jul 16 10:25:29 2004 From: jlacey at att.net (John Lacey) Date: Fri, 16 Jul 2004 08:25:29 -0600 Subject: [nycphp-talk] A little network help In-Reply-To: <142.2e5b23aa.2e2939b1@aol.com> References: <142.2e5b23aa.2e2939b1@aol.com> Message-ID: <40F7E559.4000902@att.net> LeeEyerman at aol.com wrote: > That was my initial reaction too, but how would you then route the > http, ftp, etc requests with just one static ip from the ISP? caught the tail end of this convo... the "routing" of the various server requests, e.g. http, ftp, etc is handled not by the IP address, but by the Destination Port in the TCP header. For example, let's say a packet arrives at your router and matches your IP address (disregard "internal" vs. "external" addresses). The router then forwards the packet to your box over the Ethernet LAN. Once in the box, the IP layer process (software) forwards the packet up to the TCP process. TCP examines the Destination Port and essentially asks: "what service/process is waiting for requests on this port?" Assuming an httpd server is running (e.g. apache), that server "signed up" to receive requests on Port 80. TCP then "forwards" the request to the httpd process. Of course, it's a bit more complicated than that, since TCP doesn't really "forward" the request to Apache, but schedules that service to run by placing it's process id (PID) in the O/S scheduler's "ready queue". But that's the essence of it. If, on the other hand, an FTP request came in, the IP address gets it to the box as above. But this time the TCP Destination Port is Port 21, which is the port ftp waits on for requests. If an SSH request came in, and the sshd server was running, a packet directed to Port 22 would "end up" being sent to sshd. There's a couple examples and hope that helps. John From agfische at email.smith.edu Fri Jul 16 10:36:21 2004 From: agfische at email.smith.edu (Aaron Fischer) Date: Fri, 16 Jul 2004 10:36:21 -0400 Subject: [nycphp-talk] Oreilly's Spidering Hacks... In-Reply-To: <ECEKLPHECCLGFGAFEPEJMEKNCFAA.yury@heavenspa.com> References: <ECEKLPHECCLGFGAFEPEJMEKNCFAA.yury@heavenspa.com> Message-ID: <81986029-D735-11D8-B46A-0003930D07F2@email.smith.edu> Hey Yury, do you happen to know of any online resources (or good books) that would discuss this stuff? Within the context of PHP would be quite appealing. -Aaron > Hi Aaron, being a complete noobie using php ( me ), i can tell you > i've seem > most of the stuff mentioned at the site possible with PHP. It might > even be > easier in some instances. Scraping content, inclusion of content, and > weather are all possible via PHP. :) > > hth > yury From yury at heavenspa.com Fri Jul 16 10:46:33 2004 From: yury at heavenspa.com (Yury Rush) Date: Fri, 16 Jul 2004 10:46:33 -0400 Subject: [nycphp-talk] Oreilly's Spidering Hacks... In-Reply-To: <81986029-D735-11D8-B46A-0003930D07F2@email.smith.edu> Message-ID: <ECEKLPHECCLGFGAFEPEJMEKPCFAA.yury@heavenspa.com> Aaron, honestly -- i scour hotscripts.com and places where i can find snippets of code ( usually links from hotscripts ) and try to hack them myself.. :) if you find some links, let me know too! ciao yury // http://www.bimmertalk.com //;> -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Aaron Fischer Sent: Friday, July 16, 2004 9:36 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Oreilly's Spidering Hacks... Hey Yury, do you happen to know of any online resources (or good books) that would discuss this stuff? Within the context of PHP would be quite appealing. -Aaron > Hi Aaron, being a complete noobie using php ( me ), i can tell you > i've seem > most of the stuff mentioned at the site possible with PHP. It might > even be > easier in some instances. Scraping content, inclusion of content, and > weather are all possible via PHP. :) > > hth > yury _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From joel at tagword.com Fri Jul 16 10:56:05 2004 From: joel at tagword.com (Joel De Gan) Date: Fri, 16 Jul 2004 14:56:05 +0000 Subject: [nycphp-talk] A call for all PHP'ers, the gtk.php.net site needs your help. Message-ID: <1089989765.9108.40.camel@bezel> Hello there, Yesterday I sent a msg to the php-gtk-general mailing list (which I am on) about the state of the PHP-GTK site and the fact that their wiki got slammed with spam and difficulties in actually using the php-gtk site. Here is the thread: http://marc.theaimsgroup.com/?t=108991553900001&r=1&w=2 There is a call for people with web skills to help work on gtk.php.net and help with documentation and get the search functions working. My original posting is here: http://marc.theaimsgroup.com/?l=php-gtk-general&m=108991553813451&w=2 If you have written any php-gtk apps we could use your help in tutorials and they are looking for more people to document, write apps etc.. I invite you *all* to join the 'general' mailing list, more info here: http://gtk.php.net/resources.php In addition on freenode.net in #php-gtk A lot of this push is because of the release of PHP5 and a lot of renewed interest in PHP-GTK. Part of the problems is that the php-gtk documentation is not currently well and a lot of people have not put up tutorials and apps on the gtk.php.net site. They are trying to pull everything back to have a central site of information for writing php-gtk apps. If you are not familiar with php-gtk, you can do some pretty cool stuff with it, I have a tutorial here: http://lucifer.intercosmos.net/tut/ and another here: http://lucifer.intercosmos.net/phpgtk/ There are a lot of apps out, but the documentation has been an issue in bringing in new programmers. I was also asked to do a presentation at the new meeting on php-gtk in september based on my first php-gtk tutorial, though I don't know the status of that as I may be in Ireland for an RDF conference. Thanks. -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From adam at trachtenberg.com Fri Jul 16 11:34:04 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Fri, 16 Jul 2004 11:34:04 -0400 (EDT) Subject: [nycphp-talk] A call for all PHP'ers, the gtk.php.net site needs your help. In-Reply-To: <1089989765.9108.40.camel@bezel> References: <1089989765.9108.40.camel@bezel> Message-ID: <Pine.LNX.4.58.0407161133030.22857@miranda.org> On Fri, 16 Jul 2004, Joel De Gan wrote: > A lot of this push is because of the release of PHP5 and a lot of > renewed interest in PHP-GTK. Part of the problems is that the php-gtk > documentation is not currently well and a lot of people have not put up > tutorials and apps on the gtk.php.net site. They are trying to pull > everything back to have a central site of information for writing > php-gtk apps. Does php-gtk even work with PHP 5? Isn't there a php-gtk 2.0 coming out? If so, when? -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From Cbielanski at inta.org Fri Jul 16 12:39:04 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Fri, 16 Jul 2004 12:39:04 -0400 Subject: [nycphp-talk] Tricks with __FILE__? Message-ID: <C0CDB9F5E81C234FBB42D84E7853125D013B0A77@intamail1.inta> In the interest of making my error mesages more meaningful, I've written code where calls to functions often have __FILE__ and __LINE__ in the argument list. I pass them in explicitly because AFAIK, that's all that can be done. When I include or require a module, the value of __FILE__ is of course the same as the name of the include. This is as expected. That's why I pass those constants when I call the function contained within the include. Pretty straightforward, but tedious. Can anyone suggest how I might be able to gather the name of the *original* script that's calling include()? Is there an element on $_SERVER[] that can do the trick? 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 Jul 16 12:37:34 2004 From: jeffknight at mac.com (putamare) Date: Fri, 16 Jul 2004 12:37:34 -0400 Subject: [nycphp-talk] OO & database connections In-Reply-To: <40F719EE.7070504@chxo.com> References: <C768E236-D68F-11D8-9516-000393B9FB36@mac.com> <40F6D2B6.5080706@sklar.com> <20040715194149.GA13221@panix.com> <40F719EE.7070504@chxo.com> Message-ID: <7073CD0A-D746-11D8-9516-000393B9FB36@mac.com> I have confirmed that this is not true for mysqli_, if you have $dbcon1 = new mysqli($h,$u,$p); $dbcon2 = new mysqli($h,$u,$p); $dbcon1->select_db('db1'); $dbcon2->select_db('db2'); if ( $result = $dbcon1->query( 'SHOW TABLES' )) : while ($row = $result->fetch_row()) echo $row[0] . "<br/>"; $result->close(); endif; Will give you the tables in db1 On Jul 15, 2004, at 7:57 PM, Chris Snyder wrote: > I didn't believe this when I first read it, but can confirm: > > $dbcon1 = mysql_connect( $h, $u, $p ); > mysql_select_db( 'clew', $dbcon1 ); > > $dbcon2 = mysql_connect( $h, $u, $p ); > mysql_select_db( 'chxo', $dbcon2 ); > > $result = mysql_query( "show tables", $dbcon1 ); > while ( $record = mysql_fetch_array( $result ) ) { > print $record[0]."<br />"; > } > > ... will show the tables in the "second" database, even though the > query was sent via the "first" connection. > > Weird. Jeff Knight putamare not junk at putamare.net From Cbielanski at inta.org Fri Jul 16 12:43:09 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Fri, 16 Jul 2004 12:43:09 -0400 Subject: [nycphp-talk] OO & database connections Message-ID: <C0CDB9F5E81C234FBB42D84E7853125D013B0A78@intamail1.inta> Hooray!! Another reason to upgrade to MySQL 5 and mysqli_* 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: putamare [mailto:jeffknight at mac.com] > Sent: Friday, July 16, 2004 12:38 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] OO & database connections > > > I have confirmed that this is not true for mysqli_, if you have > > $dbcon1 = new mysqli($h,$u,$p); > $dbcon2 = new mysqli($h,$u,$p); > > $dbcon1->select_db('db1'); > $dbcon2->select_db('db2'); > > if ( $result = $dbcon1->query( 'SHOW TABLES' )) : > while ($row = $result->fetch_row()) echo $row[0] . "<br/>"; > $result->close(); > endif; > > Will give you the tables in db1 > > > > On Jul 15, 2004, at 7:57 PM, Chris Snyder wrote: > > > I didn't believe this when I first read it, but can confirm: > > > > $dbcon1 = mysql_connect( $h, $u, $p ); > > mysql_select_db( 'clew', $dbcon1 ); > > > > $dbcon2 = mysql_connect( $h, $u, $p ); > > mysql_select_db( 'chxo', $dbcon2 ); > > > > $result = mysql_query( "show tables", $dbcon1 ); > > while ( $record = mysql_fetch_array( $result ) ) { > > print $record[0]."<br />"; > > } > > > > ... will show the tables in the "second" database, even though the > > query was sent via the "first" connection. > > > > Weird. > > Jeff Knight > putamare not junk at putamare.net > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From adam at trachtenberg.com Fri Jul 16 12:57:04 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Fri, 16 Jul 2004 12:57:04 -0400 (EDT) Subject: [nycphp-talk] Tricks with __FILE__? In-Reply-To: <C0CDB9F5E81C234FBB42D84E7853125D013B0A77@intamail1.inta> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A77@intamail1.inta> Message-ID: <Pine.LNX.4.58.0407161256270.22857@miranda.org> On Fri, 16 Jul 2004, Chris Bielanski wrote: > Can anyone suggest how I might be able to gather the name of the *original* > script that's calling include()? Is there an element on $_SERVER[] that can > do the trick? debug_backtrace() -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From Cbielanski at inta.org Fri Jul 16 13:05:59 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Fri, 16 Jul 2004 13:05:59 -0400 Subject: [nycphp-talk] Tricks with __FILE__? Message-ID: <C0CDB9F5E81C234FBB42D84E7853125D013B0A7A@intamail1.inta> > debug_backtrace() > > -adam More groovy than an old LP... ;) 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 hans not junk at nyphp.com Sat Jul 17 01:09:12 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 7F045A85EA for <talk at lists.nyphp.org>; Sat, 17 Jul 2004 01:09:12 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Fri, 16 Jul 2004 22:09:11 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] Basic security question Date: Fri, 16 Jul 2004 22:09:11 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F87031D3738 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] Basic security question Thread-Index: AcRp1/TEfGCmP5qARnOUfrxVWE2oowB4i0sg From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 17 Jul 2004 05:09:11.0574 (UTC) FILETIME=[32560B60:01C46BBC] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Sat, 17 Jul 2004 05:09:13 -0000 > Every attack wether web or otherwise I have heard about starts with > learning as much as you can about the target's systems, then seeking > to exploit some either known or unknown security holes in the software > that system is running. Yes and no... If the attacker is going after attacking the *host* then this is true. However, most web attacks are at a different level, and thus not specific to any one platform - ie. XSS. While certainly related, host and web security are in different playing fields. If someone is trying to crack the box, then you better be sure you turned off all the legacy UNIX ports, have the most updated patches to Apache/sendmail/etc. If someone is trying to work over your web application, then it's strictly the application. > Knowing that, why reveal anything? Make the potential attacker work > for every peice of information they want. Set the apache server string > to claim it is some recent release of IIS, tell all the services not > to advertise they are running, save your .php files as .exe and tell > apache just to interpret apropriatly. etc. Obviously if you choose to > run some off the shelf application (ie phpBB) you will let the cat out > of the bag, but seperating it to a subdomain may only add to the > confusion. >=20 > Does anyone see any real advantage to this approach? Personally, I don't. Plain and simple, it's so easy to determine your platform just by looking at the TCP/IP packets (called OS fingerprinting). Besides that, there are so many ways a box leaks it's identity (apache/smtp/ftp/ssh/etc) that unless all of these are obscured (which is quite tedious) you're only adding more work for yourself, and possibly preventing legit identification. Furthermore, most exploits don't lie in the platform or language used. Again, since we're talking web application security, the problem lies in the application itself. If it's an off the shelf app as you point out, there's nothing that can be done. And if it's a custom app, the attacks people use are frankly cross platform anyway. Once again, since we're talking web security for the most part, attacks are at a different level - and independent - of what platform is used, assuming you're not ignoring relevant patches. An XSS hole? SQL injection? Session hijacking? Does it really matter what platform is in use? I proudly run .php extensions, default error messages, and the X-Powered-By: PHP HTTP header. H >From hans not junk at nyphp.com Sat Jul 17 01:15:31 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id E276CA85EA for <talk at lists.nyphp.org>; Sat, 17 Jul 2004 01:15:30 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Fri, 16 Jul 2004 22:15:30 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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-related book comments Date: Fri, 16 Jul 2004 22:15:27 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F87031D3739 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] PHP-related book comments Thread-Index: AcRqestUNKE1DPowQiClVxIbXrz1bgBQcdcg From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 17 Jul 2004 05:15:30.0464 (UTC) FILETIME=[142C1200:01C46BBD] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Sat, 17 Jul 2004 05:15:31 -0000 > oh.. so that's how that happens... it annoys me, too, as I like to have > nicely formatted html (even tho it doesn't affect the output) Well amen... I've lobbied for this for years, both on the bug report system and to PHP's developers' faces, but to no avail. And if you think it's annoying when dealing with HTML, try writing a CLI script that runs on the console! I say we get a petition going around to fix this :) (fairly simple fix from what Ilia and Derick said to me once). H From jonbaer at jonbaer.net Sat Jul 17 01:22:40 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Sat, 17 Jul 2004 01:22:40 -0400 Subject: [nycphp-talk] Basic security question In-Reply-To: <41EE526EC2D3C74286415780D3BA9F87031D3738@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F87031D3738@ehost011-1.exch011.intermedia.net> Message-ID: <40F8B7A0.1050806@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hans Zaunere wrote: | Personally, I don't. Plain and simple, it's so easy to determine your | platform just by looking at the TCP/IP packets (called OS | fingerprinting). Besides that, there are so many ways a box leaks it's So true ... Practically the only real thing you can do from a security pespective is to virtually "listen" to the mailing lists which get the word out, things like Bugtraq, FullDisclosure, OSVDB, and others. There are tons of projects in the works (aka "Sourceforged") that try packet mangling for your box to prevent OS fingerprinting (like Morph) in which even the authors have a very tough time hiding details from passive OS sniffing because your packets just get out there w/ alot of detail. For Linux there are items like IPpersonality kernel patches which can fool the stack but not sure its worth going through all that trouble. Ive "studied" the security area for a while now, the honeynets/rootkits and other cat/mouse trickery is pretty interesting topics. I find it that you cant really arm yourself with a "one software package ~ does it all" defense approach + your only *real* defense is better knowledge of security as a whole. So beyond going undercover and mingling w/ the folks writing the exploits, joining those lists gives early insight. Oh, and BTW another interesting topic you might be interested in, Port Knocking ... www.portknocking.org The concept: A port remains closed and waits for a secret knock sequence on closed ports before opening itself. - - 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.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA+LegQdvbi5oMr0cRAoIfAJ9kTm3JCR0uD/yGgP58dfrubGzOSgCeKEmn IItGuGtA/kJ93e0k6VzmpPo= =rKxG -----END PGP SIGNATURE----- From jonbaer at jonbaer.net Sat Jul 17 01:25:17 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Sat, 17 Jul 2004 01:25:17 -0400 Subject: [nycphp-talk] Basic security question In-Reply-To: <40F8B7A0.1050806@jonbaer.net> References: <41EE526EC2D3C74286415780D3BA9F87031D3738@ehost011-1.exch011.intermedia.net> <40F8B7A0.1050806@jonbaer.net> Message-ID: <40F8B83D.90706@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 | Practically the only real thing you can do from a security pespective is | to virtually "listen" to the mailing lists which get the word out, | things like Bugtraq, FullDisclosure, OSVDB, and others. btw, here is your friendly neighborhood osvdb link for PHP: http://www.osvdb.org/searchdb.php?action=search_title&vuln_title=php&Search=Search fun,fun,fun ... - - 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.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA+Lg9Qdvbi5oMr0cRAkfvAJ9YKkvezoi4frZDOnaBd1KJxgcZ4QCgpXgW Ca6BM5txFen6hWnlSTow9AA= =g5rK -----END PGP SIGNATURE----- >From hans not junk at nyphp.com Sat Jul 17 01:30:08 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 990ECA85F0 for <talk at lists.nyphp.org>; Sat, 17 Jul 2004 01:30:08 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Fri, 16 Jul 2004 22:30:07 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] PHP5 on K5 Date: Fri, 16 Jul 2004 22:30:10 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F87031D373A at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] PHP5 on K5 Thread-Index: AcRq2d26osTZectfRtGigPUGIfmoQgA4/FSw From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 17 Jul 2004 05:30:07.0743 (UTC) FILETIME=[1F1238F0:01C46BBF] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Sat, 17 Jul 2004 05:30:09 -0000 > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of David Sklar > Sent: Thursday, July 15, 2004 10:09 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] PHP5 on K5 >=20 > John Lacey wrote: >=20 > > Michael R. McLarnon wrote: > > > >> There is a long article on kuro5hin.org that just hit the front page, > >> in response to the release of 5. It has a nice little tutorial, and > >> even goes into OO and what is new in this release. My favorite quote: > >> "The syntax of PHP looks like the offspring of a drunken alley-fondle > >> between C and Perl." I like drunken alley-fondles... and yes, PHP's syntax is a perfect blend of sober C and staggering Perl. > > Once you get past the "emotional" part, it's a somewhat interesting > > piece. I would be more interested in what the Convissors, Shifletts, > > Sklars, Tractenbergs and Zauneres and other people of that technical > > caliber on this list have to say... >=20 > I must admit to being underwhelmed by this article. I am not sure what > the author's point(s) was/were. New PHP 5 features make it possible to > write non-web apps in PHP? Heavily OO PHP 5 code looks a lot like Java? I agree... I'm not sure of the point. Although, for new users looking at PHP, especially with the release of 5, it does make a nice summation. I especially like this comment: "As someone who spent half a year implementing a major web application in PHP, these are all features it would have been nice to have." I'm sure there are programmers around that could rewrite that as: "As someone who spent 5 years implementing a major financial application in Assembly, these are all features it would have been nice to have." > I suppose if today is the first time you are taking a look at PHP 5, > then these might seem like notable and mildly amazing aspects of it, but > otherwise they don't seem too surprising. PHP-GTK and the cli SAPI > have been around for a while; the PHP 5 OO syntax has been available for > perusal for plenty of time as well. >=20 > A more interesting area for PHP futurology, IMHO, is whether future > versions of PHP will run on the Zend Engine (v2 or a future version), > Parrot, or the CLR. Perhaps alluded to by the clever title "Zend in the clowns?" H >From hans not junk at nyphp.com Sat Jul 17 01:47:47 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id AA00FA85EA for <talk at lists.nyphp.org>; Sat, 17 Jul 2004 01:47:46 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Fri, 16 Jul 2004 22:47:46 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C46BC1.993AA25A" Subject: RE: [nycphp-talk] A little network help Date: Fri, 16 Jul 2004 22:47:49 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F87031D373B at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] A little network help Thread-Index: AcRq6ZVZGpbbGGV0TaOIngtkfFVUZgA1vGHg From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 17 Jul 2004 05:47:46.0140 (UTC) FILETIME=[95ECC9C0:01C46BC1] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Sat, 17 Jul 2004 05:47:47 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C46BC1.993AA25A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =20 =20 I have a ton of PHP and MySQL experience and I have decided to put a little network in my apartment. So I got my Linux box, I have two windows boxes, I have a single static IP, a Cisco router, and a manual? Can anyone give me some pointers? A path in the right direction? =20 1) What Linux should I use? I have a free distribution of Red Hat 9? Is Fedora better? Any advice? =20 I've used Fedora Core 2 and have been very happy.... as far as Linuxes go, anyway. =20 2) Currently my router is dynamically assigning TCP/IP #'s to each machine. I know I have to set this up differently. I want the linux box to be a http server, ftp, email, etc, and I want the windows boxes to have access to the net. Any suggestions on how I should do this? I think I have to setup a DNS, but with only one static IP I think this gets tricky. Any assistance would be greatly appreciated. =20 I have a Linksys router and it's a simple config to make a particular IP part of the DMZ (ie, all traffic from the internet gets routed into that IP, and vice versa). Meanwhile, the other boxes (Windows and Mac) are tucked away behind NAT. I'm also able to setup a static IP address assignment via the DHCP server in the Linksys router. If this isn't an option, then you can just turn off DHCP on the Linux box and set the IP manually. Nevertheless, you don't need a DNS server by any stretch. =20 3) Also, when I unpack RPM distributions and the RPM needs a library, where is the best place to find it. And if you can't find it what do you do. For example, I was trying to install PICO under Red Hat and it kept asking for libncurses.so.5. I check the web but could not find it. Any help? =20 http://www.rpmfind.net <http://www.rpmfind.net/> can be helpful. If you're using a particular distro, like Fedora, 99% of the RPMs are at their download site. Otherwise, the particular library or package is probably available as an RPM at its homepage. =20 Or you could just use a ports based distro like Chris says... oh wait, that's FreeBSD :-) =20 H ------_=_NextPart_001_01C46BC1.993AA25A Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-reply; font-family:Arial; color:navy;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </style> </head> <body lang=3DEN-US link=3Dblue vlink=3Dpurple id=3D"role_body" = bottomMargin=3D7 leftmargin=3D7 topmargin=3D7 rightMargin=3D7> <div class=3DSection1> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <div style=3D'border:none;border-left:solid blue 1.5pt;padding:0in 0in = 0in 4.0pt'> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'><o:p> </o:p></span></font></p> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>I have a ton of PHP and MySQL = experience and I have decided to put a little network in my apartment.  So I = got my Linux box, I have two windows boxes, I have a single static IP, a Cisco = router, and a manual?  Can anyone give me some pointers?  A path in = the right direction?</span></font><font size=3D2 color=3Dnavy face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial;color:navy'><o:p></o:p></span= ></font></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'> <o:p></o:p></span></font></p>= </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>1) What Linux should I use?  = I have a free distribution of Red Hat 9?  Is Fedora better?  Any = advice?<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>I've used Fedora Core 2 and have = been very happy…. as far as Linuxes go, anyway.<o:p></o:p></span></font></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'> <o:p></o:p></span></font></p>= </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>2) Currently my router is = dynamically assigning TCP/IP #'s to each machine.  I know I have to set this up differently.  I want the linux box to be a http server, ftp, email, = etc, and I want the windows boxes to have access to the net.  Any = suggestions on how I should do this?  I think I have to setup a DNS, but with = only one static IP I think this gets tricky.  Any assistance would be = greatly appreciated.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>I have a Linksys router and it's a = simple config to make a particular IP part of the DMZ (ie, all traffic from the internet gets routed into that IP, and vice versa).  Meanwhile, the = other boxes (Windows and Mac) are tucked away behind NAT.  I'm also able = to setup a static IP address assignment via the DHCP server in the Linksys = router.  If this isn't an option, then you can just turn off DHCP on the = Linux box and set the IP manually.  Nevertheless, you don't need a DNS server = by any stretch.<o:p></o:p></span></font></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'> <o:p></o:p></span></font></p>= </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>3) Also, when I unpack RPM = distributions and the RPM needs a library, where is the best place to find it.  = And if you can't find it what do you do.  For example, I was trying to = install PICO under Red Hat and it kept asking for libncurses.so.5.  I check = the web but could not find it.  Any help?</span></font><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size:10.0pt;font-family:Arial; color:navy'><o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><a = href=3D"http://www.rpmfind.net/">http://www.rpmfind.net</a> can be helpful.  If you're using a particular distro, like Fedora, = 99% of the RPMs are at their download site.  Otherwise, the particular = library or package is probably available as an RPM at its = homepage.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>Or you could just use a ports based = distro like Chris says… oh wait, that's FreeBSD  </span></font><font size=3D2 color=3Dnavy face=3DWingdings><span = style=3D'font-size:10.0pt;font-family: Wingdings;color:navy'>J</span></font><font size=3D2 color=3Dnavy = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial;color:navy'><o:p></o:p></span= ></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>H<o:p></o:p></span></font></p> </div> </div> </div> </body> </html> ------_=_NextPart_001_01C46BC1.993AA25A-- >From hans not junk at nyphp.com Sat Jul 17 01:51:05 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id C0610A85EA for <talk at lists.nyphp.org>; Sat, 17 Jul 2004 01:51:04 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Fri, 16 Jul 2004 22:51:03 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] A call for all PHP'ers, the gtk.php.net site needs your help. Date: Fri, 16 Jul 2004 22:51:06 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F87031D373C at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] A call for all PHP'ers, the gtk.php.net site needs your help. Thread-Index: AcRrRdGuBMwlUOv8SeS6V0h+43qSqAAfAY5g From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 17 Jul 2004 05:51:03.0881 (UTC) FILETIME=[0BC9AB90:01C46BC2] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Sat, 17 Jul 2004 05:51:05 -0000 > If you are not familiar with php-gtk, you can do some pretty cool stuff > with it, I have a tutorial here: > http://lucifer.intercosmos.net/tut/ > and another here: > http://lucifer.intercosmos.net/phpgtk/ > There are a lot of apps out, but the documentation has been an issue in > bringing in new programmers. >=20 > I was also asked to do a presentation at the new meeting on php-gtk in > september based on my first php-gtk tutorial, though I don't know the > status of that as I may be in Ireland for an RDF conference. Yes, you were asked :) I hope it can happen. If not Sept, then soon... let me know. It's also exciting to see php-gtk coming back into light... it's a great area for PHP to be in. H >From hans not junk at nyphp.com Sat Jul 17 01:59:35 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 90A51A85EA for <talk at lists.nyphp.org>; Sat, 17 Jul 2004 01:59:35 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Fri, 16 Jul 2004 22:59:35 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C46BC3.3D10320B" Subject: RE: [nycphp-talk] PHP and IIS Site Creation Date: Fri, 16 Jul 2004 22:59:33 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F87031D373D at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] PHP and IIS Site Creation Thread-Index: AcRq8GtJrAW1eZydT1OoNLOzvMDr4wA0mqjQ From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 17 Jul 2004 05:59:35.0038 (UTC) FILETIME=[3C7609E0:01C46BC3] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Sat, 17 Jul 2004 05:59:36 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C46BC3.3D10320B Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =20 =20 ________________________________ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Shai G Chen Sent: Friday, July 16, 2004 12:50 AM To: talk at lists.nyphp.org Subject: [nycphp-talk] PHP and IIS Site Creation =20 I'm currently working on IIS 5.0 and PHP 4.3.8. I running my own web server at my place. Here is the task I would like my script to accomplished: - Bind an exisiting IP address I have on my IIS server (ie. 189.176.2.104) to the web folder itself. At this point I'm manually linking the folder and IP together. So if I create a folder name "newsite" and I bind the IP 189.176.2.104 to it., I would be able to access the folder content if I put the IP address on the web browser. I know there is ways to do it using VBScript and all the .NET series. What I am interested in using is PHP, or even javascript. Thanks in advance for the help.=20 =20 This isn't possible, as far as I know, with PHP. VBScript and .NET stuff have a freighting intimate relationship with their web server, IIS. PHP is designed - and rightfully so - to be a straightforward scripting language for connecting to databases, parsing and sending text, etc. And this is certainly not possible using JavaScript (although with the IE and Windows security problems recently, it might be :-) =20 H ------_=_NextPart_001_01C46BC3.3D10320B Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--> <style> <!-- /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0;} @font-face {font-family:PMingLiU; panose-1:2 1 6 1 0 1 1 1 1 1;} @font-face {font-family:"\@PMingLiU"; panose-1:0 0 0 0 0 0 0 0 0 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:PMingLiU;} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-reply; font-family:Arial; color:navy;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body bgcolor=3Dwhite lang=3DEN-US link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <div style=3D'border:none;border-left:solid blue 1.5pt;padding:0in 0in = 0in 4.0pt'> <div> <div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font = size=3D3 face=3DPMingLiU><span style=3D'font-size:12.0pt'> <hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1> </span></font></div> <p class=3DMsoNormal><b><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial;font-weight:bold'>From:</span></font></b><font = size=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] = <b><span style=3D'font-weight:bold'>On Behalf Of </span></b>Shai G Chen<br> <b><span style=3D'font-weight:bold'>Sent:</span></b> Friday, July 16, = 2004 12:50 AM<br> <b><span style=3D'font-weight:bold'>To:</span></b> = talk at lists.nyphp.org<br> <b><span style=3D'font-weight:bold'>Subject:</span></b> [nycphp-talk] PHP = and IIS Site Creation</span></font><font face=3DArial><span = style=3D'font-family:Arial'><o:p></o:p></span></font></p> </div> <p class=3DMsoNormal><font size=3D3 face=3DArial><span = style=3D'font-size:12.0pt; font-family:Arial'><o:p> </o:p></span></font></p> <div> <p class=3DMsoNormal><font size=3D3 face=3DArial><span = style=3D'font-size:12.0pt; font-family:Arial'> I'm currently working on IIS 5.0 and PHP 4.3.8. = I running my own web server at my place. Here is the task I would like my = script to accomplished:<br> <br> - Bind an exisiting IP address I have on my IIS server (ie. = 189.176.2.104) to the web folder itself. At this point I'm manually linking the folder and = IP together. So if I create a folder name "newsite" and I bind = the IP 189.176.2.104 to it., I would be able to access the folder content if I = put the IP address on the web browser. I know there is ways to do it using = VBScript and all the .NET series. What I am interested in using is PHP, or even = javascript. Thanks in advance for the help. <o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>This isn't possible, as far as I = know, with PHP.  VBScript and .NET stuff have a freighting intimate = relationship with their web server, IIS.  PHP is designed - and rightfully so - = to be a straightforward scripting language for connecting to databases, parsing = and sending text, etc.  And this is certainly not possible using = JavaScript (although with the IE and Windows security problems recently, it might = be </span></font><font size=3D2 color=3Dnavy face=3DWingdings><span = style=3D'font-size:10.0pt;font-family: Wingdings;color:navy'>J</span></font><font size=3D2 color=3Dnavy = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial;color:navy'><o:p></o:p></span= ></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>H<o:p></o:p></span></font></p> </div> </div> </div> </body> </html> ------_=_NextPart_001_01C46BC3.3D10320B-- From jonbaer at jonbaer.net Sat Jul 17 02:06:42 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Sat, 17 Jul 2004 02:06:42 -0400 Subject: [nycphp-talk] popup blocking detection + workarounds Message-ID: <40F8C1F2.9010807@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 seems like people love "popping" stuff up these days ... unfortunatley its harder to talk them out of it than it is to just code/do it. so i was trying to research and find out what detection methods are available for it and what browsers do what. do all blockers work w/ the CTRL+click to overwrite protection? is there a standard or draft for this type of stuff? im assuming they are looking/parsing window.open() calls ... would you move over to dhtml in these cases (like the amazon dropdowns), i dont think they can work w/ embeddable flash which im sure will come up. - - 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.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA+MHyQdvbi5oMr0cRAht5AKC2zR5402ydlGFo+Nw7w44eUQKI4gCg7eWH gMFsXO9PavHaXe4kKTxWgKU= =VTGO -----END PGP SIGNATURE----- From jonbaer at jonbaer.net Sat Jul 17 02:12:32 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Sat, 17 Jul 2004 02:12:32 -0400 Subject: [nycphp-talk] PHP and IIS Site Creation In-Reply-To: <41EE526EC2D3C74286415780D3BA9F87031D373D@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F87031D373D@ehost011-1.exch011.intermedia.net> Message-ID: <40F8C350.2020304@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 | - Bind an exisiting IP address I have on my IIS server (ie. | 189.176.2.104) to the web folder itself. At this point I'm manually | linking the folder and IP together. So if I create a folder name | "newsite" and I bind the IP 189.176.2.104 to it., I would be able to | access the folder content if I put the IP address on the web browser. I | know there is ways to do it using VBScript and all the .NET series. What | I am interested in using is PHP, or even javascript. Thanks in advance | for the help. you could probably figure out how to accomplish this first in COM and then connect it: http://us4.php.net/com (take a look @ the example on that page - crazy stuff) you are probably looking for COM-based file function that can mount like that. - - 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.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA+MNPQdvbi5oMr0cRAn2UAKCtuetuntOl7twXdAA+sEqI3RqanQCdG+vY DaPfL3FUVouqpUqf+tEVrDg= =d740 -----END PGP SIGNATURE----- From shiflett at php.net Sat Jul 17 02:47:30 2004 From: shiflett at php.net (Chris Shiflett) Date: Fri, 16 Jul 2004 23:47:30 -0700 (PDT) Subject: [nycphp-talk] Basic security question In-Reply-To: <41EE526EC2D3C74286415780D3BA9F87031D3738@ehost011-1.exch011.intermedia.net> Message-ID: <20040717064730.16662.qmail@web52806.mail.yahoo.com> --- Hans Zaunere <hans not junk at nyphp.com> wrote: > I proudly run .php extensions, default error messages, and the > X-Powered-By: PHP HTTP header. I agree with everything Hans said (of course), but I'm not sure one should be so proud about displaying error messages. :-) Kidding aside, I think it's pretty easy to set display_errors to Off and log_errors to On. I'm as guilty as anyone else about not adhering to my own suggestions sometimes, but if you're concerned about giving away too much information, I think error messages are the first place to be looking. 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 Sat Jul 17 02:48:34 2004 From: shiflett at php.net (Chris Shiflett) Date: Fri, 16 Jul 2004 23:48:34 -0700 (PDT) Subject: [nycphp-talk] PHP-related book comments In-Reply-To: <41EE526EC2D3C74286415780D3BA9F87031D3739@ehost011-1.exch011.intermedia.net> Message-ID: <20040717064834.636.qmail@web52810.mail.yahoo.com> --- Hans Zaunere <hans not junk at nyphp.com> wrote: > I say we get a petition going around to fix this :) Sign me up. :-) 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 sgchen at verizon.net Sat Jul 17 03:10:42 2004 From: sgchen at verizon.net (Shai G Chen) Date: Sat, 17 Jul 2004 03:10:42 -0400 Subject: [nycphp-talk] PHP and IIS Site Creation References: <41EE526EC2D3C74286415780D3BA9F87031D373D@ehost011-1.exch011.intermedia.net> <40F8C350.2020304@jonbaer.net> Message-ID: <001801c46bcd$2cc3be70$0300a8c0@Doodle> I did some research and found that PHP actually have a extension called php_iisfunc.dll. Its has several function that would help me like iis_addserver, iis_getserverbypath and etc. But there seem to be a lack of documentation on the functions. So I'm pretty walking around blind with the extension. Maybe someone have experience with the extension can give me some in-sight ----- Original Message ----- From: "Jon Baer" <jonbaer at jonbaer.net> To: "NYPHP Talk" <talk at lists.nyphp.org> Sent: Saturday, July 17, 2004 2:12 AM Subject: Re: [nycphp-talk] PHP and IIS Site Creation > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > | - Bind an exisiting IP address I have on my IIS server (ie. > | 189.176.2.104) to the web folder itself. At this point I'm manually > | linking the folder and IP together. So if I create a folder name > | "newsite" and I bind the IP 189.176.2.104 to it., I would be able to > | access the folder content if I put the IP address on the web browser. I > | know there is ways to do it using VBScript and all the .NET series. What > | I am interested in using is PHP, or even javascript. Thanks in advance > | for the help. > > you could probably figure out how to accomplish this first in COM and > then connect it: > > http://us4.php.net/com > > (take a look @ the example on that page - crazy stuff) > > you are probably looking for COM-based file function that can mount like > that. > > - - 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.4 (Cygwin) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFA+MNPQdvbi5oMr0cRAn2UAKCtuetuntOl7twXdAA+sEqI3RqanQCdG+vY > DaPfL3FUVouqpUqf+tEVrDg= > =d740 > -----END PGP SIGNATURE----- > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From danielc at analysisandsolutions.com Sat Jul 17 08:58:14 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sat, 17 Jul 2004 08:58:14 -0400 Subject: [nycphp-talk] popup blocking detection + workarounds In-Reply-To: <40F8C1F2.9010807@jonbaer.net> References: <40F8C1F2.9010807@jonbaer.net> Message-ID: <20040717125814.GA14179@panix.com> On Sat, Jul 17, 2004 at 02:06:42AM -0400, Jon Baer wrote: > seems like people love "popping" stuff up these days ... > > unfortunatley its harder to talk them out of it than it is to just > code/do it. Talk? Why talk? Just invite them out for drinks and then put poison in their beverage. --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 danielc at analysisandsolutions.com Sat Jul 17 09:18:53 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sat, 17 Jul 2004 09:18:53 -0400 Subject: [nycphp-talk] Basic security question In-Reply-To: <20040717064730.16662.qmail@web52806.mail.yahoo.com> References: <41EE526EC2D3C74286415780D3BA9F87031D3738@ehost011-1.exch011.intermedia.net> <20040717064730.16662.qmail@web52806.mail.yahoo.com> Message-ID: <20040717131853.GA19014@panix.com> On Fri, Jul 16, 2004 at 11:47:30PM -0700, Chris Shiflett wrote: > > but if you're concerned about giving away too > much information, I think error messages are the first place to be > looking. Good advice too. The errors display the full path to a file. This can help crackers learn about you system's configuration and use that info when leveraging exploits. --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 sm11szw02 at sneakemail.com Sat Jul 17 10:28:00 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Sat, 17 Jul 2004 10:28:00 -0400 Subject: [nycphp-talk] A little network help In-Reply-To: <41EE526EC2D3C74286415780D3BA9F87031D373B@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F87031D373B@ehost011-1.exch011.intermedia.net> Message-ID: <7826-59734@sneakemail.com> Hans Zaunere hans-at-nyphp.com |nyphp 04/2004| wrote: > I have a ton of PHP and MySQL experience and I have decided to put a > little network in my apartment. So I got my Linux box, I have two > windows boxes, I have a single static IP, a Cisco router, and a > manual? Can anyone give me some pointers? A path in the right direction? > > 1) What Linux should I use? I have a free distribution of Red Hat 9? > Is Fedora better? Any advice? > > I've used Fedora Core 2 and have been very happy?. as far as Linuxes > go, anyway. > > 2) Currently my router is dynamically assigning TCP/IP #'s to each > machine. I know I have to set this up differently. I want the linux > box to be a http server, ftp, email, etc, and I want the windows boxes > to have access to the net. Any suggestions on how I should do this? I > think I have to setup a DNS, but with only one static IP I think this > gets tricky. Any assistance would be greatly appreciated. > > I have a Linksys router and it's a simple config to make a particular > IP part of the DMZ (ie, all traffic from the internet gets routed into > that IP, and vice versa). Meanwhile, the other boxes (Windows and Mac) > are tucked away behind NAT. I'm also able to setup a static IP address > assignment via the DHCP server in the Linksys router. If this isn't an > option, then you can just turn off DHCP on the Linux box and set the > IP manually. Nevertheless, you don't need a DNS server by any stretch. > > 3) Also, when I unpack RPM distributions and the RPM needs a library, > where is the best place to find it. And if you can't find it what do > you do. For example, I was trying to install PICO under Red Hat and it > kept asking for libncurses.so.5. I check the web but could not find > it. Any help? > > http://www.rpmfind.net <http://www.rpmfind.net/> can be helpful. If > you're using a particular distro, like Fedora, 99% of the RPMs are at > their download site. Otherwise, the particular library or package is > probably available as an RPM at its homepage. > > Or you could just use a ports based distro like Chris says? oh wait, > that's FreeBSD J > > H > Ditto to what Hanz said. I would have suggested ditch the router and use box #1 as a linux router ... if only for the the flexibility and educational value. If you enjoy configuring it todo the right things as a firewall then you'll love Astarro Linux. With Netgear or Linksys routers at $80 with NAT and even an exptra print server (Netgear FR114P), DMZ, port forwarding, etc the last thing I need is a cisco router getting in the way... fast and flexible, youcan have as many as you like to cordon off whatever you need with peace of mind (keepthe firmware upated) >From hans not junk at nyphp.com Sat Jul 17 11:14:01 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 95B5FA85F0 for <talk at lists.nyphp.org>; Sat, 17 Jul 2004 11:14:01 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Sat, 17 Jul 2004 08:13:59 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] Basic security question Date: Sat, 17 Jul 2004 08:13:57 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F87031D375C at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] Basic security question Thread-Index: AcRryfK19IAfpQP5TP2nu9AWI+ABIwARjo9w From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 17 Jul 2004 15:13:59.0789 (UTC) FILETIME=[AFCC39D0:01C46C10] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Sat, 17 Jul 2004 15:14:02 -0000 > > I proudly run .php extensions, default error messages, and the > > X-Powered-By: PHP HTTP header. >=20 > I agree with everything Hans said (of course), but I'm not sure one should > be so proud about displaying error messages. :-) >=20 > Kidding aside, I think it's pretty easy to set display_errors to Off and > log_errors to On. I'm as guilty as anyone else about not adhering to my > own suggestions sometimes, but if you're concerned about giving away too > much information, I think error messages are the first place to be > looking. Yeah, I agree too (and always use php.ini-recommended which takes care of this). But that's not really what I meant. I was speaking more to Apache's default error pages (like a 404) which clearly states that Apache is in fact serving the pages. If someone goes the security through obscurity route, then it's important to remember to modify this behavior, among other things. H From sm11szw02 at sneakemail.com Sat Jul 17 11:37:03 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Sat, 17 Jul 2004 11:37:03 -0400 Subject: [nycphp-talk] Basic security question In-Reply-To: <6ec19ec70407141222152c4559@mail.gmail.com> References: <6ec19ec70407141222152c4559@mail.gmail.com> Message-ID: <8958-93317@sneakemail.com> Paul Reinheimer preinheimer-at-gmail.com |nyphp 04/2004| wrote: >for every peice of information they want. Set the apache server string >to claim it is some recent release of IIS, tell all the services not > > I can't think of anything I would want *less* than probes thinking my box is IIS. My log would be full of 256+ length "XXXX" strings, .exec hack attempts, worm hole seekers, etc. And if a cracker actually was fooled enough to think my box WAS some form of hardened IIS, then the script kiddies would surely try everything against it, fully confident that something would work. I think having identify itself as SecureBSD or perhaps name_a_planet(@random) would be less of a liability. From LeeEyerman at aol.com Sat Jul 17 13:48:32 2004 From: LeeEyerman at aol.com (LeeEyerman at aol.com) Date: Sat, 17 Jul 2004 13:48:32 EDT Subject: [nycphp-talk] A little network help Message-ID: <7d.532e0fc6.2e2ac070@aol.com> Again, thank you all for your help. I have two seemingly stupid questions that my ISP is having trouble answering: a) If I use port routing, are the ports routed to the physical connection on the router or the dynamic IP address assigned by the router? If it is the later, if the router assigns a different IP to the "http/ftp/etc server" does the port routing follow automatically? b) I get my static IP address through my cable company and in order to have the "business class" service, you have to use their Cisco Router. If I want to use my Linux box as a router as suggested, do I just use the Cisco Router to deliver the static IP address to the linux box and then, conversely, use the router for external DNS? c) Does anyone know how to access a Cisco uBR900 router? Thanks, Lee In a message dated 7/17/2004 10:28:29 AM Eastern Daylight Time, sm11szw02 at sneakemail.com writes: Hans Zaunere hans-at-nyphp.com |nyphp 04/2004| wrote: > I have a ton of PHP and MySQL experience and I have decided to put a > little network in my apartment. So I got my Linux box, I have two > windows boxes, I have a single static IP, a Cisco router, and a > manual? Can anyone give me some pointers? A path in the right direction? > > 1) What Linux should I use? I have a free distribution of Red Hat 9? > Is Fedora better? Any advice? > > I've used Fedora Core 2 and have been very happy?. as far as Linuxes > go, anyway. > > 2) Currently my router is dynamically assigning TCP/IP #'s to each > machine. I know I have to set this up differently. I want the linux > box to be a http server, ftp, email, etc, and I want the windows boxes > to have access to the net. Any suggestions on how I should do this? I > think I have to setup a DNS, but with only one static IP I think this > gets tricky. Any assistance would be greatly appreciated. > > I have a Linksys router and it's a simple config to make a particular > IP part of the DMZ (ie, all traffic from the internet gets routed into > that IP, and vice versa). Meanwhile, the other boxes (Windows and Mac) > are tucked away behind NAT. I'm also able to setup a static IP address > assignment via the DHCP server in the Linksys router. If this isn't an > option, then you can just turn off DHCP on the Linux box and set the > IP manually. Nevertheless, you don't need a DNS server by any stretch. > > 3) Also, when I unpack RPM distributions and the RPM needs a library, > where is the best place to find it. And if you can't find it what do > you do. For example, I was trying to install PICO under Red Hat and it > kept asking for libncurses.so.5. I check the web but could not find > it. Any help? > > http://www.rpmfind.net <http://www.rpmfind.net/> can be helpful. If > you're using a particular distro, like Fedora, 99% of the RPMs are at > their download site. Otherwise, the particular library or package is > probably available as an RPM at its homepage. > > Or you could just use a ports based distro like Chris says? oh wait, > that's FreeBSD J > > H > Ditto to what Hanz said. I would have suggested ditch the router and use box #1 as a linux router ... if only for the the flexibility and educational value. If you enjoy configuring it todo the right things as a firewall then you'll love Astarro Linux. With Netgear or Linksys routers at $80 with NAT and even an exptra print server (Netgear FR114P), DMZ, port forwarding, etc the last thing I need is a cisco router getting in the way... fast and flexible, youcan have as many as you like to cordon off whatever you need with peace of mind (keepthe firmware upated) _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040717/d224783f/attachment.html> From jlacey at att.net Sat Jul 17 15:08:44 2004 From: jlacey at att.net (John Lacey) Date: Sat, 17 Jul 2004 13:08:44 -0600 Subject: [nycphp-talk] A little network help In-Reply-To: <7d.532e0fc6.2e2ac070@aol.com> References: <7d.532e0fc6.2e2ac070@aol.com> Message-ID: <40F9793C.9060308@att.net> LeeEyerman at aol.com wrote: > a) If I use port routing, are the ports routed to the physical > connection on the router or the dynamic IP address assigned by the > router? If it is the later, if the router assigns a different IP to > the "http/ftp/etc server" does the port routing follow automatically? Routers route using IP addresses. Although I've never personally used port routing with a cable modem, etc, the port-to-address mapping should be between the port number, e.g. Port 80 (web server) to the Dynamic (internal) IP address that the router has assigned to your server box. > > b) I get my static IP address through my cable company and in order to > have the "business class" service, you have to use their Cisco > Router. If I want to use my Linux box as a router as suggested, do I > just use the Cisco Router to deliver the static IP address to the > linux box and then, conversely, use the router for external DNS? I wouldn't use the Linux box as a router at this stage of the game, but just concentrate on getting what you have paid for (the Cisco router) working. One question... is your ISP and the company providing your cable service two different organizations? Also, since you mentioned "business class" and the fact that the cable company provided the router, it is their responsibility to get things working. At least that's the theory :) > > c) Does anyone know how to access a Cisco uBR900 router? Do you have the uBR900 manual? Generally you can Telnet into these things and then you have to have know the username/password. Again, the company that provided the router should be able to answer this question. But *be careful* -- if you get in there, there are lottsa ways to screw a router config up!! John From jlacey at att.net Sat Jul 17 15:22:20 2004 From: jlacey at att.net (John Lacey) Date: Sat, 17 Jul 2004 13:22:20 -0600 Subject: [nycphp-talk] xampp and php5 Message-ID: <40F97C6B.7020807@att.net> the xampp boys are their usual up-to-date selves -- the windows version 1.4.5: http://www.apachefriends.org/en/xampp-windows.html The packages: Apache HTTPD 2.0.50, MySQL 4.0.20, PHP 5.0.0 + 4.3.8 + PEAR + Switch, MiniPerl 5.8.3, mod_php 4.3.7, mod_ssl 2.0.49, Openssl 0.9.7d, PHPMyAdmin 2.5.7, Webalizer 2.01-10, Mercury Mail Transport System f?r Win32 und NetWare Systems v4.01a, FileZilla FTP Server 0.9.1, SQLite 3.0.1, ADODB 4.04, Zend Optimizer 2.5.3. For Windows 98, 2000, XP. enjoy, John From jayeshsh at ceruleansky.com Sat Jul 17 16:00:19 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Sat, 17 Jul 2004 16:00:19 -0400 Subject: [nycphp-talk] script to download remote log files (porting from Python to PHP) Message-ID: <40F98553.1040408@ceruleansky.com> Hello all, I came across a neat Python script which does something which I always have needed: automatically download Apache log files from a remote server. In my case, I manage multiple sites, so such a script is even more useful to me. The script is available here: http://www.uselesspython.com/logtransfer.py I am not that familiar with Python, but I am able to figure out what it does. I am thinking of porting it to PHP so that if I have to modify it, that process will go faster. I am also thinking of putting an HTML or XUL frontend on it, and storing the connection data in MySQL. Before I port it to PHP, I was wondering if anyone has written such a script in PHP in the past, or knows where I can find one. Also - I am planning on making the connection data (in MySQL) encrypted with a master password. I think PHP and MySQL both support the one-way MD5 encryption algorithm, but not any two-way ones, right? I think I once read that PHP needed a special module to support a two-way encryption scheme. I think I came across an encryption algorithm for PHP some time ago, which I might use, unless there is an easier way (something built into MySQL or PHP). Any tips / suggestion on the best way to go about this (to port or not to port, to encrypt or not to encrypt, to use MySQL or not to use MySQL, to put a XUL front-end on or just stick with a command-line interface, if I am wasting my time doing this because something better already exists, etc.) would be greatly appreciated. Thanks, - Jay PS: I came across a cool IDE for Python: Dr Python, available from drpython.sourceforge.net . From jonbaer at jonbaer.net Sat Jul 17 16:40:14 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Sat, 17 Jul 2004 16:40:14 -0400 Subject: [nycphp-talk] Google w/ thumbnail preview? Message-ID: <40F98EAE.8090202@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 i was googling around for something this afternoon and my results got back the thumbnails of the actual site reference, ive never seen this before on google, the next search it was gone. anyone know about this? i grabbed a screenshot + threw it up on my blog (jonbaer.net). i thought it was an option ive been forgeting to set somewhere but kinda strange for it to appear on a single search. anyways, cool little feature. - - 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.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA+Y6uQdvbi5oMr0cRAqtcAKCDwUc3P5VtcAvrYEDUH4JsVj4u5QCaApCG MuPTGnxvhBopn9iJggA2tTk= =7Xxt -----END PGP SIGNATURE----- From jonbaer at jonbaer.net Sat Jul 17 16:42:35 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Sat, 17 Jul 2004 16:42:35 -0400 Subject: [nycphp-talk] xampp and php5 In-Reply-To: <40F97C6B.7020807@att.net> References: <40F97C6B.7020807@att.net> Message-ID: <40F98F3B.60006@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John Lacey wrote: | PHP 5.0.0 + 4.3.8 + PEAR + Switch, sorry ... what is "Switch"? - - 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.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA+Y87Qdvbi5oMr0cRAirPAKC3hnDoX4qWtZVT75foMUSYZGn63wCeOk6D DKRsphHjMo+nX1V6JgfZxPI= =hIeP -----END PGP SIGNATURE----- From mitchy at spacemonkeylabs.com Sat Jul 17 16:56:10 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Sat, 17 Jul 2004 16:56:10 -0400 Subject: [nycphp-talk] Google w/ thumbnail preview? In-Reply-To: <40F98EAE.8090202@jonbaer.net> References: <40F98EAE.8090202@jonbaer.net> Message-ID: <40F9926A.8000108@spacemonkeylabs.com> Jon Baer wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > i was googling around for something this afternoon and my results got > back the thumbnails of the actual site reference, ive never seen this > before on google, the next search it was gone. > > anyone know about this? i grabbed a screenshot + threw it up on my blog > (jonbaer.net). i thought it was an option ive been forgeting to set > somewhere but kinda strange for it to appear on a single search. I've been watching the opposite at www.alexa.com - not sure of the linkage there, but basically you get google with thumbnails (and other metadata) returned with your search results. -- Mitch From jonbaer at jonbaer.net Sat Jul 17 16:56:16 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Sat, 17 Jul 2004 16:56:16 -0400 Subject: [nycphp-talk] script to download remote log files (porting from Python to PHP) In-Reply-To: <40F98553.1040408@ceruleansky.com> References: <40F98553.1040408@ceruleansky.com> Message-ID: <40F99270.2020005@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ehh .. I dont know about you (or about the project itself) but Id seriously consider using scp to grab the info. http://www.llnl.gov/computing/gettingstarted/ssh.outside.html#transfer I think you might be confused, the MD5 is not for encrypting the data, its used for the authentication. I grab logs inside PHP/CLI using ssh/scp and public key authentication. `scp user at host:/var/log/* /local/var/log` The backtick scripts can be used directly inside of PHP scripts, so once the download is complete you can run preg_match() on the file or whatever if you are looking for something to store (more efficient). - - Jon Jayesh Sheth wrote: | Also - I am planning on making the connection data (in MySQL) encrypted | with a master password. I think PHP and MySQL both support the one-way | MD5 encryption algorithm, but not any two-way ones, right? I think I | once read that PHP needed a special module to support a two-way | encryption scheme. I think I came across an encryption algorithm for PHP | some time ago, which I might use, unless there is an easier way | (something built into MySQL or PHP). - -- 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.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA+ZJwQdvbi5oMr0cRAoHrAJ9X9ZghwgrDLaZuiHnBR5HX7RClBACfZEbj gnvYVrxz3tmZT7ZaC/XR2SE= =o1o1 -----END PGP SIGNATURE----- From jonbaer at jonbaer.net Sat Jul 17 17:02:57 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Sat, 17 Jul 2004 17:02:57 -0400 Subject: [nycphp-talk] Google w/ thumbnail preview? In-Reply-To: <40F9926A.8000108@spacemonkeylabs.com> References: <40F98EAE.8090202@jonbaer.net> <40F9926A.8000108@spacemonkeylabs.com> Message-ID: <40F99401.1070900@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mitch Pirtle wrote: | I've been watching the opposite at www.alexa.com - not sure of the | linkage there, but basically you get google with thumbnails (and other | metadata) returned with your search results. i think the other thing to notice in the screenshot is the indentation of the results .. it looks like some host threading going on which would be *very* nice .. like having a quick button for (-site:example.com) for exclusion in future searches. - - 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.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA+ZQAQdvbi5oMr0cRAn8yAJ0Ui9hZZT2/izKVEr3E4z8+9KiQoACdH0L1 LwYrv0I2ZXqdZc0JvJ/EFaQ= =RumC -----END PGP SIGNATURE----- From shiflett at php.net Sat Jul 17 17:05:58 2004 From: shiflett at php.net (Chris Shiflett) Date: Sat, 17 Jul 2004 14:05:58 -0700 (PDT) Subject: [nycphp-talk] Google w/ thumbnail preview? In-Reply-To: <40F98EAE.8090202@jonbaer.net> Message-ID: <20040717210558.95690.qmail@web52809.mail.yahoo.com> --- Jon Baer <jonbaer at jonbaer.net> wrote: > i was googling around for something this afternoon and my results got > back the thumbnails of the actual site reference, ive never seen this > before on google, the next search it was gone. Seems kinda cool. Maybe they're testing the new feature by putting it on "only" 10,000 of their servers or something. :-) 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 jonbaer at jonbaer.net Sat Jul 17 17:09:36 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Sat, 17 Jul 2004 17:09:36 -0400 Subject: [nycphp-talk] popup blocking detection + workarounds In-Reply-To: <20040717125814.GA14179@panix.com> References: <40F8C1F2.9010807@jonbaer.net> <20040717125814.GA14179@panix.com> Message-ID: <40F99590.4080703@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 What company are you working for??? ;-) lol I knew there was a reason for the after monthly meeting drinks. PHP5 Energy Drinks would be nice. - - jon Daniel Convissor wrote: | Talk? Why talk? Just invite them out for drinks and then put poison in | their beverage. | | --Dan | - -- 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.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA+ZWQQdvbi5oMr0cRAng3AJ4vDulzC2pStnBpF1qPlre9BLn7fwCeJP4j YJ8CBeGz66C8MvE4FfW2+DY= =zkLV -----END PGP SIGNATURE----- From jonbaer at jonbaer.net Sat Jul 17 17:12:36 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Sat, 17 Jul 2004 17:12:36 -0400 Subject: [nycphp-talk] Google w/ thumbnail preview? In-Reply-To: <20040717210558.95690.qmail@web52809.mail.yahoo.com> References: <20040717210558.95690.qmail@web52809.mail.yahoo.com> Message-ID: <40F99644.2070205@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chris Shiflett wrote: | Seems kinda cool. Maybe they're testing the new feature by putting it on | "only" 10,000 of their servers or something. :-) Yeah well in that case ... I should have *won* something, that would have been even cooler :-) What Im mainly interested in is if it will include the Web APIs. - - 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.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA+ZZDQdvbi5oMr0cRAoqFAKCuhbdKZxtdaCBFKqzsmXYLFfr6EwCgtDHW tcQy988+JEQPk66YeNKJNks= =waMx -----END PGP SIGNATURE----- From jlacey at att.net Sat Jul 17 17:41:22 2004 From: jlacey at att.net (John Lacey) Date: Sat, 17 Jul 2004 15:41:22 -0600 Subject: [nycphp-talk] xampp and php5 In-Reply-To: <40F98F3B.60006@jonbaer.net> References: <40F97C6B.7020807@att.net> <40F98F3B.60006@jonbaer.net> Message-ID: <40F99D02.7010609@att.net> Jon Baer wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > John Lacey wrote: > > | PHP 5.0.0 + 4.3.8 + PEAR + Switch, > > sorry ... what is "Switch"? from the XAMPP site: ...For the official PHP 5 version in XAMPP. Sometimes, great changes can be complicate. So we have PHP 4.3.8 and PHP 5.0.0 together in the current XAMPP version. And a "PHP Switch" for changing the PHP version. With the "php-switch.bat" (php-switch.php), you can switch from PHP 4 to PHP 5 or back From jcrawford at codebowl.com Sat Jul 17 21:59:08 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Sat, 17 Jul 2004 21:59:08 -0400 Subject: [nycphp-talk] xampp and php5 In-Reply-To: <40F99D02.7010609@att.net> References: <40F97C6B.7020807@att.net> <40F98F3B.60006@jonbaer.net> <40F99D02.7010609@att.net> Message-ID: <1090115948.28636.1.camel@68-235-15-192.sbtnvt.adelphia.net> i have installed XAMPP however it is running php 5, that is not a problem per-se however i would like to know how to switch? i have tried a 'locate php-switch.php file and i get no results ;( Joe Crawford Jr. On Sat, 2004-07-17 at 17:41, John Lacey wrote: > Jon Baer wrote: > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > John Lacey wrote: > > > > | PHP 5.0.0 + 4.3.8 + PEAR + Switch, > > > > sorry ... what is "Switch"? > > from the XAMPP site: > ...For the official PHP 5 version in XAMPP. Sometimes, great changes can > be complicate. So we have PHP 4.3.8 and PHP 5.0.0 together in the > current XAMPP version. And a "PHP Switch" for changing the PHP version. > With the "php-switch.bat" (php-switch.php), you can switch from PHP 4 to > PHP 5 or back > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From jcrawford at codebowl.com Sat Jul 17 22:03:50 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Sat, 17 Jul 2004 22:03:50 -0400 Subject: [nycphp-talk] xampp and php5 In-Reply-To: <1090115948.28636.1.camel@68-235-15-192.sbtnvt.adelphia.net> References: <40F97C6B.7020807@att.net> <40F98F3B.60006@jonbaer.net> <40F99D02.7010609@att.net> <1090115948.28636.1.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <1090116230.28636.3.camel@68-235-15-192.sbtnvt.adelphia.net> is the switch only available for windows users? if so that would be a shame ;( Joe Crawford Jr. On Sat, 2004-07-17 at 21:59, Joe Crawford wrote: > i have installed XAMPP however it is running php 5, that is not a > problem per-se however i would like to know how to switch? > i have tried a 'locate php-switch.php file and i get no results ;( > > Joe Crawford Jr. > > On Sat, 2004-07-17 at 17:41, John Lacey wrote: > > Jon Baer wrote: > > > > > -----BEGIN PGP SIGNED MESSAGE----- > > > Hash: SHA1 > > > > > > John Lacey wrote: > > > > > > | PHP 5.0.0 + 4.3.8 + PEAR + Switch, > > > > > > sorry ... what is "Switch"? > > > > from the XAMPP site: > > ...For the official PHP 5 version in XAMPP. Sometimes, great changes can > > be complicate. So we have PHP 4.3.8 and PHP 5.0.0 together in the > > current XAMPP version. And a "PHP Switch" for changing the PHP version. > > With the "php-switch.bat" (php-switch.php), you can switch from PHP 4 to > > PHP 5 or back > > > > _______________________________________________ > > 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 jlacey at att.net Sat Jul 17 22:37:40 2004 From: jlacey at att.net (John Lacey) Date: Sat, 17 Jul 2004 20:37:40 -0600 Subject: [nycphp-talk] xampp and php5 In-Reply-To: <1090115948.28636.1.camel@68-235-15-192.sbtnvt.adelphia.net> References: <40F97C6B.7020807@att.net> <40F98F3B.60006@jonbaer.net> <40F99D02.7010609@att.net> <1090115948.28636.1.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <40F9E274.1020107@att.net> Joe Crawford wrote: >i have installed XAMPP however it is running php 5, that is not a >problem per-se however i would like to know how to switch? >i have tried a 'locate php-switch.php file and i get no results ;( > > > I assume from the "locate" command that you're on a Linux box :) the following are the directions for Linux: from the website page: http://www.apachefriends.org/en/xampp-linux.html *Note to XAMPP 1.4.7* Because such very new versions like PHP 5 always should be handled with care we decided to include both current versions of PHP into XAMPP: PHP 5.0.0 and PHP 4.3.8. If you find out your PHP application doesn't work with PHP 5 you will be able to switch back easily to PHP 4. By the following command you can switch "back" to PHP 4.3.8: /opt/lampp/lampp php4 And with the following command you can switch back to PHP 5.0.0: /opt/lampp/lampp php5 If you forgot which version of PHP is in use simply use phpinfo() or call this command: /opt/lampp/lampp phpstatus ... John From jcrawford at codebowl.com Sat Jul 17 22:41:28 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Sat, 17 Jul 2004 22:41:28 -0400 Subject: [nycphp-talk] xampp and php5 In-Reply-To: <40F9E274.1020107@att.net> References: <40F97C6B.7020807@att.net> <40F98F3B.60006@jonbaer.net> <40F99D02.7010609@att.net> <1090115948.28636.1.camel@68-235-15-192.sbtnvt.adelphia.net> <40F9E274.1020107@att.net> Message-ID: <1090118488.29511.0.camel@68-235-15-192.sbtnvt.adelphia.net> John, you are a life saver ;) although i am not running anything on my dev machine that will not run on 5 i still needed this info so that if it came to crunch time i could change back to 4 when needed ;) Joe Crawford Jr. On Sat, 2004-07-17 at 22:37, John Lacey wrote: > Joe Crawford wrote: > > >i have installed XAMPP however it is running php 5, that is not a > >problem per-se however i would like to know how to switch? > >i have tried a 'locate php-switch.php file and i get no results ;( > > > > > > > I assume from the "locate" command that you're on a Linux box :) the > following are the directions for Linux: > from the website page: http://www.apachefriends.org/en/xampp-linux.html > > *Note to XAMPP 1.4.7* > Because such very new versions like PHP 5 always should be handled with > care we decided to include both current versions of PHP into XAMPP: PHP > 5.0.0 and PHP 4.3.8. If you find out your PHP application doesn't work > with PHP 5 you will be able to switch back easily to PHP 4. > > By the following command you can switch "back" to PHP 4.3.8: > > /opt/lampp/lampp php4 > > And with the following command you can switch back to PHP 5.0.0: > > /opt/lampp/lampp php5 > > If you forgot which version of PHP is in use simply use phpinfo() or > call this command: > > /opt/lampp/lampp phpstatus > > > ... > John > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From nyphp at enobrev.com Sun Jul 18 14:03:36 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Sun, 18 Jul 2004 14:03:36 -0400 Subject: [nycphp-talk] Manual WAMP Installation Message-ID: <20040718180342.F04A5A85F3@virtu.nyphp.org> For those of you who would prefer manually setting up WAMP, my good friend and associate Mike Buzzard has put together a tutorial. I'm a big fan of XAMPP, but I still prefer doing it manually. (PDF) <http://www.blather.org/misc/WAMP_Install_Guide.pdf> Hope you're having a great weekend! Mark Armendariz From Kbedi at inta.org Sun Jul 18 18:40:29 2004 From: Kbedi at inta.org (Kshitij Bedi) Date: Sun, 18 Jul 2004 18:40:29 -0400 Subject: [nycphp-talk] Zipcodes calculation Message-ID: <C0CDB9F5E81C234FBB42D84E7853125D012491C3@intamail1.inta> I have a database with zipcodes and corresponding latitudes and longitudes. Can anyone suggest a mysql statement that can pull me all zipcodes within 20 or 50 or 100 miles of a given zipcode Kshitij Bedi Web Administrator International Trademark Association From jcrawford at codebowl.com Sun Jul 18 19:16:34 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Sun, 18 Jul 2004 19:16:34 -0400 Subject: [nycphp-talk] Zipcodes calculation In-Reply-To: <C0CDB9F5E81C234FBB42D84E7853125D012491C3@intamail1.inta> References: <C0CDB9F5E81C234FBB42D84E7853125D012491C3@intamail1.inta> Message-ID: <1090192593.14715.0.camel@68-235-15-192.sbtnvt.adelphia.net> i have always been interested in searching by zip code, can anyone suggest any tutorials on this? This could be a great feature to incorporate into some sites. Joe Crawford Jr. On Sun, 2004-07-18 at 18:40, Kshitij Bedi wrote: > I have a database with zipcodes and corresponding latitudes and longitudes. > Can anyone suggest a mysql statement that can pull me all zipcodes within 20 > or 50 or 100 miles of a given zipcode > > Kshitij Bedi > Web Administrator > International Trademark Association > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From tgales at tgaconnect.com Sun Jul 18 20:06:32 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Sun, 18 Jul 2004 20:06:32 -0400 Subject: [nycphp-talk] Zipcodes calculation In-Reply-To: <1090192593.14715.0.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <008301c46d24$3fd01bf0$e98d3818@oberon1> Joe Crawford writes: > Subject: Re: [nycphp-talk] Zipcodes calculation > > i have always been interested in searching by zip code, can > anyone suggest any tutorials on this? This could be a great > feature to incorporate into some sites. I noticed a zip code project at: http://sourceforge.net/projects/zips/ Don't know what's in it -- but it might interest you. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com > From jcrawford at codebowl.com Sun Jul 18 20:27:55 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Sun, 18 Jul 2004 20:27:55 -0400 Subject: [nycphp-talk] Zipcodes calculation In-Reply-To: <008301c46d24$3fd01bf0$e98d3818@oberon1> References: <008301c46d24$3fd01bf0$e98d3818@oberon1> Message-ID: <1090196875.16591.0.camel@68-235-15-192.sbtnvt.adelphia.net> Tim, thanks for this information i will look at it soon. Joe Crawford Jr. On Sun, 2004-07-18 at 20:06, Tim Gales wrote: > Joe Crawford writes: > > > Subject: Re: [nycphp-talk] Zipcodes calculation > > > > i have always been interested in searching by zip code, can > > anyone suggest any tutorials on this? This could be a great > > feature to incorporate into some sites. > > I noticed a zip code project at: > http://sourceforge.net/projects/zips/ > > Don't know what's in it -- but it might > interest you. > > > 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 smanes at magpie.com Sun Jul 18 20:31:18 2004 From: smanes at magpie.com (Steve Manes) Date: Sun, 18 Jul 2004 20:31:18 -0400 Subject: [nycphp-talk] Zipcodes calculation In-Reply-To: <C0CDB9F5E81C234FBB42D84E7853125D012491C3@intamail1.inta> References: <C0CDB9F5E81C234FBB42D84E7853125D012491C3@intamail1.inta> Message-ID: <40FB1656.1090503@magpie.com> Kshitij Bedi wrote: > I have a database with zipcodes and corresponding latitudes and longitudes. > Can anyone suggest a mysql statement that can pull me all zipcodes within 20 > or 50 or 100 miles of a given zipcode You can do it as an imprecise rectangle, where latitude/longitude is plus/minus a certain number of minutes. Then you just do a SELECT for all zipcodes where the longitude/latitude falls within that rectangle. That's what a lot of job boards do and it usually works well enough for estimation, especially insofar as the longitude/latitude in those zipcode databases are only rough centers of mass. Otherwise, if you need more precision you'll need to use spherical geometry, which is very costly. Developers typically use either the ragged rectangle or precalculate distances at fixed deltas, caching the results in a separate table. You get into some hairy calulus here because at higher latitudes the distance between two longitudinal degrees decreases. At the equator, one degree of latitude or longitude is ~70 square miles, with longitudinal distance decreasing to zero at the poles. distance = 3959 * ( sin(latitude1/57.3) * sin(latitude2/57.3) + cos(latitude1/57.3) * cos(latitude2/57.3) * cos(longitude2/57.3 - longitude1/57.3)) Or something like that. From jcrawford at codebowl.com Sun Jul 18 20:33:46 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Sun, 18 Jul 2004 20:33:46 -0400 Subject: [nycphp-talk] Zipcodes calculation In-Reply-To: <40FB1656.1090503@magpie.com> References: <C0CDB9F5E81C234FBB42D84E7853125D012491C3@intamail1.inta> <40FB1656.1090503@magpie.com> Message-ID: <1090197226.16591.2.camel@68-235-15-192.sbtnvt.adelphia.net> wow too advanced in the math area for me lol Joe Crawford Jr. On Sun, 2004-07-18 at 20:31, Steve Manes wrote: > Kshitij Bedi wrote: > > > I have a database with zipcodes and corresponding latitudes and longitudes. > > Can anyone suggest a mysql statement that can pull me all zipcodes within 20 > > or 50 or 100 miles of a given zipcode > > You can do it as an imprecise rectangle, where latitude/longitude is > plus/minus a certain number of minutes. Then you just do a SELECT for > all zipcodes where the longitude/latitude falls within that rectangle. > That's what a lot of job boards do and it usually works well enough for > estimation, especially insofar as the longitude/latitude in those > zipcode databases are only rough centers of mass. Otherwise, if you > need more precision you'll need to use spherical geometry, which is very > costly. > > Developers typically use either the ragged rectangle or precalculate > distances at fixed deltas, caching the results in a separate table. You > get into some hairy calulus here because at higher latitudes the > distance between two longitudinal degrees decreases. At the equator, > one degree of latitude or longitude is ~70 square miles, with > longitudinal distance decreasing to zero at the poles. > > distance = 3959 * ( > sin(latitude1/57.3) * sin(latitude2/57.3) + > cos(latitude1/57.3) * cos(latitude2/57.3) * > cos(longitude2/57.3 - longitude1/57.3)) > > Or something like that. > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From rolan at omnistep.com Sun Jul 18 20:37:57 2004 From: rolan at omnistep.com (Rolan Yang) Date: Sun, 18 Jul 2004 20:37:57 -0400 Subject: [nycphp-talk] Zipcodes calculation In-Reply-To: <C0CDB9F5E81C234FBB42D84E7853125D012491C3@intamail1.inta> References: <C0CDB9F5E81C234FBB42D84E7853125D012491C3@intamail1.inta> Message-ID: <40FB17E5.9020708@omnistep.com> Kshitij Bedi wrote: >I have a database with zipcodes and corresponding latitudes and longitudes. >Can anyone suggest a mysql statement that can pull me all zipcodes within 20 >or 50 or 100 miles of a given zipcode > >Kshitij Bedi > > I did something like that a long time ago. Digging through my perl code, I found this: $ratio=0.0147791915; # miles per degree lattitude Since the area that a zip code covers is somewhat of a fuzzy value, a reasonable estimate would be to use something like this: $dist=$miles*$ratio; $query='select zipcodes from yourdatabase where lat>'.($currentlat-$dist).' and lat<'.($currentlat+$dist).' and lon>'.($currentlon-$dist).' and lon<'.($currentlon+$dist)'; you should obviuosly query the db beforehand to get the currentlat and currentlon based on your selected zipcode. ~Rolan From sm11szw02 at sneakemail.com Sun Jul 18 20:46:29 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Sun, 18 Jul 2004 20:46:29 -0400 Subject: [nycphp-talk] Zipcodes calculation In-Reply-To: <C0CDB9F5E81C234FBB42D84E7853125D012491C3@intamail1.inta> References: <C0CDB9F5E81C234FBB42D84E7853125D012491C3@intamail1.inta> Message-ID: <20193-46207@sneakemail.com> Kshitij Bedi Kbedi-at-inta.org |nyphp 04/2004| wrote: >I have a database with zipcodes and corresponding latitudes and longitudes. >Can anyone suggest a mysql statement that can pull me all zipcodes within 20 >or 50 or 100 miles of a given zipcode > >Kshitij Bedi >Web Administrator >International Trademark Association > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > is that a free database or one that has to be commercially licensed? From nyphp at enobrev.com Mon Jul 19 01:13:00 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Mon, 19 Jul 2004 01:13:00 -0400 Subject: [nycphp-talk] Zipcodes calculation In-Reply-To: <20193-46207@sneakemail.com> Message-ID: <20040719051303.8F398A860A@virtu.nyphp.org> Posted this on this list some time ago: <snip> here's a function I've been using for a couple years now. I can honestly say I have no idea whether or not I wrote it as I'd done a LOT of variations of it at the time. From what I know it's worked well for around 2 years now (for my client). I've only tested with US values, but I imagine it should work for other values as well. Good luck!! function getDistance($fromLatitude, $fromLongitude, $toLatitude, $toLongitude) { /* assume your points, in decimal, are in $fromLongitude,$fromLatitude and $toLongitude,$toLatitude * this can also be useful with the US ZIPcodes at * http://ftp.census.gov/geo/www/gazetteer/places.html */ $Pi = 3.1415926535897932384626; $Radius = doubleval($Pi/180.0); $fromLongitude = doubleval($fromLongitude) * $Radius; $fromLatitude = doubleval($fromLatitude) * $Radius; $toLongitude = doubleval($toLongitude) * $Radius; $toLatitude = doubleval($toLatitude) * $Radius; $theta = $toLongitude - $fromLongitude; $Distance = acos(sin($fromLatitude) * sin($toLatitude) + cos($fromLatitude) * cos($toLatitude) * cos($theta)); if ($Distance < 0) { $Distance += $Pi; } $Distance = $Distance * 6371.2; $Miles = doubleval($Distance * 0.621); $Distance = sprintf("%.2f", $Distance); $Miles = sprintf("%.4f", $Miles); return $Miles; } </snip> As far as doing it through sql... Haven't tried it. > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of inforequest > Sent: Sunday, July 18, 2004 8:46 PM > To: talk at lists.nyphp.org > Subject: Re: [nycphp-talk] Zipcodes calculation > > Kshitij Bedi Kbedi-at-inta.org |nyphp 04/2004| wrote: > > >I have a database with zipcodes and corresponding latitudes > and longitudes. > >Can anyone suggest a mysql statement that can pull me all zipcodes > >within 20 or 50 or 100 miles of a given zipcode > > > >Kshitij Bedi > >Web Administrator > >International Trademark Association > > > >_______________________________________________ > >talk mailing list > >talk at lists.nyphp.org > >http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > is that a free database or one that has to be commercially licensed? > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From adam at trachtenberg.com Mon Jul 19 01:51:30 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 19 Jul 2004 01:51:30 -0400 (EDT) Subject: [nycphp-talk] Zipcodes calculation In-Reply-To: <20040719051303.8F398A860A@virtu.nyphp.org> References: <20040719051303.8F398A860A@virtu.nyphp.org> Message-ID: <Pine.LNX.4.58.0407190150520.16354@miranda.org> On Mon, 19 Jul 2004, Mark Armendariz wrote: > here's a function I've been using for a couple years now. I can honestly > say I have no idea whether or not I wrote it as I'd done a LOT of variations > of it at the time. The original version resides here: http://px.sklar.com/code.html?id=88 -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From nyphp at enobrev.com Mon Jul 19 03:19:07 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Mon, 19 Jul 2004 03:19:07 -0400 Subject: [nycphp-talk] Zipcodes calculation In-Reply-To: <Pine.LNX.4.58.0407190150520.16354@miranda.org> Message-ID: <20040719071911.11533A860A@virtu.nyphp.org> HA!! That looks pretty familiar! Thanks Adam! Mark > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Adam > Maccabee Trachtenberg > Sent: Monday, July 19, 2004 1:52 AM > To: NYPHP Talk > Subject: RE: [nycphp-talk] Zipcodes calculation > > On Mon, 19 Jul 2004, Mark Armendariz wrote: > > > here's a function I've been using for a couple years now. I can > > honestly say I have no idea whether or not I wrote it as I'd done a > > LOT of variations of it at the time. > > The original version resides here: > > http://px.sklar.com/code.html?id=88 > > -adam > > -- > adam at trachtenberg.com > author of o'reilly's "upgrading to php 5" and "php cookbook" > avoid the holiday rush, buy your copies today! > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From jonbaer at jonbaer.net Mon Jul 19 08:10:01 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Mon, 19 Jul 2004 08:10:01 -0400 Subject: [nycphp-talk] PHP 5.0 goes for Microsoft's ASP-dot-Net jugular Message-ID: <40FBBA19.8060101@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 http://www.theinquirer.net/?article=17268 nothing really new per se in the article, i just liked the title :-) - - 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.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFA+7oZQdvbi5oMr0cRAs4pAJ4upx5KPVRtPCXqPeDRUR2sZWNjSACg0CkW mCdPLlUNim8ReMRL6yJA/nE= =A54/ -----END PGP SIGNATURE----- From jonbaer at jonbaer.net Mon Jul 19 08:27:42 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Mon, 19 Jul 2004 08:27:42 -0400 Subject: [nycphp-talk] Parsing <php: possible? Message-ID: <40FBBE3E.8090400@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I read a document @ Sun the other day explaining that you need to be a programmer to really use PHP and the claim was w/ JSTL and JSP its more component based .. so I was thinking how difficult it would be to make a php tag function the same way ... an example: <php:include file="mytaglib.php"/>* <html> <body> <php:declare name="test" value="one,two,three" type="array"/> <php:foreach> <param name="input" value="test"/> <oparam value="output"> Value: <valueof param="element.value"></valueof> </oparam> </php:foreach> </body> </html> Well, maybe bad example, but basic idea ... (this is actually from an ongoing peer conversation about java vs. php) ... but I think goes back to a question I asked a long time ago in regards to <script language="php" src="myfile.php"></script> not working (in PHP5 either). The idea of tags kills me, however calling a single function in an include would be nice - cleaner version of: <?php include("myfile.php"); myfunction(); ?> Another example: <php:valueof name="param:id"></php:valueof> == <?php echo($_GET['id']); ?> == <?= $_GET['id'] ?> These example are a bite off ATG Dynamo JHTML/droplet stuff but what Im really after is the including files w/ params stuff from a tag based structure. Im sure this either a) exists in some form somewhere b) can be done or c) no worth it. Any thoughts? * - Disclaimer: Please don't try this and email me that it doesn't work. I know it doesn't. It's a POC. - - 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.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFA+74+Qdvbi5oMr0cRAggcAKDsAtMWFjHNZf78alwiH3nN4HhFYgCeJAg+ Aw1VJMfIeLQV5mIKBW+sgck= =p1cR -----END PGP SIGNATURE----- From csnyder at chxo.com Mon Jul 19 08:45:41 2004 From: csnyder at chxo.com (Chris Snyder) Date: Mon, 19 Jul 2004 08:45:41 -0400 Subject: [nycphp-talk] Parsing <php: possible? In-Reply-To: <40FBBE3E.8090400@jonbaer.net> References: <40FBBE3E.8090400@jonbaer.net> Message-ID: <40FBC275.5070206@chxo.com> Jon Baer wrote: > c) no worth it. I'm don't see the benefit of this approach. Why merge scripting commands into the xml dom? The reason <script language="php"> doesn't work is because the browser doesn't know how to execute the code client-side, right? The browser won't know what to do with <php:valueof name="param:id"></php:valueof>, either. OTOH, if you mean to use this as an intermediate templating language or something, maybe passed to a client that might or might not be PHP-aware and able to execute the markup, I could see some value in it because you could (for example) selectively filter out the <php:include> tags from the rest of the document. Seems like a lot of work unless you have a real defined need for it, though. From LeeEyerman at aol.com Mon Jul 19 08:58:33 2004 From: LeeEyerman at aol.com (LeeEyerman at aol.com) Date: Mon, 19 Jul 2004 08:58:33 EDT Subject: [nycphp-talk] Parsing <php: possible? Message-ID: <96.ff31e4a.2e2d1f79@aol.com> Yes you can't, but wouldn't it be cool if PHP were cliet side like the example below. Then I wouldn't have to keep digging through JavaScript books for client side manips. In fact, I think a case could be made that with the proper IDE, PHP could stand on its own as a very powerful programming language, especially for DB integration. PHP just seems to make so much more practical sense, and it is fast - both of which I find lacking with Java. (I really don't like Java all that much, I used it for four years before PHP, and when I started with PHP it was like FREEDOM!, compared with Java.... oh well just my two cents. Perhaps, PHP 6 can have a client side include and a compiler - that way I can do away with Java and its nasty little brother JavaScript - this is not to mention .NET, I'm seemingly not smart enough for it - or is it that I don't have the six months to understand how the 'Hello World' program works, why it takes so much effort to get it to work, and why .NET supposedly does it so much better - whatever the case :) In a message dated 7/19/2004 8:45:31 AM Eastern Daylight Time, csnyder at chxo.com writes: Jon Baer wrote: > c) no worth it. I'm don't see the benefit of this approach. Why merge scripting commands into the xml dom? The reason <script language="php"> doesn't work is because the browser doesn't know how to execute the code client-side, right? The browser won't know what to do with <php:valueof name="param:id"></php:valueof>, either. OTOH, if you mean to use this as an intermediate templating language or something, maybe passed to a client that might or might not be PHP-aware and able to execute the markup, I could see some value in it because you could (for example) selectively filter out the <php:include> tags from the rest of the document. Seems like a lot of work unless you have a real defined need for it, though. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040719/d405939c/attachment.html> From jlacey at att.net Mon Jul 19 10:13:01 2004 From: jlacey at att.net (John Lacey) Date: Mon, 19 Jul 2004 08:13:01 -0600 Subject: [nycphp-talk] tcp/ip stack/webserver in php Message-ID: <40FBD6ED.1080406@att.net> ran across an interesting tidbit here: http://www.sics.se/~adam/phpstack/ to quote his faq... To the best of my knowledge, nobody has been stupid enough to write a TCP/IP stack in PHP before :-) -- a sense of humour always gets my vote he does this in approx 600 lines of code John From weyrick at roadsend.com Mon Jul 19 10:13:36 2004 From: weyrick at roadsend.com (Shannon Weyrick) Date: Mon, 19 Jul 2004 10:13:36 -0400 Subject: [nycphp-talk] Zipcodes calculation In-Reply-To: <40FB1656.1090503@magpie.com> References: <C0CDB9F5E81C234FBB42D84E7853125D012491C3@intamail1.inta> <40FB1656.1090503@magpie.com> Message-ID: <40FBD710.3050508@roadsend.com> Steve Manes wrote: > Kshitij Bedi wrote: > >> I have a database with zipcodes and corresponding latitudes and >> longitudes. >> Can anyone suggest a mysql statement that can pull me all zipcodes >> within 20 >> or 50 or 100 miles of a given zipcode > > > You can do it as an imprecise rectangle, where latitude/longitude is > plus/minus a certain number of minutes. Then you just do a SELECT for > all zipcodes where the longitude/latitude falls within that rectangle. > That's what a lot of job boards do and it usually works well enough for > estimation, especially insofar as the longitude/latitude in those > zipcode databases are only rough centers of mass. Otherwise, if you > need more precision you'll need to use spherical geometry, which is very > costly. > We needed this at Roadsend awhile back. I ended up implementing the formula in a MySQL extension (as a function) so we could do direct database queries on distance, based on zipcode/lat/long columns. Not sure about attachments on the list, so I put the source up on the web: http://www.roadsend.com/range.cc The first commented line is the actual command I used to compile it. Included in the other comments is how you can load the function into the server. Hope it helps. ------------------- Shannon Weyrick Roadsend, Inc. Roadsend Compiler: The Commercial PHP Implementation www.roadsend.com From sm11szw02 at sneakemail.com Mon Jul 19 10:18:24 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Mon, 19 Jul 2004 10:18:24 -0400 Subject: [nycphp-talk] Parsing <php: possible? In-Reply-To: <40FBBE3E.8090400@jonbaer.net> References: <40FBBE3E.8090400@jonbaer.net> Message-ID: <19292-44945@sneakemail.com> Jon Baer jonbaer-at-jonbaer.net |nyphp 04/2004| wrote: > I read a document @ Sun the other day explaining that you need to be a > programmer to really use PHP and the claim was w/ JSTL and JSP its > more component based .. so I was thinking how difficult it would be to Okay so before if you were a "PHP'er" you weren't a programmer but a script kiddie... Now if you're a PHP'er you're a programmer? And one more advanced than, say, Java component kiddies? I love it. Just keep ignoring all this stuff and keep going... do what matters and do it with PHP. From crisscott at netzero.com Mon Jul 19 10:25:19 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Mon, 19 Jul 2004 10:25:19 -0400 Subject: [nycphp-talk] Zipcodes calculation In-Reply-To: <C0CDB9F5E81C234FBB42D84E7853125D012491C3@intamail1.inta> References: <C0CDB9F5E81C234FBB42D84E7853125D012491C3@intamail1.inta> Message-ID: <40FBD9CF.90900@netzero.com> I wrote this class that will get all zipcodes within a certain mile range. http://www.phpclasses.org/browse/package/1640.html It isn't so acurate when you get to extreme north and south locations due to the way longitude lines come together. If you can't use the class as is, you should be able to pull out the query that you need. The class uses PEAR_DB so it is database independant. Scott Mattocks P.S. Sorry if this is the same as what others have posted. I have been away for a week and didnt' have time to reall all 300+ posts to this list. Kshitij Bedi wrote: > I have a database with zipcodes and corresponding latitudes and longitudes. > Can anyone suggest a mysql statement that can pull me all zipcodes within 20 > or 50 or 100 miles of a given zipcode > > Kshitij Bedi > Web Administrator > International Trademark Association > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From jlacey at att.net Mon Jul 19 10:29:44 2004 From: jlacey at att.net (John Lacey) Date: Mon, 19 Jul 2004 08:29:44 -0600 Subject: [nycphp-talk] tcp/ip stack/webserver in php Message-ID: <40FBDAD8.7060602@att.net> ran across an interesting tidbit here: http://www.sics.se/~adam/phpstack/ to quote his faq... To the best of my knowledge, nobody has been stupid enough to write a TCP/IP stack in PHP before :-) -- a sense of humour always gets my vote he does this in approx 600 lines of code John and btw -- it is php5, using 'interface', 'implements', 'private', 'public', _construct' etc... a good learning piece especially if network-aware apps interest you. and it's running on FreeBSD -- i may have to dust off my FreeBSD stuff From jonbaer at jonbaer.net Mon Jul 19 09:45:56 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Mon, 19 Jul 2004 09:45:56 -0400 Subject: [nycphp-talk] Parsing <php: possible? In-Reply-To: <40FBC275.5070206@chxo.com> References: <40FBBE3E.8090400@jonbaer.net> <40FBC275.5070206@chxo.com> Message-ID: <40FBD094.2010903@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chris Snyder wrote: | The reason <script language="php"> doesn't work is because the browser | doesn't know how to execute the code client-side, right? | Uggg I think I missed my point completely w/ this post ... You can run <script language="php"> @ the server level now, I wasn't talking about the client ... the idea was to build "components" to give to page dev people ... I guess you'd have to work w/ Java OO to understand it (yes it is alot of tedious work) and it is almost like a Smarty approach except inline (you dont have to stuff variables and then send to a page). The Zend/zend_language_scanner.l seems to handle this workload ... im sure it can be played around with to handle tags ... in fact I found an old Zend post w/ similar idea ... http://www.zend.com/lists/php-dev/200202/msg01372.html - - 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.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA+9CUQdvbi5oMr0cRAigpAKD4U33vFBnXzFhNkfMjGFUXX9qM8gCgsxq8 8XAei+rCnmlzKmVs5eVCxqI= =352Y -----END PGP SIGNATURE----- From jeff at newnewmedia.com Mon Jul 19 10:57:45 2004 From: jeff at newnewmedia.com (Jeff Loiselle) Date: Mon, 19 Jul 2004 10:57:45 -0400 Subject: [nycphp-talk] Parsing <php: possible? In-Reply-To: <96.ff31e4a.2e2d1f79@aol.com> References: <96.ff31e4a.2e2d1f79@aol.com> Message-ID: <40FBE169.700@newnewmedia.com> Well, if you feel like risking your life using Internet Explorer at least just locally, you can check out Wez Furlong's Activescript SAPI. http://cvs.php.net/php-src/sapi/activescript/ LeeEyerman at aol.com wrote: > Yes you can't, but wouldn't it be cool if PHP were cliet side like the > example below. Then I wouldn't have to keep digging through > JavaScript books for client side manips. In fact, I think a case > could be made that with the proper IDE, PHP could stand on its own as > a very powerful programming language, especially for DB integration. > PHP just seems to make so much more practical sense, and it is fast - > both of which I find lacking with Java. (I really don't like Java all > that much, I used it for four years before PHP, and when I started > with PHP it was like FREEDOM!, compared with Java.... oh well just my > two cents. Perhaps, PHP 6 can have a client side include and a > compiler - that way I can do away with Java and its nasty little > brother JavaScript - this is not to mention .NET, I'm seemingly not > smart enough for it - or is it that I don't have the six months to > understand how the 'Hello World' program works, why it takes so much > effort to get it to work, and why .NET supposedly does it so much > better - whatever the case :) > -- Jeff Loiselle - http://www.newnewmedia.com/~jeff From jv_nyphp at duikerbok.com Mon Jul 19 11:02:32 2004 From: jv_nyphp at duikerbok.com (Jose Villegas) Date: Mon, 19 Jul 2004 11:02:32 -0400 Subject: [nycphp-talk] recurring transactions on payment gateways Message-ID: <A969DD4A-D994-11D8-ACF0-000A95D78076@duikerbok.com> Does anyone know if there is a payment gateway which will store a credit card number so you can make recurring transactions? I just confirmed with authorize.net that they don't support this. thanks, jose From phillip.powell at adnet-sys.com Mon Jul 19 11:07:11 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Mon, 19 Jul 2004 11:07:11 -0400 Subject: [nycphp-talk] Recommendations for open-source ticketing system Message-ID: <40FBE39F.4020009@adnet-sys.com> We're looking at a future ticketing solution here where I work. For once, I'd like to not have to "reinvent the wheel" and customize it myself. Since this is internal for us and not government-related, I have the luxury (this time) of an open-source ticketing solution, but I only know of Request Tracker with its $1500 support solution (probably based in India, knowing my luck). Expert suggestions? Thanx Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From crisscott at netzero.com Mon Jul 19 11:08:14 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Mon, 19 Jul 2004 11:08:14 -0400 Subject: [nycphp-talk] recurring transactions on payment gateways In-Reply-To: <A969DD4A-D994-11D8-ACF0-000A95D78076@duikerbok.com> References: <A969DD4A-D994-11D8-ACF0-000A95D78076@duikerbok.com> Message-ID: <40FBE3DE.5040607@netzero.com> Trustcommerce (www.trustcommerce.com) You process the first payment like a normal transaction but tell them to store the information. They give you back a billing id and that is all you need to bill that customer again. It releases you from the liability of storing credit card numbers. The transactions don't have to be scheduled either. You can have it bill the first of every month if you want but you don't need to. We use it in places where there is a limited interface for entering cc info. We just verify the user and use the billing id that we have store to bill customers when they place orders. Scott Mattocks Jose Villegas wrote: > Does anyone know if there is a payment gateway which will store a credit > card number so you can make recurring transactions? I just confirmed > with authorize.net that they don't support this. > > thanks, > jose > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From jeffknight at mac.com Mon Jul 19 11:07:59 2004 From: jeffknight at mac.com (Jeff Knight) Date: Mon, 19 Jul 2004 11:07:59 -0400 Subject: [nycphp-talk] recurring transactions on payment gateways In-Reply-To: <A969DD4A-D994-11D8-ACF0-000A95D78076@duikerbok.com> References: <A969DD4A-D994-11D8-ACF0-000A95D78076@duikerbok.com> Message-ID: <6BD883B8-D995-11D8-829F-000A95C0B064@mac.com> I've had good success with iTransact http://itransact.com/ for well over 5 years now. On Jul 19, 2004, at 11:02 AM, Jose Villegas wrote: > Does anyone know if there is a payment gateway which will store a > credit card number so you can make recurring transactions? I just > confirmed with authorize.net that they don't support this. > > thanks, > jose > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From rolan at omnistep.com Mon Jul 19 11:41:11 2004 From: rolan at omnistep.com (Rolan Yang) Date: Mon, 19 Jul 2004 11:41:11 -0400 Subject: [nycphp-talk] recurring transactions on payment gateways In-Reply-To: <A969DD4A-D994-11D8-ACF0-000A95D78076@duikerbok.com> References: <A969DD4A-D994-11D8-ACF0-000A95D78076@duikerbok.com> Message-ID: <40FBEB97.3000808@omnistep.com> Paypal, and I believe Versign Payflow pro (boos,hisses,tomatoes flying in from the audience) does also. ~Rolan Jose Villegas wrote: > Does anyone know if there is a payment gateway which will store a > credit card number so you can make recurring transactions? I just > confirmed with authorize.net that they don't support this. > > thanks, > jose > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From krook at us.ibm.com Mon Jul 19 12:26:40 2004 From: krook at us.ibm.com (Daniel Krook) Date: Mon, 19 Jul 2004 12:26:40 -0400 Subject: [nycphp-talk] Parsing <php: possible? In-Reply-To: <40FBBE3E.8090400@jonbaer.net> Message-ID: <OFBF7C5267.F173A4F2-ON85256ED6.0058E149-85256ED6.005A52A9@us.ibm.com> > These example are a bite off ATG Dynamo JHTML/droplet stuff but what > Im really after is the including files w/ params stuff from a tag > based structure. Im sure this either a) exists in some form somewhere > b) can be done or c) no worth it. Any thoughts? Jon, I see where you're going with this, you basically want to emulate a templating system which uses a system like Java's taglibs or, prior to that, ATG Dynamo's JHTML, so as to shield your presentation layer developers from business logic. In particular you want to be able to create a bean (or the result of an included function) for use on the page. For example, getting a user bean from the following type of tag: <php:importbean type="user" src="inc/classes/User.php" <php:bean name="currUser" type="user"> <php:param name="id" value="34"/> </php:bean> ... <php:valueof param="currUser.firstname"/> This type of approach is interesting, and I've never seen anyone try it [answer "a"], but there are other ways (like you mentioned, Smarty) to accomplish a similar goal [answer "b"]: "A Tale of Three [Four] Templates" http://nyphp.org/content/presentations/3templates/ But I tend to argue against it for several reasons... [answer "c"] "Tag-based server-side code is for goobers." http://lists.nyphp.org/pipermail/dev/2003-October/001393.html Daniel Krook, Application Developer WW Web Production Services North 2, ibm.com 1133 Westchester Avenue, White Plains, NY 10604 Personal: http://info.krook.org/ Persona: http://w3.ibm.com/eworkplace/persona_bp_finder.jsp?CNUM=9A9796897 From jeff.siegel at nyphp.org Mon Jul 19 13:24:13 2004 From: jeff.siegel at nyphp.org (Jeff Siegel - PHundamentals) Date: Mon, 19 Jul 2004 13:24:13 -0400 Subject: [nycphp-talk] New PHundamentals Article - Error Handling Message-ID: <40FC03BD.2070509@nyphp.org> A new PHundamentals article - "Error Handling" - has been posted. This article is in beta form, subject to one last round of feedback from the NYPHP community. Please post any questions or comments about the article by replying to this message. See: http://phundamentals.nyphp.org/PH_error_handle.php?expiredate=8/2/2004 ================== Jeff Siegel & Michael Southwell The PHundamentals Team From jonbaer at jonbaer.net Mon Jul 19 13:09:24 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Mon, 19 Jul 2004 13:09:24 -0400 Subject: [nycphp-talk] Parsing <php: possible? In-Reply-To: <OFBF7C5267.F173A4F2-ON85256ED6.0058E149-85256ED6.005A52A9@us.ibm.com> References: <OFBF7C5267.F173A4F2-ON85256ED6.0058E149-85256ED6.005A52A9@us.ibm.com> Message-ID: <40FC0044.1010505@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Daniel Krook wrote: | I see where you're going with this, you basically want to emulate a | templating system which uses a system like Java's taglibs or, prior to | that, ATG Dynamo's JHTML, so as to shield your presentation layer | developers from business logic. In particular you want to be able to | create a bean (or the result of an included function) for use on the page. | For example, getting a user bean from the following type of tag: Yep .. the "Dynamo" approach, I was actually pretty pysched when the thought of writing + linking directly to other .jsp's as components was announced. I don't think there is really an anology to JavaBeans as PHPBeans (its really just set/get methods) but Id really like to get it going for a number of reasons, one being IDE support, alot easier to work with. I think to each his own in terms of templating, if you can cycle through result sets w/ tags cool, if its with Smarty {} braces cool, ... I just think its a cleaner/manageable approach .. for PHP5 I can see people using it .. or @ least trying to :-) Will be spending the weekend hacking Zend! lol (unless someone from Zend says 'save your sanity, its not worth it') - - 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.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA/ABEQdvbi5oMr0cRAoaWAKCgHfU4+r09fsrb1e9hGkG+KkOVngCeJxhK Wl8hx/6YSinknz65GhbH9b4= =AGIb -----END PGP SIGNATURE----- From sm11szw02 at sneakemail.com Mon Jul 19 14:44:32 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Mon, 19 Jul 2004 14:44:32 -0400 Subject: [nycphp-talk] New PHundamentals Article - Error Handling In-Reply-To: <40FC03BD.2070509@nyphp.org> References: <40FC03BD.2070509@nyphp.org> Message-ID: <25408-80512@sneakemail.com> Jeff Siegel - PHundamentals jeff.siegel-at-nyphp.org |nyphp 04/2004| wrote: > A new PHundamentals article - "Error Handling" - has been posted. This > article is in beta form, subject to one last round of feedback from > the NYPHP community. Please post any questions or comments about the > article by replying to this message. > > See: > http://phundamentals.nyphp.org/PH_error_handle.php?expiredate=8/2/2004 > > ================== > Jeff Siegel & Michael Southwell > The PHundamentals Team > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > Nice work.. that topic needs this kind of helpful material. I think it reads at a higher level than a fundamentals paper probably needs to.... I don't see a need for brevity with a fundamentals article, and by my read Notes 1,2,3,4, and 7 would serve the reader better placed right inline with the article (they are very relevant and also brief). That's up to you guys as publishers, but I think they are good comments and enhance the paper in-line. -=john From sm11szw02 at sneakemail.com Mon Jul 19 14:45:39 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Mon, 19 Jul 2004 14:45:39 -0400 Subject: [nycphp-talk] New PHundamentals Article - Error Handling In-Reply-To: <40FC03BD.2070509@nyphp.org> References: <40FC03BD.2070509@nyphp.org> Message-ID: <17224-12181@sneakemail.com> Jeff Siegel - PHundamentals jeff.siegel-at-nyphp.org |nyphp 04/2004| wrote: > A new PHundamentals article - "Error Handling" - has been posted. This > article is in beta form, subject to one last round of feedback from > the NYPHP community. Please post any questions or comments about the > article by replying to this message. > > See: > http://phundamentals.nyphp.org/PH_error_handle.php?expiredate=8/2/2004 > > ================== > Jeff Siegel & Michael Southwell > The PHundamentals Team > I would suggest not getting into details of the apache error log and how to tail it. You can't assume where a given distro put the logs for the individual user, whether the ISP or admin set up common logs for all virtual sites and uses delayed log-split jobs, or the admin uses combined logs, etc etc etc. Perhaps a mention of checking the Apache error log, and a link to all-about-apache-error-logs or a suggestion to find out from your ISP where your error log is, would be cleaner? -=john From mitchy at spacemonkeylabs.com Mon Jul 19 14:54:59 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Mon, 19 Jul 2004 14:54:59 -0400 Subject: [nycphp-talk] New PHundamentals Article - Error Handling In-Reply-To: <40FC03BD.2070509@nyphp.org> References: <40FC03BD.2070509@nyphp.org> Message-ID: <40FC1903.5060806@spacemonkeylabs.com> Jeff Siegel - PHundamentals wrote: > A new PHundamentals article - "Error Handling" - has been posted. This > article is in beta form, subject to one last round of feedback from > the NYPHP community. Please post any questions or comments about the > article by replying to this message. I have two nits, neither specifically directed at the content but the layout: 1) Many programming sites use a colored background for displaying source code inline, which is a tremendous visual aid - it visually separates text from code. I would love to see this done here, and this article could really use it. CSS is your friend! 2) There are many references to other parts of this article, "see note 6" and such - couldn't those have some named anchors so it is easier to jump around in the document? This is HTML after all ;) I like the article, and also agree that there might need to be some clarification of where the error logs might reside on different setups, but overall it is a good article. -- Mitch From sm11szw02 at sneakemail.com Mon Jul 19 14:55:38 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Mon, 19 Jul 2004 14:55:38 -0400 Subject: [nycphp-talk] New PHundamentals Article - Error Handling In-Reply-To: <40FC03BD.2070509@nyphp.org> References: <40FC03BD.2070509@nyphp.org> Message-ID: <29412-23067@sneakemail.com> Jeff Siegel - PHundamentals jeff.siegel-at-nyphp.org |nyphp 04/2004| wrote: > A new PHundamentals article - "Error Handling" - has been posted. This > article is in beta form, subject to one last round of feedback from > the NYPHP community. Please post any questions or comments about the > article by replying to this message. > > See: > http://phundamentals.nyphp.org/PH_error_handle.php?expiredate=8/2/2004 > > ================== > Jeff Siegel & Michael Southwell > The PHundamentals Team I promise after this one I will shut up :-) Sending admin emails upon error catch - I don't consider this a good idea in general, although of course it is widely done and perhaps really only meant as an example. It is "open loop" in that a server problem or mail sending problem results in "no error reporting" - which simply hides the errors. IOW, if e-massages are not displayed, and email doesn't get sent, who knows there is a problem? I would recommend the displayed error message tactfully inform the user the admins have been made aware of the problem, as you suggest, but I would also tell the viewer to contact the sysadmin if the error is not resolved promptly. I would provide an email addy for doing so - (a different one). Yes it is true you don't want the user to be the one who tells you there' a problem, but if that's the only way you'll find out, isn't that better than having the system remain dysfunctional? I doubt many users will contact the sysadmin unless it is down for a long time... or the boss browses the site and sees that message. A few admin emails per second on the same database connect error is not really very helpful, especially if you're away for the day. Since exception handlers are expected to be called infrequently, why not make them smarter than that... if already sent in last few minutes, if semaphore is present/not present, if already 2 hours of the same problem, enable redirects to static pages, disable login with friendly maintenance message, etc.... After all, if it's being done with PHP, why not make it smart (or suggest that you can do that?). Not mant to be critical as much as constructive! Except for the un-search-engine-friendly-semantics of the name, I love the phundamentals program! -=john From nyphp at enobrev.com Mon Jul 19 15:10:50 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Mon, 19 Jul 2004 15:10:50 -0400 Subject: [nycphp-talk] New PHundamentals Article - Error Handling In-Reply-To: <29412-23067@sneakemail.com> Message-ID: <20040719191058.49364A85F3@virtu.nyphp.org> > I promise after this one I will shut up :-) > > Sending admin emails upon error catch - I don't consider this > a good idea in general, although of course it is widely done > and perhaps really only meant as an example. It is "open > loop" in that a server problem or mail sending problem > results in "no error reporting" - which simply hides the > errors. IOW, if e-massages are not displayed, and email > doesn't get sent, who knows there is a problem? I would absolutely agree. On a project I worked on late last year, we set up an email for an error. There was a var typo we missed that was caught by the error handler. The client made the site live before our final testing, and 20 minutes later we got farked (as in fark.com). 15,000 error emails in about 30 minutes, which the server wasn't too pleased about. After that, I set log errors to 'on' and wrote a script to check the error log every few minutes (via cron) and email if any 'new' errors arose (had an flat file or db error cache which was cleared daily). Mark From jv_nyphp at duikerbok.com Mon Jul 19 16:47:26 2004 From: jv_nyphp at duikerbok.com (Jose Villegas) Date: Mon, 19 Jul 2004 16:47:26 -0400 Subject: [nycphp-talk] recurring transactions on payment gateways In-Reply-To: <40FBEB97.3000808@omnistep.com> References: <A969DD4A-D994-11D8-ACF0-000A95D78076@duikerbok.com> <40FBEB97.3000808@omnistep.com> Message-ID: <D7CAF24D-D9C4-11D8-ACF0-000A95D78076@duikerbok.com> thanks for all the recommendations everybody! -jose From shiflett at php.net Mon Jul 19 17:27:02 2004 From: shiflett at php.net (Chris Shiflett) Date: Mon, 19 Jul 2004 14:27:02 -0700 (PDT) Subject: [nycphp-talk] New PHundamentals Article - Error Handling In-Reply-To: <40FC03BD.2070509@nyphp.org> Message-ID: <20040719212702.65326.qmail@web52806.mail.yahoo.com> --- Jeff Siegel - PHundamentals <jeff.siegel at nyphp.org> wrote: > A new PHundamentals article - "Error Handling" - has been posted. I like much of what is written. However, I wouldn't consider enabling show_errors to be a bad practice in development. This is argued as follows: "Even in development, errors dumped to the browser are bad because they can become hidden in the HTML." I typically advocate ugly, obvious errors in development and tasteful, hidden errors in production. I've worked with many developers, and I've never known someone to overlook an error due to some invalid (or incomplete, due to the nature of the error) HTML. My suggestions, as far as php.ini directives, go something like this: Development: error_reporting = E_ALL log_errors = Off display_errors = On Production: error_reporting = E_ALL log_errors = On display_errors = Off error_log = "/tmp/php_errors.log" All of these can be set anywhere (PHP_INI_ALL). The article states that the error log goes to one of two places, and neither of these mention that this can be set with the error_log directive. I prefer my PHP errors to be in their own file, but this comes down to personal preference. This is a pretty rudimentary approach, but it's a good "least you can do" approach that doesn't require much effort. Set a few PHP directives, and you're off to the races. There are different methods of dealing with error notification, and I'm not an expert in this area, but I do think you would want your approach to be out-of-band with your PHP code, since you don't want a million emails describing the same problem. :-) I've been known to do something as write a shell script that checks to see whether anything new is in the log, and if so, email the difference (so, the backup is replaced each time the script is run). Put this in your crontab, and run as often as you think is appropriate. 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 Mon Jul 19 17:30:12 2004 From: shiflett at php.net (Chris Shiflett) Date: Mon, 19 Jul 2004 14:30:12 -0700 (PDT) Subject: [nycphp-talk] New PHundamentals Article - Error Handling In-Reply-To: <40FC1903.5060806@spacemonkeylabs.com> Message-ID: <20040719213012.62169.qmail@web52807.mail.yahoo.com> --- Mitch Pirtle <mitchy at spacemonkeylabs.com> wrote: > 1) Many programming sites use a colored background for displaying > source code inline, which is a tremendous visual aid - it visually > separates text from code. I would love to see this done here I completely agree. PHP has the handy highlight_string() and highlight_file() functions for this. I even set up a little utility for myself recently, because I found that I can copy/paste from Safari to a Word document, and it preserves the color (yes, I'm easily impressed). It's here for any who want to play: http://shiflett.org/color_code.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 mwithington at PLMresearch.com Mon Jul 19 16:03:33 2004 From: mwithington at PLMresearch.com (Mark Withington) Date: Mon, 19 Jul 2004 16:03:33 -0400 Subject: [nycphp-talk] php extensions Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358B30FEE@network.PLMresearch.com> I'm moving scripts to an ISP that wants all php files to be called via the .php4 extension. I've got a lot of scripts that call a lot of .php files. Anyone know of a quick-and-easy way of telling the new ISP's box to run all .php references as .php4? Thanks, 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 jkarlen at infoniq.com Mon Jul 19 18:50:10 2004 From: jkarlen at infoniq.com (Jonathan Karlen) Date: Mon, 19 Jul 2004 18:50:10 -0400 Subject: [nycphp-talk] php extensions In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358B30FEE@network.PLMresearch.com> Message-ID: <000201c46de2$c243db80$0200a8c0@section420> Some ISPs let you run your own httpd.conf file. I have a lot of clients at Verio where you get your own. ***************************** Jonathan R. Karlen President/Senior Developer Infoniq E-Business Solutions, Inc. http://www.infoniq.com/ (914)-630-4509 -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Mark Withington Sent: Monday, July 19, 2004 4:04 PM To: 'NYPHP Talk' Subject: [nycphp-talk] php extensions I'm moving scripts to an ISP that wants all php files to be called via the .php4 extension. I've got a lot of scripts that call a lot of .php files. Anyone know of a quick-and-easy way of telling the new ISP's box to run all .php references as .php4? Thanks, 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 shiflett at php.net Mon Jul 19 19:04:16 2004 From: shiflett at php.net (Chris Shiflett) Date: Mon, 19 Jul 2004 16:04:16 -0700 (PDT) Subject: [nycphp-talk] php extensions In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358B30FEE@network.PLMresearch.com> Message-ID: <20040719230416.25693.qmail@web52804.mail.yahoo.com> --- Mark Withington <mwithington at PLMresearch.com> wrote: > I'm moving scripts to an ISP that wants all php files to be called via > the .php4 extension. Wow. Either your ISP has reached a new level of laziness, or I'm missing something. > Anyone know of a quick-and-easy way of telling the new ISP's box to > run all .php references as .php4? There may be better ways, but I'm sure you could use ForceType in a .htaccess file: ForceType application/x-httpd-php (You may be able to just use AddType, but I'm just not sure if that can be specified at a directory level.) You'll probably want to limit this to specific files rather than an entire directory, so you'll want to create a section in your file using Directory, Files, or something like that. See here for a better description of these things: http://httpd.apache.org/docs/sections.html 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 mitchy at spacemonkeylabs.com Mon Jul 19 19:12:45 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Mon, 19 Jul 2004 19:12:45 -0400 Subject: [nycphp-talk] php extensions In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358B30FEE@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358B30FEE@network.PLMresearch.com> Message-ID: <40FC556D.6060206@spacemonkeylabs.com> Mark Withington wrote: >I'm moving scripts to an ISP that wants all php files to be called via the >.php4 extension. I've got a lot of scripts that call a lot of .php files. >Anyone know of a quick-and-easy way of telling the new ISP's box to run all >.php references as .php4? > > Hmm, my heart says 'mod_rewrite' but my mind says 'no comprendo'. -- Mitch From preinheimer at gmail.com Mon Jul 19 19:38:37 2004 From: preinheimer at gmail.com (Paul Reinheimer) Date: Mon, 19 Jul 2004 19:38:37 -0400 Subject: [nycphp-talk] MySQL Moves to Quiet Licensing Critics, while PHP Not Moving To The GPL Message-ID: <6ec19ec70407191638723b6629@mail.gmail.com> Article here, http://www.internetnews.com/dev-news/article.php/3382281 I'm not really qualified to add any commentary, if you hurry you can beat the /. crowd From joel at tagword.com Mon Jul 19 19:45:20 2004 From: joel at tagword.com (Joel De Gan) Date: Mon, 19 Jul 2004 23:45:20 +0000 Subject: [nycphp-talk] MySQL Moves to Quiet Licensing Critics, while PHP Not Moving To The GPL In-Reply-To: <6ec19ec70407191638723b6629@mail.gmail.com> References: <6ec19ec70407191638723b6629@mail.gmail.com> Message-ID: <1090280720.7740.8.camel@bezel> Too late.. it is now on /. On Mon, 2004-07-19 at 23:38, Paul Reinheimer wrote: > Article here, > http://www.internetnews.com/dev-news/article.php/3382281 > > I'm not really qualified to add any commentary, if you hurry you can > beat the /. crowd > _______________________________________________ > 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 joel at tagword.com Mon Jul 19 19:56:16 2004 From: joel at tagword.com (Joel De Gan) Date: Mon, 19 Jul 2004 23:56:16 +0000 Subject: [nycphp-talk] MySQL Moves to Quiet Licensing Critics, while PHP Not Moving To The GPL In-Reply-To: <1090280720.7740.8.camel@bezel> References: <6ec19ec70407191638723b6629@mail.gmail.com> <1090280720.7740.8.camel@bezel> Message-ID: <1090281375.7747.12.camel@bezel> and of course slashdot in some stupid "poop in the eye" moment screwed the story completely up because a cluebie posted the article http://www.php.net/license/ Here is another story: http://news.com.com/2100-7344_3-5173014.html?part=rss&tag=feed&subj=news Cheers On Mon, 2004-07-19 at 23:45, Joel De Gan wrote: > Too late.. > it is now on /. > > > > On Mon, 2004-07-19 at 23:38, Paul Reinheimer wrote: > > Article here, > > http://www.internetnews.com/dev-news/article.php/3382281 > > > > I'm not really qualified to add any commentary, if you hurry you can > > beat the /. crowd > > _______________________________________________ > > 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 mwithington at PLMresearch.com Mon Jul 19 20:02:43 2004 From: mwithington at PLMresearch.com (Mark Withington) Date: Mon, 19 Jul 2004 20:02:43 -0400 Subject: [nycphp-talk] php extensions Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358B30FFF@network.PLMresearch.com> You're not missing anything, It's earthlink... Thanks. Still having trouble, but will look into the link you've provided for clarification. -------------------------- 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 Chris Shiflett Sent: Monday, July 19, 2004 7:04 PM To: NYPHP Talk Subject: Re: [nycphp-talk] php extensions --- Mark Withington <mwithington at PLMresearch.com> wrote: > I'm moving scripts to an ISP that wants all php files to be called via > the .php4 extension. Wow. Either your ISP has reached a new level of laziness, or I'm missing something. > Anyone know of a quick-and-easy way of telling the new ISP's box to > run all .php references as .php4? There may be better ways, but I'm sure you could use ForceType in a .htaccess file: ForceType application/x-httpd-php (You may be able to just use AddType, but I'm just not sure if that can be specified at a directory level.) You'll probably want to limit this to specific files rather than an entire directory, so you'll want to create a section in your file using Directory, Files, or something like that. See here for a better description of these things: http://httpd.apache.org/docs/sections.html 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/ _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From preinheimer at gmail.com Mon Jul 19 20:17:19 2004 From: preinheimer at gmail.com (Paul Reinheimer) Date: Mon, 19 Jul 2004 20:17:19 -0400 Subject: [nycphp-talk] MySQL Moves to Quiet Licensing Critics, while PHP Not Moving To The GPL In-Reply-To: <1090281375.7747.12.camel@bezel> References: <6ec19ec70407191638723b6629@mail.gmail.com> <1090280720.7740.8.camel@bezel> <1090281375.7747.12.camel@bezel> Message-ID: <6ec19ec70407191717529449d6@mail.gmail.com> I was really curious as to why the /. article talked about PHP when it was obviously primarily a mysql thing. paul On Mon, 19 Jul 2004 23:56:16 +0000, Joel De Gan <joel at tagword.com> wrote: > and of course slashdot in some stupid "poop in the eye" moment screwed > the story completely up because a cluebie posted the article > > http://www.php.net/license/ > > Here is another story: > http://news.com.com/2100-7344_3-5173014.html?part=rss&tag=feed&subj=news > > Cheers > > > > On Mon, 2004-07-19 at 23:45, Joel De Gan wrote: > > Too late.. > > it is now on /. > > > > > > > > On Mon, 2004-07-19 at 23:38, Paul Reinheimer wrote: > > > Article here, > > > http://www.internetnews.com/dev-news/article.php/3382281 > > > > > > I'm not really qualified to add any commentary, if you hurry you can > > > beat the /. crowd > > > _______________________________________________ > > > talk mailing list > > > talk at lists.nyphp.org > > > http://lists.nyphp.org/mailman/listinfo/talk > -- > joeldg - developer, Intercosmos media group. > http://lucifer.intercosmos.net > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From sm11szw02 at sneakemail.com Mon Jul 19 20:34:23 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Mon, 19 Jul 2004 20:34:23 -0400 Subject: [nycphp-talk] php extensions In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358B30FFF@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358B30FFF@network.PLMresearch.com> Message-ID: <15414-69457@sneakemail.com> Mark Withington mwithington-at-PLMresearch.com |nyphp 04/2004| wrote: >You're not missing anything, It's earthlink... > Wow! Earthlink has upgraded from php3! Amazing.... From mwithington at PLMresearch.com Mon Jul 19 20:38:28 2004 From: mwithington at PLMresearch.com (Mark Withington) Date: Mon, 19 Jul 2004 20:38:28 -0400 Subject: [nycphp-talk] php extensions Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358B31009@network.PLMresearch.com> Yup, and they can even spell PHP now...but not much else;-) At the very least this exercise has given me a better appreciation of my real ISP (Pair.net). -------------------------- 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 inforequest Sent: Monday, July 19, 2004 8:34 PM To: talk at lists.nyphp.org Subject: Re: [nycphp-talk] php extensions Mark Withington mwithington-at-PLMresearch.com |nyphp 04/2004| wrote: >You're not missing anything, It's earthlink... > Wow! Earthlink has upgraded from php3! Amazing.... _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From jcrawford at codebowl.com Mon Jul 19 21:55:21 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Mon, 19 Jul 2004 21:55:21 -0400 Subject: [nycphp-talk] New PHundamentals Article - Error Handling In-Reply-To: <20040719213012.62169.qmail@web52807.mail.yahoo.com> References: <20040719213012.62169.qmail@web52807.mail.yahoo.com> Message-ID: <1090288520.3029.1.camel@68-235-15-192.sbtnvt.adelphia.net> color_code.php redirects to the main page as for copying safari to word, i was looking for a way to spider and save the books in html docs so that i could have them for later viewing, but i had been unable to figure out how to do that ;( none of the website programs like teleport pro worked. Joe Crawford Jr. On Mon, 2004-07-19 at 17:30, Chris Shiflett wrote: > --- Mitch Pirtle <mitchy at spacemonkeylabs.com> wrote: > > 1) Many programming sites use a colored background for displaying > > source code inline, which is a tremendous visual aid - it visually > > separates text from code. I would love to see this done here > > I completely agree. PHP has the handy highlight_string() and > highlight_file() functions for this. I even set up a little utility for > myself recently, because I found that I can copy/paste from Safari to a > Word document, and it preserves the color (yes, I'm easily impressed). > It's here for any who want to play: > > http://shiflett.org/color_code.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 amiller at criticalmedia.biz Mon Jul 19 22:17:12 2004 From: amiller at criticalmedia.biz (Alan T. Miller) Date: Mon, 19 Jul 2004 19:17:12 -0700 Subject: [nycphp-talk] php extensions In-Reply-To: <40FC556D.6060206@spacemonkeylabs.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358B30FEE@network.PLMresearch.com> <40FC556D.6060206@spacemonkeylabs.com> Message-ID: <40FC80A8.3010202@criticalmedia.biz> SNIP >>> I'm moving scripts to an ISP that wants all php files to be called via the .php4 extension. I've got a lot of scripts that call a lot of .php files. Anyone know of a quick-and-easy way of telling the new ISP's box to run all .php references as .php4? <<< I believe you can add something like the following to an .htaccess file... AddType application/x-httpd-php .php .inc .php3 .php4 From mwithington at PLMresearch.com Mon Jul 19 22:45:02 2004 From: mwithington at PLMresearch.com (Mark Withington) Date: Mon, 19 Jul 2004 22:45:02 -0400 Subject: [nycphp-talk] php extensions Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6B83@network.PLMresearch.com> Thanks everyone. I thought .htaccess was the way to go, and even had a guess at the syntax (which everyone graciously confirmed), but I'm still coming up empty. Unfortunately, earthlink has been no help identifying where the problem is. They have assured me that AddType is not a restricted directive in their .htaccess files. If anyone else has a guess, would love to hear it. Thanks again, Mark -------------------------- Mark L. Withington PLMresearch v: 508-746-2383 m: 508-801-0181 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 Alan T. Miller Sent: Monday, July 19, 2004 10:17 PM To: NYPHP Talk Subject: Re: [nycphp-talk] php extensions SNIP >>> I'm moving scripts to an ISP that wants all php files to be called via the .php4 extension. I've got a lot of scripts that call a lot of .php files. Anyone know of a quick-and-easy way of telling the new ISP's box to run all .php references as .php4? <<< I believe you can add something like the following to an .htaccess file... AddType application/x-httpd-php .php .inc .php3 .php4 _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From sm11szw02 at sneakemail.com Mon Jul 19 23:08:20 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Mon, 19 Jul 2004 23:08:20 -0400 Subject: [nycphp-talk] php extensions In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6B83@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6B83@network.PLMresearch.com> Message-ID: <15326-86298@sneakemail.com> I recall having the same problem with Earthlink back in 1996 with both php3 and .shtml. Something about there server config.. There was nothing we could do except call them .shtml and .php3 at that time. (funny, I just looked at that old site and it is still online, with the same pages.. but not on Earthlink anymore....) Mark Withington mwithington-at-PLMresearch.com |nyphp 04/2004| wrote: >Thanks everyone. I thought .htaccess was the way to go, and even had a >guess at the syntax (which everyone graciously confirmed), but I'm still >coming up empty. Unfortunately, earthlink has been no help identifying >where the problem is. They have assured me that AddType is not a restricted >directive in their .htaccess files. If anyone else has a guess, would love >to hear it. > >Thanks again, > >Mark > >-------------------------- >Mark L. Withington >PLMresearch >v: 508-746-2383 >m: 508-801-0181 >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 Alan T. Miller >Sent: Monday, July 19, 2004 10:17 PM >To: NYPHP Talk >Subject: Re: [nycphp-talk] php extensions > > >SNIP >>> >I'm moving scripts to an ISP that wants all php files to be called via >the .php4 extension. I've got a lot of scripts that call a lot of .php >files. Anyone know of a quick-and-easy way of telling the new ISP's box >to run all .php references as .php4? ><<< > >I believe you can add something like the following to an .htaccess file... > >AddType application/x-httpd-php .php .inc .php3 .php4 > > >_______________________________________________ >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 shiflett at php.net Mon Jul 19 23:14:26 2004 From: shiflett at php.net (Chris Shiflett) Date: Mon, 19 Jul 2004 20:14:26 -0700 (PDT) Subject: [nycphp-talk] New PHundamentals Article - Error Handling In-Reply-To: <1090288520.3029.1.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <20040720031426.82626.qmail@web52808.mail.yahoo.com> --- Joe Crawford <jcrawford at codebowl.com> wrote: > color_code.php redirects to the main page Oops, I think the correct URL is: http://shiflett.org/code/color_code.php It's just a call to highlight_string() for the data submitted, so it's nothing exciting, but I use it fairly often. I wrote it for the the same reason why I wrote an MD5 script - to have the utility always available to me as long as I have a connection. 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 Mon Jul 19 23:27:55 2004 From: shiflett at php.net (Chris Shiflett) Date: Mon, 19 Jul 2004 20:27:55 -0700 (PDT) Subject: [nycphp-talk] php extensions In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6B83@network.PLMresearch.com> Message-ID: <20040720032755.51930.qmail@web52806.mail.yahoo.com> --- Mark Withington <mwithington at PLMresearch.com> wrote: > Thanks everyone. I thought .htaccess was the way to go, and even had a > guess at the syntax (which everyone graciously confirmed), but I'm still > coming up empty. Can you show us these two things? 1. Your .htaccess (or just the relevant part). 2. The output of a grep for Options in the server's httpd.conf file. If that second thing gives several lines, which it might, we will need to see the section that identifies each one (e.g., which files it applies to). I think this might help us figure out why it's not working. 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 jonbaer at jonbaer.net Mon Jul 19 23:48:35 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Mon, 19 Jul 2004 23:48:35 -0400 Subject: [nycphp-talk] XAMPP for MacOS X? Message-ID: <40FC9613.1020508@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hey - @ my job we have a left over Mac OS X machine and im thinking of having it run Samba but also AMP, is there an all-on-one buffet package I can go for? or is Mac tricky in setting up? i have spent about .5% of my life on a Mac so im looking for a fun challenge after work hours. a guide somewhere? is it the same @ linux setup? | http://developer.apple.com/internet/opensource/php.html - - 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.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFA/JXxQdvbi5oMr0cRAh7YAJ4l9+BhfOWHpWgrAuYv7zq0DV8j6wCeJwv7 H+3F/YFL2N1VyCouh0qFzjs= =fqH/ -----END PGP SIGNATURE----- From agfische at email.smith.edu Tue Jul 20 00:08:35 2004 From: agfische at email.smith.edu (Aaron Fischer) Date: Tue, 20 Jul 2004 00:08:35 -0400 Subject: [nycphp-talk] XAMPP for MacOS X? In-Reply-To: <40FC9613.1020508@jonbaer.net> References: <40FC9613.1020508@jonbaer.net> Message-ID: <786E23D3-DA02-11D8-867A-000A95AF225A@email.smith.edu> Apache and PHP come pre-installed on OS X, you just have to take a few steps to get things going. I believe MySQL has to be installed, I haven't gotten around to that yet. For Apache, just go into System Preferences and enable "Personal Web Sharing" (under Sharing.) That will start the Apache server. Here's a URL with more info: http://www.macdevcenter.com/pub/a/mac/2001/12/07/apache.html For PHP, you just have to edit the Apache httpd.conf file to load the module. I found this page to be a helpful reference point. http://www.sanbeiji.com/tech/tutorials/php/index.php The sanbeiji page also has a link regarding MySQL installation. I haven't done that part yet. If you do the install, I'd be interested to hear how it goes. -Aaron On Jul 19, 2004, at 11:48 PM, Jon Baer wrote: > hey - > > @ my job we have a left over Mac OS X machine and im thinking of having > it run Samba but also AMP, is there an all-on-one buffet package I can > go for? or is Mac tricky in setting up? i have spent about .5% of my > life on a Mac so im looking for a fun challenge after work hours. > > a guide somewhere? is it the same @ linux setup? From danielc at analysisandsolutions.com Tue Jul 20 00:11:35 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Tue, 20 Jul 2004 00:11:35 -0400 Subject: [nycphp-talk] sf #257 mysql vulns Message-ID: <20040720041135.GA17106@panix.com> SecurityFocus Newsletter #257 MySQL Authentication Bypass Vulnerability http://www.securityfocus.com/bid/10654 MySQL Password Length Remote Buffer Overflow Vulnerability http://www.securityfocus.com/bid/10655 In short, these issues exist in the 4.1.x and 5.0.x releases and "have been resolved in MySQL 4.1.3 releases. Recent builds of 5.0 reportedly also address this issue." --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 danielc at analysisandsolutions.com Tue Jul 20 00:21:48 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Tue, 20 Jul 2004 00:21:48 -0400 Subject: [nycphp-talk] so, hans doesn't exist? Message-ID: <20040720042147.GA19686@panix.com> Hi All: Just wrote to Hans and got a bounce saying... <hans at nyphp.org>: host virtu.nyphp.org[206.252.198.83] said: 550 <hans at nyphp.org>: User unknown in virtual alias table (in reply to RCPT TO command) --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 sm11szw02 at sneakemail.com Tue Jul 20 00:32:57 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Tue, 20 Jul 2004 00:32:57 -0400 Subject: [nycphp-talk] so, hans doesn't exist? In-Reply-To: <20040720042147.GA19686@panix.com> References: <20040720042147.GA19686@panix.com> Message-ID: <8635-09849@sneakemail.com> Daniel Convissor danielc-at-analysisandsolutions.com |nyphp 04/2004| wrote: >Hi All: > >Just wrote to Hans and got a bounce saying... > ><hans at nyphp.org>: host virtu.nyphp.org[206.252.198.83] said: 550 > <hans at nyphp.org>: User unknown in virtual alias table (in reply to RCPT TO > command) > >--Dan > > > try hans not junk at nyphp.com From krook at us.ibm.com Tue Jul 20 00:37:27 2004 From: krook at us.ibm.com (Daniel Krook) Date: Tue, 20 Jul 2004 00:37:27 -0400 Subject: [nycphp-talk] so, hans doesn't exist? In-Reply-To: <8635-09849@sneakemail.com> Message-ID: <OF607B548A.2CF460AC-ON85256ED7.0019437E-85256ED7.001965E8@us.ibm.com> Now that those two hans at nyphp's are in the archives for all the bots to see, I think he'll be getting an even newer one soon. :) Daniel Krook, Application Developer WW Web Production Services North 2, ibm.com 1133 Westchester Avenue, White Plains, NY 10604 Personal: http://info.krook.org/ Persona: http://w3.ibm.com/eworkplace/persona_bp_finder.jsp?CNUM=9A9796897 From shiflett at php.net Tue Jul 20 01:02:23 2004 From: shiflett at php.net (Chris Shiflett) Date: Mon, 19 Jul 2004 22:02:23 -0700 (PDT) Subject: [nycphp-talk] so, hans doesn't exist? In-Reply-To: <OF607B548A.2CF460AC-ON85256ED7.0019437E-85256ED7.001965E8@us.ibm.com> Message-ID: <20040720050223.54765.qmail@web52803.mail.yahoo.com> --- Daniel Krook <krook at us.ibm.com> wrote: > Now that those two hans at nyphp's are in the archives for all the > bots to see Isn't Mailman pretty good at handling email addresses, even in the body? It seems to be, unless someone already manually edited this: http://lists.nyphp.org/pipermail/talk/2004-July/010909.html 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 tgales at tgaconnect.com Tue Jul 20 01:52:35 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Tue, 20 Jul 2004 01:52:35 -0400 Subject: [nycphp-talk] Parsing <php: possible? In-Reply-To: <OFBF7C5267.F173A4F2-ON85256ED6.0058E149-85256ED6.005A52A9@us.ibm.com> Message-ID: <00ae01c46e1d$c25ba770$e98d3818@oberon1> Krook on JSP tag libraries: > But I tend to argue against it for several reasons... [answer "c"] > > "Tag-based server-side code is for goobers." > http://lists.nyphp.org/pipermail/dev/2003-October/001393.html > > Quoting from "JSP technology -- friend or foe?" At: http://www-106.ibm.com/developerworks/library/w-friend.html? dwzone=web BY Brett McLaughlin "JSP advocates are quick to let you know that JSP tag libraries can help you avoid this problem" [of mingling logic and presentation]... "Tag libraries allow custom tags (for example, <AUTHORS />) to be added to a JSP page, which at runtime are resolved into code fragments in, well, tag libraries..." " ...As long as JSP coding allows inline coding, it is very convenient (especially when deadlines are looming) to make last-minute changes with inline code, rather than converting the code to a tag library..." McLaughlin makes a pretty good argument against using JSP tags in this article. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From nyphp at aumcomputers.com Tue Jul 20 04:52:57 2004 From: nyphp at aumcomputers.com (Anirudh Zala) Date: Tue, 20 Jul 2004 14:22:57 +0530 Subject: [nycphp-talk] New PHundamentals Article - Error Handling References: <20040719212702.65326.qmail@web52806.mail.yahoo.com> Message-ID: <016c01c46e36$f7ab3b20$0164a8c0@aum1> > All of these can be set anywhere (PHP_INI_ALL). The article states that > the error log goes to one of two places, and neither of these mention that > this can be set with the error_log directive. I prefer my PHP errors to be > in their own file, but this comes down to personal preference. When someone doesn't use php.ini, same configuration can be done in httpd.conf as well. > This is a pretty rudimentary approach, but it's a good "least you can do" > approach that doesn't require much effort. Set a few PHP directives, and > you're off to the races. > From jonbaer at jonbaer.net Tue Jul 20 07:23:27 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Tue, 20 Jul 2004 07:23:27 -0400 Subject: [nycphp-talk] Parsing <php: possible? In-Reply-To: <00ae01c46e1d$c25ba770$e98d3818@oberon1> References: <00ae01c46e1d$c25ba770$e98d3818@oberon1> Message-ID: <40FD00AF.808@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tim Gales wrote: | " ...As long as JSP coding allows inline coding, it is very | convenient (especially when deadlines are looming) to make | last-minute changes with inline code, rather than converting | the code to a tag library..." come on .. how many libraries actually start out *as* libraries? none .. ~ nearly everything starts out "inline". im sure everything in pear was the same way. (i never stuck a <java> block in there because i knew id get reemed the next day). now if you were to say its pointless because you can't always look-like a lib: <?php include("mylib.php"); ?> .. somewhere down the road ... <?= doSomethingCool(); ?> then i would have said ok :-) i think the point is pagedev not being able to say "smells like code, looks like code, must be code" .. i still think tag libraries are cool. - -- 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.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA/QCvQdvbi5oMr0cRAsanAKDsaj528I8cPHPITWdlktW7c49ADgCg4cVA cA/gvSuUrRa80MUHFf7L7YE= =4YbG -----END PGP SIGNATURE----- From stephen at musgrave.org Tue Jul 20 08:05:48 2004 From: stephen at musgrave.org (Stephen Musgrave) Date: Tue, 20 Jul 2004 08:05:48 -0400 Subject: [nycphp-talk] XAMPP for MacOS X? In-Reply-To: <40FC9613.1020508@jonbaer.net> Message-ID: <23071663-DA45-11D8-AFE3-00039375F9C8@musgrave.org> Jon - I also believe that Samba is a part of the OS as well. You may want to check out Marc Liyanage's site for all sorts of OS X goodies: http://www.entropy.ch/ Stephen On Monday, July 19, 2004, at 11:48 PM, Jon Baer wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > hey - > > @ my job we have a left over Mac OS X machine and im thinking of having > it run Samba but also AMP, is there an all-on-one buffet package I can > go for? or is Mac tricky in setting up? i have spent about .5% of my > life on a Mac so im looking for a fun challenge after work hours. > > a guide somewhere? is it the same @ linux setup? > > | http://developer.apple.com/internet/opensource/php.html > > - - 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.1 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFA/JXxQdvbi5oMr0cRAh7YAJ4l9+BhfOWHpWgrAuYv7zq0DV8j6wCeJwv7 > H+3F/YFL2N1VyCouh0qFzjs= > =fqH/ > -----END PGP SIGNATURE----- > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > >From hans not junk at nyphp.com Tue Jul 20 09:22:15 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 2AAD3A85F3 for <talk at lists.nyphp.org>; Tue, 20 Jul 2004 09:22:15 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Tue, 20 Jul 2004 06:22:14 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] so, hans doesn't exist? Date: Tue, 20 Jul 2004 06:22:11 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F87032A9FD0 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] so, hans doesn't exist? Thread-Index: AcRuFsLJH8P/lL4JQg2nFAD9CsV5owARZ0Kg From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 20 Jul 2004 13:22:14.0707 (UTC) FILETIME=[927F2830:01C46E5C] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Tue, 20 Jul 2004 13:22:15 -0000 > Isn't Mailman pretty good at handling email addresses, even in the body? >=20 > It seems to be, unless someone already manually edited this: >=20 > http://lists.nyphp.org/pipermail/talk/2004-July/010909.html Yeah, but spam crawlers are getting quite smart. For instance, blah at blah.org can be detected. I also write stuff like this, thanks to Knight's recommendation: hans not junk at nyphp.com The junk at nyphp.com get's gobbled up by the bots, but obviously it's ok :) H From sm11szw02 at sneakemail.com Tue Jul 20 09:30:56 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Tue, 20 Jul 2004 09:30:56 -0400 Subject: [nycphp-talk] so, hans doesn't exist? In-Reply-To: <41EE526EC2D3C74286415780D3BA9F87032A9FD0@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F87032A9FD0@ehost011-1.exch011.intermedia.net> Message-ID: <25623-73830@sneakemail.com> Hans Zaunere hans-at-nyphp.com |nyphp 04/2004| wrote: >>Isn't Mailman pretty good at handling email addresses, even in the >> >> >body? > > >>It seems to be, unless someone already manually edited this: >> >>http://lists.nyphp.org/pipermail/talk/2004-July/010909.html >> >> > >Yeah, but spam crawlers are getting quite smart. For instance, blah at >blah.org can be detected. > >I also write stuff like this, thanks to Knight's recommendation: > >hans not junk at nyphp.com > >The junk at nyphp.com get's gobbled up by the bots, but obviously it's ok >:) > >H > > and you didn't really want mail from the people who try to send it to junk at nyphp.org, anyway ;-) In mailman change the hans at whatever.org to hans aht whatever doht org and you will be safe for a long time. Security through obscurity looms again. From danielc at analysisandsolutions.com Tue Jul 20 09:44:23 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Tue, 20 Jul 2004 09:44:23 -0400 Subject: [nycphp-talk] so, hans doesn't exist? In-Reply-To: <41EE526EC2D3C74286415780D3BA9F87032A9FD0@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F87032A9FD0@ehost011-1.exch011.intermedia.net> Message-ID: <20040720134422.GA24537@panix.com> On Tue, Jul 20, 2004 at 06:22:11AM -0700, Hans Zaunere wrote: > > I also write stuff like this, thanks to Knight's recommendation: > hans not junk at nyphp.com > > The junk at nyphp.com get's gobbled up by the bots, but obviously it's ok But, of course, the main place bots get addresses is from "From" headers. So, what you do in the body isn't nearly as important. --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 andrew at digitalpulp.com Tue Jul 20 10:34:53 2004 From: andrew at digitalpulp.com (Andrew Yochum) Date: Tue, 20 Jul 2004 10:34:53 -0400 Subject: [nycphp-talk] php extensions In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6B83@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6B83@network.PLMresearch.com> Message-ID: <20040720143426.GY15587@thighmaster.digitalpulp.com> On Mon, Jul 19, 2004 at 10:45:02PM -0400, Mark Withington wrote: > Thanks everyone. I thought .htaccess was the way to go, and even had a > guess at the syntax (which everyone graciously confirmed), but I'm still > coming up empty. Unfortunately, earthlink has been no help identifying > where the problem is. They have assured me that AddType is not a restricted > directive in their .htaccess files. If anyone else has a guess, would love > to hear it. With a little trial an error, you might be able to convert everything to .php4. You can try something like this as a last resort: #!/bin/bash rename .php .php4 *.php perl -p -i.php -e 's/\.php/.php4/g' *.php4 It keeps backups for you, with the original name. But you'd better keep backups anyway just to be safe. ;-) Andrew From dyun at blue-iceberg.com Tue Jul 20 10:37:40 2004 From: dyun at blue-iceberg.com (David Yun) Date: Tue, 20 Jul 2004 10:37:40 -0400 Subject: [nycphp-talk] OT: looking for someone from the other side: asp In-Reply-To: <20040720134422.GA24537@panix.com> Message-ID: <BD22A674.94F6%dyun@blue-iceberg.com> This is way OT, but can anyone point me to a good place to find a solid yet affordable .asp/vbscript programmer? Our company has done all of our development in AMP, but we're now looking to take over a project that was written in asp/vbscript, and need somebody to help out. Any ideas or recommendations would be much appreciated. Thanks! ............................................................... David Yun, Production Manager <dyun at blue-iceberg.com> Blue Iceberg LLC Interactive Strategy | Website Development | Business Solutions http://www.blue-iceberg.com Tel: 212.337.9920 Fax: 253.295.9296 From jcrawford at codebowl.com Tue Jul 20 10:42:03 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Tue, 20 Jul 2004 10:42:03 -0400 Subject: [nycphp-talk] OT: looking for someone from the other side: asp In-Reply-To: <BD22A674.94F6%dyun@blue-iceberg.com> References: <BD22A674.94F6%dyun@blue-iceberg.com> Message-ID: <1090334523.10365.3.camel@68-235-15-192.sbtnvt.adelphia.net> One of my friends is a good ASP programmer http://intellectweb.com/ tell him idle/joe crawford refered you to him. he is also cheap, really cheap for an asp programmer. Joe Crawford Jr. On Tue, 2004-07-20 at 10:37, David Yun wrote: > This is way OT, but can anyone point me to a good place to find a solid yet > affordable .asp/vbscript programmer? Our company has done all of our > development in AMP, but we're now looking to take over a project that was > written in asp/vbscript, and need somebody to help out. > > Any ideas or recommendations would be much appreciated. > > Thanks! > > ............................................................... > David Yun, Production Manager <dyun at blue-iceberg.com> > Blue Iceberg LLC > Interactive Strategy | Website Development | Business Solutions > http://www.blue-iceberg.com > Tel: 212.337.9920 Fax: 253.295.9296 > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From dyun at blue-iceberg.com Tue Jul 20 11:04:30 2004 From: dyun at blue-iceberg.com (David Yun) Date: Tue, 20 Jul 2004 11:04:30 -0400 Subject: [nycphp-talk] OT: looking for someone from the other side: asp In-Reply-To: <1090334523.10365.3.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <BD22ACBE.9539%dyun@blue-iceberg.com> I forgot to mention that I need somebody that's in the NYC area (sorry, no telecommuters!) Thanks, Dave > One of my friends is a good ASP programmer http://intellectweb.com/ > > tell him idle/joe crawford refered you to him. > > he is also cheap, really cheap for an asp programmer. > > Joe Crawford Jr. > > > On Tue, 2004-07-20 at 10:37, David Yun wrote: >> This is way OT, but can anyone point me to a good place to find a solid yet >> affordable .asp/vbscript programmer? Our company has done all of our >> development in AMP, but we're now looking to take over a project that was >> written in asp/vbscript, and need somebody to help out. >> >> Any ideas or recommendations would be much appreciated. >> >> Thanks! >> >> ............................................................... >> David Yun, Production Manager <dyun at blue-iceberg.com> >> Blue Iceberg LLC >> Interactive Strategy | Website Development | Business Solutions >> http://www.blue-iceberg.com >> Tel: 212.337.9920 Fax: 253.295.9296 >> >> _______________________________________________ >> 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 ............................................................... David Yun, Production Manager <dyun at blue-iceberg.com> Blue Iceberg LLC Interactive Strategy | Website Development | Business Solutions http://www.blue-iceberg.com Tel: 212.337.9920 Fax: 253.295.9296 From jkarlen at infoniq.com Tue Jul 20 11:05:55 2004 From: jkarlen at infoniq.com (Jonathan Karlen) Date: Tue, 20 Jul 2004 11:05:55 -0400 Subject: [nycphp-talk] OT: looking for someone from the other side: asp In-Reply-To: <BD22A674.94F6%dyun@blue-iceberg.com> Message-ID: <007601c46e6b$116c4200$0200a8c0@section420> I'm a solid ASP programmer. Cheap is relative. Feel free to give me a call. ***************************** Jonathan R. Karlen President/Senior Developer Infoniq E-Business Solutions, Inc. http://www.infoniq.com/ (914)-630-4509 -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of David Yun Sent: Tuesday, July 20, 2004 10:38 AM To: NYPHP Talk Subject: [nycphp-talk] OT: looking for someone from the other side: asp This is way OT, but can anyone point me to a good place to find a solid yet affordable .asp/vbscript programmer? Our company has done all of our development in AMP, but we're now looking to take over a project that was written in asp/vbscript, and need somebody to help out. Any ideas or recommendations would be much appreciated. Thanks! ............................................................... David Yun, Production Manager <dyun at blue-iceberg.com> Blue Iceberg LLC Interactive Strategy | Website Development | Business Solutions http://www.blue-iceberg.com Tel: 212.337.9920 Fax: 253.295.9296 _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From phillip.powell at adnet-sys.com Tue Jul 20 11:22:10 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 20 Jul 2004 11:22:10 -0400 Subject: [nycphp-talk] OT: looking for someone from the other side: asp In-Reply-To: <BD22ACBE.9539%dyun@blue-iceberg.com> References: <BD22ACBE.9539%dyun@blue-iceberg.com> Message-ID: <40FD38A2.6060700@adnet-sys.com> David Yun wrote: >I forgot to mention that I need somebody that's in the NYC area (sorry, no >telecommuters!) > >Thanks, >Dave > > Crud. I happen to have several years of [classic] ASP experience but telecommuting is not an option (or freelancing), I'm out of this one. Phil > > > >>One of my friends is a good ASP programmer http://intellectweb.com/ >> >>tell him idle/joe crawford refered you to him. >> >>he is also cheap, really cheap for an asp programmer. >> >>Joe Crawford Jr. >> >> >>On Tue, 2004-07-20 at 10:37, David Yun wrote: >> >> >>>This is way OT, but can anyone point me to a good place to find a solid yet >>>affordable .asp/vbscript programmer? Our company has done all of our >>>development in AMP, but we're now looking to take over a project that was >>>written in asp/vbscript, and need somebody to help out. >>> >>>Any ideas or recommendations would be much appreciated. >>> >>>Thanks! >>> >>>............................................................... >>>David Yun, Production Manager <dyun at blue-iceberg.com> >>>Blue Iceberg LLC >>>Interactive Strategy | Website Development | Business Solutions >>>http://www.blue-iceberg.com >>>Tel: 212.337.9920 Fax: 253.295.9296 >>> >>>_______________________________________________ >>>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 >> >> > >............................................................... >David Yun, Production Manager <dyun at blue-iceberg.com> >Blue Iceberg LLC >Interactive Strategy | Website Development | Business Solutions >http://www.blue-iceberg.com >Tel: 212.337.9920 Fax: 253.295.9296 > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From joel at tagword.com Tue Jul 20 12:03:59 2004 From: joel at tagword.com (Joel De Gan) Date: Tue, 20 Jul 2004 16:03:59 +0000 Subject: [nycphp-talk] php-gtk new directions... Message-ID: <1090339439.7612.49.camel@bezel> First: Thanks to all of you who jumped at the chance to help out with php-gtk. It really is gaining steam and a lot of people are getting involved and people are taking notice. For those of you involved, you are already aware of this post. For those of you not involved or if you are interested in using php-gtk, here is a letter to the community by the php-gtk primary developer. http://aspn.activestate.com/ASPN/Mail/Message/php-gtk-general/2122551 Here it is below as aspn is slow as nails half the time. Shows where things are going. Look forward to an active and blooming community around php-gtk. Cheers. -joeldg [PHP-GTK] Letter to Community by Andrei Zmievski Jul 20 2004 4:57AM Dear PHP-GTK community, I have just read the extensive "what is going on with gtk.php.net?" thread that Steph has brought to my attention and I have to say this: I'm sorry. It is apparent there is an impression out there that PHP-GTK has been relegated to the convalescence home of dying open source projects. Mostly it is my fault, as I have been absent from the scene for entirely too long. All I can say in my defense is that in the last year I had moved to another coast, switched jobs, started a new relationship, and have generally been busy pursuing other interests. Hopefully, you've been in the same situation and know what I am talking about. Might not be much of an excuse, but that's all I have at the moment. Steph, in her infinite patience, has possibly been the only person who has been investing any significant amount of time into PHP-GTK by fixing the docs, answering emails on the mailing lists, and poking me from time to time to find out when I would be back. For that, I think we all owe her a debt of gratitude. Without Steph, this project would be quite dead indeed. But, let me also say this: PHP-GTK has not and will not be abandoned. It has been made clear from the thread that there are a lot of people in the world using it for things that I, frankly, could not have imagined when I started tinkering with the code almost 4 years ago. And seeing the renewed interest in the project with the release of PHP 5 I cannot help but be inspired by the energy that is suddenly circulating through our little community. So, what's to be done? Clearly, the documentation is lacking. Obviously, it is an enormous effort to document all the classes and methods that PHP-GTK inherits from GTK+ in addition to its own idiosyncrasies. Simply linking back to GTK+ manual is not a solution as that manual itself is quite incomplete. So, what seems to me to be a good approach is to invest some time and effort into either fixing the current documentation system and continuing the course or rebuilding it to use Livedocs. Whatever we do, we should probably be compatible with the PHP documentation project to facilitate reuse of tools and technologies. Everyone says that PHP documentation is simply great, but how did it get to be so great? Through efforts of regular users and developers who self-organized into teams of documentors, administrators, user note maintainters, etc. Of course, the PHP doc project consists of many people, but I remember when there were only a few folks who even knew how to build the docs. We are basically in the same position right now, but we have the advantage of hindsight and can draw on the best practices of PHP docs team as well as learn from their mistakes. Website can also be improved. Ben Ramsey has offered to work on it, and I couldn't be happier to hear that. It would be even better if we had 2 or 3 people maintaining the web site as there is a lot of good PHP-GTK and GTK+ information out there that the website simply does not link to. It is, after all, supposed to be the central repository of all PHP-GTK knowledge. Improving search, moving Wiki to be hosted on gtk.php.net, and implementing a semi-regular news system would be something to do as soon as possible. Beyond that, I will leave the ideas for how the website should function best to those willing to work on it through collaboration and consensus. Borrowing ideas from php.net, go-mono.com, and other sites should not be viewed as a bad thing. This may sound familiar, but I think that my personal strength lies in developing code, rather than designing web sites or writing documentation. So far I have been waiting for PHP 5/Zend Engine 2 API to stabilize, and now that PHP 5 has been released, I believe I can re-start work on PHP-GTK 2. However, it is not going to be a straightforward port of PHP-GTK 1 because Zend Engine 2 offers much better ways to exploit the power of object orientation and we can build a very slick interface to GTK+ if we start from scratch. I am going to start thinking about it and posting RFCs on the mailing list in hopes of soliciting feedback from users as to how this interface can be best structured. Consider the connect() and connect_object() functions (a source of much confusion apparently): There is no reason that the second one needs to be called connect_object() aside from the fact that that is what GTK+ uses. So, one of the first questions will be, do we stick to GTK+ API rigidly or do we replace/rename some methods to suit us better? As far as project structure goes, perhaps we could have 3 loosely organized teams: development, website, and docs, each one headed by an informal leader. I nominate Steph for the docs team which will probably leader to her kicking my virtual butt. :-) Well, I'd better wrap up. The recent activity on the lists makes me think that people are willing to contibute to the project. Of course, how much time we can contibute is the biggest issue. No one can make you share your time, effort, and goodwill except yourself. I just hope that the ant analogy holds and piece by piece, grain by grain, we keep building this project up. As Ben said, let's not let the interest die out, And to paraphrase JFK, ask not what PHP-GTK can do for you, ask what you can do for PHP-GTK. The project cannot die until the last one of us loses interest in it. Talk to you all soon, -Andrei Documentation is worth it just to be able to answer all your mail with 'RTFM'. -- Alan Cox -- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From joel at tagword.com Tue Jul 20 12:50:59 2004 From: joel at tagword.com (Joel De Gan) Date: Tue, 20 Jul 2004 16:50:59 +0000 Subject: [nycphp-talk] OT: looking for someone from the other side: asp In-Reply-To: <BD22A674.94F6%dyun@blue-iceberg.com> References: <BD22A674.94F6%dyun@blue-iceberg.com> Message-ID: <1090342259.7748.55.camel@bezel> I run a job board site for this stuff at : http://listbid.com/ (we run ads for NYPHP training) and to be fair, there are others: http://scriptlance.com http://rentacoder.com etc. On Tue, 2004-07-20 at 14:37, David Yun wrote: > This is way OT, but can anyone point me to a good place to find a solid yet > affordable .asp/vbscript programmer? Our company has done all of our > development in AMP, but we're now looking to take over a project that was > written in asp/vbscript, and need somebody to help out. > > Any ideas or recommendations would be much appreciated. > > Thanks! > > ............................................................... > David Yun, Production Manager <dyun at blue-iceberg.com> > Blue Iceberg LLC > Interactive Strategy | Website Development | Business Solutions > http://www.blue-iceberg.com > Tel: 212.337.9920 Fax: 253.295.9296 > > _______________________________________________ > 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 dyun at blue-iceberg.com Tue Jul 20 13:24:34 2004 From: dyun at blue-iceberg.com (David Yun) Date: Tue, 20 Jul 2004 13:24:34 -0400 Subject: [nycphp-talk] OT: looking for someone from the other side: asp In-Reply-To: <1090342259.7748.55.camel@bezel> Message-ID: <BD22CD92.954D%dyun@blue-iceberg.com> Thanks Joel... I'll check it out! > I run a job board site for this stuff at : http://listbid.com/ (we run > ads for NYPHP training) > and to be fair, there are others: > http://scriptlance.com > http://rentacoder.com > etc. > > On Tue, 2004-07-20 at 14:37, David Yun wrote: >> This is way OT, but can anyone point me to a good place to find a solid yet >> affordable .asp/vbscript programmer? Our company has done all of our >> development in AMP, but we're now looking to take over a project that was >> written in asp/vbscript, and need somebody to help out. >> >> Any ideas or recommendations would be much appreciated. >> >> Thanks! >> >> ............................................................... >> David Yun, Production Manager <dyun at blue-iceberg.com> >> Blue Iceberg LLC >> Interactive Strategy | Website Development | Business Solutions >> http://www.blue-iceberg.com >> Tel: 212.337.9920 Fax: 253.295.9296 >> >> _______________________________________________ >> talk mailing list >> talk at lists.nyphp.org >> http://lists.nyphp.org/mailman/listinfo/talk ............................................................... David Yun, Production Manager <dyun at blue-iceberg.com> Blue Iceberg LLC Interactive Strategy | Website Development | Business Solutions http://www.blue-iceberg.com Tel: 212.337.9920 Fax: 253.295.9296 From jeffknight at mac.com Tue Jul 20 14:48:57 2004 From: jeffknight at mac.com (putamare) Date: Tue, 20 Jul 2004 14:48:57 -0400 Subject: [nycphp-talk] Heads Up: FreeBSD, the ports & php Message-ID: <75359449-DA7D-11D8-B1E2-000393B9FB36@mac.com> As many of you already know I am almost as lazy as I am thirsty, so I tend to rely upon the ports to install & update my AMP environments. For those of you who haven't installed or upgraded recently, yesterday there was made a major change to the way things are done. From ports/UPDATING > 20040719: > AFFECTS: users of PHP > AUTHOR: ale at FreeBSD.org > > The old lang/php4 and lang/php5 ports have been splitted into 'base' > PHP, > PEAR, and shared extensions to allow more flexibility and add new > features. > Upgrading your current PHP installation will result in a 'base' PHP > installation (no PEAR and no extensions). > PEAR can be found in the new devel/php4-pear and devel/php5-pear > ports, while > the set of PHP extensions to install can be choosen via the > meta-ports > lang/php4-extensions and lang/php5-extensions, or installing singular > extensions individually. I went ahead and did a lang/php5-extensions install this morning on a server I was setting up and everything compiled fine, but the php_info() didn't list any of the extensions. After searching for way too long, I finally found the answer at http://www.freebsdforums.org/forums/showthread.php?s=&threadid=23733 > "You have to add the extensions to php.ini, make sure the extensions > directory is listed, for php4 it is /usr/local/lib/php/20020429 > The default value in php.ini is ./ which doesn't work" I commented out the extension_dir line instead of setting it to /usr/local/lib/php/20020429 and that worked as well ; Directory in which the loadable extensions (modules) reside. ; extension_dir = "./" I've only done this with 5, but I'm pretty sure that's the way 4 works now as well.... Jeff Knight putamare not junk at putamare.net From suzerain at suzerain.com Tue Jul 20 16:47:37 2004 From: suzerain at suzerain.com (Marc Antony Vose) Date: Tue, 20 Jul 2004 16:47:37 -0400 Subject: [nycphp-talk] typical regex question In-Reply-To: <008301c46d24$3fd01bf0$e98d3818@oberon1> References: <008301c46d24$3fd01bf0$e98d3818@oberon1> Message-ID: <p06110409bd23310c403f@[192.168.1.101]> Hey there: Because every coding list needs a regex question every now and then, I thought I'd contribute and fill the quota. I'm having a little personal struggle with replacing selected words in a long article which is in HTML. I want to search for words and replace them with a link, but not if they are already inside a title="" attribute of a tag. Don't need a complete solution, but some guidance would be appreciated, since my efforts are currently resulting in failure. Cheers, -- Marc Antony Vose http://www.suzerain.com/ Under capitalism man exploits man. Under communism it's the other way around. -- Unknown From phillip.powell at adnet-sys.com Tue Jul 20 17:10:30 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 20 Jul 2004 17:10:30 -0400 Subject: [nycphp-talk] typical regex question In-Reply-To: <p06110409bd23310c403f@[192.168.1.101]> References: <008301c46d24$3fd01bf0$e98d3818@oberon1> <p06110409bd23310c403f@[192.168.1.101]> Message-ID: <40FD8A46.6000509@adnet-sys.com> I would replace title="" with some other character comparator temporarily, a temp "swap" to prevent that particular occurrence of [a-zA-Z0-9\-_\.]+=["|']?[^"']*["|']? from pulling title="" with it. That's off the top of my head. Phil Marc Antony Vose wrote: > Hey there: > > Because every coding list needs a regex question every now and then, I > thought I'd contribute and fill the quota. > > I'm having a little personal struggle with replacing selected words in > a long article which is in HTML. I want to search for words and > replace them with a link, but not if they are already inside a > title="" attribute of a tag. > > Don't need a complete solution, but some guidance would be > appreciated, since my efforts are currently resulting in failure. > > Cheers, > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From joel at tagword.com Tue Jul 20 17:21:19 2004 From: joel at tagword.com (Joel De Gan) Date: Tue, 20 Jul 2004 21:21:19 +0000 Subject: [nycphp-talk] typical regex question In-Reply-To: <p06110409bd23310c403f@[192.168.1.101]> References: <008301c46d24$3fd01bf0$e98d3818@oberon1> <p06110409bd23310c403f@[192.168.1.101]> Message-ID: <1090358479.22453.4.camel@bezel> http://regexlib.com/ run a search.. -joeldg On Tue, 2004-07-20 at 20:47, Marc Antony Vose wrote: > Hey there: > > Because every coding list needs a regex question every now and then, > I thought I'd contribute and fill the quota. > > I'm having a little personal struggle with replacing selected words > in a long article which is in HTML. I want to search for words and > replace them with a link, but not if they are already inside a > title="" attribute of a tag. > > Don't need a complete solution, but some guidance would be > appreciated, since my efforts are currently resulting in failure. > > Cheers, -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From ajai at bitblit.net Tue Jul 20 17:32:16 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Tue, 20 Jul 2004 17:32:16 -0400 Subject: [nycphp-talk] typical regex question In-Reply-To: <1090358479.22453.4.camel@bezel> References: <008301c46d24$3fd01bf0$e98d3818@oberon1> <p06110409bd23310c403f@[192.168.1.101]> <1090358479.22453.4.camel@bezel> Message-ID: <40FD8F60.1010405@bitblit.net> Joel De Gan wrote: >http://regexlib.com/ >run a search. > Hopefully, you wont need a regex to find a regex ;-) -- Aj. Systems Administrator / Developer From wfan at VillageVoice.com Tue Jul 20 17:52:47 2004 From: wfan at VillageVoice.com (Fan, Wellington) Date: Tue, 20 Jul 2004 17:52:47 -0400 Subject: [nycphp-talk] typical regex question Message-ID: <1448FB4565D489478642386D50D3FB77046C9CBA@VVNTMAIL.sternpubny> Maybe a combination of preg_split/preg_match would do it. //// ALL UNTESTED CODE.... $pattern = "/title=\".+\"/U"; $text = 'Howdy! This is a long string with some <tag title="howdy">pieces</tag> in it...'; // Unzip the big string into alternate pieces... $texts_array = preg_split( $pattern, $text); preg_match( $pattern, $text, $titles_array); // Now $titles_array is an array of the pieces that match $pattern, // and $texts_array is an array of everthing else. // Do soemthing with the pieces of text... function user_func(&$value, $key) { $value = <DO SOMETHING>; } array_walk( $texts_array, 'user_func' ); // do something with the pieces... // Zip it back up for( $i = 0; $i < count($texts_array); $i++) { $newString .= $texts_array[$i] . $titles_array[$i]; } /////////////////////////////////////////////// You'd need to check (or force) that the $text doesn't begin with a match to $pattern. Essentially, this depends on _match and _split to be converses (?) of each other -- the string comes apart like teeth in a zipper, then you process all the teeth on one side, then zip it back up. Hope that helps... -- Wellington > -----Original Message----- .... > I'm having a little personal struggle with replacing selected words > in a long article which is in HTML. I want to search for words and > replace them with a link, but not if they are already inside a > title="" attribute of a tag. .... From wfan at VillageVoice.com Tue Jul 20 18:28:41 2004 From: wfan at VillageVoice.com (Fan, Wellington) Date: Tue, 20 Jul 2004 18:28:41 -0400 Subject: [nycphp-talk] Access an element of a method that returns an array Message-ID: <1448FB4565D489478642386D50D3FB77046C9CBB@VVNTMAIL.sternpubny> Hello Listies, I have an instance method that returns an array. I want to access one piece of the array and have tried these, only to get *parse errors*: echo $myObject->littlePieces()[3]; echo ($myObject->littlePieces())[3]; What gives? if I assign to a temp variable first, it works: $tmp = $myObject->littlePieces(); echo $tmp[3]; TIA! -- Wellington From adam at trachtenberg.com Tue Jul 20 18:35:31 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Tue, 20 Jul 2004 18:35:31 -0400 (EDT) Subject: [nycphp-talk] Access an element of a method that returns an array In-Reply-To: <1448FB4565D489478642386D50D3FB77046C9CBB@VVNTMAIL.sternpubny> References: <1448FB4565D489478642386D50D3FB77046C9CBB@VVNTMAIL.sternpubny> Message-ID: <Pine.LNX.4.58.0407201834450.15439@miranda.org> On Tue, 20 Jul 2004, Fan, Wellington wrote: > I have an instance method that returns an array. I want to access one piece > of the array and have tried these, only to get *parse errors*: > > echo $myObject->littlePieces()[3]; > echo ($myObject->littlePieces())[3]; Is this PHP 4 or PHP 5. I'm not surprised if it doesn't work in PHP 4. I think that should work in PHP 5, but I wouldn't swear to it. -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From wfan at VillageVoice.com Tue Jul 20 18:47:57 2004 From: wfan at VillageVoice.com (Fan, Wellington) Date: Tue, 20 Jul 2004 18:47:57 -0400 Subject: [nycphp-talk] Access an element of a method that returns an ar ray Message-ID: <1448FB4565D489478642386D50D3FB77046C9CBC@VVNTMAIL.sternpubny> Sorry; should have mentioned it's PHP 4.3.4 > > > > echo $myObject->littlePieces()[3]; > > echo ($myObject->littlePieces())[3]; > > Is this PHP 4 or PHP 5. I'm not surprised if it doesn't work in PHP > 4. I think that should work in PHP 5, but I wouldn't swear to it. > > -adam From mwithington at PLMresearch.com Tue Jul 20 19:25:17 2004 From: mwithington at PLMresearch.com (Mark Withington) Date: Tue, 20 Jul 2004 19:25:17 -0400 Subject: [nycphp-talk] php extensions Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358B310A6@network.PLMresearch.com> Thanks again folks. Unfortunately, the earthlink account does not come with Telnet access, so I can't grep the server. My htaccess file is as follows: AddType application/x-httpd-php .php .inc .php3 .php4 This does not work. I'm thinking that they may have used a different mime type for their php stuff? -------------------------- 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 Chris Shiflett Sent: Monday, July 19, 2004 11:28 PM To: NYPHP Talk Subject: RE: [nycphp-talk] php extensions --- Mark Withington <mwithington at PLMresearch.com> wrote: > Thanks everyone. I thought .htaccess was the way to go, and even had a > guess at the syntax (which everyone graciously confirmed), but I'm still > coming up empty. Can you show us these two things? 1. Your .htaccess (or just the relevant part). 2. The output of a grep for Options in the server's httpd.conf file. If that second thing gives several lines, which it might, we will need to see the section that identifies each one (e.g., which files it applies to). I think this might help us figure out why it's not working. 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 Tue Jul 20 19:27:54 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Tue, 20 Jul 2004 19:27:54 -0400 (EDT) Subject: [nycphp-talk] php extensions In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358B310A6@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358B310A6@network.PLMresearch.com> Message-ID: <Pine.LNX.4.58.0407201927010.15439@miranda.org> On Tue, 20 Jul 2004, Mark Withington wrote: > Thanks again folks. Unfortunately, the earthlink account does not come with > Telnet access, so I can't grep the server. My htaccess file is as follows: > > AddType application/x-httpd-php .php .inc .php3 .php4 > > This does not work. I'm thinking that they may have used a different mime > type for their php stuff? That seems highly unlikely. Are you sure Apache is set up to read .htaccess files? It can be disabled. -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From mwithington at PLMresearch.com Tue Jul 20 19:39:11 2004 From: mwithington at PLMresearch.com (Mark Withington) Date: Tue, 20 Jul 2004 19:39:11 -0400 Subject: [nycphp-talk] php extensions Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358B310A9@network.PLMresearch.com> They tell me that it is. I used the following directive in the htaccess to specify the index page: DirectoryIndex intro.php home.php index.html index.shtml index.cgi index.phtml index.php3 index.htm home.html welcome.html And they assure me that AddType is available to me. -------------------------- 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, July 20, 2004 7:28 PM To: NYPHP Talk Subject: RE: [nycphp-talk] php extensions On Tue, 20 Jul 2004, Mark Withington wrote: > Thanks again folks. Unfortunately, the earthlink account does not come with > Telnet access, so I can't grep the server. My htaccess file is as follows: > > AddType application/x-httpd-php .php .inc .php3 .php4 > > This does not work. I'm thinking that they may have used a different mime > type for their php stuff? That seems highly unlikely. Are you sure Apache is set up to read .htaccess files? It can be disabled. -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From danielc at analysisandsolutions.com Tue Jul 20 19:46:10 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Tue, 20 Jul 2004 19:46:10 -0400 Subject: [nycphp-talk] php extensions In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358B310A6@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358B310A6@network.PLMresearch.com> Message-ID: <20040720234610.GA15810@panix.com> On Tue, Jul 20, 2004 at 07:25:17PM -0400, Mark Withington wrote: > > AddType application/x-httpd-php .php .inc .php3 .php4 > This does not work. You really need to talk to your host's support staff. If they can't get things to work the way you want, get a real host. --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 danielc at analysisandsolutions.com Tue Jul 20 19:49:14 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Tue, 20 Jul 2004 19:49:14 -0400 Subject: [nycphp-talk] php extensions In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358B310A9@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358B310A9@network.PLMresearch.com> Message-ID: <20040720234914.GB15810@panix.com> On Tue, Jul 20, 2004 at 07:39:11PM -0400, Mark Withington wrote: > > DirectoryIndex intro.php home.php index.html index.shtml index.cgi > index.phtml index.php3 index.htm home.html welcome.html I'd suggest having one item in there for a given directory. > And they assure me that AddType is available to me. And what permissions do you have on your .htaccess file? It needs to be readable by the web server. So, it should be world readable and may need to be group readable as well. --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 mwithington at PLMresearch.com Tue Jul 20 19:53:48 2004 From: mwithington at PLMresearch.com (Mark Withington) Date: Tue, 20 Jul 2004 19:53:48 -0400 Subject: [nycphp-talk] php extensions Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6B8B@network.PLMresearch.com> LOL! Agreed. This is one of those, I'm helping a friend out who already had the account at earthlink deals. 10 more minutes of my time and I'm pulling the plug on them. -------------------------- Mark L. Withington PLMresearch v: 508-746-2383 m: 508-801-0181 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 Daniel Convissor Sent: Tuesday, July 20, 2004 7:46 PM To: NYPHP Talk Subject: Re: [nycphp-talk] php extensions On Tue, Jul 20, 2004 at 07:25:17PM -0400, Mark Withington wrote: > > AddType application/x-httpd-php .php .inc .php3 .php4 > This does not work. You really need to talk to your host's support staff. If they can't get things to work the way you want, get a real host. --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 shiflett at php.net Tue Jul 20 21:33:12 2004 From: shiflett at php.net (Chris Shiflett) Date: Tue, 20 Jul 2004 18:33:12 -0700 (PDT) Subject: [nycphp-talk] php extensions In-Reply-To: <Pine.LNX.4.58.0407201927010.15439@miranda.org> Message-ID: <20040721013312.9267.qmail@web52802.mail.yahoo.com> > Thanks again folks. Unfortunately, the earthlink account does not > come with Telnet access, so I can't grep the server. My htaccess file > is as follows: Just to be clear, your file is named .htaccess, not htaccess, right? That may seem like a silly question, but it seemed worth asking. 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 jcrawford at codebowl.com Tue Jul 20 21:59:34 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Tue, 20 Jul 2004 21:59:34 -0400 Subject: [nycphp-talk] Access an element of a method that returns an ar ray In-Reply-To: <1448FB4565D489478642386D50D3FB77046C9CBC@VVNTMAIL.sternpubny> References: <1448FB4565D489478642386D50D3FB77046C9CBC@VVNTMAIL.sternpubny> Message-ID: <1090375173.11720.1.camel@68-235-15-192.sbtnvt.adelphia.net> i dont see this working in 4 or 5 reason being is you have to have the method return the array before you can actually access the elemnets so $obj->method()[3] will not work you must assign it to a variable before you can access it. i may be wrong but i think i am right, someone correct me if i am wrong ;) Joe Crawford Jr. On Tue, 2004-07-20 at 18:47, Fan, Wellington wrote: > Sorry; should have mentioned it's PHP 4.3.4 > > > > > > > echo $myObject->littlePieces()[3]; > > > echo ($myObject->littlePieces())[3]; > > > > Is this PHP 4 or PHP 5. I'm not surprised if it doesn't work in PHP > > 4. I think that should work in PHP 5, but I wouldn't swear to it. > > > > -adam > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From mwithington at PLMresearch.com Tue Jul 20 22:13:29 2004 From: mwithington at PLMresearch.com (Mark Withington) Date: Tue, 20 Jul 2004 22:13:29 -0400 Subject: [nycphp-talk] php extensions Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6B8D@network.PLMresearch.com> Correct - .htaccess. I'm afraid that the support level at earthlink isn't sufficient enough to trouble shoot or go any further. Thanks everyone for your input. Time for plan B. -------------------------- Mark L. Withington PLMresearch v: 508-746-2383 m: 508-801-0181 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 Chris Shiflett Sent: Tuesday, July 20, 2004 9:33 PM To: NYPHP Talk Subject: RE: [nycphp-talk] php extensions > Thanks again folks. Unfortunately, the earthlink account does not > come with Telnet access, so I can't grep the server. My htaccess file > is as follows: Just to be clear, your file is named .htaccess, not htaccess, right? That may seem like a silly question, but it seemed worth asking. 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 jv_nyphp at duikerbok.com Tue Jul 20 23:09:55 2004 From: jv_nyphp at duikerbok.com (Jose Villegas) Date: Tue, 20 Jul 2004 23:09:55 -0400 Subject: [nycphp-talk] Access an element of a method that returns an ar ray In-Reply-To: <1090375173.11720.1.camel@68-235-15-192.sbtnvt.adelphia.net> References: <1448FB4565D489478642386D50D3FB77046C9CBC@VVNTMAIL.sternpubny> <1090375173.11720.1.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <70BCDBFB-DAC3-11D8-B6DC-000A95D78076@duikerbok.com> I thought having parentheses around an expression evaluated the expression? If so, maybe the problem is in the syntax of the square brackets. Maybe they will only parse correctly if they are preceded by a variable? jose On Jul 20, 2004, at 9:59 PM, Joe Crawford wrote: > i dont see this working in 4 or 5 reason being is you have to have the > method return the array before you can actually access the elemnets so > $obj->method()[3] will not work you must assign it to a variable before > you can access it. > > i may be wrong but i think i am right, someone correct me if i am wrong > ;) > > Joe Crawford Jr. > > > On Tue, 2004-07-20 at 18:47, Fan, Wellington wrote: >> Sorry; should have mentioned it's PHP 4.3.4 >> >>>> >>>> echo $myObject->littlePieces()[3]; >>>> echo ($myObject->littlePieces())[3]; >>> >>> Is this PHP 4 or PHP 5. I'm not surprised if it doesn't work in PHP >>> 4. I think that should work in PHP 5, but I wouldn't swear to it. >>> >>> -adam From crisscott at netzero.com Wed Jul 21 07:54:05 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Wed, 21 Jul 2004 07:54:05 -0400 Subject: [nycphp-talk] Access an element of a method that returns an ar ray In-Reply-To: <1090375173.11720.1.camel@68-235-15-192.sbtnvt.adelphia.net> References: <1448FB4565D489478642386D50D3FB77046C9CBC@VVNTMAIL.sternpubny> <1090375173.11720.1.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <40FE595D.4080602@netzero.com> Joe Crawford wrote: > i dont see this working in 4 or 5 reason being is you have to have the > method return the array before you can actually access the elemnets so > $obj->method()[3] will not work you must assign it to a variable before > you can access it. PHP 4 doesn't know what to do with this syntax but one of the changes in PHP 5 is to let you use the return value of a function without assigning it first. If your function/method returns an object you can call methods of that object without assigning it to a variable first. Ex: $obj->getOtherObj()->method(); Scott Mattocks From jcrawford at codebowl.com Wed Jul 21 07:59:26 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Wed, 21 Jul 2004 07:59:26 -0400 Subject: [nycphp-talk] Access an element of a method that returns an ar ray In-Reply-To: <40FE595D.4080602@netzero.com> References: <1448FB4565D489478642386D50D3FB77046C9CBC@VVNTMAIL.sternpubny> <1090375173.11720.1.camel@68-235-15-192.sbtnvt.adelphia.net> <40FE595D.4080602@netzero.com> Message-ID: <1090411165.18208.4.camel@68-235-15-192.sbtnvt.adelphia.net> Scott, thanks for this clarification that is a feature of 5 that i did not know about yet ;) Joe Crawford Jr. On Wed, 2004-07-21 at 07:54, Scott Mattocks wrote: > Joe Crawford wrote: > > > i dont see this working in 4 or 5 reason being is you have to have the > > method return the array before you can actually access the elemnets so > > $obj->method()[3] will not work you must assign it to a variable before > > you can access it. > > PHP 4 doesn't know what to do with this syntax but one of the changes in > PHP 5 is to let you use the return value of a function without assigning > it first. If your function/method returns an object you can call > methods of that object without assigning it to a variable first. > Ex: $obj->getOtherObj()->method(); > > Scott Mattocks > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From sklar at sklar.com Wed Jul 21 09:44:05 2004 From: sklar at sklar.com (David Sklar) Date: Wed, 21 Jul 2004 09:44:05 -0400 Subject: [nycphp-talk] Access an element of a method that returns an ar ray In-Reply-To: <1090411165.18208.4.camel@68-235-15-192.sbtnvt.adelphia.net> References: <1448FB4565D489478642386D50D3FB77046C9CBC@VVNTMAIL.sternpubny> <1090375173.11720.1.camel@68-235-15-192.sbtnvt.adelphia.net> <40FE595D.4080602@netzero.com> <1090411165.18208.4.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <40FE7325.9030709@sklar.com> While you can do that nice chaining with object methods in PHP 5, you can't do it with array indices. This is OK in PHP 5: <?php class Stooge { private $name = null; public function __construct($name) { $this->name = $name; } public function getName() { return $this->name; } } function get_object() { return new Stooge('Moe'); } print get_object()->getName(); ?> It prints "Moe". But this is not: <?php function get_array() { return array('Moe','Larry','Curly'); } // these all are parse errors: print get_array()[1]; print (get_array())[1]; print {get_array()}[1]; ?> David Joe Crawford wrote: > Scott, > > thanks for this clarification that is a feature of 5 that i did not know > about yet ;) > > Joe Crawford Jr. > > On Wed, 2004-07-21 at 07:54, Scott Mattocks wrote: > >>Joe Crawford wrote: >> >> >>>i dont see this working in 4 or 5 reason being is you have to have the >>>method return the array before you can actually access the elemnets so >>>$obj->method()[3] will not work you must assign it to a variable before >>>you can access it. >> >>PHP 4 doesn't know what to do with this syntax but one of the changes in >>PHP 5 is to let you use the return value of a function without assigning >>it first. If your function/method returns an object you can call >>methods of that object without assigning it to a variable first. >>Ex: $obj->getOtherObj()->method(); >> >>Scott Mattocks >>_______________________________________________ >>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 jcrawford at codebowl.com Wed Jul 21 11:06:51 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Wed, 21 Jul 2004 11:06:51 -0400 Subject: [nycphp-talk] Access an element of a method that returns an ar ray In-Reply-To: <40FE7325.9030709@sklar.com> References: <1448FB4565D489478642386D50D3FB77046C9CBC@VVNTMAIL.sternpubny> <1090375173.11720.1.camel@68-235-15-192.sbtnvt.adelphia.net> <40FE595D.4080602@netzero.com> <1090411165.18208.4.camel@68-235-15-192.sbtnvt.adelphia.net> <40FE7325.9030709@sklar.com> Message-ID: <1090422411.22719.1.camel@68-235-15-192.sbtnvt.adelphia.net> David, ok but why would they not allow array indices if they allow you to get strings, integers, etc... Joe Crawford Jr. On Wed, 2004-07-21 at 09:44, David Sklar wrote: > While you can do that nice chaining with object methods in PHP 5, you > can't do it with array indices. > > This is OK in PHP 5: > > <?php > > class Stooge { > private $name = null; > public function __construct($name) { > $this->name = $name; > } > public function getName() { > return $this->name; > } > } > > function get_object() { > return new Stooge('Moe'); > } > > print get_object()->getName(); > ?> > > It prints "Moe". But this is not: > > <?php > function get_array() { > return array('Moe','Larry','Curly'); > } > > > // these all are parse errors: > print get_array()[1]; > print (get_array())[1]; > print {get_array()}[1]; > > ?> > > David > > Joe Crawford wrote: > > > Scott, > > > > thanks for this clarification that is a feature of 5 that i did not know > > about yet ;) > > > > Joe Crawford Jr. > > > > On Wed, 2004-07-21 at 07:54, Scott Mattocks wrote: > > > >>Joe Crawford wrote: > >> > >> > >>>i dont see this working in 4 or 5 reason being is you have to have the > >>>method return the array before you can actually access the elemnets so > >>>$obj->method()[3] will not work you must assign it to a variable before > >>>you can access it. > >> > >>PHP 4 doesn't know what to do with this syntax but one of the changes in > >>PHP 5 is to let you use the return value of a function without assigning > >>it first. If your function/method returns an object you can call > >>methods of that object without assigning it to a variable first. > >>Ex: $obj->getOtherObj()->method(); > >> > >>Scott Mattocks > >>_______________________________________________ > >>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 sklar at sklar.com Wed Jul 21 11:10:42 2004 From: sklar at sklar.com (David Sklar) Date: Wed, 21 Jul 2004 11:10:42 -0400 Subject: [nycphp-talk] Access an element of a method that returns an ar ray In-Reply-To: <1090422411.22719.1.camel@68-235-15-192.sbtnvt.adelphia.net> References: <1448FB4565D489478642386D50D3FB77046C9CBC@VVNTMAIL.sternpubny> <1090375173.11720.1.camel@68-235-15-192.sbtnvt.adelphia.net> <40FE595D.4080602@netzero.com> <1090411165.18208.4.camel@68-235-15-192.sbtnvt.adelphia.net> <40FE7325.9030709@sklar.com> <1090422411.22719.1.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <40FE8772.2020806@sklar.com> That's just the way the parser works. If a function or method returns an array, you have to assign the array before you can access an individual element of it. You can also do this (in either PHP 4 or PHP 5): list($stooge1,$stooge2,$stooge3) = get_array(); or even, this, which saves the variable assignment but makes your code harder to read: list(,$stooge2,) = get_array(); David Joe Crawford wrote: > David, > > ok but why would they not allow array indices if they allow you to get > strings, integers, etc... > > Joe Crawford Jr. > > > On Wed, 2004-07-21 at 09:44, David Sklar wrote: > >>While you can do that nice chaining with object methods in PHP 5, you >>can't do it with array indices. >> >>This is OK in PHP 5: >> >><?php >> >>class Stooge { >> private $name = null; >> public function __construct($name) { >> $this->name = $name; >> } >> public function getName() { >> return $this->name; >> } >>} >> >>function get_object() { >> return new Stooge('Moe'); >>} >> >>print get_object()->getName(); >>?> >> >>It prints "Moe". But this is not: >> >><?php >>function get_array() { >> return array('Moe','Larry','Curly'); >>} >> >> >>// these all are parse errors: >>print get_array()[1]; >>print (get_array())[1]; >>print {get_array()}[1]; >> >>?> >> >>David From jcrawford at codebowl.com Wed Jul 21 11:18:44 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Wed, 21 Jul 2004 11:18:44 -0400 Subject: [nycphp-talk] Access an element of a method that returns an ar ray In-Reply-To: <40FE8772.2020806@sklar.com> References: <1448FB4565D489478642386D50D3FB77046C9CBC@VVNTMAIL.sternpubny> <1090375173.11720.1.camel@68-235-15-192.sbtnvt.adelphia.net> <40FE595D.4080602@netzero.com> <1090411165.18208.4.camel@68-235-15-192.sbtnvt.adelphia.net> <40FE7325.9030709@sklar.com> <1090422411.22719.1.camel@68-235-15-192.sbtnvt.adelphia.net> <40FE8772.2020806@sklar.com> Message-ID: <1090423124.22719.3.camel@68-235-15-192.sbtnvt.adelphia.net> David, thanks for this explanation ;) Joe Crawford Jr. On Wed, 2004-07-21 at 11:10, David Sklar wrote: > That's just the way the parser works. If a function or method returns an > array, you have to assign the array before you can access an individual > element of it. > > You can also do this (in either PHP 4 or PHP 5): > > list($stooge1,$stooge2,$stooge3) = get_array(); > > or even, this, which saves the variable assignment but makes your code > harder to read: > > list(,$stooge2,) = get_array(); > > David > > Joe Crawford wrote: > > > David, > > > > ok but why would they not allow array indices if they allow you to get > > strings, integers, etc... > > > > Joe Crawford Jr. > > > > > > On Wed, 2004-07-21 at 09:44, David Sklar wrote: > > > >>While you can do that nice chaining with object methods in PHP 5, you > >>can't do it with array indices. > >> > >>This is OK in PHP 5: > >> > >><?php > >> > >>class Stooge { > >> private $name = null; > >> public function __construct($name) { > >> $this->name = $name; > >> } > >> public function getName() { > >> return $this->name; > >> } > >>} > >> > >>function get_object() { > >> return new Stooge('Moe'); > >>} > >> > >>print get_object()->getName(); > >>?> > >> > >>It prints "Moe". But this is not: > >> > >><?php > >>function get_array() { > >> return array('Moe','Larry','Curly'); > >>} > >> > >> > >>// these all are parse errors: > >>print get_array()[1]; > >>print (get_array())[1]; > >>print {get_array()}[1]; > >> > >>?> > >> > >>David > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From wfan at VillageVoice.com Wed Jul 21 11:19:40 2004 From: wfan at VillageVoice.com (Fan, Wellington) Date: Wed, 21 Jul 2004 11:19:40 -0400 Subject: [nycphp-talk] Access an element of a method that returns an ar ray Message-ID: <1448FB4565D489478642386D50D3FB77046C9CBD@VVNTMAIL.sternpubny> David, et al, Yes, thanks. I was afraid the answer would be 'it just doesn't work like that' and it's too bad. Oh well. -- Wellington From sklar at sklar.com Wed Jul 21 11:48:58 2004 From: sklar at sklar.com (David Sklar) Date: Wed, 21 Jul 2004 11:48:58 -0400 Subject: [nycphp-talk] Access an element of a method that returns an ar ray In-Reply-To: <1448FB4565D489478642386D50D3FB77046C9CBD@VVNTMAIL.sternpubny> References: <1448FB4565D489478642386D50D3FB77046C9CBD@VVNTMAIL.sternpubny> Message-ID: <40FE906A.6060807@sklar.com> If you're interested in hacking around, I think the place to start if you want to change this is about line 744 of Zend/zend_language_parser.y, where the syntax for when a "variable" can appear in a program is described. "base_variable_with_function_calls" can have an object operator ( -> ) after it, but not array dimension operators (square brackets). David Fan, Wellington wrote: > David, et al, > > Yes, thanks. I was afraid the answer would be 'it just doesn't work like > that' and it's too bad. > > Oh well. > > -- > Wellington From joel at tagword.com Wed Jul 21 11:59:54 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 21 Jul 2004 15:59:54 +0000 Subject: [nycphp-talk] RDF parser in PHP? Message-ID: <1090425594.22463.34.camel@bezel> Just wanted to let you guys know about a RDF-DEV posting about a push for RDF in PHP. Here is the posting.. http://rdfweb.org/pipermail/rdfweb-dev/2004-July/013496.html Any thoughts etc, I will pass them on. I personally think they "want" a compile-time option in PHP (i.e. "--with-rdfparser") but there is a lot of confusing things going on. i.e.: http://rdf.burningbird.net/archives/2004/07/creating-a-php-extension-out-of-redland-and-raptor/ Anyway, it should be intersting seeing how they are going to accomplish this. -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From jonbaer at jonbaer.net Wed Jul 21 12:16:57 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 21 Jul 2004 12:16:57 -0400 Subject: [nycphp-talk] Zend_language_parser In-Reply-To: <BEDA46607410834AA6CD96E3FFEBD9E4017858DD@mtvny9.mtvn.ad.viacom.com> Message-ID: <20040721161614.7D32FA85F3@virtu.nyphp.org> Just curious to find out .. Does anyone here "hack" on this file often? It uses YACC am I correct? - Jon -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of David Sklar Sent: Wednesday, July 21, 2004 11:49 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Access an element of a method that returns an ar ray If you're interested in hacking around, I think the place to start if you want to change this is about line 744 of Zend/zend_language_parser.y, where the syntax for when a "variable" can appear in a program is described. "base_variable_with_function_calls" can have an object operator ( -> ) after it, but not array dimension operators (square brackets). David From sklar at sklar.com Wed Jul 21 12:23:30 2004 From: sklar at sklar.com (David Sklar) Date: Wed, 21 Jul 2004 12:23:30 -0400 Subject: [nycphp-talk] Zend_language_parser In-Reply-To: <20040721161614.7D32FA85F3@virtu.nyphp.org> References: <20040721161614.7D32FA85F3@virtu.nyphp.org> Message-ID: <40FE9882.8080505@sklar.com> Yes, it's a grammar for YACC (actually Bison). Modifying it is only useful if you want to add/alter operators or other language grammar. If your changes don't get merged into PHP, then you have quite a maintenance burden (not to mention incompatible code). But poking around is essential learning how PHP works under the hood. David Jon Baer wrote: > Just curious to find out .. Does anyone here "hack" on this file often? It > uses YACC am I correct? > > - Jon > > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On > Behalf Of David Sklar > Sent: Wednesday, July 21, 2004 11:49 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Access an element of a method that returns an ar > ray > > If you're interested in hacking around, I think the place to start if you > want to change this is about line 744 of Zend/zend_language_parser.y, where > the syntax for when a "variable" can appear in a program is described. > "base_variable_with_function_calls" > can have an object operator ( -> ) after it, but not array dimension > operators (square brackets). > > David > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From csnyder at chxo.com Wed Jul 21 12:26:11 2004 From: csnyder at chxo.com (csnyder at chxo.com) Date: Wed, 21 Jul 2004 12:26:11 -0400 Subject: [nycphp-talk] RDF parser in PHP? In-Reply-To: <1090425594.22463.34.camel@bezel> References: <1090425594.22463.34.camel@bezel> Message-ID: <1090427171.40fe9923b531e@webmail.tuffmail.net> If you want a sample of how it *might* be done in a php class, check out RDFWorld.php: http://chxo.com/rdfworld/index.htm It converts RDF to PHP objects. From joel at tagword.com Wed Jul 21 12:30:06 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 21 Jul 2004 16:30:06 +0000 Subject: [nycphp-talk] RDF parser in PHP? In-Reply-To: <1090427171.40fe9923b531e@webmail.tuffmail.net> References: <1090425594.22463.34.camel@bezel> <1090427171.40fe9923b531e@webmail.tuffmail.net> Message-ID: <1090427406.22461.45.camel@bezel> No, an actual compiled extension (i.e compile PHP with `--with-rdfparse` etc).. RAP (which your very cool program uses) is not an option because it is too slow and the current state of FOAF (which this is mostly for) is that there are 10,000 new FOAF's introduced each day just on Livejournal alone... RAP is slow for foaf files, because of all the interlinking, so a compiled solution has to present itself. That is what they are pushing for. -joeldg On Wed, 2004-07-21 at 16:26, csnyder at chxo.com wrote: > If you want a sample of how it *might* be done in a php class, check out > RDFWorld.php: > http://chxo.com/rdfworld/index.htm > > It converts RDF to PHP objects. > _______________________________________________ > 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 csnyder at chxo.com Wed Jul 21 13:39:35 2004 From: csnyder at chxo.com (csnyder at chxo.com) Date: Wed, 21 Jul 2004 13:39:35 -0400 Subject: [nycphp-talk] RDF parser in PHP? In-Reply-To: <1090427406.22461.45.camel@bezel> References: <1090425594.22463.34.camel@bezel> <1090427171.40fe9923b531e@webmail.tuffmail.net> <1090427406.22461.45.camel@bezel> Message-ID: <1090431575.40feaa57bd903@webmail.tuffmail.net> Quoting Joel De Gan <joel at tagword.com>: > No, > an actual compiled extension (i.e compile PHP with `--with-rdfparse` > etc).. Agreed, that would be very cool. From csnyder at chxo.com Wed Jul 21 14:10:56 2004 From: csnyder at chxo.com (csnyder at chxo.com) Date: Wed, 21 Jul 2004 14:10:56 -0400 Subject: [nycphp-talk] PHP safe from HTTP Response Splitting? Message-ID: <1090433456.40feb1b010a59@webmail.tuffmail.net> Was reading a coding magazine today and came across the "HTTP Response Splitting" attack, where a malicious user might try to pass newline characters and HTTP headers into a Location: redirect by using a $_GET var with urlencoded linebreaks. PHP ( or maybe it's Apache? ) seems safe from this: $redirect = "foo\nContent-length: 0\n\nHTTP/1.1 404 Not Found\n"; header( "Location: $redirect" ); The header() call above passes only "Location: foo" to the client, stripping all the badness out of $redirect. From yury at heavenspa.com Wed Jul 21 14:28:08 2004 From: yury at heavenspa.com (Yury Rush) Date: Wed, 21 Jul 2004 14:28:08 -0400 Subject: [nycphp-talk] hows it done In-Reply-To: <1090433456.40feb1b010a59@webmail.tuffmail.net> Message-ID: <ECEKLPHECCLGFGAFEPEJOEDCCGAA.yury@heavenspa.com> folks.. i see websites that show results on a page based off of my search term. Example: i go to google and type in " computer animation ".. i'll get results that will not be relavant to the website, but more so to my search term.. .. i don;t have any examples off hand, but i hope i am making some sense.. lol regards yury //www.flashgimp.com// From mitchy at spacemonkeylabs.com Wed Jul 21 14:59:32 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Wed, 21 Jul 2004 14:59:32 -0400 Subject: [nycphp-talk] LAMP CMS performance tests Message-ID: <40FEBD14.2000806@spacemonkeylabs.com> Hey gang, Here is an interesting test done by one person, using the same os/hardware/software for everything except the CMS. She tried several and noted the results. http://forum.mamboserver.com/showthread.php?t=11782 Perhaps the most telling were that the CMSs that implemented page-level caching performed the best, and kept the lowest loads. Something I have learned while doing my own testing is that using ADOdb's query cache (which caches on the webserver, not in the database like MySQL) provides significant performance benefits, UNLESS your webserver is working harder than the database machine, in which case it will actually hurt. -- Mitch From george at omniti.com Wed Jul 21 15:04:27 2004 From: george at omniti.com (George Schlossnagle) Date: Wed, 21 Jul 2004 15:04:27 -0400 Subject: [nycphp-talk] LAMP CMS performance tests In-Reply-To: <40FEBD14.2000806@spacemonkeylabs.com> References: <40FEBD14.2000806@spacemonkeylabs.com> Message-ID: <C9E1332E-DB48-11D8-A6FC-000D93359332@omniti.com> On Jul 21, 2004, at 2:59 PM, Mitch Pirtle wrote: > Hey gang, > > Here is an interesting test done by one person, using the same > os/hardware/software for everything except the CMS. She tried several > and noted the results. > > http://forum.mamboserver.com/showthread.php?t=11782 > > Perhaps the most telling were that the CMSs that implemented > page-level caching performed the best, and kept the lowest loads. > > Something I have learned while doing my own testing is that using > ADOdb's query cache (which caches on the webserver, not in the > database like MySQL) provides significant performance benefits, UNLESS > your webserver is working harder than the database machine, in which > case it will actually hurt. Just as a note (or to start a good-natured debate), the real problem with client-side caches is maintaining a consistent view in a multi-server environment. George From tgales at tgaconnect.com Wed Jul 21 15:08:22 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 21 Jul 2004 15:08:22 -0400 Subject: [nycphp-talk] PHP safe from HTTP Response Splitting? In-Reply-To: <1090433456.40feb1b010a59@webmail.tuffmail.net> Message-ID: <000901c46f56$17c20b80$e98d3818@oberon1> Chris Snyder writes: > Was reading a coding magazine today and came across the "HTTP > Response Splitting" attack, where a malicious user might try > to pass newline characters and HTTP headers into a Location: > redirect by using a $_GET var with urlencoded linebreaks. http://www.sanctuminc.com/pdf/whitepaper_httpresponse.pdf Page 28 of the paper recommends: "Validate input. Remove CRs and LFs (and all other hazardous characters) before embedding data into any HTTP response headers, particularly when setting cookies and redirecting." http://shiflett.org/articles/foiling-cross-site-attacks/ gives some good background on Cross-Site Scripting vulnerabilities and offers some ideas on how one might defend against them. (hint: filter all foreign data) T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From adam at trachtenberg.com Wed Jul 21 15:13:33 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Wed, 21 Jul 2004 15:13:33 -0400 (EDT) Subject: [nycphp-talk] LAMP CMS performance tests In-Reply-To: <C9E1332E-DB48-11D8-A6FC-000D93359332@omniti.com> References: <40FEBD14.2000806@spacemonkeylabs.com> <C9E1332E-DB48-11D8-A6FC-000D93359332@omniti.com> Message-ID: <Pine.LNX.4.58.0407211505220.15439@miranda.org> On Wed, 21 Jul 2004, George Schlossnagle wrote: > On Jul 21, 2004, at 2:59 PM, Mitch Pirtle wrote: > > Something I have learned while doing my own testing is that using > > ADOdb's query cache (which caches on the webserver, not in the > > database like MySQL) provides significant performance benefits, UNLESS > > your webserver is working harder than the database machine, in which > > case it will actually hurt. > > Just as a note (or to start a good-natured debate), the real problem > with client-side caches is maintaining a consistent view in a > multi-server environment. That's a good point. At TVGrid.Com, we separated our data into two bins: 1) Data that was constantly being updates (such as membership info) 2) Data that was updated once per day (what's on tv tonight?). That allowed us to implement a simple client-side SQL cache for bin #2 over multiple web server without too many worries. Of course, I don't think we ended up hitting the cache too often because our data was so spread out. People just didn't search for the same thing all that often (and when they did, if they were in differing locations, we returned different data, so we couldn't use the cache.) So that's another point to consider, the effectiveness of your cache is directly related to your dataset and typical usage. -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From jlacey at att.net Wed Jul 21 16:50:52 2004 From: jlacey at att.net (John Lacey) Date: Wed, 21 Jul 2004 14:50:52 -0600 Subject: [nycphp-talk] xdebug & apache 2 Message-ID: <40FED72C.9090904@att.net> Anyone know if xdebug will work with Apache 2.0.x (running latest XAMPP with PHP5 & apache 2.0.50 on a win2k pro box) I got the latest php_xdebug.dll from here: http://snaps.php.net/win32/PECL_UNSTABLE/ and I'm running the prebuilt binary debugclient ver 0.7.0 for windows I grabbed from xdebug.org php.ini file: [Zend] xdebug.remote_enable = 1 xdebug_extension_ts="c:/path_to/php_xdebug.dll" (phpinfo shows php was built with thread safety, hence the _ts) I tried to get it working, but no joy -- won't connect to the client thanks, John From sm11szw02 at sneakemail.com Wed Jul 21 16:55:46 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Wed, 21 Jul 2004 16:55:46 -0400 Subject: [nycphp-talk] LAMP CMS performance tests In-Reply-To: <Pine.LNX.4.58.0407211505220.15439@miranda.org> References: <40FEBD14.2000806@spacemonkeylabs.com> <C9E1332E-DB48-11D8-A6FC-000D93359332@omniti.com> <Pine.LNX.4.58.0407211505220.15439@miranda.org> Message-ID: <525-97739@sneakemail.com> Adam Maccabee Trachtenberg adam-at-trachtenberg.com |nyphp 04/2004| wrote: >On Wed, 21 Jul 2004, George Schlossnagle wrote: > > ... >So that's another point to consider, the effectiveness of your cache >is directly related to your dataset and typical usage. > >-adam > I don't think I enjoyed any advance CIS topic more than I enjoyed cache design. If you like the analytical thinking behind caching -- client side vs. server side vs. mysql level vs. apache level vs. php application level, page level, even RAM level, you should look into the field of cache design and management. It is not only interesting and extremely practical, but there is alot of room to play with some good tools and plenty of room to make contributions from the sysadmin level through the Ph.D. level. Improving cache utilization is probably the most powerful way to improve performance.... From jlacey at att.net Wed Jul 21 16:57:21 2004 From: jlacey at att.net (John Lacey) Date: Wed, 21 Jul 2004 14:57:21 -0600 Subject: [nycphp-talk] xdebug & apache 2 Message-ID: <40FED8B1.9090203@att.net> forgot to add this: my URL is: http://localhost/debugtest.php?XDEBUG_SESSION_START=JLDBGSESSID J From sklar at sklar.com Wed Jul 21 17:02:20 2004 From: sklar at sklar.com (David Sklar) Date: Wed, 21 Jul 2004 17:02:20 -0400 Subject: [nycphp-talk] xdebug & apache 2 In-Reply-To: <40FED72C.9090904@att.net> References: <40FED72C.9090904@att.net> Message-ID: <40FED9DC.4090800@sklar.com> In addition to adding the XDEBUG_SESSION_START var to the URL that you mentioned in your other message, you need to tell xdebug to connect to debugclient on a different port. Xdebug 2 defaults to port 9000, but the binary debugclient 0.7.0 defaults to port 17869. So add this to your php.ini: xdebug.remote_port=17869 The xdebug stuff doesn't have to be in the "[Zend]" section of php.ini, BTW. Do you see xdebug listed in phpinfo() output? (whether or not remote debugging is working) David John Lacey wrote: > Anyone know if xdebug will work with Apache 2.0.x (running latest XAMPP > with PHP5 & apache 2.0.50 on a win2k pro box) > I got the latest php_xdebug.dll from here: > http://snaps.php.net/win32/PECL_UNSTABLE/ and I'm running the prebuilt > binary debugclient ver 0.7.0 for windows I grabbed from xdebug.org > > php.ini file: > [Zend] > xdebug.remote_enable = 1 > xdebug_extension_ts="c:/path_to/php_xdebug.dll" > > (phpinfo shows php was built with thread safety, hence the _ts) > > I tried to get it working, but no joy -- won't connect to the client > thanks, > John > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From jlacey at att.net Wed Jul 21 17:04:26 2004 From: jlacey at att.net (John Lacey) Date: Wed, 21 Jul 2004 15:04:26 -0600 Subject: [nycphp-talk] xdebug & apache 2 In-Reply-To: <40FED9DC.4090800@sklar.com> References: <40FED72C.9090904@att.net> <40FED9DC.4090800@sklar.com> Message-ID: <40FEDA5A.3010506@att.net> thanks David, that should do it-- I knew about 17869 but xdebug 2 using port 9000 is news... John David Sklar wrote: > In addition to adding the XDEBUG_SESSION_START var to the URL that you > mentioned in your other message, you need to tell xdebug to connect to > debugclient on a different port. > > Xdebug 2 defaults to port 9000, but the binary debugclient 0.7.0 > defaults to port 17869. So add this to your php.ini: > > xdebug.remote_port=17869 > > The xdebug stuff doesn't have to be in the "[Zend]" section of > php.ini, BTW. > > Do you see xdebug listed in phpinfo() output? (whether or not remote > debugging is working) > > David > > John Lacey wrote: > >> Anyone know if xdebug will work with Apache 2.0.x (running latest >> XAMPP with PHP5 & apache 2.0.50 on a win2k pro box) >> I got the latest php_xdebug.dll from here: >> http://snaps.php.net/win32/PECL_UNSTABLE/ and I'm running the >> prebuilt binary debugclient ver 0.7.0 for windows I grabbed from >> xdebug.org >> >> php.ini file: >> [Zend] >> xdebug.remote_enable = 1 >> xdebug_extension_ts="c:/path_to/php_xdebug.dll" >> >> (phpinfo shows php was built with thread safety, hence the _ts) >> >> I tried to get it working, but no joy -- won't connect to the client >> thanks, >> John >> >> _______________________________________________ >> 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 jlacey at att.net Wed Jul 21 17:20:59 2004 From: jlacey at att.net (John Lacey) Date: Wed, 21 Jul 2004 15:20:59 -0600 Subject: [nycphp-talk] xdebug & apache 2 In-Reply-To: <40FED9DC.4090800@sklar.com> References: <40FED72C.9090904@att.net> <40FED9DC.4090800@sklar.com> Message-ID: <40FEDE3B.4030905@att.net> David Sklar wrote: > In addition to adding the XDEBUG_SESSION_START var to the URL that you > mentioned in your other message, you need to tell xdebug to connect to > debugclient on a different port. > > Xdebug 2 defaults to port 9000, but the binary debugclient 0.7.0 > defaults to port 17869. So add this to your php.ini: > > xdebug.remote_port=17869 added the above parm and restarted apache...still won't connect when invoking my URL > > The xdebug stuff doesn't have to be in the "[Zend]" section of > php.ini, BTW. do you have a particular preference for it's "location"? > > Do you see xdebug listed in phpinfo() output? (whether or not remote > debugging is working) > No... and I see the Optimizer both in the table section next to the "powered by Zend Engine2", etc. and also further down alphabetically... but, I DON'T see xdebug and the path to the xdebug.dll seems ok From sklar at sklar.com Wed Jul 21 17:49:47 2004 From: sklar at sklar.com (David Sklar) Date: Wed, 21 Jul 2004 17:49:47 -0400 Subject: [nycphp-talk] xdebug & apache 2 In-Reply-To: <40FEDE3B.4030905@att.net> References: <40FED72C.9090904@att.net> <40FED9DC.4090800@sklar.com> <40FEDE3B.4030905@att.net> Message-ID: <40FEE4FB.7090800@sklar.com> >> The xdebug stuff doesn't have to be in the "[Zend]" section of >> php.ini, BTW. > > > do you have a particular preference for it's "location"? I usually end up putting it just below all of the extension lines that load various extensions, but that's just because I'm lazy. :) >> Do you see xdebug listed in phpinfo() output? (whether or not remote >> debugging is working) >> > No... and I see the Optimizer both in the table section next to the > "powered by Zend Engine2", etc. and also further down alphabetically... > but, I DON'T see xdebug and the path to the xdebug.dll seems ok If xdebug doesn't show up in phpinfo() output, then you're definitely not going to get any remote debugging. Do you have a debug build of PHP? If so, you need to use zend_extension_debug_ts in php.ini instead of zend_extension_ts. What happens when you run php.exe -m from the command line? David From webmaster at localnotion.com Wed Jul 21 17:50:54 2004 From: webmaster at localnotion.com (Matthew Terenzio) Date: Wed, 21 Jul 2004 17:50:54 -0400 Subject: [nycphp-talk] XAMPP for MacOS X? In-Reply-To: <786E23D3-DA02-11D8-867A-000A95AF225A@email.smith.edu> References: <40FC9613.1020508@jonbaer.net> <786E23D3-DA02-11D8-867A-000A95AF225A@email.smith.edu> Message-ID: <0AAEF0F8-DB60-11D8-81E5-0003938BDF32@localnotion.com> I have postgres and mysql both installed on OS X. I may have made use of fink, but installation was painless and I've had no problems developing on the DB's with PHP and apache. On Jul 20, 2004, at 12:08 AM, Aaron Fischer wrote: > Apache and PHP come pre-installed on OS X, you just have to take a few > steps to get things going. I believe MySQL has to be installed, I > haven't gotten around to that yet. > > For Apache, just go into System Preferences and enable "Personal Web > Sharing" (under Sharing.) That will start the Apache server. > Here's a URL with more info: > http://www.macdevcenter.com/pub/a/mac/2001/12/07/apache.html > > For PHP, you just have to edit the Apache httpd.conf file to load the > module. I found this page to be a helpful reference point. > http://www.sanbeiji.com/tech/tutorials/php/index.php > > The sanbeiji page also has a link regarding MySQL installation. I > haven't done that part yet. If you do the install, I'd be interested > to hear how it goes. > > -Aaron > > On Jul 19, 2004, at 11:48 PM, Jon Baer wrote: > >> hey - >> >> @ my job we have a left over Mac OS X machine and im thinking of >> having >> it run Samba but also AMP, is there an all-on-one buffet package I can >> go for? or is Mac tricky in setting up? i have spent about .5% of my >> life on a Mac so im looking for a fun challenge after work hours. >> >> a guide somewhere? is it the same @ linux setup? > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From jlacey at att.net Wed Jul 21 18:14:29 2004 From: jlacey at att.net (John Lacey) Date: Wed, 21 Jul 2004 16:14:29 -0600 Subject: [nycphp-talk] xdebug & apache 2 In-Reply-To: <40FEE4FB.7090800@sklar.com> References: <40FED72C.9090904@att.net> <40FED9DC.4090800@sklar.com> <40FEDE3B.4030905@att.net> <40FEE4FB.7090800@sklar.com> Message-ID: <40FEEAC5.3050001@att.net> David Sklar wrote: > ... Do you have a debug build of PHP? If so, you need to use > zend_extension_debug_ts in php.ini instead of zend_extension_ts. it's not a debug build according to phpinfo() > > What happens when you run php.exe -m from the command line? > That one I'll have to get back to you on, as it's having pathing problems... don't know if they're related, but I need to do some more troubleshooting. thanks, John From jlacey at att.net Wed Jul 21 18:30:22 2004 From: jlacey at att.net (John Lacey) Date: Wed, 21 Jul 2004 16:30:22 -0600 Subject: [nycphp-talk] xdebug & apache 2 In-Reply-To: <40FEE4FB.7090800@sklar.com> References: <40FED72C.9090904@att.net> <40FED9DC.4090800@sklar.com> <40FEDE3B.4030905@att.net> <40FEE4FB.7090800@sklar.com> Message-ID: <40FEEE7E.4010006@att.net> David Sklar wrote: > Do you see xdebug listed in phpinfo() output? (whether or not remote > debugging is working) > while I'm off doing a few other things like eating dinner... have you or anyone else run xdebug with php5 and apache 2? I think all the variables were covered, especially when you mentioned xdebug 2 using port 9000-- that was the only glitch I saw. From looking at the xdebug.org mailing lists, it looks like xdebug2 has been working fine with php5, but I saw no mention of apache 2 anywhere. And I'm not too sure if "no news is good news" here :) John From sklar at sklar.com Wed Jul 21 18:55:52 2004 From: sklar at sklar.com (David Sklar) Date: Wed, 21 Jul 2004 18:55:52 -0400 Subject: [nycphp-talk] xdebug & apache 2 In-Reply-To: <40FEEE7E.4010006@att.net> References: <40FED72C.9090904@att.net> <40FED9DC.4090800@sklar.com> <40FEDE3B.4030905@att.net> <40FEE4FB.7090800@sklar.com> <40FEEE7E.4010006@att.net> Message-ID: <40FEF478.2070701@sklar.com> John Lacey wrote: > David Sklar wrote: > >> Do you see xdebug listed in phpinfo() output? (whether or not remote >> debugging is working) >> > while I'm off doing a few other things like eating dinner... have you or > anyone else run xdebug with php5 and apache 2? I think all the > variables were covered, especially when you mentioned xdebug 2 using > port 9000-- that was the only glitch I saw. From looking at the > xdebug.org mailing lists, it looks like xdebug2 has been working fine > with php5, but I saw no mention of apache 2 anywhere. And I'm not too > sure if "no news is good news" here :) Yes -- My setup is Apache 2.0.49 with PHP 5.0.0 on WinXP. Apache invokes PHP via FastCGI. David From jlacey at att.net Wed Jul 21 19:01:29 2004 From: jlacey at att.net (John Lacey) Date: Wed, 21 Jul 2004 17:01:29 -0600 Subject: [nycphp-talk] xdebug & apache 2 In-Reply-To: <40FEF478.2070701@sklar.com> References: <40FED72C.9090904@att.net> <40FED9DC.4090800@sklar.com> <40FEDE3B.4030905@att.net> <40FEE4FB.7090800@sklar.com> <40FEEE7E.4010006@att.net> <40FEF478.2070701@sklar.com> Message-ID: <40FEF5C9.7040002@att.net> thanks, David... I just wanted to make doubly sure someone had actually run that combination on a windows box J David Sklar wrote: > John Lacey wrote: > >> David Sklar wrote: >> >>> Do you see xdebug listed in phpinfo() output? (whether or not remote >>> debugging is working) >>> >> while I'm off doing a few other things like eating dinner... have you >> or anyone else run xdebug with php5 and apache 2? I think all the >> variables were covered, especially when you mentioned xdebug 2 using >> port 9000-- that was the only glitch I saw. From looking at the >> xdebug.org mailing lists, it looks like xdebug2 has been working fine >> with php5, but I saw no mention of apache 2 anywhere. And I'm not >> too sure if "no news is good news" here :) > > > Yes -- My setup is Apache 2.0.49 with PHP 5.0.0 on WinXP. Apache > invokes PHP via FastCGI. > > David > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From tgales at tgaconnect.com Wed Jul 21 19:39:23 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 21 Jul 2004 19:39:23 -0400 Subject: [nycphp-talk] Parsing <php: possible? In-Reply-To: <40FD00AF.808@jonbaer.net> Message-ID: <003901c46f7b$f4711a10$e98d3818@oberon1> Jon Baer writes: > Sent: Tuesday, July 20, 2004 7:23 AM > Tim Gales wrote: > > | " ...As long as JSP coding allows inline coding, it is very > convenient > | (especially when deadlines are looming) to make last-minute changes > | with inline code, rather than converting the code to a tag > library..." > > come on .. how many libraries actually start out *as* > libraries? none .. This is sad but true -- especially with the Java programmers I come in contact with. They say things like "Don't spend time on a generalized solution before you need it." Also mention is made that they are using an 'Extreme Programming' methodology. Maybe I don't 'get it', but this methodology seems to me not to be 'Extreme Programming' but rather extremely bad programming -- just coding without thinking first and without regard to a thought out library. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From sm11szw02 at sneakemail.com Wed Jul 21 19:53:21 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Wed, 21 Jul 2004 19:53:21 -0400 Subject: [nycphp-talk] Parsing <php: possible? In-Reply-To: <003901c46f7b$f4711a10$e98d3818@oberon1> References: <003901c46f7b$f4711a10$e98d3818@oberon1> Message-ID: <28563-93962@sneakemail.com> Tim Gales tgales-at-tgaconnect.com |nyphp 04/2004| wrote: > Jon Baer writes: > > >>Sent: Tuesday, July 20, 2004 7:23 >> >>Maybe I don't 'get it', but this methodology seems to me not to be >>'Extreme Programming' but rather extremely bad programming -- >>just coding without thinking first and without regard to a >>thought out library. >> >>T. Gales & Associates >>'Helping People Connect with Technology' >> >>http://www.tgaconnect.com >> >> I like that extreme programming pairs programmers.. I have never seen anything so purifying as asking two programmers to work together on every line of code, on the fly. As for avoiding generalizing until it is required... that may simply be a response to 15 years or so of building bloated C++ libraries that only C++ library programmers could really use... not unusual to see a rubberbanding after all that wasted "efficiency". Also, with at least two knowledgeable programmers in tune with every line of code, perhaps there is less of a risk of forgetting how it works (?) -- so it can be packed into a lib later. -=john From tgales at tgaconnect.com Wed Jul 21 20:14:58 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 21 Jul 2004 20:14:58 -0400 Subject: [nycphp-talk] Parsing <php: possible? In-Reply-To: <28563-93962@sneakemail.com> Message-ID: <004001c46f80$ecf6c9b0$e98d3818@oberon1> inforequest writes: > Sent: Wednesday, July 21, 2004 7:53 PM > To: talk at lists.nyphp.org > Subject: Re: [nycphp-talk] Parsing <php: possible? > > > Tim Gales tgales-at-tgaconnect.com |nyphp 04/2004| wrote: > > > Jon Baer writes: > > > > > >>Sent: Tuesday, July 20, 2004 7:23 > >> > >>Maybe I don't 'get it', but this methodology seems to me not to be > >>'Extreme Programming' but rather extremely bad programming -- > >>just coding without thinking first and without regard to a > >>thought out library. > >> > >>T. Gales & Associates > >>'Helping People Connect with Technology' > >> > >>http://www.tgaconnect.com > >> > >> > > I like that extreme programming pairs programmers.. I have never seen > anything so purifying as asking two programmers to work together on > every line of code, on the fly. > > As for avoiding generalizing until it is required... that may > simply be > a response to 15 years or so of building bloated C++ > libraries that only > C++ library programmers could really use... not unusual to see a > rubberbanding after all that wasted "efficiency". Also, with > at least > two knowledgeable programmers in tune with every line of > code, perhaps > there is less of a risk of forgetting how it works (?) -- so > it can be > packed into a lib later. > > Ah yes, the old we'll refactor it later ('packed into a lib later') -- very similar to we'll document that later. The guy said (from the article I originally quoted), | " ...As long as JSP coding allows inline coding, it is very convenient | (especially when deadlines are looming) to make last-minute changes | with inline code, rather than converting the code to a tag library..." T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From adam at trachtenberg.com Wed Jul 21 20:28:50 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Wed, 21 Jul 2004 20:28:50 -0400 (EDT) Subject: [nycphp-talk] Parsing <php: possible? In-Reply-To: <004001c46f80$ecf6c9b0$e98d3818@oberon1> References: <004001c46f80$ecf6c9b0$e98d3818@oberon1> Message-ID: <Pine.LNX.4.58.0407212024230.15439@miranda.org> On Wed, 21 Jul 2004, Tim Gales wrote: > Ah yes, the old we'll refactor it later ('packed into a lib later') -- > very similar to we'll document that later. XP is a software engineering methodology that removes dependencies in your code and places them upon your developers. The only reason you're allowed (required) to write the simplest code possible is that you're required to refactor it mercilessly. Failing to do the second invalidates the first. Also, the only reason you can safely refactor the code is that you've written a complete suite of unit tests. Failing to write tests causes you to be unable to safely refactor, which leads to ugly code, etc, etc. As you can see, many parts of XP are tightly wound and interdependent upon themselves. You can't remove one without placing stress on the entire framework. IMHO, this is the largest irony of XP. -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From tgales at tgaconnect.com Wed Jul 21 21:50:07 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 21 Jul 2004 21:50:07 -0400 Subject: [nycphp-talk] Parsing <php: possible? In-Reply-To: <Pine.LNX.4.58.0407212024230.15439@miranda.org> Message-ID: <004101c46f8e$37bf2750$e98d3818@oberon1> Adam Maccabee Trachtenberg writes > On Wed, 21 Jul 2004, Tim Gales wrote: > > > Ah yes, the old we'll refactor it later ('packed into a lib > later') -- > > very similar to we'll document that later. > > XP is a software engineering methodology that removes > dependencies in your code and places them upon your developers. > > The only reason you're allowed (required) to write the > simplest code possible is that you're required to refactor it > mercilessly. Failing to do the second invalidates the first. If I understand refactoring, it means to rearrange your classes and methods so that common code is more easily inherited from or delegated to with the goal removing duplicated code (or code which expressed another way -- but with identical meaning -- would be a duplicate). I am under the impression that the goal is to achieve some sort of 'ne plus ultra' state with no (or very little) duplication of code so that you can enhance a routine in just one place (since it is not duplicated anywhere else -- or hardly anywhere else). Mixed in with the methodology is also a concept of delivering working pieces of code early. And from what I can make of the reasoning behind this is that once users use the working pieces, they may change their mind about what they want the final system to do. And so it would seem that one of the lines of reasoning which argues for this way of doing things is that you can avoid wasting time creating a 'wrong' design initially -- and you should (to some degree) discover what the design is, and the design may be changing along the way, from building working parts of the system. In theory I guess this could work. But it strikes me that if the deadline for delivering the system overtakes you, you might run the risk of delivering a system into production without much of a coherent design -- though you would have avoided an initially wrong design. The result would be an awkward system where developers would have to memorize the places where pockets of code must updated together -- of course this is something which can happen anyway when you do things the 'old fashioned' way. I will be the first to admit that I don't fully comprehend this method. But it just strikes me as fraught with danger -- maybe that's why it is called 'Extreme' T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From preinheimer at gmail.com Wed Jul 21 22:30:53 2004 From: preinheimer at gmail.com (Paul Reinheimer) Date: Wed, 21 Jul 2004 22:30:53 -0400 Subject: [nycphp-talk] hows it done In-Reply-To: <ECEKLPHECCLGFGAFEPEJOEDCCGAA.yury@heavenspa.com> References: <ECEKLPHECCLGFGAFEPEJOEDCCGAA.yury@heavenspa.com> Message-ID: <6ec19ec7040721193032e1dc86@mail.gmail.com> When you get the http referer tag, it will include the full URL of the page you came from. Google search result pages include your search term in the URL. So to highlight the google search terms on a page, grab that referer tag, find the search terms, then highlight them on your page (str_replace($search_term, "<span class=highlight>$search_term</span>")). i think that should work paul On Wed, 21 Jul 2004 14:28:08 -0400, Yury Rush <yury at heavenspa.com> wrote: > folks.. > > i see websites that show results on a page based off of my search term. > Example: > > i go to google and type in " computer animation ".. i'll get results that > will not be relavant to the website, but more so to my search term.. .. > > i don;t have any examples off hand, but i hope i am making some sense.. > > lol > regards > yury > > //www.flashgimp.com// > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From sm11szw02 at sneakemail.com Wed Jul 21 22:59:49 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Wed, 21 Jul 2004 22:59:49 -0400 Subject: [nycphp-talk] hows it done In-Reply-To: <6ec19ec7040721193032e1dc86@mail.gmail.com> References: <ECEKLPHECCLGFGAFEPEJOEDCCGAA.yury@heavenspa.com> <6ec19ec7040721193032e1dc86@mail.gmail.com> Message-ID: <6095-51978@sneakemail.com> To confirm that the site in question is using referrer strings, turn them off and see what happens. Open everyone's favorite browser (and the crowd shouts "firefox"), and type this into the address bar: about : config Hit <enter> and you should get the Firefox configuration system (and the crowd goes oooooooo-aaaaahhhhhhh.!!!!!) In the filter box, put refer to see referer settings. Set the "send referer header" parameter to 0 (mine was defaulted to "2" after a basic Firefox install, but YMMV). That will block sending of referrers. Re-visit the site in question and see what happens. Note that many sites will lose functionality and some won't service you, if you turn off referrer strings. If you want to test it, go to any of those privacy screening tests (heres one: http://www.pcflank.com/browser_test3.htm) and see if it passes the "referer check". (I can't resist opportunities to introduce people to Firefox's config system.... it's so cool) -=john ------------------------------------------------------ John F. Andrews Paul Reinheimer preinheimer-at-gmail.com |nyphp 04/2004| wrote: >When you get the http referer tag, it will include the full URL of the >page you came from. Google search result pages include your search >term in the URL. > >So to highlight the google search terms on a page, grab that referer >tag, find the search terms, then highlight them on your page >(str_replace($search_term, "<span >class=highlight>$search_term</span>")). > > >i think that should work > >paul > > >On Wed, 21 Jul 2004 14:28:08 -0400, Yury Rush <yury at heavenspa.com> wrote: > > >>folks.. >> >>i see websites that show results on a page based off of my search term. >>Example: >> >>i go to google and type in " computer animation ".. i'll get results that >>will not be relavant to the website, but more so to my search term.. .. >> >>i don;t have any examples off hand, but i hope i am making some sense.. >> >>lol >>regards >>yury >> >>//www.flashgimp.com// >> From webmaster at localnotion.com Wed Jul 21 23:24:09 2004 From: webmaster at localnotion.com (Matthew Terenzio) Date: Wed, 21 Jul 2004 23:24:09 -0400 Subject: [nycphp-talk] Parsing <php: possible? In-Reply-To: <004101c46f8e$37bf2750$e98d3818@oberon1> References: <004101c46f8e$37bf2750$e98d3818@oberon1> Message-ID: <98223A18-DB8E-11D8-81E5-0003938BDF32@localnotion.com> It is not only Extreme Programming which employs iterative development and refactoring. I'll quote from Craig Larman's "Applying UML and Patterns", which uses the Unified Process to exemplify quality Object-Oriented Analysis and Design: ". . .there is neither a rush to code, nor a long drawn out design step that attempts to perfect all details of the design before programming. A "liitle" forethought regarding the design with visual modeling using rough and fast UML drawings is done; perhaps a half or full day. . .The result of eachiteration is an executable but incomplete system. . . " On Jul 21, 2004, at 9:50 PM, Tim Gales wrote: > Adam Maccabee Trachtenberg writes >> On Wed, 21 Jul 2004, Tim Gales wrote: >> >>> Ah yes, the old we'll refactor it later ('packed into a lib >> later') -- >>> very similar to we'll document that later. >> >> XP is a software engineering methodology that removes >> dependencies in your code and places them upon your developers. >> >> The only reason you're allowed (required) to write the >> simplest code possible is that you're required to refactor it >> mercilessly. Failing to do the second invalidates the first. > > If I understand refactoring, it means to rearrange your classes and > methods so that common code is more easily inherited from or delegated > to with the goal removing duplicated code (or code which expressed > another way -- but with identical meaning -- would be a duplicate). > > I am under the impression that the goal is to achieve some sort of > 'ne plus ultra' state with no (or very little) duplication of code so > that you can enhance a routine in just one place (since it is not > duplicated anywhere else -- or hardly anywhere else). > > Mixed in with the methodology is also a concept of delivering > working pieces of code early. And from what I can make of the > reasoning behind this is that once users use the working > pieces, they may change their mind about what they want the > final system to do. > > And so it would seem that one of the lines of reasoning which > argues for this way of doing things is that you can avoid wasting > time creating a 'wrong' design initially -- and you should (to some > degree) discover what the design is, and the design may be changing > along the way, from building working parts of the system. > > In theory I guess this could work. But it strikes me that if the > deadline for delivering the system overtakes you, you might run > the risk of delivering a system into production without much of a > coherent design -- though you would have avoided an initially > wrong design. > > The result would be an awkward system where developers > would have to memorize the places where pockets of code must updated > together -- of course this is something which can happen anyway when > you do things the 'old fashioned' way. > > I will be the first to admit that I don't fully comprehend this method. > But it just strikes me as fraught with danger -- maybe that's why it > is called 'Extreme' > > 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 jonbaer at jonbaer.net Wed Jul 21 23:40:58 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 21 Jul 2004 23:40:58 -0400 Subject: [nycphp-talk] Parsing <php: possible? In-Reply-To: <98223A18-DB8E-11D8-81E5-0003938BDF32@localnotion.com> References: <004101c46f8e$37bf2750$e98d3818@oberon1> <98223A18-DB8E-11D8-81E5-0003938BDF32@localnotion.com> Message-ID: <40FF374A.1090201@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 uggg - please change the subject line LOL ... im still awaiting the golden egg answer of how to accomplish the <php: parsing .. i cant even get <php> to work correctly. yacc is mind boggling. Matthew Terenzio wrote: | It is not only Extreme Programming which employs iterative development | and refactoring. I'll quote from Craig Larman's "Applying UML and | Patterns", which uses the Unified Process to exemplify quality | Object-Oriented Analysis and Design: | | ". . .there is neither a rush to code, nor a long drawn out design step | that attempts to perfect all details of the design before programming. A | "liitle" forethought regarding the design with visual modeling using | rough and fast UML drawings is done; perhaps a half or full day. . .The | result of eachiteration is an executable but incomplete system. - -- 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.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFA/zdJQdvbi5oMr0cRAkjcAJ9So86ZHXCA4YV249GHfLONtYdcegCfVU/u pVJkukrC/gIGk3UDdbGm5Y8= =FpmH -----END PGP SIGNATURE----- From adam at trachtenberg.com Thu Jul 22 01:38:02 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Thu, 22 Jul 2004 01:38:02 -0400 (EDT) Subject: [nycphp-talk] Parsing <php: possible? In-Reply-To: <004101c46f8e$37bf2750$e98d3818@oberon1> References: <004101c46f8e$37bf2750$e98d3818@oberon1> Message-ID: <Pine.LNX.4.58.0407220117250.27158@miranda.org> On Wed, 21 Jul 2004, Tim Gales wrote: > In theory I guess this could work. But it strikes me that if the > deadline for delivering the system overtakes you, you might run > the risk of delivering a system into production without much of a > coherent design -- though you would have avoided an initially > wrong design. The whole idea of a final "deadline" is an artificial concept. In XP, you've delivered a working (but incomplete) version much sooner than you would under the classic waterfall model. At that point, any future iterations are just further refinements of the working system. These releases fix whatever deficiencies are identified by your clients in the existing program and add whatever the clients say are the most important features to add at the current time. > But it just strikes me as fraught with danger -- maybe that's why it > is called 'Extreme' The danger is reduced because you always have a deliverable product. With short release cycles building on top of a working system, you can never get too bogged down into a morass of unworkable pieces. This lessens risk because you don't have the potential to program for six months and end up with a system that doesn't compile or is so unusable that you need to throw it away and start from scratch. -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From sm11szw02 at sneakemail.com Thu Jul 22 02:38:23 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Thu, 22 Jul 2004 02:38:23 -0400 Subject: [nycphp-talk] Parsing <php: possible? In-Reply-To: <Pine.LNX.4.58.0407220117250.27158@miranda.org> References: <004101c46f8e$37bf2750$e98d3818@oberon1> <Pine.LNX.4.58.0407220117250.27158@miranda.org> Message-ID: <16993-36468@sneakemail.com> Adam Maccabee Trachtenberg adam-at-trachtenberg.com |nyphp 04/2004| wrote: > end up with a system that doesn't compile or is so unusable that you need to throw it away and start from scratch. > > Perhaps a more realistic example would be a system that, at deadline, still needs XXX hours of work *in order to be launched*. With XP you should be able to launch your last release at any time, since it passed testing already. From george at omniti.com Thu Jul 22 08:53:20 2004 From: george at omniti.com (George Schlossnagle) Date: Thu, 22 Jul 2004 08:53:20 -0400 Subject: [nycphp-talk] Parsing <php: possible? (on-topic) In-Reply-To: <40FF374A.1090201@jonbaer.net> References: <004101c46f8e$37bf2750$e98d3818@oberon1> <98223A18-DB8E-11D8-81E5-0003938BDF32@localnotion.com> <40FF374A.1090201@jonbaer.net> Message-ID: <1BAA87C4-DBDE-11D8-86DF-000D93359332@omniti.com> On Jul 21, 2004, at 11:40 PM, Jon Baer wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > uggg - please change the subject line LOL ... > > im still awaiting the golden egg answer of how to accomplish the <php: > parsing .. i cant even get <php> to work correctly. This is actually handled in the lexer, btw. Look for T_OPEN_TAG/T_CLOSE_TAG in zend_language_scanner.l. The actual changes you need to make there should be moderately obvious. As Dave noted, besides hacking around for your own enjoyment and education, adding alternative open tags to PHP (which would probably never be accepted into the language) just puts a huge maintenance and portability problem on you. George From jonbaer at jonbaer.net Thu Jul 22 09:42:12 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Thu, 22 Jul 2004 09:42:12 -0400 Subject: [nycphp-talk] Parsing <php: possible? (on-topic) In-Reply-To: <1BAA87C4-DBDE-11D8-86DF-000D93359332@omniti.com> References: <004101c46f8e$37bf2750$e98d3818@oberon1> <98223A18-DB8E-11D8-81E5-0003938BDF32@localnotion.com> <40FF374A.1090201@jonbaer.net> <1BAA87C4-DBDE-11D8-86DF-000D93359332@omniti.com> Message-ID: <40FFC434.1060702@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 George Schlossnagle wrote: | besides hacking around for your own enjoyment and education, adding | alternative open tags to PHP (which would probably never be accepted | into the language) just puts a huge maintenance and portability problem | on you. What? You never heard of PHP++ before? Come on ... :-) j/k - -- 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.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA/8QzQdvbi5oMr0cRAoIvAJ0eXnlUIe8xCMOwrzmS1qP3Y7QCJACfW6bG mKjs7HZSEaOvKkaSj/twUG8= =rwms -----END PGP SIGNATURE----- From LeeEyerman at aol.com Thu Jul 22 09:51:57 2004 From: LeeEyerman at aol.com (LeeEyerman at aol.com) Date: Thu, 22 Jul 2004 09:51:57 EDT Subject: [nycphp-talk] ASP .NET Job Message-ID: <dc.fce6781.2e31207d@aol.com> Hey everyone... I have a contract pending to do a big job, and at the last minute PHP/Oracle was scrapped for .NET/MSSQL. So I am looking for some good .NET Internet developers with database integration, authentication through Active Directory, and some media serving (real player, etc.) I am the lead project manager. The project will begin in mid-September and go through Jan 2005. If you're interested drop me an email, and if you a resume/links that would also be very helpful to show to my boss. Please also include your rate on a weekly or monthly basis. I would prefer local NYCers but I think I will need at least 3-4 programmers, so a couple of telecommuters could probably work. Most of the work can be done from your office/home, however we will all get together periodically for meetings and to address issues. The client is a multibillion dollar organization located in the heart of Manhattan. Also, if you happen to be a great PHP'r and .Net'r, I would really like to hear from you... that way I can tell you how I would do it in PHP and you can translate for me. :) (I am actually pretty good at .NET but after spending a couple of months in PHP, going back seems, well, ya know... (I am not the biggest fan of .NET, but their advertising must work for the big COs) Thanks Lee Eyerman -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040722/bc30c9b6/attachment.html> From jlacey at att.net Thu Jul 22 11:25:46 2004 From: jlacey at att.net (John Lacey) Date: Thu, 22 Jul 2004 09:25:46 -0600 Subject: [nycphp-talk] xdebug & apache 2 In-Reply-To: <40FEF478.2070701@sklar.com> References: <40FED72C.9090904@att.net> <40FED9DC.4090800@sklar.com> <40FEDE3B.4030905@att.net> <40FEE4FB.7090800@sklar.com> <40FEEE7E.4010006@att.net> <40FEF478.2070701@sklar.com> Message-ID: <40FFDC7A.4090707@att.net> David Sklar wrote: >> Do you see xdebug listed in phpinfo() output? (whether or not remote >> debugging is working) > rather than start a new topic: I got xdebug2 working with a remote_port change to 17869 after rebooting and reinstalling XAMPP on my notebook. Had to turn off the Zend Optimizer as I discovered xdebug cannot run with another zend extension. Also, in downloading a fresh php_xdebug.dll from win32/PECL_UNSTABLE I ran into an "API mismatch" problem, so the fresh reboot and fresh XAMPP install solved that. So, I'm running with PHP5, Apache2.0.50, xdebug2 (ver 2.0.0 dev) on a win2k pro box. Once the debugclient connected, I got to a (cmd) prompt only after setting a breakpoint to {main}, and then typing "run". Setting a file:line breakpoint didn't work for me, although a show-breakpoints said the file:line break had been set ok. I could not reach another breakpoint in my small test script even though I had set one and typed "continue" after breaking at {main}. e.g. break xdebugtest.php:5 -- and show_breakpoints indicated that breakpoint was set. Other cmds, like "eval", "step", "next" worked fine. The "list" cmd seemed a little flaky to me, but after psyching it out, e.g. "list 2 5" worked ok. Sometimes typing just "list" would not output anything as if the "list counter" didn't have anything else to display (xdebugtest script is 12 lines). Your xdebug section in the PHP Tools book helped a lot. It would be nice if xdebug(2) allowed a cmd that showed the current php IP, like "show-current". I did not find any way to set a variable, only examine it -- can you confirm this? Moving on, the only way I could get a breakpoint other than {main} to work was to add an "xdebug_break()" call in my script. That worked just fine and a "bt" showed the xdebug_break() and the {main} break. "show-local" worked as advertised, but when looking at phpinfo(), "xdebug.show_local_vars" directive was "Off". hmm..... BTW, I did find a reference to port 9000 in the DBGP docs. thanks for all your help, John From danielc at analysisandsolutions.com Thu Jul 22 11:29:22 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 22 Jul 2004 11:29:22 -0400 Subject: [nycphp-talk] can anyone recommend a good captcha? In-Reply-To: <1088009378.19948.25.camel@bezel> References: <002c01c4592d$c4973220$e98d3818@oberon1> <23644-91154@sneakemail.com> <1088009378.19948.25.camel@bezel> Message-ID: <20040722152921.GA1306@panix.com> Hi Joel: On Wed, Jun 23, 2004 at 12:49:38PM -0400, Joel De Gan wrote: > http://lucifer.intercosmos.net/mail/ > Which solves a lot of the issues I dealt with in breaking captchas on > various sites to automate singins etc. By "solves a lot of issues" do you mean those involved with having a computer doing character recognition on the image itself? I trust you're familliar with the technique of a cracker bot taking your CAPTCHA and serving it up on some other high-traffic website where some unsuspecting person enters the value which the cracker bot then submits to your site. It doesn't look like that's addressed here. Either way, can you elaborate on the steps you took? 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 joel at tagword.com Thu Jul 22 12:06:02 2004 From: joel at tagword.com (Joel De Gan) Date: Thu, 22 Jul 2004 16:06:02 +0000 Subject: [nycphp-talk] can anyone recommend a good captcha? In-Reply-To: <20040722152921.GA1306@panix.com> References: <002c01c4592d$c4973220$e98d3818@oberon1> <23644-91154@sneakemail.com> <1088009378.19948.25.camel@bezel> <20040722152921.GA1306@panix.com> Message-ID: <1090512362.22464.112.camel@bezel> Hey, Are you talking about how to keep crackbots out? or how to crack one one of these? I have done a lot of work in cracking captcha's (and have published code all over about it). The main issue here with this one is the random line(s) and the opacity. The random line (rand start/end, thus angle) often cuts through letters which is one of the biggies in captcha hacking. If the lines are vertical/horizontal/angular but always are started and ended at an edge, we can remove them easily while at the same time preserving the portions which are letters (it is a greedy system where abberations to the side limit pixel removal, it can make spots, but those can be smoothed out by despeckling). I would venture to say that the only captcha's I have not been able to bot-crack are the ones using insane angular, and or curved, specialty fonts. However, if I could find the font itself, I could build a map of them fairly quickly, so a lot of the issue is training gocr with various font files and feeding the image through. So if I have gocr trained with the font(s), basically for the angular or curved captchas you spin the image both ways 180 degrees (360 total, and no captcha expects people to flip the image upside down) keeping track of the order you find the letters and at that point a spellchecker with 'suggest-a-word' such as pspell can do the rest for the ones that use dictionary words. That being said: You "best" defense is random characters, strange intermingled (multiple)fonts that overlap each other with various opacity while at the same time being distorted and curved with random wiggly or curved lines slicing through the whole thing. However, at that point if an actual AOL user could figure it out I would be surprised. :) If you want code, poke around in the archives for this list I had a large post full of functions for doing this stuff. -joeldg On Thu, 2004-07-22 at 15:29, Daniel Convissor wrote: > By "solves a lot of issues" do you mean those involved with having a > computer doing character recognition on the image itself? > > I trust you're familliar with the technique of a cracker bot taking your > CAPTCHA and serving it up on some other high-traffic website where some > unsuspecting person enters the value which the cracker bot then submits to > your site. It doesn't look like that's addressed here. > > Either way, can you elaborate on the steps you took? > > Thanks, > > --Dan -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From sm11szw02 at sneakemail.com Thu Jul 22 12:36:44 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Thu, 22 Jul 2004 12:36:44 -0400 Subject: [nycphp-talk] xdebug & apache 2 In-Reply-To: <40FFDC7A.4090707@att.net> References: <40FED72C.9090904@att.net> <40FED9DC.4090800@sklar.com> <40FEDE3B.4030905@att.net> <40FEE4FB.7090800@sklar.com> <40FEEE7E.4010006@att.net> <40FEF478.2070701@sklar.com> <40FFDC7A.4090707@att.net> Message-ID: <29603-97665@sneakemail.com> John Lacey jlacey-at-att.net |nyphp 04/2004| wrote: > David Sklar wrote: > >>> Do you see xdebug listed in phpinfo() output? (whether or not remote >>> debugging is working) >> > rather than start a new topic: > > I got xdebug2 working with a remote_port change to 17869 after > rebooting and reinstalling XAMPP on my notebook. Had to turn off the > Zend Optimizer as I discovered xdebug cannot run with another zend > extension. Also, in downloading a fresh php_xdebug.dll from > win32/PECL_UNSTABLE I ran into an "API mismatch" problem, so the fresh > reboot and fresh XAMPP install solved that. So, I'm running with > PHP5, Apache2.0.50, xdebug2 (ver 2.0.0 dev) on a win2k pro box. > Once the debugclient connected, I got to a (cmd) prompt only after > setting a breakpoint to {main}, and then typing "run". Setting a > file:line breakpoint didn't work for me, although a show-breakpoints > said the file:line break had been set ok. I could not reach another > breakpoint in my small test script even though I had set one and typed > "continue" after breaking at {main}. e.g. break xdebugtest.php:5 -- > and show_breakpoints indicated that breakpoint was set. Other cmds, > like "eval", "step", "next" worked fine. The "list" cmd seemed a > little flaky to me, but after psyching it out, e.g. "list 2 5" worked > ok. Sometimes typing just "list" would not output anything as if the > "list counter" didn't have anything else to display (xdebugtest script > is 12 lines). Your xdebug section in the PHP Tools book helped a > lot. It would be nice if xdebug(2) allowed a cmd that showed the > current php IP, like "show-current". I did not find any way to set a > variable, only examine it -- can you confirm this? > > Moving on, the only way I could get a breakpoint other than {main} to > work was to add an "xdebug_break()" call in my script. That worked > just fine and a "bt" showed the xdebug_break() and the {main} break. > "show-local" worked as advertised, but when looking at phpinfo(), > "xdebug.show_local_vars" directive was "Off". hmm..... BTW, I did > find a reference to port 9000 in the DBGP docs. > > thanks for all your help, > John Thanks for the minutia. XDebug ackowledges incompatibility with any (other?) Zend extensions, but seems to suggest the problem may be surmountable. I wonder about that... Is there a fundamental reason why a PHP debugger could not function alongside the Zend Optimizer ? I haven't seen any profilers claim compatibility with Zend optimizer, and two that specifically state they are *not* compatible with Zend extensions (I understand there's extra work involved in making an extension compatible with other Zend extensions, and to get the order right, but wonder if itis perhaps not possible to profile with the Zend optimizer running?) http://216.239.41.104/search?q=cache:6lHvrYnSnoYJ:xdebug.org/install.php+xdebug+zend+extension&hl=en From ajai at bitblit.net Thu Jul 22 12:42:22 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 22 Jul 2004 12:42:22 -0400 Subject: [nycphp-talk] Parsing <php: possible? (on-topic) In-Reply-To: <40FFC434.1060702@jonbaer.net> References: <004101c46f8e$37bf2750$e98d3818@oberon1> <98223A18-DB8E-11D8-81E5-0003938BDF32@localnotion.com> <40FF374A.1090201@jonbaer.net> <1BAA87C4-DBDE-11D8-86DF-000D93359332@omniti.com> <40FFC434.1060702@jonbaer.net> Message-ID: <40FFEE6E.5030409@bitblit.net> Jon Baer wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > George Schlossnagle wrote: > > | besides hacking around for your own enjoyment and education, adding > | alternative open tags to PHP (which would probably never be accepted > | into the language) just puts a huge maintenance and portability problem > | on you. > > What? You never heard of PHP++ before? Come on ... Or PHP# ;-) -- Aj. Systems Administrator / Developer From jlacey at att.net Thu Jul 22 12:47:17 2004 From: jlacey at att.net (John Lacey) Date: Thu, 22 Jul 2004 10:47:17 -0600 Subject: [nycphp-talk] xdebug & apache 2 In-Reply-To: <29603-97665@sneakemail.com> References: <40FED72C.9090904@att.net> <40FED9DC.4090800@sklar.com> <40FEDE3B.4030905@att.net> <40FEE4FB.7090800@sklar.com> <40FEEE7E.4010006@att.net> <40FEF478.2070701@sklar.com> <40FFDC7A.4090707@att.net> <29603-97665@sneakemail.com> Message-ID: <40FFEF95.80207@att.net> inforequest wrote: <>Thanks for the minutia. XDebug ackowledges incompatibility with any (other?) Zend extensions, but seems to suggest the problem may be surmountable. I wonder about that... Is there a fundamental reason why a PHP debugger could not function alongside the Zend Optimizer ? from xdebug.org/install.php page: "COMPATIBILITY Xdebug does not work together with the Zend Optimizer or any other Zend extension (DBG, APC, APD etc). This is due to compatibility problems with those modules. We will be working on figuring our what the problems are, and of course try to fix those." so, it looks like it's on a TODO list... J From ajai at bitblit.net Thu Jul 22 12:45:30 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 22 Jul 2004 12:45:30 -0400 Subject: [nycphp-talk] ASP .NET Job In-Reply-To: <dc.fce6781.2e31207d@aol.com> References: <dc.fce6781.2e31207d@aol.com> Message-ID: <40FFEF2A.8060407@bitblit.net> LeeEyerman at aol.com wrote: > way I can tell you how I would do it in PHP and you can translate for > me. :) (I am actually pretty good at .NET but after spending a couple > of months in PHP, going back seems, well, ya know... (I am not the > biggest fan of .NET, but their advertising must work for the big COs) I know how you feel - I spent a year doing ASP and then when I was offered a job doing PHP I gladly jumped. I haven't done much .NET (just say nyet?) but its probably just as ugly ;-) -- Aj. Systems Administrator / Developer From LeeEyerman at aol.com Thu Jul 22 13:02:54 2004 From: LeeEyerman at aol.com (LeeEyerman at aol.com) Date: Thu, 22 Jul 2004 13:02:54 EDT Subject: [nycphp-talk] ASP .NET Job Message-ID: <1ee.25d8c738.2e314d3e@aol.com> I know what you mean, it is not like it is so hard, but made to be so complicated. The referencing the coding, it just seems overwhelming for building dynamic web pages, especially after using PHP. Whaterver... In a message dated 7/22/2004 12:49:17 PM Eastern Daylight Time, ajai at bitblit.net writes: I know how you feel - I spent a year doing ASP and then when I was offered a job doing PHP I gladly jumped. I haven't done much .NET (just say nyet?) but its probably just as ugly ;-) -- Aj. Systems Administrator / Developer -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040722/7833cd92/attachment.html> From preinheimer at gmail.com Thu Jul 22 14:48:53 2004 From: preinheimer at gmail.com (Paul Reinheimer) Date: Thu, 22 Jul 2004 14:48:53 -0400 Subject: [nycphp-talk] recurring transactions on payment gateways In-Reply-To: <D7CAF24D-D9C4-11D8-ACF0-000A95D78076@duikerbok.com> References: <A969DD4A-D994-11D8-ACF0-000A95D78076@duikerbok.com> <40FBEB97.3000808@omnistep.com> <D7CAF24D-D9C4-11D8-ACF0-000A95D78076@duikerbok.com> Message-ID: <6ec19ec7040722114833026cc7@mail.gmail.com> www.ibill.com will do this, but they are horrible. I mention them solely so that should you come across them one day, you will stay away. The entire system is backwards, changing price points involves creating a new account, you can't change the payment page, its just horrible. paul On Mon, 19 Jul 2004 16:47:26 -0400, Jose Villegas <jv_nyphp at duikerbok.com> wrote: > thanks for all the recommendations everybody! > > -jose > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From yury at heavenspa.com Thu Jul 22 14:49:56 2004 From: yury at heavenspa.com (Yury Rush) Date: Thu, 22 Jul 2004 14:49:56 -0400 Subject: [nycphp-talk] recurring transactions on payment gateways In-Reply-To: <6ec19ec7040722114833026cc7@mail.gmail.com> Message-ID: <ECEKLPHECCLGFGAFEPEJMEELCGAA.yury@heavenspa.com> Don't they also charge a high rate -- like 15%? regards yury 2checkout.com maybe? -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Paul Reinheimer Sent: Thursday, July 22, 2004 1:49 PM To: NYPHP Talk Subject: Re: [nycphp-talk] recurring transactions on payment gateways www.ibill.com will do this, but they are horrible. I mention them solely so that should you come across them one day, you will stay away. The entire system is backwards, changing price points involves creating a new account, you can't change the payment page, its just horrible. paul On Mon, 19 Jul 2004 16:47:26 -0400, Jose Villegas <jv_nyphp at duikerbok.com> wrote: > thanks for all the recommendations everybody! > > -jose > > > > _______________________________________________ > 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 Thu Jul 22 23:56:04 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Thu, 22 Jul 2004 23:56:04 -0400 Subject: [nycphp-talk] UPDATED PHundamentals - Error Handling Message-ID: <41008C54.20806@optonline.net> An updated version of the PHundamentals article - Error Handling - has been posted based on the comments and suggestions of a number of people on the "talk" list. Thank you for your contributions. See: http://phundamentals.nyphp.org/PH_error_handle.php?expiredate=8/2/2004 -------- Jeff Siegel & Michael Southwell The PHundamentals Team From dan.horning at lblogistics.com Fri Jul 23 01:11:55 2004 From: dan.horning at lblogistics.com (Dan Horning) Date: Fri, 23 Jul 2004 01:11:55 -0400 Subject: [nycphp-talk] recurring transactions on payment gateways In-Reply-To: <6ec19ec7040722114833026cc7@mail.gmail.com> Message-ID: <200407230511.i6N5Brv2019646@ms-smtp-03.nyroc.rr.com> authorizenet DOES do recurring billing if you need a merchant account you can get one at https://www.e-onlinedata.com/lightningbug/ Automated Recurring Billing Fees Setup Fee: $40.00 Monthly Fee: $20.00 Dan Horning Vice President - Lightning Bug Logistics, Inc. http://www.lblogistics.com/ 1-518-894-4155 (Direct Line) > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Paul Reinheimer > Sent: Thursday, July 22, 2004 2:49 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] recurring transactions on payment gateways > > www.ibill.com will do this, but they are horrible. > > I mention them solely so that should you come across them one day, you > will stay away. The entire system is backwards, changing price points > involves creating a new account, you can't change the payment page, > its just horrible. > > > paul > > > On Mon, 19 Jul 2004 16:47:26 -0400, Jose Villegas > <jv_nyphp at duikerbok.com> wrote: > > thanks for all the recommendations everybody! > > > > -jose > > > > > > > > _______________________________________________ > > 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 jv_nyphp at duikerbok.com Fri Jul 23 02:06:28 2004 From: jv_nyphp at duikerbok.com (Jose Villegas) Date: Fri, 23 Jul 2004 02:06:28 -0400 Subject: [nycphp-talk] recurring transactions on payment gateways In-Reply-To: <200407230511.i6N5Brv2019646@ms-smtp-03.nyroc.rr.com> References: <200407230511.i6N5Brv2019646@ms-smtp-03.nyroc.rr.com> Message-ID: <6FD121DC-DC6E-11D8-88E9-000A95D78076@duikerbok.com> That's funny, the rep guy didn't mention this when I talked to him. I'll call again, but I don't think it's what I'm looking for. I need to store a credit card number so that the customer can get charged whenever they make an order. It's not really a recurring order. I imagine authorize.net has a setup where the customer authorizes a fixed monthly payment or something like that. But I'll verify this. thanks, Jose On Jul 23, 2004, at 1:11 AM, Dan Horning wrote: > > authorizenet DOES do recurring billing > if you need a merchant account you can get one at > > https://www.e-onlinedata.com/lightningbug/ > > Automated Recurring Billing Fees > Setup Fee: $40.00 > Monthly Fee: $20.00 > > Dan Horning > Vice President - Lightning Bug Logistics, Inc. > http://www.lblogistics.com/ > 1-518-894-4155 (Direct Line) From jeff.siegel at nyphp.org Fri Jul 23 12:49:33 2004 From: jeff.siegel at nyphp.org (Jeff Siegel - PHundamentals) Date: Fri, 23 Jul 2004 12:49:33 -0400 Subject: [nycphp-talk] UPDATE Phundamentals - Error Handling (Repost of announcement) Message-ID: <4101419D.1020200@nyphp.org> An updated version of the PHundamentals article - Error Handling - has been posted based on the comments and suggestions of a number of people on the "talk" list. Thank you for your contributions. See: http://phundamentals.nyphp.org/PH_error_handle.php?expiredate=8/2/2004 -------- Jeff Siegel & Michael Southwell The PHundamentals Team From phillip.powell at adnet-sys.com Fri Jul 23 14:23:39 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Fri, 23 Jul 2004 14:23:39 -0400 Subject: [nycphp-talk] $_SESSION, session_unset(), unset($_SESSION['var']), register_globals and the PHP Manual Message-ID: <410157AB.4020305@adnet-sys.com> What do they all have in common? None of them provide for me a clear, concise methodology for unsetting a single $_SESSION variable! In my original code I have a class method that, at the end, does a "cache clear" by removing a $_SESSION variable: unset($_SESSION['mainDisplay']); This works fine in on the one server with PHP 4.3.2 with register_globals off However, on the other server with PHP 4.3.6 with register_globals on the $_SESSION variable persists anyway. On the PHP Manual I read about session_unset(), but that removes all session variables, which I clearly do not want to do with this particular class method (I only want to remove $_SESSION['mainDisplay'] and nothing more). What is the best-coding-practice method to remove a single $_SESSION variable, whether register_globals is on or off? Thanx Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From henry at beewh.com Fri Jul 23 14:33:00 2004 From: henry at beewh.com (Henry Ponce) Date: Fri, 23 Jul 2004 15:33:00 -0300 Subject: [nycphp-talk] $_SESSION, session_unset(), unset($_SESSION['var']), register_globals and the PHP Manual In-Reply-To: <410157AB.4020305@adnet-sys.com> References: <410157AB.4020305@adnet-sys.com> Message-ID: <200407231533.00655.henry@beewh.com> Phil: I've never had a problem using unset() to remove a $_SESSION variable, when register_globals is on or off. Henry From phillip.powell at adnet-sys.com Fri Jul 23 14:45:51 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Fri, 23 Jul 2004 14:45:51 -0400 Subject: [nycphp-talk] $_SESSION, session_unset(), unset($_SESSION['var']), register_globals and the PHP Manual In-Reply-To: <200407231533.00655.henry@beewh.com> References: <410157AB.4020305@adnet-sys.com> <200407231533.00655.henry@beewh.com> Message-ID: <41015CDF.8000103@adnet-sys.com> Henry Ponce wrote: >Phil: > >I've never had a problem using unset() to remove a $_SESSION variable, when >register_globals is on or off. > >Henry >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > Did this include PHP 4.3.6 as well? I was told that you cannot change the value of an autoglobal in a function or method with register_globals on and expect to retain that change upon exit, you'd have to globalize the autoglobal before you exit. unset($_SESSION); if ((int)ini_get('register_globals')) === 1) global $_SESSION; Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From phillip.powell at adnet-sys.com Fri Jul 23 14:46:11 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Fri, 23 Jul 2004 14:46:11 -0400 Subject: [nycphp-talk] $_SESSION, session_unset(), unset($_SESSION['var']), register_globals and the PHP Manual In-Reply-To: <200407231533.00655.henry@beewh.com> References: <410157AB.4020305@adnet-sys.com> <200407231533.00655.henry@beewh.com> Message-ID: <41015CF3.3050109@adnet-sys.com> Henry Ponce wrote: >Phil: > >I've never had a problem using unset() to remove a $_SESSION variable, when >register_globals is on or off. > >Henry >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > Oops I meant: unset($_SESSION['myVar']); Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From crisscott at netzero.com Fri Jul 23 14:52:27 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Fri, 23 Jul 2004 14:52:27 -0400 Subject: [nycphp-talk] $_SESSION, session_unset(), unset($_SESSION['var']), register_globals and the PHP Manual In-Reply-To: <41015CDF.8000103@adnet-sys.com> References: <410157AB.4020305@adnet-sys.com> <200407231533.00655.henry@beewh.com> <41015CDF.8000103@adnet-sys.com> Message-ID: <41015E6B.1050002@netzero.com> Phillip Powell wrote: > Did this include PHP 4.3.6 as well? > > I was told that you cannot change the value of an autoglobal in a > function or method with register_globals on and expect to retain that > change upon exit, you'd have to globalize the autoglobal before you exit. That doesn't make any sense. A global's scope is global. If your changes don't affect the variable in the global scope then it isn't a really a global is it? I have a hard time believing that in 4.3.6 a) $_SESSION is not a global and/or b) the value of register_globals has any effect on the way unset() works. I don't think that the PHP version or the state of register_globals is your problem, but you could check the change log to see what has changed between the two versions. Scott Mattocks From phillip.powell at adnet-sys.com Fri Jul 23 16:44:20 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Fri, 23 Jul 2004 16:44:20 -0400 Subject: [nycphp-talk] $_SESSION, session_unset(), unset($_SESSION['var']), register_globals and the PHP Manual In-Reply-To: <41015E6B.1050002@netzero.com> References: <410157AB.4020305@adnet-sys.com> <200407231533.00655.henry@beewh.com> <41015CDF.8000103@adnet-sys.com> <41015E6B.1050002@netzero.com> Message-ID: <410178A4.90105@adnet-sys.com> Scott Mattocks wrote: > Phillip Powell wrote: > >> Did this include PHP 4.3.6 as well? >> >> I was told that you cannot change the value of an autoglobal in a >> function or method with register_globals on and expect to retain that >> change upon exit, you'd have to globalize the autoglobal before you >> exit. > > > That doesn't make any sense. A global's scope is global. If your > changes don't affect the variable in the global scope then it isn't a > really a global is it? I have a hard time believing that in 4.3.6 a) > $_SESSION is not a global and/or b) the value of register_globals has > any effect on the way unset() works. > > I don't think that the PHP version or the state of register_globals is > your problem, but you could check the change log to see what has > changed between the two versions. I read the change logs in PHP 4.3.2 vs PHP 4.3.6 in the PHP manual and it was hard to follow. Therefore, I did a hack and it worked: [PHP] if ((int)ini_get('register_globals') === 1) ini_set('register_globals', false); session_cache_limiter(); session_start(); // REST OF CODE [/PHP] Phil > > Scott Mattocks > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From danielc at analysisandsolutions.com Fri Jul 23 17:19:02 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 23 Jul 2004 17:19:02 -0400 Subject: [nycphp-talk] $_SESSION, session_unset(), unset($_SESSION['var']), register_globals and the PHP Manual In-Reply-To: <410178A4.90105@adnet-sys.com> References: <410157AB.4020305@adnet-sys.com> <200407231533.00655.henry@beewh.com> <41015CDF.8000103@adnet-sys.com> <41015E6B.1050002@netzero.com> <410178A4.90105@adnet-sys.com> Message-ID: <20040723211902.GA9262@panix.com> <?php unset($_SESSION['Phil']); header('Location: http://www.apa.org/journals/psp/psp7761121.html'); ?> From jlacey at att.net Fri Jul 23 17:58:48 2004 From: jlacey at att.net (John Lacey) Date: Fri, 23 Jul 2004 15:58:48 -0600 Subject: [nycphp-talk] $_SESSION, session_unset(), unset($_SESSION['var']), register_globals and the PHP Manual In-Reply-To: <20040723211902.GA9262@panix.com> References: <410157AB.4020305@adnet-sys.com> <200407231533.00655.henry@beewh.com> <41015CDF.8000103@adnet-sys.com> <41015E6B.1050002@netzero.com> <410178A4.90105@adnet-sys.com> <20040723211902.GA9262@panix.com> Message-ID: <41018A18.2000907@att.net> Daniel Convissor wrote: > <?php > unset($_SESSION['Phil']); > header('Location: http://www.apa.org/journals/psp/psp7761121.html'); > ?> A little over 10 years ago after leaving McDATA Corp. here in Colorado where I worked as a [maintenance] software engineer I made a phone call to one of the company's founders. His name is Bruce Walsh, retired and playing golf now probably. Well, Bruce was one of the sharpest tech people I've ever known and I worked with him from time-to-time on some pretty hairy IBM Channel and SNA software timing problems. He wrote the channel code, the kernel, and was principal architect as well as mentor to many of the engineers. I maintained the SNA code along with LAN & WAN (SDLC) subsystems. So much for the background. What I called him about was to thank him for the times he helped me and for not making fun of the fact that I'm slow and have to struggle through information. I'm 58 years old now and I will never forget Bruce's kindness and condescension. There's a lot of sharp people on this list and I sure appreciate them. Then there's the rest of us :) John From sm11szw02 at sneakemail.com Fri Jul 23 19:10:37 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Fri, 23 Jul 2004 19:10:37 -0400 Subject: [nycphp-talk] $_SESSION, session_unset(), unset($_SESSION['var']), register_globals and the PHP Manual In-Reply-To: <41018A18.2000907@att.net> References: <410157AB.4020305@adnet-sys.com> <200407231533.00655.henry@beewh.com> <41015CDF.8000103@adnet-sys.com> <41015E6B.1050002@netzero.com> <410178A4.90105@adnet-sys.com> <20040723211902.GA9262@panix.com> <41018A18.2000907@att.net> Message-ID: <12507-10181@sneakemail.com> John Lacey jlacey-at-att.net |nyphp 04/2004| wrote: > Daniel Convissor wrote: > >> <?php >> unset($_SESSION['Phil']); >> header('Location: http://www.apa.org/journals/psp/psp7761121.html'); >> ?> > > > A little over 10 years ago after leaving McDATA Corp. here in Colorado > where I worked as a [maintenance] software engineer I made a phone > call to one of the company's founders. His name is Bruce Walsh, > retired and playing golf now probably. Well, Bruce was one of the > sharpest tech people I've ever known and I worked with him from > time-to-time on some pretty hairy IBM Channel and SNA software timing > problems. He wrote the channel code, the kernel, and was principal > architect as well as mentor to many of the engineers. I maintained > the SNA code along with LAN & > WAN (SDLC) subsystems. > So much for the background. What I called him about was to thank him > for the times he helped me and for not making fun of the fact that I'm > slow and have to struggle through information. > > I'm 58 years old now and I will never forget Bruce's kindness and > condescension. > > There's a lot of sharp people on this list and I sure appreciate them. > Then there's the rest of us :) > > John I especially like the last part of the abstract of the cited paper: "Paradoxically, improving the skills of participants, and thus increasing their metacognitive competence, helped them recognize the limitations of their abilities." In other words, the more you know, the more you know you don't know. Sounds right to me. -=john >From hans not junk at nyphp.com Sat Jul 24 18:26:34 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 13967A8633 for <talk at lists.nyphp.org>; Sat, 24 Jul 2004 18:26:34 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Sat, 24 Jul 2004 15:26:33 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] tcp/ip stack/webserver in php Date: Sat, 24 Jul 2004 15:26:30 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870334B2CE at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] tcp/ip stack/webserver in php Thread-Index: AcRtnO2ZgyJl9t+cSaCZCXxWCpA4XAEMDKDw From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 24 Jul 2004 22:26:33.0462 (UTC) FILETIME=[4648B160:01C471CD] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Sat, 24 Jul 2004 22:26:34 -0000 > ran across an interesting tidbit here: > http://www.sics.se/~adam/phpstack/ >=20 > to quote his faq... > To the best of my knowledge, nobody has been stupid enough to write a > TCP/IP stack in PHP before :-) -- a sense of humour always gets my vote >=20 > he does this in approx 600 lines of code > John >=20 > and btw -- it is php5, using 'interface', 'implements', 'private', > 'public', _construct' etc... a good learning piece especially if > network-aware apps interest you. I just saw this to, linked from the article Baer posted. Hot stuff (from a proof-of-concept and reading-good-code perspective). H From jcrawford at codebowl.com Sat Jul 24 18:35:30 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Sat, 24 Jul 2004 18:35:30 -0400 Subject: [nycphp-talk] XAMPP: Upgrading MySQL Message-ID: <1090708529.15427.2.camel@68-235-15-192.sbtnvt.adelphia.net> anyone here know how hard/easy it is to upgrade the mysql version that is pre-packed with XAMPP? they have version 4.0.20 and i would like to upgrade to 4.1 also anyone here used the SQLite extension? Is this better to use than MySQL? Joe Crawford Jr. From adam at trachtenberg.com Sat Jul 24 18:47:03 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Sat, 24 Jul 2004 18:47:03 -0400 (EDT) Subject: [nycphp-talk] XAMPP: Upgrading MySQL In-Reply-To: <1090708529.15427.2.camel@68-235-15-192.sbtnvt.adelphia.net> References: <1090708529.15427.2.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <Pine.LNX.4.58.0407241842580.891@miranda.org> On Sat, 24 Jul 2004, Joe Crawford wrote: > anyone here know how hard/easy it is to upgrade the mysql version that > is pre-packed with XAMPP? Don't know anything about XAMPP. > they have version 4.0.20 and i would like to upgrade to 4.1 This can be a tricky upgrade, as you need to either use mysqli or pass a special flag to the MySQL server to ensure the mysql extension works correctly. > also anyone here used the SQLite extension? Is this better to use than > MySQL? The are totally different beasts. SQLite is an embedded database library. MySQL is a database server. SQLite isn't a separate program, like MySQL is. This has advantages (installation, set up, speed in some instances), and disadvantages (access control, replication, speed in some instances). -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From swr1 at rcn.com Sat Jul 24 18:49:40 2004 From: swr1 at rcn.com (Steven W. Riedy) Date: Sat, 24 Jul 2004 18:49:40 -0400 Subject: [nycphp-talk] PHP Mail function code Message-ID: <002301c471d0$810cc310$6400a8c0@Beverly> Hello, Below is some code that writes input from a form to a MySQL DB. It was running fine until I added the email function seen at the end. Now this does not write to the DB, but the email is getting sent. Any ideas why? Thanks Steve (Newbie) <?php $host = 'localhost'; $user = 'xxxxxxx'; $pass = 'xxxxxxx'; $myDB = 'candles'; $connect = mysql_connect($host, $user, $pass); //insert string for first table $today = date('M d Y'); $table_name = 'logon'; //create query string to insert data into table $query = "INSERT INTO $table_name (today, fname, lname, address, city, state, zip, email, password, passCheck, passQuestion, passAnswer) VALUES ('$today', '$fname', '$lname', '$address', '$city', '$state', '$zip', '$email', '$password', '$passCheck', '$passQuestion', '$passAnswer')"; ?> (I left out all the print statements where it was printing the info back to the form) -------------------------- <?php //Print statement to verify if connection and inserts were made mysql_select_db($myDB); if (mysql_query($query, $connect)){ print "Your logon request registration was successful on $today! Your password and logon info will be emailed to you shortly"; } else { print "Your brochure request failed to register!"; } mysql_close ($connect); ?> </font> <?php //Send email to registrant advising of userid and password $body = "Registration complete: Password=$password Userid=$email Answer to Question:$passAnswer"; $from = 'candleman at rcn.com'; $subject = "Logon info for $fname $lname"; mail($email, $subject, $body, "From: $from"); ?> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040724/77aa0e48/attachment.html> From jcrawford at codebowl.com Sat Jul 24 18:50:54 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Sat, 24 Jul 2004 18:50:54 -0400 Subject: [nycphp-talk] XAMPP: Upgrading MySQL In-Reply-To: <Pine.LNX.4.58.0407241842580.891@miranda.org> References: <1090708529.15427.2.camel@68-235-15-192.sbtnvt.adelphia.net> <Pine.LNX.4.58.0407241842580.891@miranda.org> Message-ID: <1090709454.15427.4.camel@68-235-15-192.sbtnvt.adelphia.net> Adam, yes i know they are 2 different beasts ;) i was asking if anyone has used sqlite and if it was better than using mysql etc... On Sat, 2004-07-24 at 18:47, Adam Maccabee Trachtenberg wrote: > On Sat, 24 Jul 2004, Joe Crawford wrote: > > > anyone here know how hard/easy it is to upgrade the mysql version that > > is pre-packed with XAMPP? > > Don't know anything about XAMPP. > > > they have version 4.0.20 and i would like to upgrade to 4.1 > > This can be a tricky upgrade, as you need to either use mysqli or pass > a special flag to the MySQL server to ensure the mysql extension works correctly. > > > also anyone here used the SQLite extension? Is this better to use than > > MySQL? > > The are totally different beasts. SQLite is an embedded database > library. MySQL is a database server. > > SQLite isn't a separate program, like MySQL is. This has advantages > (installation, set up, speed in some instances), and disadvantages > (access control, replication, speed in some instances). > > -adam >From hans not junk at nyphp.com Sat Jul 24 18:54:45 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 5837BA8633 for <talk at lists.nyphp.org>; Sat, 24 Jul 2004 18:54:45 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Sat, 24 Jul 2004 15:54:44 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C471D1.360A6BD3" Subject: RE: [nycphp-talk] ASP .NET Job Date: Sat, 24 Jul 2004 15:54:42 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870334B2D2 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] ASP .NET Job Thread-Index: AcRv8xdXR/s6heZoTESOKhdTtj8W1gB3fbTw From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 24 Jul 2004 22:54:44.0673 (UTC) FILETIME=[36530310:01C471D1] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Sat, 24 Jul 2004 22:54:45 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C471D1.360A6BD3 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =20 =20 Please use the NYPHP-Jobs list (http://nyphp.org/lists) for job related postings. =20 Thank you (and godspeed on the .NET/MSSQL project :-) =20 H =20 =20 =20 ________________________________ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of LeeEyerman at aol.com Sent: Thursday, July 22, 2004 9:52 AM To: talk at lists.nyphp.org Subject: [nycphp-talk] ASP .NET Job =20 Hey everyone... I have a contract pending to do a big job, and at the last minute PHP/Oracle was scrapped for .NET/MSSQL. So I am looking for some good .NET Internet developers with database integration, authentication through Active Directory, and some media serving (real player, etc.) I am the lead project manager. The project will begin in mid-September and go through Jan 2005. If you're interested drop me an email, and if you a resume/links that would also be very helpful to show to my boss. Please also include your rate on a weekly or monthly basis. =20 I would prefer local NYCers but I think I will need at least 3-4 programmers, so a couple of telecommuters could probably work. Most of the work can be done from your office/home, however we will all get together periodically for meetings and to address issues. The client is a multibillion dollar organization located in the heart of Manhattan. Also, if you happen to be a great PHP'r and .Net'r, I would really like to hear from you... that way I can tell you how I would do it in PHP and you can translate for me. :) (I am actually pretty good at .NET but after spending a couple of months in PHP, going back seems, well, ya know... (I am not the biggest fan of .NET, but their advertising must work for the big COs) =20 Thanks Lee Eyerman =20 =20 ------_=_NextPart_001_01C471D1.360A6BD3 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--><o:SmartTagType namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" = name=3D"City"/> <o:SmartTagType = namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" name=3D"place"/> <!--[if !mso]> <style> st1\:*{behavior:url(#default#ieooui) } </style> <![endif]--> <style> <!-- /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-reply; font-family:Arial; color:navy;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </style> </head> <body lang=3DEN-US link=3Dblue vlink=3Dpurple id=3D"role_body" = bottomMargin=3D7 leftmargin=3D7 topmargin=3D7 rightMargin=3D7> <div class=3DSection1> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>Please use the NYPHP-Jobs list (<a href=3D"http://nyphp.org/lists">http://nyphp.org/lists</a>) for job = related postings.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>Thank you (and godspeed on the = .NET/MSSQL project </span></font><font size=3D2 color=3Dnavy face=3DWingdings><span style=3D'font-size:10.0pt;font-family:Wingdings;color:navy'>J</span></fon= t><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size:10.0pt;font-family:Arial; color:navy'><o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>H<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <div style=3D'border:none;border-left:solid blue 1.5pt;padding:0in 0in = 0in 4.0pt'> <div> <div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font = size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> <hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1> </span></font></div> <p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span = style=3D'font-size:10.0pt; font-family:Tahoma;font-weight:bold'>From:</span></font></b><font = size=3D2 face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] = <b><span style=3D'font-weight:bold'>On Behalf Of = </span></b>LeeEyerman at aol.com<br> <b><span style=3D'font-weight:bold'>Sent:</span></b> Thursday, July 22, = 2004 9:52 AM<br> <b><span style=3D'font-weight:bold'>To:</span></b> = talk at lists.nyphp.org<br> <b><span style=3D'font-weight:bold'>Subject:</span></b> [nycphp-talk] ASP = .NET Job</span></font><o:p></o:p></p> </div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'><o:p> </o:p></span></font></p> <div> <div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>Hey everyone... I have a contract = pending to do a big job, and at the last minute PHP/Oracle was scrapped for .NET/MSSQL.  So I am looking for some good .NET Internet developers = with database integration, authentication through Active Directory, and some = media serving (real player, etc.)  I am the lead project manager.  = The project will begin in mid-September and go through Jan 2005.  If = you're interested drop me an email, and if you a resume/links that would also = be very helpful to show to my boss.  Please also include your = rate on a weekly or monthly basis.<o:p></o:p></span></font></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'> <o:p></o:p></span></font></p>= </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>I would prefer local NYCers but I = think I will need at least 3-4 programmers, so a couple of telecommuters = could probably work.  Most of the work can be done from your office/home, however we will all get together periodically for meetings and to = address issues.  The client is a multibillion dollar organization located = in the heart of <st1:City w:st=3D"on"><st1:place = w:st=3D"on">Manhattan</st1:place></st1:City>.  Also, if you happen to be a great PHP'r and .Net'r, I would really like = to hear from you... that way I can tell you how I would do it in PHP and you can translate for me. :)  (I am actually pretty good at .NET but after spending a couple of months in PHP, going back seems, well, ya know... = (I am not the biggest fan of .NET, but their advertising must work for the big = <st1:place w:st=3D"on">COs</st1:place>)<o:p></o:p></span></font></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'> <o:p></o:p></span></font></p>= </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>Thanks<o:p></o:p></span></font></p>= </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>Lee = Eyerman<o:p></o:p></span></font></p> </div> </div> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'> <o:p></o:p></span></font></p>= </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'> <o:p></o:p></span></font></p>= </div> </div> </div> </body> </html> ------_=_NextPart_001_01C471D1.360A6BD3-- >From hans not junk at nyphp.com Sat Jul 24 19:23:22 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id E76CAA8633 for <talk at lists.nyphp.org>; Sat, 24 Jul 2004 19:23:21 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Sat, 24 Jul 2004 16:23:21 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C471D5.35355EC7" Subject: RE: [nycphp-talk] PHP Mail function code Date: Sat, 24 Jul 2004 16:23:18 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870334B2D8 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] PHP Mail function code Thread-Index: AcRx0IUWOg5dnOEHTVqqmpm1XZ9k0AABHpcQ From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 24 Jul 2004 23:23:21.0252 (UTC) FILETIME=[357C2E40:01C471D5] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Sat, 24 Jul 2004 23:23:22 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C471D5.35355EC7 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =20 The mail function isn't in the if-else construct, so it'll get sent no matter what. Are you getting any errors? Maybe http://php.net/mysql_error <http://nyphp.org/mysql_error> would help to let you know if there's another DB issue at hand. =20 H =20 ________________________________ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Steven W. Riedy Sent: Saturday, July 24, 2004 6:50 PM To: talk at lists.nyphp.org Subject: [nycphp-talk] PHP Mail function code =20 Hello, =20 Below is some code that writes input from a form to a MySQL DB. It was running fine until I added the email function seen at the end. Now this does not write to the DB, but the email is getting sent. Any ideas why? =20 Thanks Steve (Newbie) =20 <?php $host =3D 'localhost'; $user =3D 'xxxxxxx'; $pass =3D 'xxxxxxx'; $myDB =3D 'candles'; $connect =3D mysql_connect($host, $user, $pass); =20 //insert string for first table =20 $today =3D date('M d Y'); $table_name =3D 'logon'; =20 //create query string to insert data into table =20 $query =3D "INSERT INTO $table_name (today, fname, lname, address, city, state, zip, email, password, passCheck, passQuestion, passAnswer) VALUES ('$today', '$fname', '$lname', '$address', '$city', '$state', '$zip', '$email', '$password', '$passCheck', '$passQuestion', '$passAnswer')"; ?> =20 =20 (I left out all the print statements where it was printing the info back to the form) -------------------------- <?php //Print statement to verify if connection and inserts were made =20 mysql_select_db($myDB); if (mysql_query($query, $connect)){ print "Your logon request registration was successful on $today! Your password and logon info will be emailed to you shortly"; } else { print "Your brochure request failed to register!"; } mysql_close ($connect); ?> </font> =20 <?php =20 //Send email to registrant advising of userid and password $body =3D "Registration complete: Password=3D$password Userid=3D$email Answer to Question:$passAnswer"; $from =3D 'candleman at rcn.com'; $subject =3D "Logon info for $fname $lname"; mail($email, $subject, $body, "From: $from"); ?> =20 ------_=_NextPart_001_01C471D5.35355EC7 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--> <style> <!-- /* Font Definitions */ @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-reply; font-family:Arial; color:navy;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body bgcolor=3Dwhite lang=3DEN-US link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>The mail function isn't in the = if-else construct, so it'll get sent no matter what.  Are you getting any = errors?  Maybe <a = href=3D"http://nyphp.org/mysql_error">http://php.net/mysql_error</a> = would help to let you know if there's another DB issue at = hand.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>H<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <div style=3D'border:none;border-left:solid blue 1.5pt;padding:0in 0in = 0in 4.0pt'> <div> <div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font = size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> <hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1> </span></font></div> <p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span = style=3D'font-size:10.0pt; font-family:Tahoma;font-weight:bold'>From:</span></font></b><font = size=3D2 face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> = talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] <b><span = style=3D'font-weight:bold'>On Behalf Of </span></b>Steven W. Riedy<br> <b><span style=3D'font-weight:bold'>Sent:</span></b> Saturday, July 24, = 2004 6:50 PM<br> <b><span style=3D'font-weight:bold'>To:</span></b> = talk at lists.nyphp.org<br> <b><span style=3D'font-weight:bold'>Subject:</span></b> [nycphp-talk] PHP = Mail function code</span></font><o:p></o:p></p> </div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'><o:p> </o:p></span></font></p> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:blue'>Hello,</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'> <o:p></o:p></span></font></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:blue'>Below is some code that writes = input from a form to a MySQL DB.  It was running fine until I added the email function seen at the end.  Now this does not write to the DB, but = the email is getting sent.  Any ideas why?</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'> <o:p></o:p></span></font></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:blue'>Thanks</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:blue'>Steve</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:blue'>(Newbie)</span></font><o:p></o:p></p= > </div> <div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'> <o:p></o:p></span></font></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'><?php<o:p></o:p></span></font></= p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>$host =3D = 'localhost';<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>$user =3D = 'xxxxxxx';<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>$pass =3D = 'xxxxxxx';<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>$myDB =3D = 'candles';<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>$connect =3D mysql_connect($host, = $user, $pass);<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'> <o:p></o:p></span></font></p>= <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>//insert string for first = table<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'> <o:p></o:p></span></font></p>= <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>$today =3D date('M d = Y');<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>$table_name =3D = 'logon';<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'> <o:p></o:p></span></font></p>= <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>//create query string to insert = data into table<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'> <o:p></o:p></span></font></p>= <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>$query =3D "INSERT INTO = $table_name (today, fname, lname, address, city, state, zip, email, password, = passCheck, passQuestion, passAnswer) VALUES ('$today', '$fname', = '$lname',<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>'$address', '$city', '$state', = '$zip', '$email', '$password', '$passCheck', '$passQuestion', = '$passAnswer')";<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>?><o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'> <o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'> <o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>(I left out all the print = statements where it was printing the info back to the = form)</span></font><o:p></o:p></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>--------------------------<o:p></o:= p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'><?php<o:p></o:p></span></font></= p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>      = ;            =             &= nbsp;   //Print statement to verify if connection and inserts were = made<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'> <o:p></o:p></span></font></p>= <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>      = ;            =             &= nbsp;   mysql_select_db($myDB);<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>      = ;            =             &= nbsp;   if (mysql_query($query, $connect)){<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>      = ;            =             &= nbsp;   print "Your logon request registration was successful on $today!  = Your password and logon info will be emailed to you = shortly";<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>      = ;            =             &= nbsp;   } else {<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>      = ;            =             &= nbsp;   print "Your brochure request failed to = register!";<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>      = ;            =             &= nbsp;   } mysql_close ($connect);<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>      = ;            =             &= nbsp;   ?><o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>      = ;            =             &= nbsp;   </font><o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>      = ;            =             &= nbsp;   </span></font><o:p></o:p></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>      = ;    <?php<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>      = ;            =             &= nbsp;   </span></font><o:p></o:p></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>      = ;    //Send email to registrant advising of userid and password<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>      = ;            =             &= nbsp;   $body =3D "Registration complete: Password=3D$password Userid=3D$email Answer = to Question:$passAnswer";<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>      = ;      $from =3D = 'candleman at rcn.com';<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>      = ;            =             &= nbsp;   $subject =3D "Logon info for $fname = $lname";<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>      = ;            =             &= nbsp;   mail($email, $subject, $body, "From: $from");<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:black'>      = ;            =             &= nbsp;   ?>     </span></font><o:p></o:p></p> </div> </div> </div> </body> </html> ------_=_NextPart_001_01C471D5.35355EC7-- From adam at trachtenberg.com Sat Jul 24 19:29:41 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Sat, 24 Jul 2004 19:29:41 -0400 (EDT) Subject: [nycphp-talk] XAMPP: Upgrading MySQL In-Reply-To: <1090709454.15427.4.camel@68-235-15-192.sbtnvt.adelphia.net> References: <1090708529.15427.2.camel@68-235-15-192.sbtnvt.adelphia.net> <Pine.LNX.4.58.0407241842580.891@miranda.org> <1090709454.15427.4.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <Pine.LNX.4.58.0407241920340.891@miranda.org> On Sat, 24 Jul 2004, Joe Crawford wrote: > i was asking if anyone has used sqlite and if it was better than using > mysql etc... Okay. In that case my answer is SQLite is better than MySQL in some instances and worse in others. :) In many ways this is a somewhat vague question because you haven't qualified your question with the type of application you're trying to develop. SQLite is better: * When your application requires a database and you can't depend on one being installed. * When you have mostly read only data. * When you want triggers. * When you want typeless fields. * When you want to write custom UDFs in PHP. * When you don't want to worry about the GPL. MySQL is better: * When you have lots of reads mixed in with writes. * When you need access control, such as what's done using the GRANT command. * When you need replication. * When you want to communicate using SSL. * When you want typed fields. * When want to chose a GPL product. * When you want paid support. SQLite and MySQL both have subselects and transactions. -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From jcrawford at codebowl.com Sat Jul 24 19:33:39 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Sat, 24 Jul 2004 19:33:39 -0400 Subject: [nycphp-talk] XAMPP: Upgrading MySQL In-Reply-To: <Pine.LNX.4.58.0407241920340.891@miranda.org> References: <1090708529.15427.2.camel@68-235-15-192.sbtnvt.adelphia.net> <Pine.LNX.4.58.0407241842580.891@miranda.org> <1090709454.15427.4.camel@68-235-15-192.sbtnvt.adelphia.net> <Pine.LNX.4.58.0407241920340.891@miranda.org> Message-ID: <1090712019.15427.7.camel@68-235-15-192.sbtnvt.adelphia.net> Adam, thanks for this clarification. so if i was going to develop a 3rd party script i should use sqlite since i cannot gurantee the end user will have access to mysql, although all hosts i have seen offer mysql, i guess sqlite is only good when you dont do much writing to the database and only reading, in that case i will stick with mysql for most of my projects ;) Joe Crawford Jr. On Sat, 2004-07-24 at 19:29, Adam Maccabee Trachtenberg wrote: > On Sat, 24 Jul 2004, Joe Crawford wrote: > > > i was asking if anyone has used sqlite and if it was better than using > > mysql etc... > > Okay. In that case my answer is SQLite is better than MySQL in some > instances and worse in others. :) > > In many ways this is a somewhat vague question because you haven't > qualified your question with the type of application you're trying to > develop. > > SQLite is better: > * When your application requires a database and you can't depend on > one being installed. > * When you have mostly read only data. > * When you want triggers. > * When you want typeless fields. > * When you want to write custom UDFs in PHP. > * When you don't want to worry about the GPL. > > MySQL is better: > * When you have lots of reads mixed in with writes. > * When you need access control, such as what's done using the GRANT command. > * When you need replication. > * When you want to communicate using SSL. > * When you want typed fields. > * When want to chose a GPL product. > * When you want paid support. > > SQLite and MySQL both have subselects and transactions. > > -adam >From hans not junk at nyphp.com Sat Jul 24 19:36:38 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id ED739A8633 for <talk at lists.nyphp.org>; Sat, 24 Jul 2004 19:36:37 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Sat, 24 Jul 2004 16:36:37 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] XAMPP: Upgrading MySQL Date: Sat, 24 Jul 2004 16:36:35 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870334B2DB at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] XAMPP: Upgrading MySQL Thread-Index: AcRxzmgm/Qjgec5hR9+CUOLsJgMT1AABvJQA From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 24 Jul 2004 23:36:37.0501 (UTC) FILETIME=[101622D0:01C471D7] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Sat, 24 Jul 2004 23:36:38 -0000 > anyone here know how hard/easy it is to upgrade the mysql version that > is pre-packed with XAMPP? Not sure... certainly doable, I'd imagine, but you'd probably be getting into the realm of installing a separate MySQL instance on the box and disabling that which comes with XAMPP. > they have version 4.0.20 and i would like to upgrade to 4.1 Be careful here... there's a major difference between the two. Chances are, your code will break. MySQL 4.1.x uses a new binary protocol, and requires the http://php.net/mysqli extension to work. You can set MySQL to be backwards compatible, but then you'll miss the benefits of the binary protocol (prepared statements, no escaping, etc). > also anyone here used the SQLite extension? Is this better to use than > MySQL? It really depends what you need. In a word (and disclaimer: I work for MySQL :) SQLite isn't a RDBMS. It's strictly a local file-system based SQL system; it's truly a SQL enabled file system. MySQL allows users to connect remotely, has much more functionality, and is much faster as load scales up. If your application has any significant load, especially that of write-queries, you should go with MySQL. MySQL is also very common on hosting platforms (more so than SQLite). H From jcrawford at codebowl.com Sat Jul 24 19:40:52 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Sat, 24 Jul 2004 19:40:52 -0400 Subject: [nycphp-talk] XAMPP: Upgrading MySQL In-Reply-To: <41EE526EC2D3C74286415780D3BA9F870334B2DB@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F870334B2DB@ehost011-1.exch011.intermedia.net> Message-ID: <1090712451.15427.9.camel@68-235-15-192.sbtnvt.adelphia.net> Hans, thanks for this information. i have noticed there are some people on this list that work for reputable companies, maybe one day i will be there ;) Joe Crawford Jr. On Sat, 2004-07-24 at 19:36, Hans Zaunere wrote: > > anyone here know how hard/easy it is to upgrade the mysql version that > > is pre-packed with XAMPP? > > Not sure... certainly doable, I'd imagine, but you'd probably be getting > into the realm of installing a separate MySQL instance on the box and > disabling that which comes with XAMPP. > > > they have version 4.0.20 and i would like to upgrade to 4.1 > > Be careful here... there's a major difference between the two. Chances > are, your code will break. > > MySQL 4.1.x uses a new binary protocol, and requires the > http://php.net/mysqli extension to work. You can set MySQL to be > backwards compatible, but then you'll miss the benefits of the binary > protocol (prepared statements, no escaping, etc). > > > also anyone here used the SQLite extension? Is this better to use > than > > MySQL? > > It really depends what you need. In a word (and disclaimer: I work for > MySQL :) SQLite isn't a RDBMS. It's strictly a local file-system based > SQL system; it's truly a SQL enabled file system. MySQL allows users to > connect remotely, has much more functionality, and is much faster as > load scales up. If your application has any significant load, > especially that of write-queries, you should go with MySQL. MySQL is > also very common on hosting platforms (more so than SQLite). > > H > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > >From hans not junk at nyphp.com Sat Jul 24 19:43:02 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 40942A8633 for <talk at lists.nyphp.org>; Sat, 24 Jul 2004 19:43:02 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Sat, 24 Jul 2004 16:43:01 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] $_SESSION, session_unset(), unset($_SESSION['var']), register_globals and the PHP Manual Date: Sat, 24 Jul 2004 16:42:59 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870334B2DD at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] $_SESSION, session_unset(), unset($_SESSION['var']), register_globals and the PHP Manual Thread-Index: AcRw+rKV3QO12duYQwCMg02VaPvUUwA3IbmA From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 24 Jul 2004 23:43:01.0730 (UTC) FILETIME=[F51AD420:01C471D7] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Sat, 24 Jul 2004 23:43:02 -0000 > <?php > unset($_SESSION['Phil']); > header('Location: http://www.apa.org/journals/psp/psp7761121.html'); > ?> That should have been: <?php unset($_SESSION['Phil']); header('Location: http://php.net/session'); ?> Let's keep it clean From jlacey at att.net Sat Jul 24 19:55:34 2004 From: jlacey at att.net (John Lacey) Date: Sat, 24 Jul 2004 17:55:34 -0600 Subject: [nycphp-talk] XAMPP: Upgrading MySQL In-Reply-To: <41EE526EC2D3C74286415780D3BA9F870334B2DB@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F870334B2DB@ehost011-1.exch011.intermedia.net> Message-ID: <4102F6F6.7080305@att.net> Hans Zaunere wrote: >>anyone here know how hard/easy it is to upgrade the mysql version that >>is pre-packed with XAMPP? > > > Not sure... certainly doable, I'd imagine, but you'd probably be getting > into the realm of installing a separate MySQL instance on the box and > disabling that which comes with XAMPP. I've done exactly this on a number of occasions, but switching to 4.1 wasn't one of them :) > > >>they have version 4.0.20 and i would like to upgrade to 4.1 > > > Be careful here... there's a major difference between the two. Chances > are, your code will break. > > MySQL 4.1.x uses a new binary protocol, and requires the > http://php.net/mysqli extension to work. You can set MySQL to be > backwards compatible, but then you'll miss the benefits of the binary > protocol (prepared statements, no escaping, etc). > > >>also anyone here used the SQLite extension? Is this better to use > Yeah, what Adam and Hans said... Here's a few snippets from a program that I added SQLite support to--you can compare some of the statements. For example, there is no 'fetch_object' in SQLite so I had to CAST it to an object before I could use it, etc. // this function only used for escape in uploaded images function escape_data($data, $size = 0) { switch ($this->db_type) { case 'mysql': $escaped_data = addslashes($data); break; case 'sqlite': $escaped_data = sqlite_escape_string($data); break; } return $escaped_data; } // here's the CAST I mentioned above function fetch_object($result, $row = '0') { switch ($this->db_type) { case 'mysql': return mysql_fetch_object($result); case 'sqlite': if (sqlite_has_more($result)) { return (object)sqlite_fetch_array($result, SQLITE_ASSOC); } else { return FALSE; } } } // and a piece of some error code function sql_error($query = FALSE) { global $admin_email; switch ($this->db_type) { case 'mysql': $this->sql_error_number = mysql_errno($this->link_id); $this->sql_error_name = mysql_error($this->link_id); break; case 'sqlite': $this->sql_error_name=sqlite_error_string(sqlite_last_error($this->link_id)); break; } {Adjusted a few indents to not wrap the code} John From sm11szw02 at sneakemail.com Sat Jul 24 20:00:54 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Sat, 24 Jul 2004 20:00:54 -0400 Subject: [nycphp-talk] XAMPP: Upgrading MySQL In-Reply-To: <41EE526EC2D3C74286415780D3BA9F870334B2DB@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F870334B2DB@ehost011-1.exch011.intermedia.net> Message-ID: <24165-89166@sneakemail.com> Hans Zaunere hans-at-nyphp.com |nyphp 04/2004| wrote: >>anyone here know how hard/easy it is to upgrade the mysql version that >>is pre-packed with XAMPP? >> >> > >Not sure... certainly doable, I'd imagine, but you'd probably be getting >into the realm of installing a separate MySQL instance on the box and >disabling that which comes with XAMPP. > > > >>they have version 4.0.20 and i would like to upgrade to 4.1 >> >> > >Be careful here... there's a major difference between the two. Chances >are, your code will break. > >MySQL 4.1.x uses a new binary protocol, and requires the >http://php.net/mysqli extension to work. You can set MySQL to be >backwards compatible, but then you'll miss the benefits of the binary >protocol (prepared statements, no escaping, etc). > > Of course this means don't just mysqlhotcopy or mysqldump a working app and expect to import back into 4.1 after the upgrade (doh!). Unless you like major headaches under pressure. (it needed to be said.... ) -=john From LeeEyerman at aol.com Sat Jul 24 20:39:04 2004 From: LeeEyerman at aol.com (LeeEyerman at aol.com) Date: Sat, 24 Jul 2004 20:39:04 EDT Subject: [nycphp-talk] PHP Mail function code Message-ID: <1f0.26110344.2e345b28@aol.com> I believe in order to put the from information, you need to build the Headers properly before sending using the mail command. I.e.. Usually I will use $FromName and pass it to the $headers along with other stuff. I just keep .= the $headers and send them with the mail command. See below. $headers="From: ".$FromName." <".$FromName.">\n"; mail ($email, $subject, $message, $headers); I have always built complex headers for emails out of PHP for a bunch of reasons. I never saw this before: mail($email, $subject, $body, "From: $from"); I don't think you can just stick the From at the end - I am pretty sure I went down this exact path about a year ago - but who can remember. Good info on email headers and building them: _http://www.expita.com/header1.html_ (http://www.expita.com/header1.html) Lee In a message dated 7/24/2004 7:23:49 PM Eastern Daylight Time, hans not junk at nyphp.com writes: The mail function isn't in the if-else construct, so it'll get sent no matter what. Are you getting any errors? Maybe _http://php.net/mysql_error_ (http://nyphp.org/mysql_error) would help to let you know if there's another DB issue at hand. H ____________________________________ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Steven W. Riedy Sent: Saturday, July 24, 2004 6:50 PM To: talk at lists.nyphp.org Subject: [nycphp-talk] PHP Mail function code Hello, Below is some code that writes input from a form to a MySQL DB. It was running fine until I added the email function seen at the end. Now this does not write to the DB, but the email is getting sent. Any ideas why? Thanks Steve (Newbie) <?php $host = 'localhost'; $user = 'xxxxxxx'; $pass = 'xxxxxxx'; $myDB = 'candles'; $connect = mysql_connect($host, $user, $pass); //insert string for first table $today = date('M d Y'); $table_name = 'logon'; //create query string to insert data into table $query = "INSERT INTO $table_name (today, fname, lname, address, city, state, zip, email, password, passCheck, passQuestion, passAnswer) VALUES ('$today', '$fname', '$lname', '$address', '$city', '$state', '$zip', '$email', '$password', '$passCheck', '$passQuestion', '$passAnswer')"; ?> (I left out all the print statements where it was printing the info back to the form) -------------------------- <?php //Print statement to verify if connection and inserts were made mysql_select_db($myDB); if (mysql_query($query, $connect)){ print "Your logon request registration was successful on $today! Your password and logon info will be emailed to you shortly"; } else { print "Your brochure request failed to register!"; } mysql_close ($connect); ?> </font> <?php //Send email to registrant advising of userid and password $body = "Registration complete: Password=$password Userid=$email Answer to Question:$passAnswer"; $from = 'candleman at rcn.com'; $subject = "Logon info for $fname $lname"; mail($email, $subject, $body, "From: $from"); ?> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040724/ddd14139/attachment.html> From adam at trachtenberg.com Sat Jul 24 20:52:21 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Sat, 24 Jul 2004 20:52:21 -0400 (EDT) Subject: [nycphp-talk] XAMPP: Upgrading MySQL In-Reply-To: <1090712019.15427.7.camel@68-235-15-192.sbtnvt.adelphia.net> References: <1090708529.15427.2.camel@68-235-15-192.sbtnvt.adelphia.net> <Pine.LNX.4.58.0407241842580.891@miranda.org> <1090709454.15427.4.camel@68-235-15-192.sbtnvt.adelphia.net> <Pine.LNX.4.58.0407241920340.891@miranda.org> <1090712019.15427.7.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <Pine.LNX.4.58.0407242038500.891@miranda.org> On Sat, 24 Jul 2004, Joe Crawford wrote: > so if i was going to develop a 3rd party script i should use sqlite > since i cannot gurantee the end user will have access to mysql, although > all hosts i have seen offer mysql, i guess sqlite is only good when you > dont do much writing to the database and only reading, in that case i > will stick with mysql for most of my projects ;) Alternatively, you could use PEAR DB or a similar abstraction layer. Daniel took over ownership of PEAR DB so his product could reliably use whatever database his customers were using, whether it was MySQL, Oracle, or whatever. Also note that SQLite should be available on every PHP 5 installation. The library is bundled with PHP 5 and the extension is enabled by default, so you need to go out of your way to not have it. :) In response to Hans's reply, I generally agree with most of what he said. However, my one minor nit-pick is that as long as your traffic is read-only (or largely reads, with occasional writes), SQLite may be a better choice regardless of your traffic volume. For instance, php.net uses SQLite to power the "Notes" section of the PHP Manual. I would say php.net probably has more traffic than your usual Web site. Additionally, SQLite 3.0 (now in beta) should be even better in this regard as it reduces its locking window during writes. (According to the SQLite Web site; I haven't actually run SQLite 3.0 personally.) Also, as I said earlier, you can bundle SQLite with a product without paying any fees. While I know MySQL, AB now has a FOSS exemption to its GPL license, I don't believe you can sell a commercial application that uses MySQL 4.1 or greater as its backend without buying a commercial license from MySQL, AB. Actually, I think the issue is somewhat vague, as the current position seems to depend on whether MySQL is an integral part of your application. I'm sure if I am wrong, Hans (or Zak) will correct me. I'm not trying to spread any FUD here, but I want to let people know that there have been some licensing changes in newer versions of MySQL that could affect them and it's something they need to consider. -adam -- adam at trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From shiflett at php.net Sat Jul 24 21:38:51 2004 From: shiflett at php.net (Chris Shiflett) Date: Sat, 24 Jul 2004 18:38:51 -0700 (PDT) Subject: [nycphp-talk] $_SESSION, session_unset(), unset($_SESSION['var']), register_globals and the PHP Manual In-Reply-To: <41EE526EC2D3C74286415780D3BA9F870334B2DD@ehost011-1.exch011.intermedia.net> Message-ID: <20040725013852.70467.qmail@web52805.mail.yahoo.com> --- Hans Zaunere <hans not junk at nyphp.com> wrote: > That should have been: > > <?php > unset($_SESSION['Phil']); > header('Location: http://php.net/session'); > ?> > > Let's keep it clean <?php unset($_SESSION['Phil']); header('Location: http://www.php.net/soap'); ?> 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 jcrawford at codebowl.com Sat Jul 24 22:51:39 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Sat, 24 Jul 2004 22:51:39 -0400 Subject: [nycphp-talk] XAMPP: Upgrading MySQL In-Reply-To: <Pine.LNX.4.58.0407242038500.891@miranda.org> References: <1090708529.15427.2.camel@68-235-15-192.sbtnvt.adelphia.net> <Pine.LNX.4.58.0407241842580.891@miranda.org> <1090709454.15427.4.camel@68-235-15-192.sbtnvt.adelphia.net> <Pine.LNX.4.58.0407241920340.891@miranda.org> <1090712019.15427.7.camel@68-235-15-192.sbtnvt.adelphia.net> <Pine.LNX.4.58.0407242038500.891@miranda.org> Message-ID: <1090723899.16882.0.camel@68-235-15-192.sbtnvt.adelphia.net> well now that is going to put a damper on things like vbulletin, hivemail, etc... mysql started free, it should remain free ;) Joe Crawford Jr. On Sat, 2004-07-24 at 20:52, Adam Maccabee Trachtenberg wrote: > On Sat, 24 Jul 2004, Joe Crawford wrote: > > > so if i was going to develop a 3rd party script i should use sqlite > > since i cannot gurantee the end user will have access to mysql, although > > all hosts i have seen offer mysql, i guess sqlite is only good when you > > dont do much writing to the database and only reading, in that case i > > will stick with mysql for most of my projects ;) > > Alternatively, you could use PEAR DB or a similar abstraction > layer. Daniel took over ownership of PEAR DB so his product could > reliably use whatever database his customers were using, whether it > was MySQL, Oracle, or whatever. > > Also note that SQLite should be available on every PHP 5 > installation. The library is bundled with PHP 5 and the extension is > enabled by default, so you need to go out of your way to not have > it. :) > > In response to Hans's reply, I generally agree with most of what he > said. However, my one minor nit-pick is that as long as your traffic > is read-only (or largely reads, with occasional writes), SQLite may be > a better choice regardless of your traffic volume. > > For instance, php.net uses SQLite to power the "Notes" section of the > PHP Manual. I would say php.net probably has more traffic than your > usual Web site. Additionally, SQLite 3.0 (now in beta) should be even > better in this regard as it reduces its locking window during > writes. (According to the SQLite Web site; I haven't actually run > SQLite 3.0 personally.) > > Also, as I said earlier, you can bundle SQLite with a product without > paying any fees. While I know MySQL, AB now has a FOSS exemption to > its GPL license, I don't believe you can sell a commercial application > that uses MySQL 4.1 or greater as its backend without buying a > commercial license from MySQL, AB. > > Actually, I think the issue is somewhat vague, as the current position > seems to depend on whether MySQL is an integral part of your > application. > > I'm sure if I am wrong, Hans (or Zak) will correct me. I'm not trying > to spread any FUD here, but I want to let people know that there have > been some licensing changes in newer versions of MySQL that could > affect them and it's something they need to consider. > > -adam From danielc at analysisandsolutions.com Sun Jul 25 00:20:01 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sun, 25 Jul 2004 00:20:01 -0400 Subject: [nycphp-talk] $_SESSION, session_unset(), unset($_SESSION['var']), register_globals and the PHP Manual In-Reply-To: <20040725013852.70467.qmail@web52805.mail.yahoo.com> References: <41EE526EC2D3C74286415780D3BA9F870334B2DD@ehost011-1.exch011.intermedia.net> <20040725013852.70467.qmail@web52805.mail.yahoo.com> Message-ID: <20040725042001.GA10970@panix.com> On Sat, Jul 24, 2004 at 06:38:51PM -0700, Chris Shiflett wrote: > --- Hans Zaunere <hans not junk at nyphp.com> wrote: > > Let's keep it clean > header('Location: http://www.php.net/soap'); HAAAH! Thank you Chris! --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 Sun Jul 25 14:37:14 2004 From: jlacey at att.net (John Lacey) Date: Sun, 25 Jul 2004 12:37:14 -0600 Subject: [nycphp-talk] sqlite usage Message-ID: <4103FDDA.3020302@att.net> Don't know if you've run across this, but here's info on when to use SQLite from the author's website: http://www.sqlite.org/cvstrac/wiki?p=WhenToUseSqlite John From jcrawford at codebowl.com Sun Jul 25 18:28:39 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Sun, 25 Jul 2004 18:28:39 -0400 Subject: [nycphp-talk] sqlite usage In-Reply-To: <4103FDDA.3020302@att.net> References: <4103FDDA.3020302@att.net> Message-ID: <1090794519.31858.2.camel@68-235-15-192.sbtnvt.adelphia.net> thanks for this information ;) Joe Crawford Jr. On Sun, 2004-07-25 at 14:37, John Lacey wrote: > Don't know if you've run across this, but here's info on when to use > SQLite from the author's website: > > http://www.sqlite.org/cvstrac/wiki?p=WhenToUseSqlite > > John > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > >From hans not junk at nyphp.com Sun Jul 25 19:24:32 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 6EBA5A8636 for <talk at lists.nyphp.org>; Sun, 25 Jul 2004 19:24:32 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Sun, 25 Jul 2004 16:24:31 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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, 25 Jul 2004 16:24:29 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870334B379 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Python SIG Created at New York PHP Thread-Index: AcRynoP3ujVN0i/ERbKMk9OyI7VOaQ== From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 25 Jul 2004 23:24:31.0852 (UTC) FILETIME=[89FAA2C0:01C4729E] Subject: [nycphp-talk] Python SIG Created at New York PHP X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Sun, 25 Jul 2004 23:24:32 -0000 In light of some recent discussion about a Python user group in NY, I talked with some folks about getting something going for Python programmers. Since Python is part of the LAMP stack, we've created a Python SIG at New York PHP. http://nyphp.org/content/mailinglist/mlist.php http://lists.nyphp.org/mailman/listinfo/python It's not a full blown user group, but it's a start. Anyone is of course welcome to join and discuss. Also, anyone is welcome to contact me to get involved in organizing the SIG and events. New York PHP will help however it can with resources, servers, etc. --- Hans Zaunere President New York PHP http://nyphp.org From jlacey at att.net Sun Jul 25 21:12:03 2004 From: jlacey at att.net (John Lacey) Date: Sun, 25 Jul 2004 19:12:03 -0600 Subject: [nycphp-talk] Python SIG Created at New York PHP In-Reply-To: <41EE526EC2D3C74286415780D3BA9F870334B379@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F870334B379@ehost011-1.exch011.intermedia.net> Message-ID: <41045A63.5080608@att.net> Hans Zaunere wrote: > In light of some recent discussion about a Python user group in NY, I > talked with some folks about getting something going for Python > programmers. and...if anyone wants a quickie python set up to play with, XAMPP has a python addon too: http://www.apachefriends.org/en/xampp-windows.html John >From hans not junk at nyphp.com Mon Jul 26 13:02:46 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 2BA65A87FE for <talk at lists.nyphp.org>; Mon, 26 Jul 2004 13:02:46 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Mon, 26 Jul 2004 10:02:45 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] XAMPP: Upgrading MySQL Date: Mon, 26 Jul 2004 10:02:26 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8703441996 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] XAMPP: Upgrading MySQL Thread-Index: AcRx4aljqrlL2QMZSuy5M0eJkVKo+ABS1eig From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 26 Jul 2004 17:02:45.0525 (UTC) FILETIME=[5F284450:01C47332] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Mon, 26 Jul 2004 17:02:46 -0000 **puts on the MySQL hat** > Also, as I said earlier, you can bundle SQLite with a product without > paying any fees. While I know MySQL, AB now has a FOSS exemption to > its GPL license, I don't believe you can sell a commercial application > that uses MySQL 4.1 or greater as its backend without buying a > commercial license from MySQL, AB. Selling a commercial app that uses MySQL is no problem. However, to distribute MySQL itself, a license or participation in the VAR program is required. This is true for both client libs and the server itself. The exception to this is if the application is GPL. If the application is publicly released under the GPL, then the GPL version of MySQL can be distributed with it. This, however, isn't generally an issue, since most applications don't bundle a database. > Actually, I think the issue is somewhat vague, as the current position > seems to depend on whether MySQL is an integral part of your > application. It comes down to whether you include any MySQL code with your application or not. If MySQL client or server parts aren't included, then there are no licensing fees. However, the end user of your application - assuming it's not GPL - will need a commercial MySQL server license. > I'm sure if I am wrong, Hans (or Zak) will correct me. I'm not trying > to spread any FUD here, but I want to let people know that there have > been some licensing changes in newer versions of MySQL that could > affect them and it's something they need to consider. At the end of the day, MySQL is released under two licenses; the GPL and our commercial license. We basically work in a "quid-pro-quo" methodology. That is, if you write an application that isn't GPL, want to distribute client or server parts of MySQL, or otherwise make money from MySQL's code in a non-GPL manner, the commercial license must be used. http://www.mysql.com/products/licensing/ We protect open source development and bundling MySQL with open source projects, like PHP. This is protected by the FOSS exception. http://www.mysql.com/products/licensing/foss-exception.html --- Hans Zaunere, Sales Engineer MySQL, Inc. www.mysql.com Office: +1 212.213.1131 Are you MySQL certified? www.mysql.com/certification From mitchy at spacemonkeylabs.com Mon Jul 26 13:48:48 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Mon, 26 Jul 2004 13:48:48 -0400 Subject: [nycphp-talk] XAMPP: Upgrading MySQL In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8703441996@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8703441996@ehost011-1.exch011.intermedia.net> Message-ID: <41054400.6060306@spacemonkeylabs.com> Hans Zaunere wrote: > Selling a commercial app that uses MySQL is no problem. However, to > >distribute MySQL itself, a license or participation in the VAR program >is required. This is true for both client libs and the server itself. > >The exception to this is if the application is GPL. If the application >is publicly released under the GPL, then the GPL version of MySQL can be >distributed with it. This, however, isn't generally an issue, since >most applications don't bundle a database. > > This is what concerns me long term, as apps that appear open source on the surface are actually some sort of hybrid shareware/proprietary mix. Not to sound like Stallman, but if it ain't GPL/LGPL, then it ain't Open Source(TM). And if it ain't really free (as in free speech, not just free beer) then it should not try to appear like it is. This may not be MySQL's fault, but is definitely a critical factor that businesses wishing to leverage open source technologies should be aware of. If I feel like writing my own CMS, and at the end (say, a year later) decide to sell it - then I am now at the mercy of MySQL's licensing scheme instead of my own. That's not freedom. And if someone sells a commercial product that requires your application, then you should have an opportunity for paid support as a result. Why complicate licensing when the revenue would be better on the support side? And although I am a PostgreSQL bigot, this is not a dig at MySQL - many other 'open source-like' projects are also taking this disturbing stance. -- Mitch From sm11szw02 at sneakemail.com Mon Jul 26 14:32:15 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Mon, 26 Jul 2004 14:32:15 -0400 Subject: [nycphp-talk] XAMPP: Upgrading MySQL In-Reply-To: <41054400.6060306@spacemonkeylabs.com> References: <41EE526EC2D3C74286415780D3BA9F8703441996@ehost011-1.exch011.intermedia.net> <41054400.6060306@spacemonkeylabs.com> Message-ID: <10075-42585@sneakemail.com> Mitch Pirtle mitchy-at-spacemonkeylabs.com |nyphp 04/2004| wrote: > Hans Zaunere wrote: > >> Selling a commercial app that uses MySQL is no problem. However, to >> >> distribute MySQL itself, a license or participation in the VAR program >> is required. This is true for both client libs and the server itself. >> >> The exception to this is if the application is GPL. If the application >> is publicly released under the GPL, then the GPL version of MySQL can be >> distributed with it. This, however, isn't generally an issue, since >> most applications don't bundle a database. > > This is what concerns me long term, as apps that appear open source on > the surface are actually some sort of hybrid shareware/proprietary mix. > > Not to sound like Stallman, but if it ain't GPL/LGPL, then it ain't > Open Source(TM). And if it ain't really free (as in free speech, not > just free beer) then it should not try to appear like it is. This may > not be MySQL's fault, but is definitely a critical factor that > businesses wishing to leverage open source technologies should be > aware of. > > If I feel like writing my own CMS, and at the end (say, a year later) > decide to sell it - then I am now at the mercy of MySQL's licensing > scheme instead of my own. That's not freedom. And if someone sells a > commercial product that requires your application, then you should > have an opportunity for paid support as a result. Why complicate > licensing when the revenue would be better on the support side? > > And although I am a PostgreSQL bigot, this is not a dig at MySQL - > many other 'open source-like' projects are also taking this disturbing > stance. > > -- Mitch In my view everyone should understand the free-beer vs free-software argument. It is core to the future of open source technologies and the benefits we have all enjoyed. Free beer is not free - it is given to you so you will enjoy the beer and buy more beer and more beer. It is given to you so you will relax, and be more easily influenced. It has a catch, a hook, an ulterior objective. That is free-as-in-beer, free-as-in-cigarettes, etc. Free-as-in-speech is intended to mean truly free of further obligation or risk. Of course I can't say it as well as others, but others aren't explaining it here ;-) Were it not for Open Source technologies (like PHP) training would be an even larger business than it is, and you all would need very large budgets in order to be so productive and innovative as you are. You would not enjoy such freedom from supervision and management as you have now - I suspect that if you are younger than 30 years old you may not have a grasp of this. Open Source has created a whole new world of maverick technologists innovating.... the traditional business world hates that. It's upsetting. It's "disruptive". It takes profits away from the owners. I would add that from what I have seen, Microsoft can stop fighting and wait for the OS world to complicate itself out of its competitive advantage. We are past the point where the average business person can feel comfortable with OS licensing. The case for proprietary software has just about returned from the value, performance, and innovation space, and is settling back into the "nobody ever got fired for buying" space (substitute "sued" for "fired"). Corporate limited liability is a powerful thing - safer means better, in many cases. Once that shift starts happening, how do OS companies hedge their bets to protect their futures? By preparing for the proprietary commercial space (however distasteful it might be). Can they do that with free-as-in-beer licenses? Nope. -=john ------------------------- John Andrews, free-as-in-self-employed. From danielc at analysisandsolutions.com Mon Jul 26 16:06:32 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Mon, 26 Jul 2004 16:06:32 -0400 Subject: [nycphp-talk] security focus 258 Message-ID: <20040726200632.GA23443@panix.com> SecurityFocus Newsletter #258 PHP Strip_Tags() Function Bypass Vulnerability http://www.securityfocus.com/bid/10724 [This report is a bit weird. First, there is mention in the that "Avaya has released an updated advisory that acknowledges this vulnerability for Avaya products." Second, I don't see this happening on my installations.] PHP memory_limit Remote Code Execution Vulnerability http://www.securityfocus.com/bid/10725 Moodle Help Script Cross Site Scripting Vulnerability http://www.securityfocus.com/bid/10718 PHPBB Multiple Unspecified SQL Injection Vulnerabilities http://www.securityfocus.com/bid/10722 Apache Mod_SSL Log Function Format String Vulnerability http://www.securityfocus.com/bid/10736 PHPBB Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/10738 Multiple PHPNuke SQL Injection And Cross-Site Scripting Vuln... http://www.securityfocus.com/bid/10741 -- 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 suzerain at suzerain.com Mon Jul 26 17:57:45 2004 From: suzerain at suzerain.com (Marc Antony Vose) Date: Mon, 26 Jul 2004 17:57:45 -0400 Subject: [nycphp-talk] phantom file writing errors In-Reply-To: <10075-42585@sneakemail.com> References: <41EE526EC2D3C74286415780D3BA9F8703441996@ehost011-1.exch011.intermedia.ne t> <41054400.6060306@spacemonkeylabs.com> <10075-42585@sneakemail.com> Message-ID: <p06110401bd2b2d66a55f@[192.168.1.44]> Hi there: Can anyone tell my why I would get this error: Warning: fwrite(): supplied argument is not a valid stream resource in Warning: fclose(): supplied argument is not a valid stream resource in when the script is in fact opening and writing out the file just fine? here's my file handling calls, just for reference: // output the file $output_h = fopen($output_path,"w"); fwrite($output_h,$output); fclose($output_h); This is happening on a new server I just moved to, and doesn't happen on my old server, nor did it happen on my old server. Must be some kind of configuration thing... -- Marc Antony Vose http://www.suzerain.com/ They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040726/96b64176/attachment.html> From phillip.powell at adnet-sys.com Mon Jul 26 18:04:31 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Mon, 26 Jul 2004 18:04:31 -0400 Subject: [nycphp-talk] phantom file writing errors In-Reply-To: <p06110401bd2b2d66a55f@[192.168.1.44]> References: <41EE526EC2D3C74286415780D3BA9F8703441996@ehost011-1.exch011.intermedia.ne t> <41054400.6060306@spacemonkeylabs.com> <10075-42585@sneakemail.com> <p06110401bd2b2d66a55f@[192.168.1.44]> Message-ID: <41057FEF.90509@adnet-sys.com> Marc Antony Vose wrote: > Hi there: > > Can anyone tell my why I would get this error: > > Warning: fwrite(): supplied argument is not a valid stream resource in > Warning: fclose(): supplied argument is not a valid stream resource in > when the script is in fact opening and writing out the file just fine? > > here's my file handling calls, just for reference: > > // output the file > $output_h = fopen($output_path,"w"); > fwrite($output_h,$output); > fclose($output_h); From the outset it might be due to a permissions issue. If PHP (under your web server) has no permissions to open the file, that would throw your error. Check your file permissions as well as the group setting, and make sure Apache (or whatever web server you're using) has the same rights to that file as you (or whatever user). Phil > > > This is happening on a new server I just moved to, and doesn't happen > on my old server, nor did it happen on my old server. Must be some > kind of configuration thing... > >-- > > > Marc Antony Vose > http://www.suzerain.com/ > > They that can give up essential liberty to obtain a little temporary > safety deserve neither liberty nor safety. > -- Benjamin Franklin > >------------------------------------------------------------------------ > >_______________________________________________ >New York PHP Talk >Supporting AMP Technology (Apache/MySQL/PHP) >http://lists.nyphp.org/mailman/listinfo/talk >http://www.newyorkphp.org > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From tgales at tgaconnect.com Mon Jul 26 18:54:46 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Mon, 26 Jul 2004 18:54:46 -0400 Subject: [nycphp-talk] phantom file writing errors In-Reply-To: <p06110401bd2b2d66a55f@[192.168.1.44]> Message-ID: <000701c47363$8c8bdf70$e98d3818@oberon1> Marc Antony Vose writes: Can anyone tell my why I would get this error: Warning: fwrite(): supplied argument is not a valid stream resource in Warning: fclose(): supplied argument is not a valid stream resource in when the script is in fact opening and writing out the file just fine? Are you %100 certain about the file being written to? Hou did you assign the variable $output_h? The code was: // output the file $output_h = fopen($output_path,"w"); fwrite($output_h,$output); fclose($output_h); If you assign the variable $output_path like thie: $output_path = 'test.txt'; the code snippet will work. You can use is_resource($output_h) to make certain the resource got created. Perhaps you misspelled the variable name $output_path -- Try $Output_path = 'test.txt'; and compare the results. (sorry if you are asking a different question -- i.e. how can the fwrite function work when it is not being passed a vaild (file handle) resource -- I don't see how that could work) T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From jcrawford at codebowl.com Mon Jul 26 23:04:20 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Mon, 26 Jul 2004 23:04:20 -0400 Subject: [nycphp-talk] Python SIG Created at New York PHP In-Reply-To: <41045A63.5080608@att.net> References: <41EE526EC2D3C74286415780D3BA9F870334B379@ehost011-1.exch011.intermedia.net> <41045A63.5080608@att.net> Message-ID: <1090897454.6431.4.camel@68-235-15-192.sbtnvt.adelphia.net> what about us linux users? i see that is for windows ;) Joe Crawford Jr. On Sun, 2004-07-25 at 21:12, John Lacey wrote: > Hans Zaunere wrote: > > > In light of some recent discussion about a Python user group in NY, I > > talked with some folks about getting something going for Python > > programmers. > > and...if anyone wants a quickie python set up to play with, XAMPP has a > python addon too: > http://www.apachefriends.org/en/xampp-windows.html > > John > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org > > From jlacey at att.net Mon Jul 26 23:28:22 2004 From: jlacey at att.net (John Lacey) Date: Mon, 26 Jul 2004 21:28:22 -0600 Subject: [nycphp-talk] Python SIG Created at New York PHP In-Reply-To: <1090897454.6431.4.camel@68-235-15-192.sbtnvt.adelphia.net> References: <41EE526EC2D3C74286415780D3BA9F870334B379@ehost011-1.exch011.intermedia.net> <41045A63.5080608@att.net> <1090897454.6431.4.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <4105CBD6.9070105@att.net> Joe Crawford wrote: what about us linux users? i see that is for windows ;) > Assuming you're referring to xampp, yes, it seems there's no python addon for the linux flavor, but they just added java stuff for windows -- apache tomcat and cocoon... Speaking of assuming, I pretty much assume a linux (or FreeBSD) user will be able to go out and get what they want and build it. For example, when I teach LAMP, even tho it's an introductory-level series, I have them build a custom kernel, build apache, build php, etc. What I don't have them do is build mysql. John From suzerain at suzerain.com Mon Jul 26 23:46:07 2004 From: suzerain at suzerain.com (Marc Antony Vose) Date: Mon, 26 Jul 2004 23:46:07 -0400 Subject: [nycphp-talk] phantom file writing errors In-Reply-To: <000701c47363$8c8bdf70$e98d3818@oberon1> References: <000701c47363$8c8bdf70$e98d3818@oberon1> Message-ID: <p06110403bd2b800101a5@[192.168.1.44]> Hi there: The file path is correct. I know that the PHP script is creating the files, because I have deleted all the files, and they get created. So, yeah, I'm 100% certain of that. This also validates the prior point, about the path. The PHP parser is giving me the warning even though it is creating the files...how and why can it do this? I mean, I could suppress its output by prepending the '@' sign, but I'd like to be notified of REAL issues in the script... Marc >Marc Antony Vose writes: > >Can anyone tell my why I would get this error: >Warning: fwrite(): supplied argument is not a valid stream resource in >Warning: fclose(): supplied argument is not a valid stream resource in > >when the script is in fact opening and writing out >the file just fine? > >Are you %100 certain about the file >being written to? > >Hou did you assign the variable >$output_h? > >The code was: > >// output the file >$output_h = fopen($output_path,"w"); >fwrite($output_h,$output); >fclose($output_h); > >If you assign the variable $output_path >like thie: > >$output_path = 'test.txt'; > >the code snippet will work. > >You can use is_resource($output_h) to make >certain the resource got created. > >Perhaps you misspelled the variable name >$output_path -- >Try $Output_path = 'test.txt'; >and compare the results. > >(sorry if you are asking a different >question -- i.e. how can the fwrite >function work when it is not being >passed a vaild (file handle) resource -- >I don't see how that could work) > >T. Gales & Associates >'Helping People Connect with Technology' > >http://www.tgaconnect.com > > >_______________________________________________ >New York PHP Talk >Supporting AMP Technology (Apache/MySQL/PHP) >http://lists.nyphp.org/mailman/listinfo/talk >http://www.newyorkphp.org From sm11szw02 at sneakemail.com Tue Jul 27 00:22:58 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Tue, 27 Jul 2004 00:22:58 -0400 Subject: [nycphp-talk] phantom file writing errors In-Reply-To: <p06110401bd2b2d66a55f@[192.168.1.44]> References: <41EE526EC2D3C74286415780D3BA9F8703441996@ehost011-1.exch011.intermedia.ne t> <41054400.6060306@spacemonkeylabs.com> <10075-42585@sneakemail.com> <p06110401bd2b2d66a55f@[192.168.1.44]> Message-ID: <25804-44032@sneakemail.com> This is often a file-handle-passed problem. Show us the the code where you assign $output_path, and why not $output as well to be thorough. Marc Antony Vose suzerain-at-suzerain.com |nyphp 04/2004| wrote: > Hi there: > > Can anyone tell my why I would get this error: > > Warning: fwrite(): supplied argument is not a valid stream resource in > Warning: fclose(): supplied argument is not a valid stream resource in > when the script is in fact opening and writing out the file just fine? > > here's my file handling calls, just for reference: > > // output the file > $output_h = fopen($output_path,"w"); > fwrite($output_h,$output); > fclose($output_h); > > > This is happening on a new server I just moved to, and doesn't happen > on my old server, nor did it happen on my old server. Must be some > kind of configuration thing... > >-- > > > Marc Antony Vose > http://www.suzerain.com/ > > They that can give up essential liberty to obtain a little temporary > safety deserve neither liberty nor safety. > -- Benjamin Franklin > >------------------------------------------------------------------------ > >_______________________________________________ >New York PHP Talk >Supporting AMP Technology (Apache/MySQL/PHP) >http://lists.nyphp.org/mailman/listinfo/talk >http://www.newyorkphp.org > From jlacey at att.net Tue Jul 27 00:30:27 2004 From: jlacey at att.net (John Lacey) Date: Mon, 26 Jul 2004 22:30:27 -0600 Subject: [nycphp-talk] phantom file writing errors In-Reply-To: <p06110403bd2b800101a5@[192.168.1.44]> References: <000701c47363$8c8bdf70$e98d3818@oberon1> <p06110403bd2b800101a5@[192.168.1.44]> Message-ID: <4105DA63.9060705@att.net> Marc Antony Vose wrote: > > Hi there: > > The file path is correct. > > I know that the PHP script is creating the files, because I have deleted > all the files, and they get created. So, yeah, I'm 100% certain of > that. This also validates the prior point, about the path. > > The PHP parser is giving me the warning even though it is creating the > files...how and why can it do this? > > I mean, I could suppress its output by prepending the '@' sign, but I'd > like to be notified of REAL issues in the script... > The ability to create a file and then write to it are two different animals because of permissions, and specifically, "umask". The value in umask determines the default permissions for new files created on the system. (we're talking *nix here) To make things interesting, umask works as an octal complement. All this means is that a value of umask such as "022" will be subtracted from the default permissions mask for files (666) yielding a "644". In this case, the owner would have read/write permissions, but anyone in the associated group and the rest of the world would have read permissions. "OGW" -- Owner, Group, World owner="6"; group="4"; world="4" PHP has filesystem functions that allow you to change the permissions here: (chmod) http://www.php.net/manual/en/function.chmod.php there's a few examples that are handy. HTH, John From suzerain at suzerain.com Tue Jul 27 01:07:15 2004 From: suzerain at suzerain.com (Marc Antony Vose) Date: Tue, 27 Jul 2004 01:07:15 -0400 Subject: [nycphp-talk] phantom file writing errors In-Reply-To: <25804-44032@sneakemail.com> References: <41EE526EC2D3C74286415780D3BA9F8703441996@ehost011-1.exch011.intermedia.ne t> <41054400.6060306@spacemonkeylabs.com> <10075-42585@sneakemail.com> <p06110401bd2b2d66a55f@[192.168.1.44]> <25804-44032@sneakemail.com> Message-ID: <p06110404bd2b91561168@[192.168.1.44]> Hi: To John: It's creating directories inside a directory that is chmod 777. Into each directory is placed an HTML file, which is created in the code below. Therefore, all of the directories and files involved are owned by the script that is being run (user: apache, grp: apache), since the files didn't even exist in the first place. And it's definitely writing to the file, because the contents of the files are there. To inforequest: Could you explain what you mean by 'file-handle-passed' problem? Here's the relevant code, which goes through an array of films, reads in a template file, and writes out an HTML file containing the list of distributors for the film: ----+ // step through the films array and output the file for( $x=0; $x<count($all_films); $x++ ){ //....snip snip: a few setup variables // MAIN_ROOT, in this case = $_SERVER['DOCUMENT_ROOT'] // the directory name is the film_id $output_dir = MAIN_ROOT . '/_admin/distributors/output/' . $all_films[$x]["film_id"]; // the file name $output_file = 'distributors.html'; // build the path, for convenience $output_path = $output_dir . "/" . $output_file; // create the directory, if necessary if( !file_exists($output_dir) && !is_dir($output_dir) ){ mkdir($output_dir,0755); } //...snip snip: the code that populates the variable $output // output the file $output_h = fopen($output_path,"w"); fwrite($output_h,$output); fclose($output_h); //...snip snip: code that copies the file to a remote server } ----+ Anything crazy in there? At 12:22 AM -0400 7/27/04, inforequest wrote: >This is often a file-handle-passed problem. Show us the the code >where you assign $output_path, and why not $output as well to be >thorough. > > > >Marc Antony Vose suzerain-at-suzerain.com |nyphp 04/2004| wrote: > >>Hi there: >> >>Can anyone tell my why I would get this error: >> >>Warning: fwrite(): supplied argument is not a valid stream resource >>in Warning: fclose(): supplied argument is not a valid stream >>resource in >>when the script is in fact opening and writing out the file just fine? >> >>here's my file handling calls, just for reference: >> >>// output the file >>$output_h = fopen($output_path,"w"); >>fwrite($output_h,$output); >>fclose($output_h); >> >> >>This is happening on a new server I just moved to, and doesn't >>happen on my old server, nor did it happen on my old server. Must >>be some kind of configuration thing... >> >>-- >> >>Marc Antony Vose >>http://www.suzerain.com/ >> >>They that can give up essential liberty to obtain a little >>temporary safety deserve neither liberty nor safety. >>-- Benjamin Franklin >> >>------------------------------------------------------------------------ >> >>_______________________________________________ >>New York PHP Talk >>Supporting AMP Technology (Apache/MySQL/PHP) >>http://lists.nyphp.org/mailman/listinfo/talk >>http://www.newyorkphp.org >> > >_______________________________________________ >New York PHP Talk >Supporting AMP Technology (Apache/MySQL/PHP) >http://lists.nyphp.org/mailman/listinfo/talk >http://www.newyorkphp.org From sm11szw02 at sneakemail.com Tue Jul 27 02:19:52 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Tue, 27 Jul 2004 02:19:52 -0400 Subject: [nycphp-talk] phantom file writing errors In-Reply-To: <p06110404bd2b91561168@[192.168.1.44]> References: <41EE526EC2D3C74286415780D3BA9F8703441996@ehost011-1.exch011.intermedia.ne t> <41054400.6060306@spacemonkeylabs.com> <10075-42585@sneakemail.com> <p06110401bd2b2d66a55f@[192.168.1.44]> <25804-44032@sneakemail.com> <p06110404bd2b91561168@[192.168.1.44]> Message-ID: <15374-75452@sneakemail.com> Marc Antony Vose suzerain-at-suzerain.com |nyphp 04/2004| wrote: > To inforequest: > > Could you explain what you mean by 'file-handle-passed' problem? When the file handle passed to the fwrite is not correct, you will get this streams error. Happens sometimes when someone gets a filehandle into a var, somehow mucks up the var (modifiy the type, for example) and then uses that var as the handle in an fwrite. theproblem is with the file handle passed to fwrite. I did not go thru your code as it's late.. but I wanted to reply to your request for what I meant by that. From sm11szw02 at sneakemail.com Tue Jul 27 03:52:50 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Tue, 27 Jul 2004 03:52:50 -0400 Subject: [nycphp-talk] phantom file writing errors In-Reply-To: <p06110404bd2b91561168@[192.168.1.44]> References: <41EE526EC2D3C74286415780D3BA9F8703441996@ehost011-1.exch011.intermedia.ne t> <41054400.6060306@spacemonkeylabs.com> <10075-42585@sneakemail.com> <p06110401bd2b2d66a55f@[192.168.1.44]> <25804-44032@sneakemail.com> <p06110404bd2b91561168@[192.168.1.44]> Message-ID: <31992-02529@sneakemail.com> Couldn't repeat the error here. Assuming $all_films[$x]["film_id"]="film_" . $x . "_id"; as long as $_SERVER['DOCUMENT_ROOT'] . '/_admin/distributors/output/' existed, this worked fine. Marc Antony Vose suzerain-at-suzerain.com |nyphp 04/2004| wrote: > > // step through the films array and output the file > for( $x=0; $x<count($all_films); $x++ ){ > > > //....snip snip: a few setup variables > > // MAIN_ROOT, in this case = $_SERVER['DOCUMENT_ROOT'] > > // the directory name is the film_id > $output_dir = MAIN_ROOT . '/_admin/distributors/output/' . > $all_films[$x]["film_id"]; > // the file name > $output_file = 'distributors.html'; > // build the path, for convenience > $output_path = $output_dir . "/" . $output_file; > > // create the directory, if necessary > if( !file_exists($output_dir) && !is_dir($output_dir) ){ > mkdir($output_dir,0755); > } > > //...snip snip: the code that populates the variable $output > > // output the file > $output_h = fopen($output_path,"w"); > fwrite($output_h,$output); > fclose($output_h); > > > //...snip snip: code that copies the file to a remote server > > > } From jlacey at att.net Tue Jul 27 09:33:36 2004 From: jlacey at att.net (John Lacey) Date: Tue, 27 Jul 2004 07:33:36 -0600 Subject: [nycphp-talk] phantom file writing errors In-Reply-To: <p06110404bd2b91561168@[192.168.1.44]> References: <41EE526EC2D3C74286415780D3BA9F8703441996@ehost011-1.exch011.intermedia.ne t> <41054400.6060306@spacemonkeylabs.com> <10075-42585@sneakemail.com> <p06110401bd2b2d66a55f@[192.168.1.44]> <25804-44032@sneakemail.com> <p06110404bd2b91561168@[192.168.1.44]> Message-ID: <410659B0.7020501@att.net> Marc Antony Vose wrote: > It's creating directories inside a directory that is chmod 777. Into > each directory is placed an HTML file, which is created in the code > below. Therefore, all of the directories and files involved are owned > by the script that is being run (user: apache, grp: apache), since the > files didn't even exist in the first place. And it's definitely writing > to the file, because the contents of the files are there. Sorry, but I didn't see in the previous posts that file contents are there in addition to the files themselves--and from the above, you obviously didn't need the basic info I posted. I don't know what other steps you've taken to troubleshoot, but I often isolate a code snippet and try different things to see if anything changes. You may have already gone thru this exercise, but if not--in your code: // output the file $output_h = fopen($output_path,"w"); fwrite($output_h,$output); fclose($output_h); what would this yield? // output the file $filedata = 'some stuff'; $fh = fopen("/path/filename", "w"); fwrite($fh, $filedata); fclose($fh); If the above worked, then I'd take a closer look at how the outputdir and outputdata is being created. In addition, what happens if an existing file is opened for reading and fread(), or fopen() mode is changed to append instead of write? Does a print_r() on the $fh ($output_h) show a good resource type before the fclose()? John From sol2ray at yahoo.fr Tue Jul 27 10:28:11 2004 From: sol2ray at yahoo.fr (Sol) Date: Tue, 27 Jul 2004 07:28:11 -0700 (PDT) Subject: [nycphp-talk] phantom file writing errors In-Reply-To: <p06110404bd2b91561168@[192.168.1.44]> Message-ID: <20040727142811.907.qmail@web50209.mail.yahoo.com> > // step through the films array and output the file > for( $x=0; $x<count($all_films); $x++ ){ > > > //....snip snip: a few setup variables > > // MAIN_ROOT, in this case = > $_SERVER['DOCUMENT_ROOT'] > > // the directory name is the film_id > $output_dir = MAIN_ROOT . > '/_admin/distributors/output/' . > $all_films[$x]["film_id"]; > // the file name > $output_file = 'distributors.html'; > // build the path, for convenience > $output_path = $output_dir . "/" . $output_file; > > // create the directory, if necessary > if( !file_exists($output_dir) && > !is_dir($output_dir) ){ > mkdir($output_dir,0755); > } > > //...snip snip: the code that populates the variable > $output > > // output the file > $output_h = fopen($output_path,"w"); > fwrite($output_h,$output); > fclose($output_h); > > > //...snip snip: code that copies the file to a > remote server > > > } > If you have an invalid filename character in $all_films[$x]["film_id"] it will fail. e.g: if($all_films[$x]["film_id"] == ' '){ you will get this: $output_dir.'/ /distributors.html' so this will pass: if( !file_exists($output_dir) && !is_dir($output_dir) ){ mkdir($output_dir,0755); } but this will fail: $output_h = fopen($output_path,"w"); fwrite($output_h,$output); fclose($output_h); } ===== Sol Tour? PHPBTREE http://phpbtree.com __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail From jcrawford at codebowl.com Tue Jul 27 16:07:12 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Tue, 27 Jul 2004 16:07:12 -0400 Subject: [nycphp-talk] Object Methods and Properties Message-ID: <1090958831.13600.3.camel@68-235-15-192.sbtnvt.adelphia.net> Hello, can anyone tell me why this code will not work> function setPart($part, $val, $append) { if(($part) && ($val)) { if($append) $this->_$part .= $val; else $this->_$part = $val; } } i am also wanting to check that $part is a valid class property yet i am not sure how ;( Joe Crawford Jr. From sol2ray at yahoo.fr Tue Jul 27 16:11:44 2004 From: sol2ray at yahoo.fr (Sol) Date: Tue, 27 Jul 2004 13:11:44 -0700 (PDT) Subject: [nycphp-talk] Object Methods and Properties In-Reply-To: <1090958831.13600.3.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <20040727201144.78095.qmail@web50203.mail.yahoo.com> > can anyone tell me why this code will not work> > > > function setPart($part, $val, $append) { > if(($part) && ($val)) { > if($append) $this->_$part .= $val; > else $this->_$part = $val; > } > } if($this->_$part is declared as var $_part){ $this->_$part should be $this->_part; } ===== Sol Tour? PHPBTREE http://phpbtree.com __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail From jcrawford at codebowl.com Tue Jul 27 16:16:54 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Tue, 27 Jul 2004 16:16:54 -0400 Subject: [nycphp-talk] Object Methods and Properties In-Reply-To: <20040727201144.78095.qmail@web50203.mail.yahoo.com> References: <20040727201144.78095.qmail@web50203.mail.yahoo.com> Message-ID: <1090959414.13600.5.camel@68-235-15-192.sbtnvt.adelphia.net> i have things like this class MyClass { var $_header; var $_body; var $_footer; } and i am trying to use that code to dynamically choose which variable to change. Joe Crawford Jr. On Tue, 2004-07-27 at 16:11, Sol wrote: > > can anyone tell me why this code will not work> > > > > > > function setPart($part, $val, $append) { > > if(($part) && ($val)) { > > if($append) $this->_$part .= $val; > > else $this->_$part = $val; > > } > > } > > if($this->_$part is declared as var $_part){ > > $this->_$part should be $this->_part; > } > > ===== > Sol Tour > PHPBTREE > http://phpbtree.com > > > > __________________________________ > Do you Yahoo!? > Read only the mail you want - Yahoo! Mail SpamGuard. > http://promotions.yahoo.com/new_mail > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org > > From phillip.powell at adnet-sys.com Tue Jul 27 16:25:52 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 27 Jul 2004 16:25:52 -0400 Subject: [nycphp-talk] Object Methods and Properties In-Reply-To: <1090959414.13600.5.camel@68-235-15-192.sbtnvt.adelphia.net> References: <20040727201144.78095.qmail@web50203.mail.yahoo.com> <1090959414.13600.5.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <4106BA50.4030608@adnet-sys.com> Joe Crawford wrote: >i have things like this > >class MyClass { > var $_header; > var $_body; > var $_footer; >} > >and i am trying to use that code to dynamically choose which variable to >change. > > I've had luck with PHP 4.3.2 doing this: if ($append) $this->{'_' . $part} .= $val; Phil >Joe Crawford Jr. > > >On Tue, 2004-07-27 at 16:11, Sol wrote: > > >> > can anyone tell me why this code will not work> >> >> >>>function setPart($part, $val, $append) { >>> if(($part) && ($val)) { >>> if($append) $this->_$part .= $val; >>> else $this->_$part = $val; >>> } >>>} >>> >>> >>if($this->_$part is declared as var $_part){ >> >> $this->_$part should be $this->_part; >>} >> >>===== >>Sol Tour >>PHPBTREE >>http://phpbtree.com >> >> >> >>__________________________________ >>Do you Yahoo!? >>Read only the mail you want - Yahoo! Mail SpamGuard. >>http://promotions.yahoo.com/new_mail >>_______________________________________________ >>New York PHP Talk >>Supporting AMP Technology (Apache/MySQL/PHP) >>http://lists.nyphp.org/mailman/listinfo/talk >>http://www.newyorkphp.org >> >> >> >> > >_______________________________________________ >New York PHP Talk >Supporting AMP Technology (Apache/MySQL/PHP) >http://lists.nyphp.org/mailman/listinfo/talk >http://www.newyorkphp.org > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From Cbielanski at inta.org Tue Jul 27 16:28:43 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Tue, 27 Jul 2004 16:28:43 -0400 Subject: [nycphp-talk] Object Methods and Properties Message-ID: <C0CDB9F5E81C234FBB42D84E7853125D013B0A87@intamail1.inta> I like Phil's approach way better than when I considered a solution using eval(); 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: Phillip Powell [mailto:phillip.powell at adnet-sys.com] > Sent: Tuesday, July 27, 2004 4:26 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Object Methods and Properties > > > Joe Crawford wrote: > > >i have things like this > > > >class MyClass { > > var $_header; > > var $_body; > > var $_footer; > >} > > > >and i am trying to use that code to dynamically choose which > variable to > >change. > > > > > > I've had luck with PHP 4.3.2 doing this: > > if ($append) $this->{'_' . $part} .= $val; > > Phil > From jcrawford at codebowl.com Tue Jul 27 16:27:36 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Tue, 27 Jul 2004 16:27:36 -0400 Subject: [nycphp-talk] Object Methods and Properties In-Reply-To: <C0CDB9F5E81C234FBB42D84E7853125D013B0A87@intamail1.inta> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A87@intamail1.inta> Message-ID: <1090960056.13600.7.camel@68-235-15-192.sbtnvt.adelphia.net> i tried eval and it tells me that i cannot return a printed value ;) Joe Crawford Jr. On Tue, 2004-07-27 at 16:28, Chris Bielanski wrote: > I like Phil's approach way better than when I considered a solution using > eval(); > > 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: Phillip Powell [mailto:phillip.powell at adnet-sys.com] > > Sent: Tuesday, July 27, 2004 4:26 PM > > To: NYPHP Talk > > Subject: Re: [nycphp-talk] Object Methods and Properties > > > > > > Joe Crawford wrote: > > > > >i have things like this > > > > > >class MyClass { > > > var $_header; > > > var $_body; > > > var $_footer; > > >} > > > > > >and i am trying to use that code to dynamically choose which > > variable to > > >change. > > > > > > > > > > I've had luck with PHP 4.3.2 doing this: > > > > if ($append) $this->{'_' . $part} .= $val; > > > > Phil > > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org > > From jcrawford at codebowl.com Tue Jul 27 16:27:55 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Tue, 27 Jul 2004 16:27:55 -0400 Subject: [nycphp-talk] Object Methods and Properties In-Reply-To: <4106BA50.4030608@adnet-sys.com> References: <20040727201144.78095.qmail@web50203.mail.yahoo.com> <1090959414.13600.5.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BA50.4030608@adnet-sys.com> Message-ID: <1090960075.13600.9.camel@68-235-15-192.sbtnvt.adelphia.net> Phill, i will try your method now, thanks Joe Crawford Jr. On Tue, 2004-07-27 at 16:25, Phillip Powell wrote: > Joe Crawford wrote: > > >i have things like this > > > >class MyClass { > > var $_header; > > var $_body; > > var $_footer; > >} > > > >and i am trying to use that code to dynamically choose which variable to > >change. > > > > > > I've had luck with PHP 4.3.2 doing this: > > if ($append) $this->{'_' . $part} .= $val; > > Phil > > >Joe Crawford Jr. > > > > > >On Tue, 2004-07-27 at 16:11, Sol wrote: > > > > > >> > can anyone tell me why this code will not work> > >> > >> > >>>function setPart($part, $val, $append) { > >>> if(($part) && ($val)) { > >>> if($append) $this->_$part .= $val; > >>> else $this->_$part = $val; > >>> } > >>>} > >>> > >>> > >>if($this->_$part is declared as var $_part){ > >> > >> $this->_$part should be $this->_part; > >>} > >> > >>===== > >>Sol Tour > >>PHPBTREE > >>http://phpbtree.com > >> > >> > >> > >>__________________________________ > >>Do you Yahoo!? > >>Read only the mail you want - Yahoo! Mail SpamGuard. > >>http://promotions.yahoo.com/new_mail > >>_______________________________________________ > >>New York PHP Talk > >>Supporting AMP Technology (Apache/MySQL/PHP) > >>http://lists.nyphp.org/mailman/listinfo/talk > >>http://www.newyorkphp.org > >> > >> > >> > >> > > > >_______________________________________________ > >New York PHP Talk > >Supporting AMP Technology (Apache/MySQL/PHP) > >http://lists.nyphp.org/mailman/listinfo/talk > >http://www.newyorkphp.org > > > > > > > From jcrawford at codebowl.com Tue Jul 27 16:30:06 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Tue, 27 Jul 2004 16:30:06 -0400 Subject: [nycphp-talk] Object Methods and Properties In-Reply-To: <4106BA50.4030608@adnet-sys.com> References: <20040727201144.78095.qmail@web50203.mail.yahoo.com> <1090959414.13600.5.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BA50.4030608@adnet-sys.com> Message-ID: <1090960206.13600.11.camel@68-235-15-192.sbtnvt.adelphia.net> Phill, thanks that worked just as expected... Now anyone know of a way to make sure $part is actually one of the class variables? Joe Crawford Jr. On Tue, 2004-07-27 at 16:25, Phillip Powell wrote: > Joe Crawford wrote: > > >i have things like this > > > >class MyClass { > > var $_header; > > var $_body; > > var $_footer; > >} > > > >and i am trying to use that code to dynamically choose which variable to > >change. > > > > > > I've had luck with PHP 4.3.2 doing this: > > if ($append) $this->{'_' . $part} .= $val; > > Phil > > >Joe Crawford Jr. > > > > > >On Tue, 2004-07-27 at 16:11, Sol wrote: > > > > > >> > can anyone tell me why this code will not work> > >> > >> > >>>function setPart($part, $val, $append) { > >>> if(($part) && ($val)) { > >>> if($append) $this->_$part .= $val; > >>> else $this->_$part = $val; > >>> } > >>>} > >>> > >>> > >>if($this->_$part is declared as var $_part){ > >> > >> $this->_$part should be $this->_part; > >>} > >> > >>===== > >>Sol Tour > >>PHPBTREE > >>http://phpbtree.com > >> > >> > >> > >>__________________________________ > >>Do you Yahoo!? > >>Read only the mail you want - Yahoo! Mail SpamGuard. > >>http://promotions.yahoo.com/new_mail > >>_______________________________________________ > >>New York PHP Talk > >>Supporting AMP Technology (Apache/MySQL/PHP) > >>http://lists.nyphp.org/mailman/listinfo/talk > >>http://www.newyorkphp.org > >> > >> > >> > >> > > > >_______________________________________________ > >New York PHP Talk > >Supporting AMP Technology (Apache/MySQL/PHP) > >http://lists.nyphp.org/mailman/listinfo/talk > >http://www.newyorkphp.org > > > > > > > From phillip.powell at adnet-sys.com Tue Jul 27 16:38:16 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 27 Jul 2004 16:38:16 -0400 Subject: [nycphp-talk] Object Methods and Properties In-Reply-To: <1090960206.13600.11.camel@68-235-15-192.sbtnvt.adelphia.net> References: <20040727201144.78095.qmail@web50203.mail.yahoo.com> <1090959414.13600.5.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BA50.4030608@adnet-sys.com> <1090960206.13600.11.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <4106BD38.8030504@adnet-sys.com> Joe Crawford wrote: >Phill, > >thanks that worked just as expected... > >Now anyone know of a way to make sure $part is actually one of the class >variables? > > if (in_array($part, get_class_vars(get_class($this)))) { // DO STUFF } Assuming you have instantiated a MyClass object prior to this line Phil >Joe Crawford Jr. > > >On Tue, 2004-07-27 at 16:25, Phillip Powell wrote: > > >>Joe Crawford wrote: >> >> >> >>>i have things like this >>> >>>class MyClass { >>> var $_header; >>> var $_body; >>> var $_footer; >>>} >>> >>>and i am trying to use that code to dynamically choose which variable to >>>change. >>> >>> >>> >>> >>I've had luck with PHP 4.3.2 doing this: >> >>if ($append) $this->{'_' . $part} .= $val; >> >>Phil >> >> >> >>>Joe Crawford Jr. >>> >>> >>>On Tue, 2004-07-27 at 16:11, Sol wrote: >>> >>> >>> >>> >>>>>can anyone tell me why this code will not work> >>>>> >>>>> >>>> >>>> >>>> >>>> >>>>>function setPart($part, $val, $append) { >>>>> if(($part) && ($val)) { >>>>> if($append) $this->_$part .= $val; >>>>> else $this->_$part = $val; >>>>> } >>>>>} >>>>> >>>>> >>>>> >>>>> >>>>if($this->_$part is declared as var $_part){ >>>> >>>> $this->_$part should be $this->_part; >>>>} >>>> >>>>===== >>>>Sol Tour >>>>PHPBTREE >>>>http://phpbtree.com >>>> >>>> >>>> >>>>__________________________________ >>>>Do you Yahoo!? >>>>Read only the mail you want - Yahoo! Mail SpamGuard. >>>>http://promotions.yahoo.com/new_mail >>>>_______________________________________________ >>>>New York PHP Talk >>>>Supporting AMP Technology (Apache/MySQL/PHP) >>>>http://lists.nyphp.org/mailman/listinfo/talk >>>>http://www.newyorkphp.org >>>> >>>> >>>> >>>> >>>> >>>> >>>_______________________________________________ >>>New York PHP Talk >>>Supporting AMP Technology (Apache/MySQL/PHP) >>>http://lists.nyphp.org/mailman/listinfo/talk >>>http://www.newyorkphp.org >>> >>> >>> >>> >>> > >_______________________________________________ >New York PHP Talk >Supporting AMP Technology (Apache/MySQL/PHP) >http://lists.nyphp.org/mailman/listinfo/talk >http://www.newyorkphp.org > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From sol2ray at yahoo.fr Tue Jul 27 16:34:59 2004 From: sol2ray at yahoo.fr (Sol) Date: Tue, 27 Jul 2004 13:34:59 -0700 (PDT) Subject: [nycphp-talk] Object Methods and Properties In-Reply-To: <C0CDB9F5E81C234FBB42D84E7853125D013B0A87@intamail1.inta> Message-ID: <20040727203459.72374.qmail@web50205.mail.yahoo.com> > > >class MyClass { > > > var $_header; > > > var $_body; > > > var $_footer; > > >} > > > > > >and i am trying to use that code to dynamically > choose which > > variable to > > >change. > > > > > > > > > > I've had luck with PHP 4.3.2 doing this: > > > > if ($append) $this->{'_' . $part} .= $val; > > > > Phil > > Ok now I see what you're trying to do. Since you don't have 10000 part types you can do this define('HEADER_TYPE', 1); define('BOBY_TYPE', 2); define('FOOTER_TYPE, 3); member setter function setPart($type, $val, $append){ switch($type){ case HEADER_TYPE: code here; break; case BODY_TYPE: code here; break; case FOOTER_TYPE: code here; break; default: invalid part type! } } ===== Sol Tour? PHPBTREE http://phpbtree.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From jcrawford at codebowl.com Tue Jul 27 16:38:11 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Tue, 27 Jul 2004 16:38:11 -0400 Subject: [nycphp-talk] Object Methods and Properties In-Reply-To: <4106BD38.8030504@adnet-sys.com> References: <20040727201144.78095.qmail@web50203.mail.yahoo.com> <1090959414.13600.5.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BA50.4030608@adnet-sys.com> <1090960206.13600.11.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BD38.8030504@adnet-sys.com> Message-ID: <1090960691.13600.13.camel@68-235-15-192.sbtnvt.adelphia.net> Phill, thanks you are a life saver ;) Joe Crawford Jr. On Tue, 2004-07-27 at 16:38, Phillip Powell wrote: > Joe Crawford wrote: > > >Phill, > > > >thanks that worked just as expected... > > > >Now anyone know of a way to make sure $part is actually one of the class > >variables? > > > > > > if (in_array($part, get_class_vars(get_class($this)))) { // DO STUFF } > > Assuming you have instantiated a MyClass object prior to this line > > Phil > > >Joe Crawford Jr. > > > > > >On Tue, 2004-07-27 at 16:25, Phillip Powell wrote: > > > > > >>Joe Crawford wrote: > >> > >> > >> > >>>i have things like this > >>> > >>>class MyClass { > >>> var $_header; > >>> var $_body; > >>> var $_footer; > >>>} > >>> > >>>and i am trying to use that code to dynamically choose which variable to > >>>change. > >>> > >>> > >>> > >>> > >>I've had luck with PHP 4.3.2 doing this: > >> > >>if ($append) $this->{'_' . $part} .= $val; > >> > >>Phil > >> > >> > >> > >>>Joe Crawford Jr. > >>> > >>> > >>>On Tue, 2004-07-27 at 16:11, Sol wrote: > >>> > >>> > >>> > >>> > >>>>>can anyone tell me why this code will not work> > >>>>> > >>>>> > >>>> > >>>> > >>>> > >>>> > >>>>>function setPart($part, $val, $append) { > >>>>> if(($part) && ($val)) { > >>>>> if($append) $this->_$part .= $val; > >>>>> else $this->_$part = $val; > >>>>> } > >>>>>} > >>>>> > >>>>> > >>>>> > >>>>> > >>>>if($this->_$part is declared as var $_part){ > >>>> > >>>> $this->_$part should be $this->_part; > >>>>} > >>>> > >>>>===== > >>>>Sol Tour > >>>>PHPBTREE > >>>>http://phpbtree.com > >>>> > >>>> > >>>> > >>>>__________________________________ > >>>>Do you Yahoo!? > >>>>Read only the mail you want - Yahoo! Mail SpamGuard. > >>>>http://promotions.yahoo.com/new_mail > >>>>_______________________________________________ > >>>>New York PHP Talk > >>>>Supporting AMP Technology (Apache/MySQL/PHP) > >>>>http://lists.nyphp.org/mailman/listinfo/talk > >>>>http://www.newyorkphp.org > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>_______________________________________________ > >>>New York PHP Talk > >>>Supporting AMP Technology (Apache/MySQL/PHP) > >>>http://lists.nyphp.org/mailman/listinfo/talk > >>>http://www.newyorkphp.org > >>> > >>> > >>> > >>> > >>> > > > >_______________________________________________ > >New York PHP Talk > >Supporting AMP Technology (Apache/MySQL/PHP) > >http://lists.nyphp.org/mailman/listinfo/talk > >http://www.newyorkphp.org > > > > > > > From jcrawford at codebowl.com Tue Jul 27 16:38:52 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Tue, 27 Jul 2004 16:38:52 -0400 Subject: [nycphp-talk] Object Methods and Properties In-Reply-To: <20040727203459.72374.qmail@web50205.mail.yahoo.com> References: <20040727203459.72374.qmail@web50205.mail.yahoo.com> Message-ID: <1090960732.13600.15.camel@68-235-15-192.sbtnvt.adelphia.net> Sol, not exactly what i am looking to do, i may have 100 class variables and i do not want the class to create more, this is why i am checking the values against the class vars ;) Joe Crawford Jr. On Tue, 2004-07-27 at 16:34, Sol wrote: > > > >class MyClass { > > > > var $_header; > > > > var $_body; > > > > var $_footer; > > > >} > > > > > > > >and i am trying to use that code to dynamically > > choose which > > > variable to > > > >change. > > > > > > > > > > > > > > I've had luck with PHP 4.3.2 doing this: > > > > > > if ($append) $this->{'_' . $part} .= $val; > > > > > > Phil > > > > > Ok now I see what you're trying to do. > Since you don't have 10000 part types you can do this > > define('HEADER_TYPE', 1); > define('BOBY_TYPE', 2); > define('FOOTER_TYPE, 3); > > member setter > function setPart($type, $val, $append){ > switch($type){ > case HEADER_TYPE: > code here; > break; > case BODY_TYPE: > code here; > break; > case FOOTER_TYPE: > code here; > break; > default: > invalid part type! > } > > } > > ===== > Sol Tour > PHPBTREE > http://phpbtree.com > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org > > From phillip.powell at adnet-sys.com Tue Jul 27 16:47:45 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 27 Jul 2004 16:47:45 -0400 Subject: [nycphp-talk] Object Methods and Properties In-Reply-To: <1090960691.13600.13.camel@68-235-15-192.sbtnvt.adelphia.net> References: <20040727201144.78095.qmail@web50203.mail.yahoo.com> <1090959414.13600.5.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BA50.4030608@adnet-sys.com> <1090960206.13600.11.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BD38.8030504@adnet-sys.com> <1090960691.13600.13.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <4106BF71.4030809@adnet-sys.com> My pleasure, dude. Phil Joe Crawford wrote: >Phill, > >thanks you are a life saver ;) > >Joe Crawford Jr. > > >On Tue, 2004-07-27 at 16:38, Phillip Powell wrote: > > >>Joe Crawford wrote: >> >> >> >>>Phill, >>> >>>thanks that worked just as expected... >>> >>>Now anyone know of a way to make sure $part is actually one of the class >>>variables? >>> >>> >>> >>> >>if (in_array($part, get_class_vars(get_class($this)))) { // DO STUFF } >> >>Assuming you have instantiated a MyClass object prior to this line >> >>Phil >> >> >> >>>Joe Crawford Jr. >>> >>> >>>On Tue, 2004-07-27 at 16:25, Phillip Powell wrote: >>> >>> >>> >>> >>>>Joe Crawford wrote: >>>> >>>> >>>> >>>> >>>> >>>>>i have things like this >>>>> >>>>>class MyClass { >>>>> var $_header; >>>>> var $_body; >>>>> var $_footer; >>>>>} >>>>> >>>>>and i am trying to use that code to dynamically choose which variable to >>>>>change. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>I've had luck with PHP 4.3.2 doing this: >>>> >>>>if ($append) $this->{'_' . $part} .= $val; >>>> >>>>Phil >>>> >>>> >>>> >>>> >>>> >>>>>Joe Crawford Jr. >>>>> >>>>> >>>>>On Tue, 2004-07-27 at 16:11, Sol wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>>can anyone tell me why this code will not work> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>function setPart($part, $val, $append) { >>>>>>> if(($part) && ($val)) { >>>>>>> if($append) $this->_$part .= $val; >>>>>>> else $this->_$part = $val; >>>>>>> } >>>>>>>} >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>if($this->_$part is declared as var $_part){ >>>>>> >>>>>> $this->_$part should be $this->_part; >>>>>>} >>>>>> >>>>>>===== >>>>>>Sol Tour >>>>>>PHPBTREE >>>>>>http://phpbtree.com >>>>>> >>>>>> >>>>>> >>>>>>__________________________________ >>>>>>Do you Yahoo!? >>>>>>Read only the mail you want - Yahoo! Mail SpamGuard. >>>>>>http://promotions.yahoo.com/new_mail >>>>>>_______________________________________________ >>>>>>New York PHP Talk >>>>>>Supporting AMP Technology (Apache/MySQL/PHP) >>>>>>http://lists.nyphp.org/mailman/listinfo/talk >>>>>>http://www.newyorkphp.org >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>_______________________________________________ >>>>>New York PHP Talk >>>>>Supporting AMP Technology (Apache/MySQL/PHP) >>>>>http://lists.nyphp.org/mailman/listinfo/talk >>>>>http://www.newyorkphp.org >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>_______________________________________________ >>>New York PHP Talk >>>Supporting AMP Technology (Apache/MySQL/PHP) >>>http://lists.nyphp.org/mailman/listinfo/talk >>>http://www.newyorkphp.org >>> >>> >>> >>> >>> > >_______________________________________________ >New York PHP Talk >Supporting AMP Technology (Apache/MySQL/PHP) >http://lists.nyphp.org/mailman/listinfo/talk >http://www.newyorkphp.org > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From dcech at phpwerx.net Wed Jul 28 00:16:58 2004 From: dcech at phpwerx.net (Dan Cech) Date: Wed, 28 Jul 2004 00:16:58 -0400 Subject: [nycphp-talk] Object Methods and Properties In-Reply-To: <4106BD38.8030504@adnet-sys.com> References: <20040727201144.78095.qmail@web50203.mail.yahoo.com> <1090959414.13600.5.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BA50.4030608@adnet-sys.com> <1090960206.13600.11.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BD38.8030504@adnet-sys.com> Message-ID: <410728BA.60001@phpwerx.net> Phillip Powell wrote: > Joe Crawford wrote: > >> Phill, >> >> thanks that worked just as expected... >> >> Now anyone know of a way to make sure $part is actually one of the class >> variables? > > if (in_array($part, get_class_vars(get_class($this)))) { // DO STUFF } > > Assuming you have instantiated a MyClass object prior to this line Actually you would be better off with: function setPart($part = NULL, $val = NULL, $append = FALSE) { if (isset($part) && isset($val) && @isset($this->{'_'.$part})) { if ($append) { $this->{'_'.$part} .= $val; } else { $this->{'_'.$part} = $val; } return TRUE; } return FALSE; } There is no need to go through the added overhead of calling get_class_vars and get_class, unless you want to disallow setting any vars not defined in the class definition. Using the @isset(..) method you could define an addPart and delPart function if required, which you can not do with Phil's solution. Dan From joel at tagword.com Wed Jul 28 11:27:34 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 28 Jul 2004 15:27:34 +0000 Subject: [nycphp-talk] firefox extension Message-ID: <1091028454.7443.94.camel@bezel> Following up on a prior conversation: Started playing around with firefox extensions and saying I do work with a lot of the semweb guys I built the following: http://peoplesdns.com/foafer/ Pretty simple extension, but does some new things that I have not seen other extensions do. It is in testing until mozdev gets back to me and I get my project page set up. :) Built using: Javascript, XUL, RDF... -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From Cbielanski at inta.org Wed Jul 28 11:45:24 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Wed, 28 Jul 2004 11:45:24 -0400 Subject: [nycphp-talk] firefox extension Message-ID: <C0CDB9F5E81C234FBB42D84E7853125D013B0A8A@intamail1.inta> Joel can you email me offlist and tell me WTH "Foafer" is/does? I'm dropping it on the list in case I'm not the only one in the dark. 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: Joel De Gan [mailto:joel at tagword.com] > Sent: Wednesday, July 28, 2004 11:28 AM > To: NYPHP Talk > Subject: [nycphp-talk] firefox extension > > > Following up on a prior conversation: > > Started playing around with firefox extensions and saying I > do work with > a lot of the semweb guys I built the following: > http://peoplesdns.com/foafer/ > > Pretty simple extension, but does some new things that I have not seen > other extensions do. > > It is in testing until mozdev gets back to me and I get my > project page > set up. :) > > Built using: Javascript, XUL, RDF... > > -- > joeldg - developer, Intercosmos media group. > http://lucifer.intercosmos.net > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org > From henry at beewh.com Wed Jul 28 11:48:56 2004 From: henry at beewh.com (Henry Ponce) Date: Wed, 28 Jul 2004 12:48:56 -0300 Subject: [nycphp-talk] firefox extension In-Reply-To: <C0CDB9F5E81C234FBB42D84E7853125D013B0A8A@intamail1.inta> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A8A@intamail1.inta> Message-ID: <200407281248.56538.henry@beewh.com> Same here.... Henry On Wednesday 28 July 2004 12:45, Chris Bielanski wrote: > Joel can you email me offlist and tell me WTH "Foafer" is/does? I'm dropping > it on the list in case I'm not the only one in the dark. > > 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: Joel De Gan [mailto:joel at tagword.com] > > Sent: Wednesday, July 28, 2004 11:28 AM > > To: NYPHP Talk > > Subject: [nycphp-talk] firefox extension > > > > > > Following up on a prior conversation: > > > > Started playing around with firefox extensions and saying I > > do work with > > a lot of the semweb guys I built the following: > > http://peoplesdns.com/foafer/ > > > > Pretty simple extension, but does some new things that I have not seen > > other extensions do. > > > > It is in testing until mozdev gets back to me and I get my > > project page > > set up. :) > > > > Built using: Javascript, XUL, RDF... > > > > -- > > joeldg - developer, Intercosmos media group. > > http://lucifer.intercosmos.net > > > > _______________________________________________ > > New York PHP Talk > > Supporting AMP Technology (Apache/MySQL/PHP) > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.newyorkphp.org > > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org > > > From joel at tagword.com Wed Jul 28 11:55:31 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 28 Jul 2004 15:55:31 +0000 Subject: [nycphp-talk] firefox extension In-Reply-To: <200407281248.56538.henry@beewh.com> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A8A@intamail1.inta> <200407281248.56538.henry@beewh.com> Message-ID: <1091030130.7445.113.camel@bezel> Saying many seem to not know about FOAF: This extension finds a foaf file, parses and displays it in layer that is tranparent, what this is, is kind of like a business card file. More on foaf here http://xmlns.com/foaf/0.1/ It is currently mostly used for social networks, but because of recent pushes to a FOAFnet it has moved into others sites, most recently LiveJournal (three million users and growing by 10,000 per day). There is 'quite' a bit of work currently being done with this schema. I do peoplesds.com, help with broadbandmechanics and am an active member of rdf-dev. I mostly do work with FOAF in PHP and Mono, this is my first venture into extensions. We (FOAFnet/rdf-dev) recently have been doing a lot of work getting rdf built into php. -joeldg On Wed, 2004-07-28 at 15:48, Henry Ponce wrote: > Same here.... > > Henry > > On Wednesday 28 July 2004 12:45, Chris Bielanski wrote: > > Joel can you email me offlist and tell me WTH "Foafer" is/does? I'm dropping > > it on the list in case I'm not the only one in the dark. > > > > 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: Joel De Gan [mailto:joel at tagword.com] > > > Sent: Wednesday, July 28, 2004 11:28 AM > > > To: NYPHP Talk > > > Subject: [nycphp-talk] firefox extension > > > > > > > > > Following up on a prior conversation: > > > > > > Started playing around with firefox extensions and saying I > > > do work with > > > a lot of the semweb guys I built the following: > > > http://peoplesdns.com/foafer/ > > > > > > Pretty simple extension, but does some new things that I have not seen > > > other extensions do. > > > > > > It is in testing until mozdev gets back to me and I get my > > > project page > > > set up. :) > > > > > > Built using: Javascript, XUL, RDF... > > > > > > -- > > > joeldg - developer, Intercosmos media group. > > > http://lucifer.intercosmos.net > > > > > > _______________________________________________ > > > New York PHP Talk > > > Supporting AMP Technology (Apache/MySQL/PHP) > > > http://lists.nyphp.org/mailman/listinfo/talk > > > http://www.newyorkphp.org > > > > > _______________________________________________ > > New York PHP Talk > > Supporting AMP Technology (Apache/MySQL/PHP) > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.newyorkphp.org > > > > > > > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From sm11szw02 at sneakemail.com Wed Jul 28 12:11:48 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Wed, 28 Jul 2004 12:11:48 -0400 Subject: [nycphp-talk] firefox extension In-Reply-To: <C0CDB9F5E81C234FBB42D84E7853125D013B0A8A@intamail1.inta> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A8A@intamail1.inta> Message-ID: <31841-81706@sneakemail.com> Chris Bielanski Cbielanski-at-inta.org |nyphp 04/2004| wrote: >Joel can you email me offlist and tell me WTH "Foafer" is/does? I'm dropping >it on the list in case I'm not the only one in the dark. > >Thanks, >Chris Bielanski > For those interested, FOAF is "_F_riend _O_f _A_ _F_riend". First people started "blogging". Then bloggers started listing their friends blogs in a sidebar on their blogs Since those friends also listed their friends blogs in sidebars of their blogs, someone noticed that these friends links on linked blogs were actually representative of a "social network". Think like the way Google does (links = relationships) and you'll see the potential. When blog hosting services noticed they were hosting thousands of interlinked blogs, they knew they could analyze the internetworking on the back end. In order to do it across bloghosts, some standard means would be needed. FOAF is the prevailing technology for doing that using XML. Hope that helps. -=john ---------------------------------------------------------------------------------------------------------------------------John Andrews, personal homepage with dancing bears not expected anytime soon. From sm11szw02 at sneakemail.com Wed Jul 28 12:14:20 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Wed, 28 Jul 2004 12:14:20 -0400 Subject: [nycphp-talk] firefox extension In-Reply-To: <31841-81706@sneakemail.com> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A8A@intamail1.inta> <31841-81706@sneakemail.com> Message-ID: <32246-91276@sneakemail.com> inforequest sm11szw02-at-sneakemail.com |nyphp 04/2004| wrote: > Chris Bielanski Cbielanski-at-inta.org |nyphp 04/2004| wrote: > >> Joel can you email me offlist and tell me WTH "Foafer" is/does? I'm >> dropping >> it on the list in case I'm not the only one in the dark. >> >> Thanks, >> Chris Bielanski >> > > For those interested, FOAF is "_F_riend _O_f _A_ _F_riend". > > First people started "blogging". Then bloggers started listing their > friends blogs in a sidebar on their blogs > > Since those friends also listed their friends blogs in sidebars of > their blogs, someone noticed that these friends links on linked blogs > were actually representative of a "social network". Think like the way > Google does (links = relationships) and you'll see the potential. > > When blog hosting services noticed they were hosting thousands of > interlinked blogs, they knew they could analyze the internetworking on > the back end. In order to do it across bloghosts, some standard means > would be needed. FOAF is the prevailing technology for doing that > using XML. > > Hope that helps. > > -=john > --------------------------------------------------------------------------------------------------------John > Andrews, personal homepage with dancing bears not expected anytime soon. Sorry.. forgot the link. I consider this a good intro paper on the FOAF approach http://www-106.ibm.com/developerworks/xml/library/x-foaf.html From joel at tagword.com Wed Jul 28 12:17:40 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 28 Jul 2004 16:17:40 +0000 Subject: [nycphp-talk] firefox extension In-Reply-To: <31841-81706@sneakemail.com> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A8A@intamail1.inta> <31841-81706@sneakemail.com> Message-ID: <1091031460.7433.122.camel@bezel> Hi Chris, FOAF is actually used for *much* more than just showing interlinking these days. I authored the MeNowDocument FOAF schema extension: http://schema.peoplesdns.com/menow/ Which is to have frequently updated info and which will be the subject of my next firefox extension. People are mapping foafers by airport codes, long/lat, using them for public/private keypairs, developing trust relationships and even using temporary ones for time-limited projects or dynamically changing groups for cvs and project management. It is fun to watch it evolve in an active manner. -joeldg On Wed, 2004-07-28 at 16:11, inforequest wrote: > Chris Bielanski Cbielanski-at-inta.org |nyphp 04/2004| wrote: > > >Joel can you email me offlist and tell me WTH "Foafer" is/does? I'm dropping > >it on the list in case I'm not the only one in the dark. > > > >Thanks, > >Chris Bielanski > > > > For those interested, FOAF is "_F_riend _O_f _A_ _F_riend". > > First people started "blogging". Then bloggers started listing their > friends blogs in a sidebar on their blogs > > Since those friends also listed their friends blogs in sidebars of their > blogs, someone noticed that these friends links on linked blogs were > actually representative of a "social network". Think like the way Google > does (links = relationships) and you'll see the potential. > > When blog hosting services noticed they were hosting thousands of > interlinked blogs, they knew they could analyze the internetworking on > the back end. In order to do it across bloghosts, some standard means > would be needed. FOAF is the prevailing technology for doing that using XML. > > Hope that helps. > > -=john > ---------------------------------------------------------------------------------------------------------------------------John > Andrews, personal homepage with dancing bears not expected anytime soon. > > > > > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From Cbielanski at inta.org Wed Jul 28 12:36:33 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Wed, 28 Jul 2004 12:36:33 -0400 Subject: [nycphp-talk] FOAF (was: firefox extension) Message-ID: <C0CDB9F5E81C234FBB42D84E7853125D013B0A8B@intamail1.inta> So FOAF == "Friend of a Friend". I figured that was the case but chose not to assume. I was part of the customer service crew at AOL when they were trying to roll out the old Virtual Places browser client. Basically browser + avatar + tourguides. Just off the top of my head I see this as everything VP did, with the addition things like embedding a .plan, P2P instant-messaging/fileshare/playlist/etc. I wonder how many people are seeing FOAF as an enabler for P2P? That's what hit me first, actually. 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: Joel De Gan [mailto:joel at tagword.com] > Sent: Wednesday, July 28, 2004 12:18 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] firefox extension > > > Hi Chris, > FOAF is actually used for *much* more than just showing interlinking > these days. > I authored the MeNowDocument FOAF schema extension: > http://schema.peoplesdns.com/menow/ > Which is to have frequently updated info and which will be the subject > of my next firefox extension. > > People are mapping foafers by airport codes, long/lat, using them for > public/private keypairs, developing trust relationships and even using > temporary ones for time-limited projects or dynamically > changing groups > for cvs and project management. > > It is fun to watch it evolve in an active manner. > > -joeldg > > On Wed, 2004-07-28 at 16:11, inforequest wrote: > > Chris Bielanski Cbielanski-at-inta.org |nyphp 04/2004| wrote: > > > > >Joel can you email me offlist and tell me WTH "Foafer" > is/does? I'm dropping > > >it on the list in case I'm not the only one in the dark. > > > > > >Thanks, > > >Chris Bielanski > > > > > > > For those interested, FOAF is "_F_riend _O_f _A_ _F_riend". > > > > First people started "blogging". Then bloggers started > listing their > > friends blogs in a sidebar on their blogs > > > > Since those friends also listed their friends blogs in > sidebars of their > > blogs, someone noticed that these friends links on linked > blogs were > > actually representative of a "social network". Think like > the way Google > > does (links = relationships) and you'll see the potential. > > > > When blog hosting services noticed they were hosting thousands of > > interlinked blogs, they knew they could analyze the > internetworking on > > the back end. In order to do it across bloghosts, some > standard means > > would be needed. FOAF is the prevailing technology for > doing that using XML. > > > > Hope that helps. > > > > -=john > > > -------------------------------------------------------------- > -------------------------------------------------------------John > > Andrews, personal homepage with dancing bears not expected > anytime soon. > > > > > > > > > > > > _______________________________________________ > > New York PHP Talk > > Supporting AMP Technology (Apache/MySQL/PHP) > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.newyorkphp.org > -- > joeldg - developer, Intercosmos media group. > http://lucifer.intercosmos.net > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org > From myersm at optonline.net Wed Jul 28 12:51:42 2004 From: myersm at optonline.net (Michael Myers) Date: Wed, 28 Jul 2004 12:51:42 -0400 Subject: [nycphp-talk] MSIE caching problem Message-ID: <670FEC60-E0B6-11D8-AE83-000A95DB7EF2@optonline.net> I'm truly embarrased to ask this question, but other avenues have not provided a solution. I don't know if the problem is in my HTML, the browser configuration, or Apache. I have a very basic web form that takes in some values that are used in a subsequent database query. After submitting, if the user elects to back up in the browser cache in order to make a few changes on original form and then re-submit, he/she finds that the entire form has been reset. This only happens with MSIE (version 6.0.28) on Windows XP. When I use Safari on MacOSX, the form retains the previously entered values when I back up to it in the browser cache. (Of course, forms on *other* web pages retain their values, even with MSIE on Windows). I tried setting an "Expires:" header on the page containing the form using the header() function, but this had no impact. I thought it was usually the case that people have trouble *eliminating* caching! Server Specs: MacOS 10.3.8 built-in Apache 1.3.29 PHP 4.3.4 MySQL 4.1.3-beta Thanks, mpm From jcrawford at codebowl.com Wed Jul 28 21:33:36 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Wed, 28 Jul 2004 21:33:36 -0400 Subject: [nycphp-talk] Object Methods and Properties In-Reply-To: <410728BA.60001@phpwerx.net> References: <20040727201144.78095.qmail@web50203.mail.yahoo.com> <1090959414.13600.5.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BA50.4030608@adnet-sys.com> <1090960206.13600.11.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BD38.8030504@adnet-sys.com> <410728BA.60001@phpwerx.net> Message-ID: <1091064815.24992.2.camel@68-235-15-192.sbtnvt.adelphia.net> Dan, i do not want the class setting any undefined properties. Joe Crawford Jr. On Wed, 2004-07-28 at 00:16, Dan Cech wrote: > Phillip Powell wrote: > > Joe Crawford wrote: > > > >> Phill, > >> > >> thanks that worked just as expected... > >> > >> Now anyone know of a way to make sure $part is actually one of the class > >> variables? > > > > > if (in_array($part, get_class_vars(get_class($this)))) { // DO STUFF } > > > > Assuming you have instantiated a MyClass object prior to this line > > Actually you would be better off with: > > function setPart($part = NULL, $val = NULL, $append = FALSE) { > if (isset($part) && isset($val) && @isset($this->{'_'.$part})) { > if ($append) { > $this->{'_'.$part} .= $val; > } else { > $this->{'_'.$part} = $val; > } > return TRUE; > } > return FALSE; > } > > There is no need to go through the added overhead of calling > get_class_vars and get_class, unless you want to disallow setting any > vars not defined in the class definition. > > Using the @isset(..) method you could define an addPart and delPart > function if required, which you can not do with Phil's solution. > > Dan > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org > > From danielc at analysisandsolutions.com Thu Jul 29 00:55:46 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 29 Jul 2004 00:55:46 -0400 Subject: [nycphp-talk] oodles of fun in security focus #259 Message-ID: <20040729045546.GA12585@panix.com> PHPNuke Multiple Input Validation Vulnerabilities [Hmm, or should it be called "PHPuke?"] http://www.securityfocus.com/bid/10749 CuteNews Comment HTML Injection Vulnerability http://www.securityfocus.com/bid/10750 Anton Raharja PlaySMS Unspecified SQL Injection Vulnerabilit... http://www.securityfocus.com/bid/10751 Anton Raharja PlaySMS Unspecified File Include Vulnerability http://www.securityfocus.com/bid/10752 PHPBB Multiple HTTP Response Splitting Vulnerabilities http://www.securityfocus.com/bid/10753 PHPBB Search.PHP "search_author" Cross-Site Scripting Vulner... http://www.securityfocus.com/bid/10754 PHP-Nuke Reviews Module "title" Parameter Cross-Site Scripti... http://www.securityfocus.com/bid/10755 Adam Ismay Print Topic Mod SQL Injection Vulnerability http://www.securityfocus.com/bid/10757 Moodle Language Setting Unspecified Vulnerability http://www.securityfocus.com/bid/10766 Mensajeitor Tag Board Authentication Bypass Vulnerability http://www.securityfocus.com/bid/10774 -- 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 Cbielanski at inta.org Thu Jul 29 11:55:15 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Thu, 29 Jul 2004 11:55:15 -0400 Subject: [nycphp-talk] Javascript and PHP arrays (Massive Redux) Message-ID: <C0CDB9F5E81C234FBB42D84E7853125D013B0A8E@intamail1.inta> Okay guys, I know we visit this every couple months. Please bear with me :) Where is a good resource (php.net and google don't seem to have answers I can use) for validating the form with Javascript where the form vars are named with square-brackets so I can handle them as an array in PHP? Everything I've tried coughs up "undefined" for the value of the form var in question. I'll take any and all links, examples and code snippets for the cause, and I apologize again that I am dumping this all-too-common question on the list ;) 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 phillip.powell at adnet-sys.com Thu Jul 29 11:58:22 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Thu, 29 Jul 2004 11:58:22 -0400 Subject: [nycphp-talk] Javascript and PHP arrays (Massive Redux) In-Reply-To: <C0CDB9F5E81C234FBB42D84E7853125D013B0A8E@intamail1.inta> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A8E@intamail1.inta> Message-ID: <41091E9E.20803@adnet-sys.com> Chris Bielanski wrote: >Okay guys, I know we visit this every couple months. Please bear with me :) > >Where is a good resource (php.net and google don't seem to have answers I >can use) for validating the form with Javascript where the form vars are >named with square-brackets so I can handle them as an array in PHP? > >Everything I've tried coughs up "undefined" for the value of the form var in >question. > >I'll take any and all links, examples and code snippets for the cause, and I >apologize again that I am dumping this all-too-common question on the list >;) > > >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 > > >_______________________________________________ >New York PHP Talk >Supporting AMP Technology (Apache/MySQL/PHP) >http://lists.nyphp.org/mailman/listinfo/talk >http://www.newyorkphp.org > > > in Javascript you would write the form element like this: document.myForm.elements['array[]']. I've found online resources on www.phpbuilder.com that verified this for me. Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From sol2ray at yahoo.fr Thu Jul 29 11:54:56 2004 From: sol2ray at yahoo.fr (Sol) Date: Thu, 29 Jul 2004 08:54:56 -0700 (PDT) Subject: [nycphp-talk] Javascript and PHP arrays (Massive Redux) In-Reply-To: <C0CDB9F5E81C234FBB42D84E7853125D013B0A8E@intamail1.inta> Message-ID: <20040729155456.84053.qmail@web50205.mail.yahoo.com> --- Chris Bielanski <Cbielanski at inta.org> wrote: > Okay guys, I know we visit this every couple months. > Please bear with me :) > > Where is a good resource (php.net and google don't > seem to have answers I > can use) for validating the form with Javascript > where the form vars are > named with square-brackets so I can handle them as > an array in PHP? > > Everything I've tried coughs up "undefined" for the > value of the form var in > question. > > I'll take any and all links, examples and code > snippets for the cause, and I > apologize again that I am dumping this > all-too-common question on the list > ;) > use the form field numeric offset not the name. ===== Sol Tour? PHPBTREE http://phpbtree.com __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From Cbielanski at inta.org Thu Jul 29 12:00:04 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Thu, 29 Jul 2004 12:00:04 -0400 Subject: [nycphp-talk] Javascript and PHP arrays (Massive Redux) Message-ID: <C0CDB9F5E81C234FBB42D84E7853125D013B0A8F@intamail1.inta> Phil Powell wrote: > in Javascript you would write the form element like this: > > document.myForm.elements['array[]']. I've found online resources on > www.phpbuilder.com that verified this for me. > > Phil > > -- > -------------------------------------------------------------- > ------------------- > Phil Powell > Multimedia Programmer > BPX Technologies, Inc. > #: (703) 709-7218 x107 > Fax: (703) 709-7219 Unfortunately when I try to alert(document.myForm.elements['array[]'].value); I get 'undefined' (yes I put text in the input control). I shall keep a vigilant watch :) 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 Cbielanski at inta.org Thu Jul 29 12:03:25 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Thu, 29 Jul 2004 12:03:25 -0400 Subject: [nycphp-talk] Javascript and PHP arrays (Massive Redux) Message-ID: <C0CDB9F5E81C234FBB42D84E7853125D013B0A90@intamail1.inta> > use the form field numeric offset not the name. > > ===== > Sol Tour? > PHPBTREE > http://phpbtree.com I would prefer to avoid this approach if I can because I don't know when the order of fields in the HTML might be changed by someone. Because of this preference I want to use names instead of indices. Otherwise yeah, I'm sure that would work just peachy :) 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 hans at cyberxdesigns.com Thu Jul 29 12:01:50 2004 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Thu, 29 Jul 2004 12:01:50 -0400 Subject: [nycphp-talk] Javascript and PHP arrays (Massive Redux) In-Reply-To: <C0CDB9F5E81C234FBB42D84E7853125D013B0A8F@intamail1.inta> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A8F@intamail1.inta> Message-ID: <41091F6E.2090909@cyberxdesigns.com> You might want to try this question on the front end list. Does not really seem to be a PHP technical issue. The front end list can be found here: http://lists.nyphp.org/mailman/listinfo/front-end Hans K hans.kaspersetz atx nyphp.org Chris Bielanski wrote: >Phil Powell wrote: > > >>in Javascript you would write the form element like this: >> >>document.myForm.elements['array[]']. I've found online resources on >>www.phpbuilder.com that verified this for me. >> >>Phil >> >>-- >>-------------------------------------------------------------- >>------------------- >>Phil Powell >>Multimedia Programmer >>BPX Technologies, Inc. >>#: (703) 709-7218 x107 >>Fax: (703) 709-7219 >> >> > >Unfortunately when I try to > >alert(document.myForm.elements['array[]'].value); > >I get 'undefined' (yes I put text in the input control). I shall keep a >vigilant watch :) > >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 > > >_______________________________________________ >New York PHP Talk >Supporting AMP Technology (Apache/MySQL/PHP) >http://lists.nyphp.org/mailman/listinfo/talk >http://www.newyorkphp.org > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040729/4747afd1/attachment.html> From phillip.powell at adnet-sys.com Thu Jul 29 12:15:59 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Thu, 29 Jul 2004 12:15:59 -0400 Subject: [nycphp-talk] Javascript and PHP arrays (Massive Redux) In-Reply-To: <C0CDB9F5E81C234FBB42D84E7853125D013B0A8F@intamail1.inta> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A8F@intamail1.inta> Message-ID: <410922BF.30400@adnet-sys.com> Chris Bielanski wrote: >Phil Powell wrote: > > >>in Javascript you would write the form element like this: >> >>document.myForm.elements['array[]']. I've found online resources on >>www.phpbuilder.com that verified this for me. >> >>Phil >> >>-- >>-------------------------------------------------------------- >>------------------- >>Phil Powell >>Multimedia Programmer >>BPX Technologies, Inc. >>#: (703) 709-7218 x107 >>Fax: (703) 709-7219 >> >> > >Unfortunately when I try to > >alert(document.myForm.elements['array[]'].value); > > [snip] I emailed you privately with a solution I came up with to keep it offlist (noise redux?). You've got mail! Phil >I get 'undefined' (yes I put text in the input control). I shall keep a >vigilant watch :) > >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 > > >_______________________________________________ >New York PHP Talk >Supporting AMP Technology (Apache/MySQL/PHP) >http://lists.nyphp.org/mailman/listinfo/talk >http://www.newyorkphp.org > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From rahmin at insite-out.com Thu Jul 29 12:18:53 2004 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Thu, 29 Jul 2004 12:18:53 -0400 Subject: [nycphp-talk] Javascript and PHP arrays (Massive Redux) Message-ID: <200407291618.i6TGIrhn012900@webmail3.megamailservers.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040729/76099e2e/attachment.ksh> From jcrawford at codebowl.com Thu Jul 29 12:29:49 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Thu, 29 Jul 2004 12:29:49 -0400 Subject: [nycphp-talk] Object Methods and Properties In-Reply-To: <1091064815.24992.2.camel@68-235-15-192.sbtnvt.adelphia.net> References: <20040727201144.78095.qmail@web50203.mail.yahoo.com> <1090959414.13600.5.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BA50.4030608@adnet-sys.com> <1090960206.13600.11.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BD38.8030504@adnet-sys.com> <410728BA.60001@phpwerx.net> <1091064815.24992.2.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <1091118589.8582.2.camel@68-235-15-192.sbtnvt.adelphia.net> Something is still wrong with this code function setPart($part, $val, $append=FALSE) { if (in_array($part, get_class_vars(get_class($this)))) { if(($part) && ($val)) { if ($append) $this->{'_' . $part} .= $val; else $this->{'_' .$part} = $val; } return true; } $this->sendError('undefined property.'); } this code is still allowing properties to be set that have not been defined :( here is my entire class <? include_once('smarty/Smarty.class.php'); class template extends Smarty { private $_header; private $_body; private $_footer; function template() { $this->_header = null; $this->_body = null; $this->_footer = null; $this->Smarty(); $this->template_dir = BASE_DIR.'/smarty/dfs/templates/'; $this->compile_dir = BASE_DIR.'/smarty/dfs/templates_c/'; $this->config_dir = BASE_DIR.'/smarty/dfs/configs/'; $this->cache_dir = BASE_DIR.'/smarty/dfs/cache/'; $this->caching = false; $this->assign('app_name','Developer Financial Software'); } function header($val) { if($val) { $this->_header = $val; } else { return $this->_header; } } function body($val) { if($val) { $this->_body = $val; } else { return $this->_body; } } function footer($val) { if($val) { $this->_footer .= $val; } else { return $this->_footer; } } function setPart($part, $val, $append=FALSE) { if (in_array($part, get_class_vars(get_class($this)))) { if(($part) && ($val)) { if ($append) $this->{'_' . $part} .= $val; else $this->{'_' .$part} = $val; } return true; } $this->sendError('undefined property.'); } function sendError($err) { if($err) { echo $err; exit; } } function displayError($live, $page) { if($page) { if($live) { $this->display('error/static/'.$page.'.tpl'); } else { $this->display('error/'.$page.'.tpl'); } } else { $this->display('error/static/generic.tpl'); } } function displayPage($page) { $this->assign('header', $this->_header); $this->assign('body', $this->_body); $this->assign('footer', $this->_footer); $this->display($page.'.tpl'); } } ?> here is my index.php page <? include_once('include/global.php'); $page->subTitle('Home'); $tpl->setPart('header', $tpl->fetch('header.tpl')); $tpl->setPart('body', $tpl->fetch('main.tpl')); $tpl->setPart('footer', $tpl->fetch('footer.tpl')); $tpl->setPart('test', 'this is a test'); echo $tpl->_test; $tpl->displayPage('page'); ?> when the page is executed it echo's the value of $tpl->_test when in fact _test should not be set since i have no var $_test; in my class definition. anyone here that can shed some light on this problem? Joe Crawford Jr. On Wed, 2004-07-28 at 21:33, Joe Crawford wrote: > Dan, > > i do not want the class setting any undefined properties. > > Joe Crawford Jr. > > > On Wed, 2004-07-28 at 00:16, Dan Cech wrote: > > Phillip Powell wrote: > > > Joe Crawford wrote: > > > > > >> Phill, > > >> > > >> thanks that worked just as expected... > > >> > > >> Now anyone know of a way to make sure $part is actually one of the class > > >> variables? > > > > > > > > if (in_array($part, get_class_vars(get_class($this)))) { // DO STUFF } > > > > > > Assuming you have instantiated a MyClass object prior to this line > > > > Actually you would be better off with: > > > > function setPart($part = NULL, $val = NULL, $append = FALSE) { > > if (isset($part) && isset($val) && @isset($this->{'_'.$part})) { > > if ($append) { > > $this->{'_'.$part} .= $val; > > } else { > > $this->{'_'.$part} = $val; > > } > > return TRUE; > > } > > return FALSE; > > } > > > > There is no need to go through the added overhead of calling > > get_class_vars and get_class, unless you want to disallow setting any > > vars not defined in the class definition. > > > > Using the @isset(..) method you could define an addPart and delPart > > function if required, which you can not do with Phil's solution. > > > > Dan > > > > _______________________________________________ > > New York PHP Talk > > Supporting AMP Technology (Apache/MySQL/PHP) > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.newyorkphp.org > > > > > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org > > From myersm at optonline.net Thu Jul 29 12:47:13 2004 From: myersm at optonline.net (Michael Myers) Date: Thu, 29 Jul 2004 12:47:13 -0400 Subject: [nycphp-talk] MSIE caching problem In-Reply-To: <670FEC60-E0B6-11D8-AE83-000A95DB7EF2@optonline.net> References: <670FEC60-E0B6-11D8-AE83-000A95DB7EF2@optonline.net> Message-ID: <F0F2573C-E17E-11D8-BEAD-000A95DB7EF2@optonline.net> I discovered that this form resetting happens only when the file extension is omitted from the URL (.php or .html). Perhaps the behavior can be controlled with an Apache setting... On Jul 28, 2004, at 12:51 PM, Michael Myers wrote: > I'm truly embarrased to ask this question, but other avenues have not > provided a solution. I don't know if the problem is in my HTML, the > browser configuration, or Apache. > > I have a very basic web form that takes in some values that are used > in a subsequent database query. After submitting, if the user elects > to back up in the browser cache in order to make a few changes on > original form and then re-submit, he/she finds that the entire form > has been reset. This only happens with MSIE (version 6.0.28) on > Windows XP. When I use Safari on MacOSX, the form retains the > previously entered values when I back up to it in the browser cache. > (Of course, forms on *other* web pages retain their values, even with > MSIE on Windows). > > I tried setting an "Expires:" header on the page containing the form > using the header() function, but this had no impact. > > I thought it was usually the case that people have trouble > *eliminating* caching! > > Server Specs: > MacOS 10.3.8 > built-in Apache 1.3.29 > PHP 4.3.4 > MySQL 4.1.3-beta From phillip.powell at adnet-sys.com Thu Jul 29 12:57:15 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Thu, 29 Jul 2004 12:57:15 -0400 Subject: [nycphp-talk] Object Methods and Properties In-Reply-To: <1091118589.8582.2.camel@68-235-15-192.sbtnvt.adelphia.net> References: <20040727201144.78095.qmail@web50203.mail.yahoo.com> <1090959414.13600.5.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BA50.4030608@adnet-sys.com> <1090960206.13600.11.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BD38.8030504@adnet-sys.com> <410728BA.60001@phpwerx.net> <1091064815.24992.2.camel@68-235-15-192.sbtnvt.adelphia.net> <1091118589.8582.2.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <41092C6B.8090908@adnet-sys.com> Joe Crawford wrote: >Something is still wrong with this code > > function setPart($part, $val, $append=FALSE) { > if (in_array($part, get_class_vars(get_class($this)))) { > if(($part) && ($val)) { > if ($append) $this->{'_' . $part} .= $val; > else $this->{'_' .$part} = $val; > } > return true; > } > $this->sendError('undefined property.'); > } > > > >this code is still allowing properties to be set that have not been >defined :( > > Use is_defined() to see if the property is defined, perhaps a combination of is_defined() and !isset(). Other than that, I have no idea. Phil >here is my entire class > > ><? >include_once('smarty/Smarty.class.php'); >class template extends Smarty { > > private $_header; > private $_body; > private $_footer; > > function template() { > $this->_header = null; > $this->_body = null; > $this->_footer = null; > > $this->Smarty(); > > $this->template_dir = BASE_DIR.'/smarty/dfs/templates/'; > $this->compile_dir = BASE_DIR.'/smarty/dfs/templates_c/'; > $this->config_dir = BASE_DIR.'/smarty/dfs/configs/'; > $this->cache_dir = BASE_DIR.'/smarty/dfs/cache/'; > > $this->caching = false; > $this->assign('app_name','Developer Financial Software'); > } > > function header($val) { > if($val) { > $this->_header = $val; > } else { > return $this->_header; > } > } > > function body($val) { > if($val) { > $this->_body = $val; > } else { > return $this->_body; > } > } > > function footer($val) { > if($val) { > $this->_footer .= $val; > } else { > return $this->_footer; > } > } > > function setPart($part, $val, $append=FALSE) { > if (in_array($part, get_class_vars(get_class($this)))) { > if(($part) && ($val)) { > if ($append) $this->{'_' . $part} .= $val; > else $this->{'_' .$part} = $val; > } > return true; > } > $this->sendError('undefined property.'); > } > > function sendError($err) { > if($err) { > echo $err; > exit; > } > } > > function displayError($live, $page) { > if($page) { > if($live) { > $this->display('error/static/'.$page.'.tpl'); > } else { > $this->display('error/'.$page.'.tpl'); > } > } else { > $this->display('error/static/generic.tpl'); > } > } > > function displayPage($page) { > $this->assign('header', $this->_header); > $this->assign('body', $this->_body); > $this->assign('footer', $this->_footer); > $this->display($page.'.tpl'); > } >} >?> > >here is my index.php page > ><? >include_once('include/global.php'); > >$page->subTitle('Home'); >$tpl->setPart('header', $tpl->fetch('header.tpl')); >$tpl->setPart('body', $tpl->fetch('main.tpl')); >$tpl->setPart('footer', $tpl->fetch('footer.tpl')); >$tpl->setPart('test', 'this is a test'); >echo $tpl->_test; > >$tpl->displayPage('page'); > >?> > > >when the page is executed it echo's the value of $tpl->_test when in >fact _test should not be set since i have no var $_test; in my class >definition. > >anyone here that can shed some light on this problem? > >Joe Crawford Jr. > > > >On Wed, 2004-07-28 at 21:33, Joe Crawford wrote: > > >>Dan, >> >>i do not want the class setting any undefined properties. >> >>Joe Crawford Jr. >> >> >>On Wed, 2004-07-28 at 00:16, Dan Cech wrote: >> >> >>>Phillip Powell wrote: >>> >>> >>>>Joe Crawford wrote: >>>> >>>> >>>> >>>>>Phill, >>>>> >>>>>thanks that worked just as expected... >>>>> >>>>>Now anyone know of a way to make sure $part is actually one of the class >>>>>variables? >>>>> >>>>> >>>>if (in_array($part, get_class_vars(get_class($this)))) { // DO STUFF } >>>> >>>>Assuming you have instantiated a MyClass object prior to this line >>>> >>>> >>>Actually you would be better off with: >>> >>>function setPart($part = NULL, $val = NULL, $append = FALSE) { >>> if (isset($part) && isset($val) && @isset($this->{'_'.$part})) { >>> if ($append) { >>> $this->{'_'.$part} .= $val; >>> } else { >>> $this->{'_'.$part} = $val; >>> } >>> return TRUE; >>> } >>> return FALSE; >>>} >>> >>>There is no need to go through the added overhead of calling >>>get_class_vars and get_class, unless you want to disallow setting any >>>vars not defined in the class definition. >>> >>>Using the @isset(..) method you could define an addPart and delPart >>>function if required, which you can not do with Phil's solution. >>> >>>Dan >>> >>>_______________________________________________ >>>New York PHP Talk >>>Supporting AMP Technology (Apache/MySQL/PHP) >>>http://lists.nyphp.org/mailman/listinfo/talk >>>http://www.newyorkphp.org >>> >>> >>> >>> >>_______________________________________________ >>New York PHP Talk >>Supporting AMP Technology (Apache/MySQL/PHP) >>http://lists.nyphp.org/mailman/listinfo/talk >>http://www.newyorkphp.org >> >> >> >> > >_______________________________________________ >New York PHP Talk >Supporting AMP Technology (Apache/MySQL/PHP) >http://lists.nyphp.org/mailman/listinfo/talk >http://www.newyorkphp.org > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From jcrawford at codebowl.com Thu Jul 29 12:57:11 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Thu, 29 Jul 2004 12:57:11 -0400 Subject: [nycphp-talk] Object Methods and Properties In-Reply-To: <41092C6B.8090908@adnet-sys.com> References: <20040727201144.78095.qmail@web50203.mail.yahoo.com> <1090959414.13600.5.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BA50.4030608@adnet-sys.com> <1090960206.13600.11.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BD38.8030504@adnet-sys.com> <410728BA.60001@phpwerx.net> <1091064815.24992.2.camel@68-235-15-192.sbtnvt.adelphia.net> <1091118589.8582.2.camel@68-235-15-192.sbtnvt.adelphia.net> <41092C6B.8090908@adnet-sys.com> Message-ID: <1091120231.8582.8.camel@68-235-15-192.sbtnvt.adelphia.net> Call to undefined function is_defined() i dont see where there is a function with that name anywhere. Joe Crawford Jr. On Thu, 2004-07-29 at 12:57, Phillip Powell wrote: > Joe Crawford wrote: > > >Something is still wrong with this code > > > > function setPart($part, $val, $append=FALSE) { > > if (in_array($part, get_class_vars(get_class($this)))) { > > if(($part) && ($val)) { > > if ($append) $this->{'_' . $part} .= $val; > > else $this->{'_' .$part} = $val; > > } > > return true; > > } > > $this->sendError('undefined property.'); > > } > > > > > > > >this code is still allowing properties to be set that have not been > >defined :( > > > > > > Use is_defined() to see if the property is defined, perhaps a > combination of > is_defined() and !isset(). Other than that, I have no idea. > > Phil > > >here is my entire class > > > > > ><? > >include_once('smarty/Smarty.class.php'); > >class template extends Smarty { > > > > private $_header; > > private $_body; > > private $_footer; > > > > function template() { > > $this->_header = null; > > $this->_body = null; > > $this->_footer = null; > > > > $this->Smarty(); > > > > $this->template_dir = BASE_DIR.'/smarty/dfs/templates/'; > > $this->compile_dir = BASE_DIR.'/smarty/dfs/templates_c/'; > > $this->config_dir = BASE_DIR.'/smarty/dfs/configs/'; > > $this->cache_dir = BASE_DIR.'/smarty/dfs/cache/'; > > > > $this->caching = false; > > $this->assign('app_name','Developer Financial Software'); > > } > > > > function header($val) { > > if($val) { > > $this->_header = $val; > > } else { > > return $this->_header; > > } > > } > > > > function body($val) { > > if($val) { > > $this->_body = $val; > > } else { > > return $this->_body; > > } > > } > > > > function footer($val) { > > if($val) { > > $this->_footer .= $val; > > } else { > > return $this->_footer; > > } > > } > > > > function setPart($part, $val, $append=FALSE) { > > if (in_array($part, get_class_vars(get_class($this)))) { > > if(($part) && ($val)) { > > if ($append) $this->{'_' . $part} .= $val; > > else $this->{'_' .$part} = $val; > > } > > return true; > > } > > $this->sendError('undefined property.'); > > } > > > > function sendError($err) { > > if($err) { > > echo $err; > > exit; > > } > > } > > > > function displayError($live, $page) { > > if($page) { > > if($live) { > > $this->display('error/static/'.$page.'.tpl'); > > } else { > > $this->display('error/'.$page.'.tpl'); > > } > > } else { > > $this->display('error/static/generic.tpl'); > > } > > } > > > > function displayPage($page) { > > $this->assign('header', $this->_header); > > $this->assign('body', $this->_body); > > $this->assign('footer', $this->_footer); > > $this->display($page.'.tpl'); > > } > >} > >?> > > > >here is my index.php page > > > ><? > >include_once('include/global.php'); > > > >$page->subTitle('Home'); > >$tpl->setPart('header', $tpl->fetch('header.tpl')); > >$tpl->setPart('body', $tpl->fetch('main.tpl')); > >$tpl->setPart('footer', $tpl->fetch('footer.tpl')); > >$tpl->setPart('test', 'this is a test'); > >echo $tpl->_test; > > > >$tpl->displayPage('page'); > > > >?> > > > > > >when the page is executed it echo's the value of $tpl->_test when in > >fact _test should not be set since i have no var $_test; in my class > >definition. > > > >anyone here that can shed some light on this problem? > > > >Joe Crawford Jr. > > > > > > > >On Wed, 2004-07-28 at 21:33, Joe Crawford wrote: > > > > > >>Dan, > >> > >>i do not want the class setting any undefined properties. > >> > >>Joe Crawford Jr. > >> > >> > >>On Wed, 2004-07-28 at 00:16, Dan Cech wrote: > >> > >> > >>>Phillip Powell wrote: > >>> > >>> > >>>>Joe Crawford wrote: > >>>> > >>>> > >>>> > >>>>>Phill, > >>>>> > >>>>>thanks that worked just as expected... > >>>>> > >>>>>Now anyone know of a way to make sure $part is actually one of the class > >>>>>variables? > >>>>> > >>>>> > >>>>if (in_array($part, get_class_vars(get_class($this)))) { // DO STUFF } > >>>> > >>>>Assuming you have instantiated a MyClass object prior to this line > >>>> > >>>> > >>>Actually you would be better off with: > >>> > >>>function setPart($part = NULL, $val = NULL, $append = FALSE) { > >>> if (isset($part) && isset($val) && @isset($this->{'_'.$part})) { > >>> if ($append) { > >>> $this->{'_'.$part} .= $val; > >>> } else { > >>> $this->{'_'.$part} = $val; > >>> } > >>> return TRUE; > >>> } > >>> return FALSE; > >>>} > >>> > >>>There is no need to go through the added overhead of calling > >>>get_class_vars and get_class, unless you want to disallow setting any > >>>vars not defined in the class definition. > >>> > >>>Using the @isset(..) method you could define an addPart and delPart > >>>function if required, which you can not do with Phil's solution. > >>> > >>>Dan > >>> > >>>_______________________________________________ > >>>New York PHP Talk > >>>Supporting AMP Technology (Apache/MySQL/PHP) > >>>http://lists.nyphp.org/mailman/listinfo/talk > >>>http://www.newyorkphp.org > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>New York PHP Talk > >>Supporting AMP Technology (Apache/MySQL/PHP) > >>http://lists.nyphp.org/mailman/listinfo/talk > >>http://www.newyorkphp.org > >> > >> > >> > >> > > > >_______________________________________________ > >New York PHP Talk > >Supporting AMP Technology (Apache/MySQL/PHP) > >http://lists.nyphp.org/mailman/listinfo/talk > >http://www.newyorkphp.org > > > > > > > From jcrawford at codebowl.com Thu Jul 29 13:00:23 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Thu, 29 Jul 2004 13:00:23 -0400 Subject: [nycphp-talk] Object Methods and Properties In-Reply-To: <1091120231.8582.8.camel@68-235-15-192.sbtnvt.adelphia.net> References: <20040727201144.78095.qmail@web50203.mail.yahoo.com> <1090959414.13600.5.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BA50.4030608@adnet-sys.com> <1090960206.13600.11.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BD38.8030504@adnet-sys.com> <410728BA.60001@phpwerx.net> <1091064815.24992.2.camel@68-235-15-192.sbtnvt.adelphia.net> <1091118589.8582.2.camel@68-235-15-192.sbtnvt.adelphia.net> <41092C6B.8090908@adnet-sys.com> <1091120231.8582.8.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <1091120423.8582.10.camel@68-235-15-192.sbtnvt.adelphia.net> i got it to work using isset() i just have to set the property values to '' in the constructor rather than null. Joe Crawford Jr. On Thu, 2004-07-29 at 12:57, Joe Crawford wrote: > Call to undefined function is_defined() > > i dont see where there is a function with that name anywhere. > > Joe Crawford Jr. > > > On Thu, 2004-07-29 at 12:57, Phillip Powell wrote: > > Joe Crawford wrote: > > > > >Something is still wrong with this code > > > > > > function setPart($part, $val, $append=FALSE) { > > > if (in_array($part, get_class_vars(get_class($this)))) { > > > if(($part) && ($val)) { > > > if ($append) $this->{'_' . $part} .= $val; > > > else $this->{'_' .$part} = $val; > > > } > > > return true; > > > } > > > $this->sendError('undefined property.'); > > > } > > > > > > > > > > > >this code is still allowing properties to be set that have not been > > >defined :( > > > > > > > > > > Use is_defined() to see if the property is defined, perhaps a > > combination of > > is_defined() and !isset(). Other than that, I have no idea. > > > > Phil > > > > >here is my entire class > > > > > > > > ><? > > >include_once('smarty/Smarty.class.php'); > > >class template extends Smarty { > > > > > > private $_header; > > > private $_body; > > > private $_footer; > > > > > > function template() { > > > $this->_header = null; > > > $this->_body = null; > > > $this->_footer = null; > > > > > > $this->Smarty(); > > > > > > $this->template_dir = BASE_DIR.'/smarty/dfs/templates/'; > > > $this->compile_dir = BASE_DIR.'/smarty/dfs/templates_c/'; > > > $this->config_dir = BASE_DIR.'/smarty/dfs/configs/'; > > > $this->cache_dir = BASE_DIR.'/smarty/dfs/cache/'; > > > > > > $this->caching = false; > > > $this->assign('app_name','Developer Financial Software'); > > > } > > > > > > function header($val) { > > > if($val) { > > > $this->_header = $val; > > > } else { > > > return $this->_header; > > > } > > > } > > > > > > function body($val) { > > > if($val) { > > > $this->_body = $val; > > > } else { > > > return $this->_body; > > > } > > > } > > > > > > function footer($val) { > > > if($val) { > > > $this->_footer .= $val; > > > } else { > > > return $this->_footer; > > > } > > > } > > > > > > function setPart($part, $val, $append=FALSE) { > > > if (in_array($part, get_class_vars(get_class($this)))) { > > > if(($part) && ($val)) { > > > if ($append) $this->{'_' . $part} .= $val; > > > else $this->{'_' .$part} = $val; > > > } > > > return true; > > > } > > > $this->sendError('undefined property.'); > > > } > > > > > > function sendError($err) { > > > if($err) { > > > echo $err; > > > exit; > > > } > > > } > > > > > > function displayError($live, $page) { > > > if($page) { > > > if($live) { > > > $this->display('error/static/'.$page.'.tpl'); > > > } else { > > > $this->display('error/'.$page.'.tpl'); > > > } > > > } else { > > > $this->display('error/static/generic.tpl'); > > > } > > > } > > > > > > function displayPage($page) { > > > $this->assign('header', $this->_header); > > > $this->assign('body', $this->_body); > > > $this->assign('footer', $this->_footer); > > > $this->display($page.'.tpl'); > > > } > > >} > > >?> > > > > > >here is my index.php page > > > > > ><? > > >include_once('include/global.php'); > > > > > >$page->subTitle('Home'); > > >$tpl->setPart('header', $tpl->fetch('header.tpl')); > > >$tpl->setPart('body', $tpl->fetch('main.tpl')); > > >$tpl->setPart('footer', $tpl->fetch('footer.tpl')); > > >$tpl->setPart('test', 'this is a test'); > > >echo $tpl->_test; > > > > > >$tpl->displayPage('page'); > > > > > >?> > > > > > > > > >when the page is executed it echo's the value of $tpl->_test when in > > >fact _test should not be set since i have no var $_test; in my class > > >definition. > > > > > >anyone here that can shed some light on this problem? > > > > > >Joe Crawford Jr. > > > > > > > > > > > >On Wed, 2004-07-28 at 21:33, Joe Crawford wrote: > > > > > > > > >>Dan, > > >> > > >>i do not want the class setting any undefined properties. > > >> > > >>Joe Crawford Jr. > > >> > > >> > > >>On Wed, 2004-07-28 at 00:16, Dan Cech wrote: > > >> > > >> > > >>>Phillip Powell wrote: > > >>> > > >>> > > >>>>Joe Crawford wrote: > > >>>> > > >>>> > > >>>> > > >>>>>Phill, > > >>>>> > > >>>>>thanks that worked just as expected... > > >>>>> > > >>>>>Now anyone know of a way to make sure $part is actually one of the class > > >>>>>variables? > > >>>>> > > >>>>> > > >>>>if (in_array($part, get_class_vars(get_class($this)))) { // DO STUFF } > > >>>> > > >>>>Assuming you have instantiated a MyClass object prior to this line > > >>>> > > >>>> > > >>>Actually you would be better off with: > > >>> > > >>>function setPart($part = NULL, $val = NULL, $append = FALSE) { > > >>> if (isset($part) && isset($val) && @isset($this->{'_'.$part})) { > > >>> if ($append) { > > >>> $this->{'_'.$part} .= $val; > > >>> } else { > > >>> $this->{'_'.$part} = $val; > > >>> } > > >>> return TRUE; > > >>> } > > >>> return FALSE; > > >>>} > > >>> > > >>>There is no need to go through the added overhead of calling > > >>>get_class_vars and get_class, unless you want to disallow setting any > > >>>vars not defined in the class definition. > > >>> > > >>>Using the @isset(..) method you could define an addPart and delPart > > >>>function if required, which you can not do with Phil's solution. > > >>> > > >>>Dan > > >>> > > >>>_______________________________________________ > > >>>New York PHP Talk > > >>>Supporting AMP Technology (Apache/MySQL/PHP) > > >>>http://lists.nyphp.org/mailman/listinfo/talk > > >>>http://www.newyorkphp.org > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>New York PHP Talk > > >>Supporting AMP Technology (Apache/MySQL/PHP) > > >>http://lists.nyphp.org/mailman/listinfo/talk > > >>http://www.newyorkphp.org > > >> > > >> > > >> > > >> > > > > > >_______________________________________________ > > >New York PHP Talk > > >Supporting AMP Technology (Apache/MySQL/PHP) > > >http://lists.nyphp.org/mailman/listinfo/talk > > >http://www.newyorkphp.org > > > > > > > > > > > > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org > > From phillip.powell at adnet-sys.com Thu Jul 29 13:03:43 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Thu, 29 Jul 2004 13:03:43 -0400 Subject: [nycphp-talk] Object Methods and Properties In-Reply-To: <1091120231.8582.8.camel@68-235-15-192.sbtnvt.adelphia.net> References: <20040727201144.78095.qmail@web50203.mail.yahoo.com> <1090959414.13600.5.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BA50.4030608@adnet-sys.com> <1090960206.13600.11.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BD38.8030504@adnet-sys.com> <410728BA.60001@phpwerx.net> <1091064815.24992.2.camel@68-235-15-192.sbtnvt.adelphia.net> <1091118589.8582.2.camel@68-235-15-192.sbtnvt.adelphia.net> <41092C6B.8090908@adnet-sys.com> <1091120231.8582.8.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <41092DEF.50104@adnet-sys.com> Joe Crawford wrote: >Call to undefined function is_defined() > >i dont see where there is a function with that name anywhere. > > > I meant defined() sorry. I think you might want to escalate this to someone as ubersmart as Daniel. Phil >Joe Crawford Jr. > > >On Thu, 2004-07-29 at 12:57, Phillip Powell wrote: > > >>Joe Crawford wrote: >> >> >> >>>Something is still wrong with this code >>> >>> function setPart($part, $val, $append=FALSE) { >>> if (in_array($part, get_class_vars(get_class($this)))) { >>> if(($part) && ($val)) { >>> if ($append) $this->{'_' . $part} .= $val; >>> else $this->{'_' .$part} = $val; >>> } >>> return true; >>> } >>> $this->sendError('undefined property.'); >>> } >>> >>> >>> >>>this code is still allowing properties to be set that have not been >>>defined :( >>> >>> >>> >>> >>Use is_defined() to see if the property is defined, perhaps a >>combination of >>is_defined() and !isset(). Other than that, I have no idea. >> >>Phil >> >> >> >>>here is my entire class >>> >>> >>><? >>>include_once('smarty/Smarty.class.php'); >>>class template extends Smarty { >>> >>> private $_header; >>> private $_body; >>> private $_footer; >>> >>> function template() { >>> $this->_header = null; >>> $this->_body = null; >>> $this->_footer = null; >>> >>> $this->Smarty(); >>> >>> $this->template_dir = BASE_DIR.'/smarty/dfs/templates/'; >>> $this->compile_dir = BASE_DIR.'/smarty/dfs/templates_c/'; >>> $this->config_dir = BASE_DIR.'/smarty/dfs/configs/'; >>> $this->cache_dir = BASE_DIR.'/smarty/dfs/cache/'; >>> >>> $this->caching = false; >>> $this->assign('app_name','Developer Financial Software'); >>> } >>> >>> function header($val) { >>> if($val) { >>> $this->_header = $val; >>> } else { >>> return $this->_header; >>> } >>> } >>> >>> function body($val) { >>> if($val) { >>> $this->_body = $val; >>> } else { >>> return $this->_body; >>> } >>> } >>> >>> function footer($val) { >>> if($val) { >>> $this->_footer .= $val; >>> } else { >>> return $this->_footer; >>> } >>> } >>> >>> function setPart($part, $val, $append=FALSE) { >>> if (in_array($part, get_class_vars(get_class($this)))) { >>> if(($part) && ($val)) { >>> if ($append) $this->{'_' . $part} .= $val; >>> else $this->{'_' .$part} = $val; >>> } >>> return true; >>> } >>> $this->sendError('undefined property.'); >>> } >>> >>> function sendError($err) { >>> if($err) { >>> echo $err; >>> exit; >>> } >>> } >>> >>> function displayError($live, $page) { >>> if($page) { >>> if($live) { >>> $this->display('error/static/'.$page.'.tpl'); >>> } else { >>> $this->display('error/'.$page.'.tpl'); >>> } >>> } else { >>> $this->display('error/static/generic.tpl'); >>> } >>> } >>> >>> function displayPage($page) { >>> $this->assign('header', $this->_header); >>> $this->assign('body', $this->_body); >>> $this->assign('footer', $this->_footer); >>> $this->display($page.'.tpl'); >>> } >>>} >>>?> >>> >>>here is my index.php page >>> >>><? >>>include_once('include/global.php'); >>> >>>$page->subTitle('Home'); >>>$tpl->setPart('header', $tpl->fetch('header.tpl')); >>>$tpl->setPart('body', $tpl->fetch('main.tpl')); >>>$tpl->setPart('footer', $tpl->fetch('footer.tpl')); >>>$tpl->setPart('test', 'this is a test'); >>>echo $tpl->_test; >>> >>>$tpl->displayPage('page'); >>> >>>?> >>> >>> >>>when the page is executed it echo's the value of $tpl->_test when in >>>fact _test should not be set since i have no var $_test; in my class >>>definition. >>> >>>anyone here that can shed some light on this problem? >>> >>>Joe Crawford Jr. >>> >>> >>> >>>On Wed, 2004-07-28 at 21:33, Joe Crawford wrote: >>> >>> >>> >>> >>>>Dan, >>>> >>>>i do not want the class setting any undefined properties. >>>> >>>>Joe Crawford Jr. >>>> >>>> >>>>On Wed, 2004-07-28 at 00:16, Dan Cech wrote: >>>> >>>> >>>> >>>> >>>>>Phillip Powell wrote: >>>>> >>>>> >>>>> >>>>> >>>>>>Joe Crawford wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>Phill, >>>>>>> >>>>>>>thanks that worked just as expected... >>>>>>> >>>>>>>Now anyone know of a way to make sure $part is actually one of the class >>>>>>>variables? >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>if (in_array($part, get_class_vars(get_class($this)))) { // DO STUFF } >>>>>> >>>>>>Assuming you have instantiated a MyClass object prior to this line >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Actually you would be better off with: >>>>> >>>>>function setPart($part = NULL, $val = NULL, $append = FALSE) { >>>>> if (isset($part) && isset($val) && @isset($this->{'_'.$part})) { >>>>> if ($append) { >>>>> $this->{'_'.$part} .= $val; >>>>> } else { >>>>> $this->{'_'.$part} = $val; >>>>> } >>>>> return TRUE; >>>>> } >>>>> return FALSE; >>>>>} >>>>> >>>>>There is no need to go through the added overhead of calling >>>>>get_class_vars and get_class, unless you want to disallow setting any >>>>>vars not defined in the class definition. >>>>> >>>>>Using the @isset(..) method you could define an addPart and delPart >>>>>function if required, which you can not do with Phil's solution. >>>>> >>>>>Dan >>>>> >>>>>_______________________________________________ >>>>>New York PHP Talk >>>>>Supporting AMP Technology (Apache/MySQL/PHP) >>>>>http://lists.nyphp.org/mailman/listinfo/talk >>>>>http://www.newyorkphp.org >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>New York PHP Talk >>>>Supporting AMP Technology (Apache/MySQL/PHP) >>>>http://lists.nyphp.org/mailman/listinfo/talk >>>>http://www.newyorkphp.org >>>> >>>> >>>> >>>> >>>> >>>> >>>_______________________________________________ >>>New York PHP Talk >>>Supporting AMP Technology (Apache/MySQL/PHP) >>>http://lists.nyphp.org/mailman/listinfo/talk >>>http://www.newyorkphp.org >>> >>> >>> >>> >>> > >_______________________________________________ >New York PHP Talk >Supporting AMP Technology (Apache/MySQL/PHP) >http://lists.nyphp.org/mailman/listinfo/talk >http://www.newyorkphp.org > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From jcrawford at codebowl.com Thu Jul 29 13:01:52 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Thu, 29 Jul 2004 13:01:52 -0400 Subject: [nycphp-talk] Object Methods and Properties In-Reply-To: <41092DEF.50104@adnet-sys.com> References: <20040727201144.78095.qmail@web50203.mail.yahoo.com> <1090959414.13600.5.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BA50.4030608@adnet-sys.com> <1090960206.13600.11.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BD38.8030504@adnet-sys.com> <410728BA.60001@phpwerx.net> <1091064815.24992.2.camel@68-235-15-192.sbtnvt.adelphia.net> <1091118589.8582.2.camel@68-235-15-192.sbtnvt.adelphia.net> <41092C6B.8090908@adnet-sys.com> <1091120231.8582.8.camel@68-235-15-192.sbtnvt.adelphia.net> <41092DEF.50104@adnet-sys.com> Message-ID: <1091120512.8582.12.camel@68-235-15-192.sbtnvt.adelphia.net> defined() only works with constants and not variables. Joe Crawford Jr. On Thu, 2004-07-29 at 13:03, Phillip Powell wrote: > Joe Crawford wrote: > > >Call to undefined function is_defined() > > > >i dont see where there is a function with that name anywhere. > > > > > > > I meant defined() sorry. I think you might want to escalate this to > someone as ubersmart as Daniel. > > Phil > > >Joe Crawford Jr. > > > > > >On Thu, 2004-07-29 at 12:57, Phillip Powell wrote: > > > > > >>Joe Crawford wrote: > >> > >> > >> > >>>Something is still wrong with this code > >>> > >>> function setPart($part, $val, $append=FALSE) { > >>> if (in_array($part, get_class_vars(get_class($this)))) { > >>> if(($part) && ($val)) { > >>> if ($append) $this->{'_' . $part} .= $val; > >>> else $this->{'_' .$part} = $val; > >>> } > >>> return true; > >>> } > >>> $this->sendError('undefined property.'); > >>> } > >>> > >>> > >>> > >>>this code is still allowing properties to be set that have not been > >>>defined :( > >>> > >>> > >>> > >>> > >>Use is_defined() to see if the property is defined, perhaps a > >>combination of > >>is_defined() and !isset(). Other than that, I have no idea. > >> > >>Phil > >> > >> > >> > >>>here is my entire class > >>> > >>> > >>><? > >>>include_once('smarty/Smarty.class.php'); > >>>class template extends Smarty { > >>> > >>> private $_header; > >>> private $_body; > >>> private $_footer; > >>> > >>> function template() { > >>> $this->_header = null; > >>> $this->_body = null; > >>> $this->_footer = null; > >>> > >>> $this->Smarty(); > >>> > >>> $this->template_dir = BASE_DIR.'/smarty/dfs/templates/'; > >>> $this->compile_dir = BASE_DIR.'/smarty/dfs/templates_c/'; > >>> $this->config_dir = BASE_DIR.'/smarty/dfs/configs/'; > >>> $this->cache_dir = BASE_DIR.'/smarty/dfs/cache/'; > >>> > >>> $this->caching = false; > >>> $this->assign('app_name','Developer Financial Software'); > >>> } > >>> > >>> function header($val) { > >>> if($val) { > >>> $this->_header = $val; > >>> } else { > >>> return $this->_header; > >>> } > >>> } > >>> > >>> function body($val) { > >>> if($val) { > >>> $this->_body = $val; > >>> } else { > >>> return $this->_body; > >>> } > >>> } > >>> > >>> function footer($val) { > >>> if($val) { > >>> $this->_footer .= $val; > >>> } else { > >>> return $this->_footer; > >>> } > >>> } > >>> > >>> function setPart($part, $val, $append=FALSE) { > >>> if (in_array($part, get_class_vars(get_class($this)))) { > >>> if(($part) && ($val)) { > >>> if ($append) $this->{'_' . $part} .= $val; > >>> else $this->{'_' .$part} = $val; > >>> } > >>> return true; > >>> } > >>> $this->sendError('undefined property.'); > >>> } > >>> > >>> function sendError($err) { > >>> if($err) { > >>> echo $err; > >>> exit; > >>> } > >>> } > >>> > >>> function displayError($live, $page) { > >>> if($page) { > >>> if($live) { > >>> $this->display('error/static/'.$page.'.tpl'); > >>> } else { > >>> $this->display('error/'.$page.'.tpl'); > >>> } > >>> } else { > >>> $this->display('error/static/generic.tpl'); > >>> } > >>> } > >>> > >>> function displayPage($page) { > >>> $this->assign('header', $this->_header); > >>> $this->assign('body', $this->_body); > >>> $this->assign('footer', $this->_footer); > >>> $this->display($page.'.tpl'); > >>> } > >>>} > >>>?> > >>> > >>>here is my index.php page > >>> > >>><? > >>>include_once('include/global.php'); > >>> > >>>$page->subTitle('Home'); > >>>$tpl->setPart('header', $tpl->fetch('header.tpl')); > >>>$tpl->setPart('body', $tpl->fetch('main.tpl')); > >>>$tpl->setPart('footer', $tpl->fetch('footer.tpl')); > >>>$tpl->setPart('test', 'this is a test'); > >>>echo $tpl->_test; > >>> > >>>$tpl->displayPage('page'); > >>> > >>>?> > >>> > >>> > >>>when the page is executed it echo's the value of $tpl->_test when in > >>>fact _test should not be set since i have no var $_test; in my class > >>>definition. > >>> > >>>anyone here that can shed some light on this problem? > >>> > >>>Joe Crawford Jr. > >>> > >>> > >>> > >>>On Wed, 2004-07-28 at 21:33, Joe Crawford wrote: > >>> > >>> > >>> > >>> > >>>>Dan, > >>>> > >>>>i do not want the class setting any undefined properties. > >>>> > >>>>Joe Crawford Jr. > >>>> > >>>> > >>>>On Wed, 2004-07-28 at 00:16, Dan Cech wrote: > >>>> > >>>> > >>>> > >>>> > >>>>>Phillip Powell wrote: > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>Joe Crawford wrote: > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>>Phill, > >>>>>>> > >>>>>>>thanks that worked just as expected... > >>>>>>> > >>>>>>>Now anyone know of a way to make sure $part is actually one of the class > >>>>>>>variables? > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>if (in_array($part, get_class_vars(get_class($this)))) { // DO STUFF } > >>>>>> > >>>>>>Assuming you have instantiated a MyClass object prior to this line > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>Actually you would be better off with: > >>>>> > >>>>>function setPart($part = NULL, $val = NULL, $append = FALSE) { > >>>>> if (isset($part) && isset($val) && @isset($this->{'_'.$part})) { > >>>>> if ($append) { > >>>>> $this->{'_'.$part} .= $val; > >>>>> } else { > >>>>> $this->{'_'.$part} = $val; > >>>>> } > >>>>> return TRUE; > >>>>> } > >>>>> return FALSE; > >>>>>} > >>>>> > >>>>>There is no need to go through the added overhead of calling > >>>>>get_class_vars and get_class, unless you want to disallow setting any > >>>>>vars not defined in the class definition. > >>>>> > >>>>>Using the @isset(..) method you could define an addPart and delPart > >>>>>function if required, which you can not do with Phil's solution. > >>>>> > >>>>>Dan > >>>>> > >>>>>_______________________________________________ > >>>>>New York PHP Talk > >>>>>Supporting AMP Technology (Apache/MySQL/PHP) > >>>>>http://lists.nyphp.org/mailman/listinfo/talk > >>>>>http://www.newyorkphp.org > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>_______________________________________________ > >>>>New York PHP Talk > >>>>Supporting AMP Technology (Apache/MySQL/PHP) > >>>>http://lists.nyphp.org/mailman/listinfo/talk > >>>>http://www.newyorkphp.org > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>_______________________________________________ > >>>New York PHP Talk > >>>Supporting AMP Technology (Apache/MySQL/PHP) > >>>http://lists.nyphp.org/mailman/listinfo/talk > >>>http://www.newyorkphp.org > >>> > >>> > >>> > >>> > >>> > > > >_______________________________________________ > >New York PHP Talk > >Supporting AMP Technology (Apache/MySQL/PHP) > >http://lists.nyphp.org/mailman/listinfo/talk > >http://www.newyorkphp.org > > > > > > > From danielc at analysisandsolutions.com Thu Jul 29 13:01:55 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 29 Jul 2004 13:01:55 -0400 Subject: [nycphp-talk] Object Methods and Properties In-Reply-To: <1091118589.8582.2.camel@68-235-15-192.sbtnvt.adelphia.net> References: <20040727201144.78095.qmail@web50203.mail.yahoo.com> <1090959414.13600.5.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BA50.4030608@adnet-sys.com> <1090960206.13600.11.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BD38.8030504@adnet-sys.com> <410728BA.60001@phpwerx.net> <1091064815.24992.2.camel@68-235-15-192.sbtnvt.adelphia.net> <1091118589.8582.2.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <20040729170154.GA16687@panix.com> Joe: On Thu, Jul 29, 2004 at 12:29:49PM -0400, Joe Crawford wrote: > function setPart($part, $val, $append=FALSE) { > if (in_array($part, get_class_vars(get_class($this)))) { > if(($part) && ($val)) { > if ($append) $this->{'_' . $part} .= $val; > else $this->{'_' .$part} = $val; > } First off, aren't you mixing up your variable variable substitution? In some places you're using $part and in others you're using '_' . $part. They are not the same thing. You really should be calling the method with the REAL property name. So, if the property is called "_foo", pass "_foo" to the $part parameter. That's far clearer and faster than passing "foo" to $part and then tacking on the '_' repeatedly. Let alone, why are you calling them "parts"? They are "properties." Now, all that aside, as someone mentioned the other day, your class_vars check is overly complex for no reason. Just do an isset() check. if (isset($this->$part)) { } OR, if you insist on continuing the ambiguous automatic underscore prefixing: if (isset($this->{'_' . $part})) { } You mistakenly replied to them that you don't want to set unset properties. That's what this check prevents. --Dan PS: When composing replies in the future, PLEASE be so kind as to delete the vast majority of the quoted content from prior postings rather than being lazy and just leaving there. -- 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 danielc at analysisandsolutions.com Thu Jul 29 13:04:44 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 29 Jul 2004 13:04:44 -0400 Subject: [nycphp-talk] Object Methods and Properties In-Reply-To: <20040729170154.GA16687@panix.com> References: <20040727201144.78095.qmail@web50203.mail.yahoo.com> <1090959414.13600.5.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BA50.4030608@adnet-sys.com> <1090960206.13600.11.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BD38.8030504@adnet-sys.com> <410728BA.60001@phpwerx.net> <1091064815.24992.2.camel@68-235-15-192.sbtnvt.adelphia.net> <1091118589.8582.2.camel@68-235-15-192.sbtnvt.adelphia.net> <20040729170154.GA16687@panix.com> Message-ID: <20040729170444.GB16687@panix.com> Joe: On Thu, Jul 29, 2004 at 01:01:55PM -0400, Daniel Convissor wrote: > > if (isset($this->$part)) { > } I forgot to mention (because I started saying it in a prior reply that I ended up quitting to start over)... Make sure to declare your properties with a value. Strings: private $item = ''; Numbers: private $item = 0; Arrays: private $item = array(); --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 jcrawford at codebowl.com Thu Jul 29 13:07:58 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Thu, 29 Jul 2004 13:07:58 -0400 Subject: [nycphp-talk] Object Methods and Properties In-Reply-To: <20040729170154.GA16687@panix.com> References: <20040727201144.78095.qmail@web50203.mail.yahoo.com> <1090959414.13600.5.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BA50.4030608@adnet-sys.com> <1090960206.13600.11.camel@68-235-15-192.sbtnvt.adelphia.net> <4106BD38.8030504@adnet-sys.com> <410728BA.60001@phpwerx.net> <1091064815.24992.2.camel@68-235-15-192.sbtnvt.adelphia.net> <1091118589.8582.2.camel@68-235-15-192.sbtnvt.adelphia.net> <20040729170154.GA16687@panix.com> Message-ID: <1091120877.8582.14.camel@68-235-15-192.sbtnvt.adelphia.net> Daniel, thanks for this information i have gotten it to work with the help ;) Joe Crawford Jr. From wheelie at acedsl.com Thu Jul 29 13:19:24 2004 From: wheelie at acedsl.com (Joshua Glenn) Date: Thu, 29 Jul 2004 13:19:24 -0400 Subject: [nycphp-talk] Javascript and PHP arrays (Massive Redux) In-Reply-To: <C0CDB9F5E81C234FBB42D84E7853125D013B0A8E@intamail1.inta> Message-ID: <IJELJIKLMLIOAJFOEKKFAEGMDCAA.wheelie@acedsl.com> I just came across the same problem and solved it buy using getElementById(). ie: <name="array[]" id="array"> -josh > Okay guys, I know we visit this every couple months. Please bear > with me :) > > Where is a good resource (php.net and google don't seem to have answers I > can use) for validating the form with Javascript where the form vars are > named with square-brackets so I can handle them as an array in PHP? > > Everything I've tried coughs up "undefined" for the value of the > form var in > question. From Cbielanski at inta.org Thu Jul 29 13:27:10 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Thu, 29 Jul 2004 13:27:10 -0400 Subject: [nycphp-talk] Javascript and PHP arrays (Massive Redux) Message-ID: <C0CDB9F5E81C234FBB42D84E7853125D013B0A96@intamail1.inta> Ah, yeah I put this one to bed with the help of some crazy Scandinavian... ;) I was neglecting the trailing array subscript. The solution is now: alert(document.form.elements["elemName[]"][N].value); displays the Nth value (zero-based) named "elemName[]" out of the form. 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: Joshua Glenn [mailto:wheelie at acedsl.com] > Sent: Thursday, July 29, 2004 1:19 PM > To: NYPHP Talk > Subject: RE: [nycphp-talk] Javascript and PHP arrays (Massive Redux) > > > I just came across the same problem and solved it buy using > getElementById(). > > ie: > <name="array[]" id="array"> > > -josh > > > Okay guys, I know we visit this every couple months. Please bear > > with me :) > > > > Where is a good resource (php.net and google don't seem to > have answers I > > can use) for validating the form with Javascript where the > form vars are > > named with square-brackets so I can handle them as an array in PHP? > > > > Everything I've tried coughs up "undefined" for the value of the > > form var in > > question. > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org > From donald at saturn5net.com Thu Jul 29 13:38:25 2004 From: donald at saturn5net.com (Donald Organ) Date: Thu, 29 Jul 2004 13:38:25 -0400 Subject: [nycphp-talk] Setting up mailman Message-ID: <006201c47592$d9ab6560$12020a0a@dorganmobile> Can soemone help me in finalizing a mailman setup, the list creation worksbut i cannot send an email to the list i get an error saying the server hasrejected the recipient From brian at vermonster.com Thu Jul 29 13:39:33 2004 From: brian at vermonster.com (Brian Kaney) Date: Thu, 29 Jul 2004 13:39:33 -0400 Subject: [nycphp-talk] Javascript and PHP arrays (Massive Redux) In-Reply-To: <C0CDB9F5E81C234FBB42D84E7853125D013B0A96@intamail1.inta> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A96@intamail1.inta> Message-ID: <1091122773.19178.37.camel@brian.vermonster.com> I recommend using Josh's recommendation (i.e. the getElementBy* methods), and follow the standards-compliant DOM: http://www.w3.org/DOM/ Not to pontificate standards compliance...but from my experience this will make you code less brittle, especially across different browsers and browser versions. -Brian On Thu, 2004-07-29 at 13:27, Chris Bielanski wrote: > Ah, yeah I put this one to bed with the help of some crazy Scandinavian... > ;) > > I was neglecting the trailing array subscript. The solution is now: > > alert(document.form.elements["elemName[]"][N].value); > > displays the Nth value (zero-based) named "elemName[]" out of the form. > > 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: Joshua Glenn [mailto:wheelie at acedsl.com] > > Sent: Thursday, July 29, 2004 1:19 PM > > To: NYPHP Talk > > Subject: RE: [nycphp-talk] Javascript and PHP arrays (Massive Redux) > > > > > > I just came across the same problem and solved it buy using > > getElementById(). > > > > ie: > > <name="array[]" id="array"> > > > > -josh > > From ajai at bitblit.net Thu Jul 29 13:45:39 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 29 Jul 2004 13:45:39 -0400 Subject: [nycphp-talk] Setting up mailman In-Reply-To: <006201c47592$d9ab6560$12020a0a@dorganmobile> References: <006201c47592$d9ab6560$12020a0a@dorganmobile> Message-ID: <410937C3.8020504@bitblit.net> Donald Organ wrote: >Can soemone help me in finalizing a mailman setup, the list creation >worksbut i cannot send an email to the list i get an error saying the server >hasrejected the recipient > Did you setup the aliases for incoming mail? -- Aj. Systems Administrator / Developer From donald at saturn5net.com Thu Jul 29 13:51:47 2004 From: donald at saturn5net.com (Donald Organ) Date: Thu, 29 Jul 2004 13:51:47 -0400 Subject: [nycphp-talk] Setting up mailman References: <006201c47592$d9ab6560$12020a0a@dorganmobile> <410937C3.8020504@bitblit.net> Message-ID: <009e01c47594$b82182b0$12020a0a@dorganmobile> should the list creation do that? or do i manually have to edit /etc/aliases ----- Original Message ----- From: "Ajai Khattri" <ajai at bitblit.net> To: "NYPHP Talk" <talk at lists.nyphp.org> Sent: Thursday, July 29, 2004 1:45 PM Subject: Re: [nycphp-talk] Setting up mailman > Donald Organ wrote: > > >Can soemone help me in finalizing a mailman setup, the list creation > >worksbut i cannot send an email to the list i get an error saying the server > >hasrejected the recipient > > > > Did you setup the aliases for incoming mail? > > > -- > Aj. > Systems Administrator / Developer > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org From faber at linuxnj.com Thu Jul 29 13:52:07 2004 From: faber at linuxnj.com (Faber Fedor) Date: Thu, 29 Jul 2004 13:52:07 -0400 Subject: [nycphp-talk] Re: Setting up mailman In-Reply-To: <006201c47592$d9ab6560$12020a0a@dorganmobile> References: <006201c47592$d9ab6560$12020a0a@dorganmobile> Message-ID: <20040729175207.GB2581@uranus.faber.nom> On 29/07/04 13:38 -0400, Donald Organ wrote: > Can soemone help me in finalizing a mailman setup, the list creation > worksbut i cannot send an email to the list i get an error saying the server > hasrejected the recipient It will also tell you WHY the recipient was rejected. Why was he? Is the recipient subscribed? -- Regards, Faber Linux New Jersey: Open Source Solutions for New Jersey http://www.linuxnj.com From donald at saturn5net.com Thu Jul 29 13:54:53 2004 From: donald at saturn5net.com (Donald Organ) Date: Thu, 29 Jul 2004 13:54:53 -0400 Subject: [nycphp-talk] Re: Setting up mailman References: <006201c47592$d9ab6560$12020a0a@dorganmobile> <20040729175207.GB2581@uranus.faber.nom> Message-ID: <00bf01c47595$2716d080$12020a0a@dorganmobile> it says no such user ----- Original Message ----- From: "Faber Fedor" <faber at linuxnj.com> To: "NYPHP Talk" <talk at lists.nyphp.org> Sent: Thursday, July 29, 2004 1:52 PM Subject: [nycphp-talk] Re: Setting up mailman > On 29/07/04 13:38 -0400, Donald Organ wrote: > > Can soemone help me in finalizing a mailman setup, the list creation > > worksbut i cannot send an email to the list i get an error saying the server > > hasrejected the recipient > > It will also tell you WHY the recipient was rejected. Why was he? > > Is the recipient subscribed? > > -- > > Regards, > > Faber > > Linux New Jersey: Open Source Solutions for New Jersey > http://www.linuxnj.com > > > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org From donald at saturn5net.com Thu Jul 29 14:04:10 2004 From: donald at saturn5net.com (Donald Organ) Date: Thu, 29 Jul 2004 14:04:10 -0400 Subject: [nycphp-talk] Re: Setting up mailman References: <006201c47592$d9ab6560$12020a0a@dorganmobile><20040729175207.GB2581@uranus.faber.nom> <00bf01c47595$2716d080$12020a0a@dorganmobile> Message-ID: <00dd01c47596$72ca20d0$12020a0a@dorganmobile> Do i have to create a user on the mailing list box (which is also the smtp server) ----- Original Message ----- From: "Donald Organ" <donald at saturn5net.com> To: "NYPHP Talk" <talk at lists.nyphp.org> Sent: Thursday, July 29, 2004 1:54 PM Subject: Re: [nycphp-talk] Re: Setting up mailman > it says no such user > > > ----- Original Message ----- > From: "Faber Fedor" <faber at linuxnj.com> > To: "NYPHP Talk" <talk at lists.nyphp.org> > Sent: Thursday, July 29, 2004 1:52 PM > Subject: [nycphp-talk] Re: Setting up mailman > > > > On 29/07/04 13:38 -0400, Donald Organ wrote: > > > Can soemone help me in finalizing a mailman setup, the list creation > > > worksbut i cannot send an email to the list i get an error saying the > server > > > hasrejected the recipient > > > > It will also tell you WHY the recipient was rejected. Why was he? > > > > Is the recipient subscribed? > > > > -- > > > > Regards, > > > > Faber > > > > Linux New Jersey: Open Source Solutions for New Jersey > > http://www.linuxnj.com > > > > > > > > _______________________________________________ > > New York PHP Talk > > Supporting AMP Technology (Apache/MySQL/PHP) > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.newyorkphp.org > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org From faber at linuxnj.com Thu Jul 29 14:19:05 2004 From: faber at linuxnj.com (Faber Fedor) Date: Thu, 29 Jul 2004 14:19:05 -0400 Subject: [nycphp-talk] Re: Setting up mailman In-Reply-To: <00dd01c47596$72ca20d0$12020a0a@dorganmobile> References: <00bf01c47595$2716d080$12020a0a@dorganmobile> <00dd01c47596$72ca20d0$12020a0a@dorganmobile> Message-ID: <20040729181905.GA2961@uranus.faber.nom> On 29/07/04 14:04 -0400, Donald Organ wrote: > Do i have to create a user on the mailing list box (which is also the smtp > server) No, but he must be subscribed to the list. Is he? -- Regards, Faber Linux New Jersey: Open Source Solutions for New Jersey http://www.linuxnj.com From donald at saturn5net.com Thu Jul 29 14:24:34 2004 From: donald at saturn5net.com (Donald Organ) Date: Thu, 29 Jul 2004 14:24:34 -0400 Subject: [nycphp-talk] Re: Setting up mailman References: <00bf01c47595$2716d080$12020a0a@dorganmobile><00dd01c47596$72ca20d0$12020a0a@dorganmobile> <20040729181905.GA2961@uranus.faber.nom> Message-ID: <012501c47599$4c25ac80$12020a0a@dorganmobile> the address i am using is the admin email address. ----- Original Message ----- From: "Faber Fedor" <faber at linuxnj.com> To: "NYPHP Talk" <talk at lists.nyphp.org> Sent: Thursday, July 29, 2004 2:19 PM Subject: [nycphp-talk] Re: Setting up mailman > On 29/07/04 14:04 -0400, Donald Organ wrote: > > Do i have to create a user on the mailing list box (which is also the smtp > > server) > > No, but he must be subscribed to the list. Is he? > > -- > > > Regards, > > Faber > > Linux New Jersey: Open Source Solutions for New Jersey > http://www.linuxnj.com > > > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org From ajai at bitblit.net Thu Jul 29 14:32:07 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 29 Jul 2004 14:32:07 -0400 Subject: [nycphp-talk] Setting up mailman In-Reply-To: <009e01c47594$b82182b0$12020a0a@dorganmobile> References: <006201c47592$d9ab6560$12020a0a@dorganmobile> <410937C3.8020504@bitblit.net> <009e01c47594$b82182b0$12020a0a@dorganmobile> Message-ID: <410942A7.9030405@bitblit.net> Donald Organ wrote: >should the list creation do that? >or do i manually have to edit /etc/aliases > Normally you have to add the aliases yourself - the command-line new_list command tells you what aliases it needs. -- Aj. Systems Administrator / Developer From danielc at analysisandsolutions.com Thu Jul 29 14:35:41 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 29 Jul 2004 14:35:41 -0400 Subject: [nycphp-talk] Re: Setting up mailman In-Reply-To: <012501c47599$4c25ac80$12020a0a@dorganmobile> References: <20040729181905.GA2961@uranus.faber.nom> <012501c47599$4c25ac80$12020a0a@dorganmobile> Message-ID: <20040729183541.GA6511@panix.com> Donald: I don't recall you saying where the error is coming from. If the bounce is generated by you Mail Transfer Agent, that means you haven't set up the given list/admin address on the server. If the bounce is coming from Mailman, then you have to fix your Mailman config. There's quite a difference. --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 donald at saturn5net.com Thu Jul 29 14:37:14 2004 From: donald at saturn5net.com (Donald Organ) Date: Thu, 29 Jul 2004 14:37:14 -0400 Subject: [nycphp-talk] Re: Setting up mailman References: <20040729181905.GA2961@uranus.faber.nom><012501c47599$4c25ac80$12020a0a@dorganmobile> <20040729183541.GA6511@panix.com> Message-ID: <015d01c4759b$11a54140$12020a0a@dorganmobile> basically its wehn i try to send an email to the list from outlook ----- Original Message ----- From: "Daniel Convissor" <danielc at analysisandsolutions.com> To: "NYPHP Talk" <talk at lists.nyphp.org> Sent: Thursday, July 29, 2004 2:35 PM Subject: Re: [nycphp-talk] Re: Setting up mailman > Donald: > > I don't recall you saying where the error is coming from. > > If the bounce is generated by you Mail Transfer Agent, that means you > haven't set up the given list/admin address on the server. > > If the bounce is coming from Mailman, then you have to fix your > Mailman config. > > There's quite a difference. > > --Dan > > -- > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > data intensive web and database programming > http://www.AnalysisAndSolutions.com/ > 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org From danielc at analysisandsolutions.com Thu Jul 29 14:44:02 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 29 Jul 2004 14:44:02 -0400 Subject: [nycphp-talk] Re: Setting up mailman In-Reply-To: <015d01c4759b$11a54140$12020a0a@dorganmobile> References: <20040729183541.GA6511@panix.com> <015d01c4759b$11a54140$12020a0a@dorganmobile> Message-ID: <20040729184401.GA7865@panix.com> On Thu, Jul 29, 2004 at 02:37:14PM -0400, Donald Organ wrote: > basically its wehn i try to send an email to the list from outlook But WHICH program is telling you there's an error? There's a tremendous difference. So far, you're sending us on a wild goose chase. Some people are telling you to fix mailman and others are telling you to fix the server. How about pasting the bounce message here? --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 donald at saturn5net.com Thu Jul 29 14:46:24 2004 From: donald at saturn5net.com (Donald Organ) Date: Thu, 29 Jul 2004 14:46:24 -0400 Subject: [nycphp-talk] Re: Setting up mailman References: <20040729183541.GA6511@panix.com><015d01c4759b$11a54140$12020a0a@dorganmobile> <20040729184401.GA7865@panix.com> Message-ID: <018501c4759c$592c4d00$12020a0a@dorganmobile> there is no email coming back from the server, the error is when i try sending the message to the list from outlook, outlook give me the error ----- Original Message ----- From: "Daniel Convissor" <danielc at analysisandsolutions.com> To: "NYPHP Talk" <talk at lists.nyphp.org> Sent: Thursday, July 29, 2004 2:44 PM Subject: Re: [nycphp-talk] Re: Setting up mailman > On Thu, Jul 29, 2004 at 02:37:14PM -0400, Donald Organ wrote: > > basically its wehn i try to send an email to the list from outlook > > But WHICH program is telling you there's an error? There's a > tremendous difference. So far, you're sending us on a wild goose > chase. Some people are telling you to fix mailman and others are > telling you to fix the server. How about pasting the bounce message > here? > > --Dan > > -- > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > data intensive web and database programming > http://www.AnalysisAndSolutions.com/ > 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org From ajai at bitblit.net Thu Jul 29 14:57:30 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 29 Jul 2004 14:57:30 -0400 Subject: [nycphp-talk] Re: Setting up mailman In-Reply-To: <015d01c4759b$11a54140$12020a0a@dorganmobile> References: <20040729181905.GA2961@uranus.faber.nom><012501c47599$4c25ac80$12020a0a@dorganmobile> <20040729183541.GA6511@panix.com> <015d01c4759b$11a54140$12020a0a@dorganmobile> Message-ID: <4109489A.4070606@bitblit.net> Donald Organ wrote: >basically its wehn i try to send an email to the list from outlook > Im guessing the email address doesn't exist on the server... (hence "no such user"). -- Aj. Systems Administrator / Developer From ez at ericzander.com Thu Jul 29 15:10:31 2004 From: ez at ericzander.com (EZ) Date: Thu, 29 Jul 2004 14:10:31 -0500 Subject: [nycphp-talk] Development environment? Message-ID: <E1BqGIR-0008VD-Ee@neutron.nocdirect.com> Hello all, I wanted to solicit your thoughts and opinions on what you think is the best development environment for PHP and why you think this. I personally use Dreamweaver to code and test with Firefox (no error and output looks like it should? Must be error free. ;-) ). Part of this is because my sites are remotely hosted and I don't run LAMP at home (yet). I recognize there are probably better ways and that it is time to start using a "real" environment. Thanks in advance for your opinons! EZ From donald at saturn5net.com Thu Jul 29 15:23:16 2004 From: donald at saturn5net.com (Donald Organ) Date: Thu, 29 Jul 2004 15:23:16 -0400 Subject: [nycphp-talk] Re: Setting up mailman References: <20040729181905.GA2961@uranus.faber.nom><012501c47599$4c25ac80$12020a0a@dorganmobile> <20040729183541.GA6511@panix.com><015d01c4759b$11a54140$12020a0a@dorganmobile> <4109489A.4070606@bitblit.net> Message-ID: <019801c475a1$7fed5060$12020a0a@dorganmobile> how would i go about creating this i have already tried adduser test_list ----- Original Message ----- From: "Ajai Khattri" <ajai at bitblit.net> To: "NYPHP Talk" <talk at lists.nyphp.org> Sent: Thursday, July 29, 2004 2:57 PM Subject: Re: [nycphp-talk] Re: Setting up mailman > Donald Organ wrote: > > >basically its wehn i try to send an email to the list from outlook > > > > Im guessing the email address doesn't exist on the server... (hence "no > such user"). > > -- > Aj. > Systems Administrator / Developer > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org From ajai at bitblit.net Thu Jul 29 15:42:50 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 29 Jul 2004 15:42:50 -0400 Subject: [nycphp-talk] Re: Setting up mailman In-Reply-To: <019801c475a1$7fed5060$12020a0a@dorganmobile> References: <20040729181905.GA2961@uranus.faber.nom><012501c47599$4c25ac80$12020a0a@dorganmobile> <20040729183541.GA6511@panix.com><015d01c4759b$11a54140$12020a0a@dorganmobile> <4109489A.4070606@bitblit.net> <019801c475a1$7fed5060$12020a0a@dorganmobile> Message-ID: <4109533A.5010106@bitblit.net> Donald Organ wrote: >how would i go about creating this i have already tried adduser test_list > This is something you setup in your MTA (sendmail, postfix, whatever). Which MTA are you using? -- Aj. Systems Administrator / Developer From donald at saturn5net.com Thu Jul 29 15:49:48 2004 From: donald at saturn5net.com (Donald Organ) Date: Thu, 29 Jul 2004 15:49:48 -0400 Subject: [nycphp-talk] Re: Setting up mailman References: <20040729181905.GA2961@uranus.faber.nom><012501c47599$4c25ac80$12020a0a@dorganmobile> <20040729183541.GA6511@panix.com><015d01c4759b$11a54140$12020a0a@dorganmobile> <4109489A.4070606@bitblit.net><019801c475a1$7fed5060$12020a0a@dorganmobile> <4109533A.5010106@bitblit.net> Message-ID: <01b501c475a5$34d9a930$12020a0a@dorganmobile> sendmail ----- Original Message ----- From: "Ajai Khattri" <ajai at bitblit.net> To: "NYPHP Talk" <talk at lists.nyphp.org> Sent: Thursday, July 29, 2004 3:42 PM Subject: Re: [nycphp-talk] Re: Setting up mailman > Donald Organ wrote: > > >how would i go about creating this i have already tried adduser test_list > > > > This is something you setup in your MTA (sendmail, postfix, whatever). > Which MTA are you using? > > -- > Aj. > Systems Administrator / Developer > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org From ajai at bitblit.net Thu Jul 29 15:55:15 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 29 Jul 2004 15:55:15 -0400 Subject: [nycphp-talk] Re: Setting up mailman In-Reply-To: <01b501c475a5$34d9a930$12020a0a@dorganmobile> References: <20040729181905.GA2961@uranus.faber.nom><012501c47599$4c25ac80$12020a0a@dorganmobile> <20040729183541.GA6511@panix.com><015d01c4759b$11a54140$12020a0a@dorganmobile> <4109489A.4070606@bitblit.net><019801c475a1$7fed5060$12020a0a@dorganmobile> <4109533A.5010106@bitblit.net> <01b501c475a5$34d9a930$12020a0a@dorganmobile> Message-ID: <41095623.1020609@bitblit.net> Donald Organ wrote: >sendmail > When you add the list on the command-line you will see something like this: # ./newlist dummy dummy at lists.bway.net password To finish creating your mailing list, you must edit your /etc/aliases (or equivalent) file by adding the following lines, and possibly running the `newaliases' program: ## dummy mailing list dummy: "|/usr/local/mailman/mail/mailman post dummy" dummy-admin: "|/usr/local/mailman/mail/mailman admin dummy" dummy-bounces: "|/usr/local/mailman/mail/mailman bounces dummy" dummy-confirm: "|/usr/local/mailman/mail/mailman confirm dummy" dummy-join: "|/usr/local/mailman/mail/mailman join dummy" dummy-leave: "|/usr/local/mailman/mail/mailman leave dummy" dummy-owner: "|/usr/local/mailman/mail/mailman owner dummy" dummy-request: "|/usr/local/mailman/mail/mailman request dummy" dummy-subscribe: "|/usr/local/mailman/mail/mailman subscribe dummy" dummy-unsubscribe: "|/usr/local/mailman/mail/mailman unsubscribe dummy" Hit enter to notify dummy owner... So these aliases need to be added to /etc/aliases (or /etc/mail/aliases on some servers) so the list can receieve emails on those addresses. You then need to rebuild the aliases database (Debian has a Makefile to do this, i.e. "cd /etc/mail && make") - other distros may require you to run makemap instead. I can't remember if you need to send sendmail a HUP or if you need to do a restart for it to use the new aliases. -- Aj. Systems Administrator / Developer From donald at saturn5net.com Thu Jul 29 16:00:55 2004 From: donald at saturn5net.com (Donald Organ) Date: Thu, 29 Jul 2004 16:00:55 -0400 Subject: [nycphp-talk] Re: Setting up mailman References: <20040729181905.GA2961@uranus.faber.nom> <012501c47599$4c25ac80$12020a0a@dorganmobile> <20040729183541.GA6511@panix.com> <015d01c4759b$11a54140$12020a0a@dorganmobile> <4109489A.4070606@bitblit.net> <019801c475a1$7fed5060$12020a0a@dorganmobile> <4109533A.5010106@bitblit.net> <01b501c475a5$34d9a930$12020a0a@dorganmobile> <41095623.1020609@bitblit.net> Message-ID: <01f001c475a6$cb732b40$12020a0a@dorganmobile> i have done all of that already. ----- Original Message ----- From: "Ajai Khattri" <ajai at bitblit.net> To: "NYPHP Talk" <talk at lists.nyphp.org> Sent: Thursday, July 29, 2004 3:55 PM Subject: Re: [nycphp-talk] Re: Setting up mailman > Donald Organ wrote: > > >sendmail > > > When you add the list on the command-line you will see something like this: > > # ./newlist dummy dummy at lists.bway.net password > To finish creating your mailing list, you must edit your /etc/aliases (or > equivalent) file by adding the following lines, and possibly running the > `newaliases' program: > > ## dummy mailing list > dummy: "|/usr/local/mailman/mail/mailman post dummy" > dummy-admin: "|/usr/local/mailman/mail/mailman admin dummy" > dummy-bounces: "|/usr/local/mailman/mail/mailman bounces dummy" > dummy-confirm: "|/usr/local/mailman/mail/mailman confirm dummy" > dummy-join: "|/usr/local/mailman/mail/mailman join dummy" > dummy-leave: "|/usr/local/mailman/mail/mailman leave dummy" > dummy-owner: "|/usr/local/mailman/mail/mailman owner dummy" > dummy-request: "|/usr/local/mailman/mail/mailman request dummy" > dummy-subscribe: "|/usr/local/mailman/mail/mailman subscribe dummy" > dummy-unsubscribe: "|/usr/local/mailman/mail/mailman unsubscribe dummy" > > Hit enter to notify dummy owner... > > > So these aliases need to be added to /etc/aliases (or /etc/mail/aliases > on some servers) so the list can receieve emails on those addresses. You > then need to rebuild the aliases database (Debian has a Makefile to do > this, i.e. "cd /etc/mail && make") - other distros may require you to > run makemap instead. I can't remember if you need to send sendmail a HUP > or if you need to do a restart for it to use the new aliases. > > -- > Aj. > Systems Administrator / Developer > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org From joel at tagword.com Thu Jul 29 16:12:37 2004 From: joel at tagword.com (Joel De Gan) Date: Thu, 29 Jul 2004 20:12:37 +0000 Subject: [nycphp-talk] Development environment? In-Reply-To: <E1BqGIR-0008VD-Ee@neutron.nocdirect.com> References: <E1BqGIR-0008VD-Ee@neutron.nocdirect.com> Message-ID: <1091131957.7443.208.camel@bezel> Well. This is a personal preference. Personally, I run linux (gentoo) and do all my code in gvim and test with firefox. I keep two versions of PHP on hand. One the server compile (same flags) and one for my CLI stuff (things like --with-ncurses and GTK etc) I would say that the closer you can be to the production environment the better. I.e. it would not make sense to develop windows apps on a Mac? But, then, that is my personal preferences.. Some people will say that emacs is the way to go.. -joeldg On Thu, 2004-07-29 at 19:10, EZ wrote: > Hello all, > > I wanted to solicit your thoughts and opinions on what you think is the > best development environment for PHP and why you think this. I > personally use Dreamweaver to code and test with Firefox (no error and > output looks like it should? Must be error free. ;-) ). Part of this is > because my sites are remotely hosted and I don't run LAMP at home (yet). > I recognize there are probably better ways and that it is time to start > using a "real" environment. > > Thanks in advance for your opinons! > > EZ > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From susan_shemin at yahoo.com Thu Jul 29 16:38:18 2004 From: susan_shemin at yahoo.com (Susan Shemin) Date: Thu, 29 Jul 2004 13:38:18 -0700 (PDT) Subject: [nycphp-talk] Development environment? In-Reply-To: <1091131957.7443.208.camel@bezel> Message-ID: <20040729203818.46547.qmail@web53706.mail.yahoo.com> Question from a Dreamweaver-only user here... What is Firefox? --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040729/4e5f440c/attachment.html> From hans at cyberxdesigns.com Thu Jul 29 16:54:45 2004 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Thu, 29 Jul 2004 16:54:45 -0400 Subject: [nycphp-talk] Development environment? In-Reply-To: <1091131957.7443.208.camel@bezel> References: <E1BqGIR-0008VD-Ee@neutron.nocdirect.com> <1091131957.7443.208.camel@bezel> Message-ID: <41096415.40205@cyberxdesigns.com> Just to chime in here, I develop on a Windows XP box. <gasp> Apache, MySQL, PHP, and Sendmail are installed. I use Zend, Dreamweaver, MySQL Control Center and other graphics programs. I use WinEdit when I need simple editor. I find that I have no problems on this platform. I can move all of my code between my Win box and my Linux servers without a problem. Occasionally, I will have to modify my applications config files. In that case I create multiple config files, one for each of the environments it will be running in. Hans K Joel De Gan wrote: >Well. >This is a personal preference. > >Personally, I run linux (gentoo) and do all my code in gvim and test >with firefox. >I keep two versions of PHP on hand. One the server compile (same flags) >and one for my CLI stuff (things like --with-ncurses and GTK etc) > >I would say that the closer you can be to the production environment the >better. I.e. it would not make sense to develop windows apps on a Mac? > >But, then, that is my personal preferences.. >Some people will say that emacs is the way to go.. > >-joeldg > > > From yury at heavenspa.com Thu Jul 29 16:56:41 2004 From: yury at heavenspa.com (Yury Rush) Date: Thu, 29 Jul 2004 16:56:41 -0400 Subject: [nycphp-talk] Development environment? In-Reply-To: <20040729203818.46547.qmail@web53706.mail.yahoo.com> Message-ID: <ECEKLPHECCLGFGAFEPEJIEPACGAA.yury@heavenspa.com> Hi - firefox is a Internet browser -- like IE, but safer.. ciao yury // http://www.flashgimp.com // >> -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Susan Shemin Sent: Thursday, July 29, 2004 3:38 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Development environment? Question from a Dreamweaver-only user here... What is Firefox? ---------------------------------------------------------------------------- -- Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040729/7c16e090/attachment.html> From jcrawford at codebowl.com Thu Jul 29 17:03:20 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Thu, 29 Jul 2004 17:03:20 -0400 Subject: [nycphp-talk] Development environment? In-Reply-To: <ECEKLPHECCLGFGAFEPEJIEPACGAA.yury@heavenspa.com> References: <ECEKLPHECCLGFGAFEPEJIEPACGAA.yury@heavenspa.com> Message-ID: <1091135000.11460.1.camel@68-235-15-192.sbtnvt.adelphia.net> I always and will always use Zend Studio. it has great code completion, integrated FTP site for editing/saving/deleting files, also it has integrated CVS support, if you are working with CVS you can't go wrong with ZDE. Joe Crawford Jr. From Cbielanski at inta.org Thu Jul 29 17:05:53 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Thu, 29 Jul 2004 17:05:53 -0400 Subject: [nycphp-talk] Development environment? Message-ID: <C0CDB9F5E81C234FBB42D84E7853125D013B0A99@intamail1.inta> I'll take that one step further - Like IE, but still under active development with keen eyes on standards compliance and next-generation functionality, all within a secure framework instead of the "Look, It's a Browser!" approach. 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 <mailto:cbielanski at inta.org> , www.inta.org INTA -- 125 Years of Excellence -----Original Message----- From: Yury Rush [mailto:yury at heavenspa.com] Sent: Thursday, July 29, 2004 4:57 PM To: NYPHP Talk Subject: RE: [nycphp-talk] Development environment? Hi - firefox is a Internet browser -- like IE, but safer.. ciao yury // http://www.flashgimp.com <http://www.flashgimp.com> // >> -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Susan Shemin Sent: Thursday, July 29, 2004 3:38 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Development environment? Question from a Dreamweaver-only user here... What is Firefox? _____ Do you Yahoo!? New <http://us.rd.yahoo.com/mail_us/taglines/100/*http://promotions.yahoo.com/ne w_mail/static/efficiency.html> and Improved Yahoo! Mail - 100MB free storage! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040729/0e9b6f59/attachment.html> From wkamm at att.com Thu Jul 29 17:02:26 2004 From: wkamm at att.com (Kamm, William R (Bill), ALABS) Date: Thu, 29 Jul 2004 16:02:26 -0500 Subject: [nycphp-talk] Development environment? Message-ID: <F0071A32A0E67843859B0AD55D653AB68FECEB@KCCLUST05EVS1.ugd.att.com> I develop on Windows XP Professional myself. As much as I like to bash M$, XP is their best OS yet, and is more stable than previous ones (no more blue screens). Portability between my Windows box and my LAMP host is not a problem. I like Dreamweaver, and am considering adding another Macromedia product - Fireworks - for image editing. Anyone have any experience with that? Bill -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Hans C. Kaspersetz Sent: Thursday, July 29, 2004 4:55 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Development environment? Just to chime in here, I develop on a Windows XP box. <gasp> Apache, MySQL, PHP, and Sendmail are installed. I use Zend, Dreamweaver, MySQL Control Center and other graphics programs. I use WinEdit when I need simple editor. I find that I have no problems on this platform. I can move all of my code between my Win box and my Linux servers without a problem. Occasionally, I will have to modify my applications config files. In that case I create multiple config files, one for each of the environments it will be running in. Hans K Joel De Gan wrote: >Well. >This is a personal preference. > >Personally, I run linux (gentoo) and do all my code in gvim and test >with firefox. I keep two versions of PHP on hand. One the server >compile (same flags) and one for my CLI stuff (things like >--with-ncurses and GTK etc) > >I would say that the closer you can be to the production environment >the better. I.e. it would not make sense to develop windows apps on a >Mac? > >But, then, that is my personal preferences.. >Some people will say that emacs is the way to go.. > >-joeldg > > > _______________________________________________ New York PHP Talk Supporting AMP Technology (Apache/MySQL/PHP) http://lists.nyphp.org/mailman/listinfo/talk http://www.newyorkphp.org From jlacey at att.net Thu Jul 29 17:06:30 2004 From: jlacey at att.net (John Lacey) Date: Thu, 29 Jul 2004 15:06:30 -0600 Subject: [nycphp-talk] Development environment? In-Reply-To: <20040729203818.46547.qmail@web53706.mail.yahoo.com> References: <20040729203818.46547.qmail@web53706.mail.yahoo.com> Message-ID: <410966D6.2080706@att.net> Susan Shemin wrote: > Question from a Dreamweaver-only user here... > > What is Firefox? > http://www.mozilla.org/products/firefox/start/ a great browser -- I like the tabbed browsing the best as well as the popup blocker. and this email was sent using the Thunderbird client http://www.mozilla.org/products/thunderbird/ give the browser a try first, most folks won't go back after trying Firefox... John From jlacey at att.net Thu Jul 29 17:09:07 2004 From: jlacey at att.net (John Lacey) Date: Thu, 29 Jul 2004 15:09:07 -0600 Subject: [nycphp-talk] Development environment? In-Reply-To: <41096415.40205@cyberxdesigns.com> References: <E1BqGIR-0008VD-Ee@neutron.nocdirect.com> <1091131957.7443.208.camel@bezel> <41096415.40205@cyberxdesigns.com> Message-ID: <41096773.2010506@att.net> Hans C. Kaspersetz wrote: > Just to chime in here, I develop on a Windows XP box. <gasp> > > Apache, MySQL, PHP, and Sendmail are installed. I use Zend, > Dreamweaver, MySQL Control Center and other graphics programs. I use > WinEdit when I need simple editor. I find that I have no problems on > this platform. I can move all of my code between my Win box and my > Linux servers without a problem. Occasionally, I will have to modify my > applications config files. In that case I create multiple config files, > one for each of the environments it will be running in. When I'm not writing courseware (OpenOffice and GIMP), I use XAMPP and Ultraedit. (and putty into my Linux server box where I use vi :) John From jlacey at att.net Thu Jul 29 17:10:35 2004 From: jlacey at att.net (John Lacey) Date: Thu, 29 Jul 2004 15:10:35 -0600 Subject: [nycphp-talk] Development environment? In-Reply-To: <1091135000.11460.1.camel@68-235-15-192.sbtnvt.adelphia.net> References: <ECEKLPHECCLGFGAFEPEJIEPACGAA.yury@heavenspa.com> <1091135000.11460.1.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <410967CB.9000902@att.net> Joe Crawford wrote: > I always and will always use Zend Studio. > > it has great code completion, integrated FTP site for > editing/saving/deleting files, also it has integrated CVS support, if > you are working with CVS you can't go wrong with ZDE. > > Joe Crawford Jr. I like the debugger and code analyzer ... J From henry at beewh.com Thu Jul 29 17:11:51 2004 From: henry at beewh.com (Henry Ponce) Date: Thu, 29 Jul 2004 18:11:51 -0300 Subject: [nycphp-talk] Development environment? In-Reply-To: <E1BqGIR-0008VD-Ee@neutron.nocdirect.com> References: <E1BqGIR-0008VD-Ee@neutron.nocdirect.com> Message-ID: <200407291811.51902.henry@beewh.com> Hello people: I use a Linux box. To code PHP: Kate (KDE) And use Firefox and Opera as my browsers, and ocasionally use Windows in Vmware to see my pages in IE (6.0). I use phpmyadmin to handle my mysql databases. Simple. And no problems for now. Henry From dcech at phpwerx.net Thu Jul 29 17:21:30 2004 From: dcech at phpwerx.net (Dan Cech) Date: Thu, 29 Jul 2004 17:21:30 -0400 Subject: [nycphp-talk] Development environment? In-Reply-To: <41096415.40205@cyberxdesigns.com> References: <E1BqGIR-0008VD-Ee@neutron.nocdirect.com> <1091131957.7443.208.camel@bezel> <41096415.40205@cyberxdesigns.com> Message-ID: <41096A5A.4080809@phpwerx.net> Hans C. Kaspersetz wrote: > Just to chime in here, I develop on a Windows XP box. <gasp> Me too, I run WinXP on my laptop for dev work, with Apache, PHP and MySQL running locally. My editor of choice in EmEditor (http://www.emeditor.com), not very popular (or free) but it has all the features I want and none of the extra 'stuff' I don't need. I also use the font ProggyClean (http://www.tactile3d.com/tristan/), which makes reading code a whole lot easier on the eyes. TortoiseCVS and WinMerge are invaluable, as are Cygwin grep, PuTTY and WinSCP. MySQL Control Center and phpMyAdmin take care of all my local MySQL administration needs (neither is perfect but together they are a great team). As for compatibility issues...I set up EmEditor to automatically save files with unix line-endings, etc so I don't have to worry about that. In any case (and this is true of the majority of php code) most of the stuff I work on has to be tested on both platforms, so it doesn't matter that much. > Apache, MySQL, PHP, and Sendmail are installed. I use Zend, > Dreamweaver, MySQL Control Center and other graphics programs. I use > WinEdit when I need simple editor. I find that I have no problems on > this platform. I can move all of my code between my Win box and my > Linux servers without a problem. Occasionally, I will have to modify my > applications config files. In that case I create multiple config files, > one for each of the environments it will be running in. > > Hans K From jcrawford at codebowl.com Thu Jul 29 17:24:22 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Thu, 29 Jul 2004 17:24:22 -0400 Subject: [nycphp-talk] Development environment? In-Reply-To: <410966D6.2080706@att.net> References: <20040729203818.46547.qmail@web53706.mail.yahoo.com> <410966D6.2080706@att.net> Message-ID: <1091136262.11460.4.camel@68-235-15-192.sbtnvt.adelphia.net> I wont go back to anything but Firefox but i didnt like the layout of Thunderbird ;( I like being able to have multiple email accounts and not have seperate account folders for them sure that i snice when you have 5 accounts but when you have 20 there is an issue with all the account folders, i would prefer to have one inbox and use filters to put the emails in the proper sub-folder. Joe Crawford Jr. On Thu, 2004-07-29 at 17:06, John Lacey wrote: > Susan Shemin wrote: > > Question from a Dreamweaver-only user here... > > > > What is Firefox? > > > http://www.mozilla.org/products/firefox/start/ > a great browser -- I like the tabbed browsing the best as well as the > popup blocker. > > and this email was sent using the Thunderbird client > http://www.mozilla.org/products/thunderbird/ > > give the browser a try first, most folks won't go back after trying > Firefox... > > John > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org > > From jlacey at att.net Thu Jul 29 17:26:11 2004 From: jlacey at att.net (John Lacey) Date: Thu, 29 Jul 2004 15:26:11 -0600 Subject: [nycphp-talk] Development environment? In-Reply-To: <1091136262.11460.4.camel@68-235-15-192.sbtnvt.adelphia.net> References: <20040729203818.46547.qmail@web53706.mail.yahoo.com> <410966D6.2080706@att.net> <1091136262.11460.4.camel@68-235-15-192.sbtnvt.adelphia.net> Message-ID: <41096B73.2040107@att.net> Joe Crawford wrote: > I wont go back to anything but Firefox but i didnt like the layout of > Thunderbird ;( well, Thunderbird != Outlook and that's all that matters :) I used to use Eudora a few years back J From mwithington at PLMresearch.com Thu Jul 29 17:30:39 2004 From: mwithington at PLMresearch.com (Mark Withington) Date: Thu, 29 Jul 2004 17:30:39 -0400 Subject: [nycphp-talk] Development environment? Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6BC9@network.PLMresearch.com> One more for everyone's consideration: Navicat in lieu of phpMyAdmin. The latter is great, but Navicat (~$60) is fantastic and fast for MySQL maintenance/design, etc. -------------------------- Mark L. Withington PLMresearch v: 508-746-2383 m: 508-801-0181 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 Dan Cech Sent: Thursday, July 29, 2004 5:22 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Development environment? Hans C. Kaspersetz wrote: > Just to chime in here, I develop on a Windows XP box. <gasp> Me too, I run WinXP on my laptop for dev work, with Apache, PHP and MySQL running locally. My editor of choice in EmEditor (http://www.emeditor.com), not very popular (or free) but it has all the features I want and none of the extra 'stuff' I don't need. I also use the font ProggyClean (http://www.tactile3d.com/tristan/), which makes reading code a whole lot easier on the eyes. TortoiseCVS and WinMerge are invaluable, as are Cygwin grep, PuTTY and WinSCP. MySQL Control Center and phpMyAdmin take care of all my local MySQL administration needs (neither is perfect but together they are a great team). As for compatibility issues...I set up EmEditor to automatically save files with unix line-endings, etc so I don't have to worry about that. In any case (and this is true of the majority of php code) most of the stuff I work on has to be tested on both platforms, so it doesn't matter that much. > Apache, MySQL, PHP, and Sendmail are installed. I use Zend, > Dreamweaver, MySQL Control Center and other graphics programs. I use > WinEdit when I need simple editor. I find that I have no problems on > this platform. I can move all of my code between my Win box and my > Linux servers without a problem. Occasionally, I will have to modify my > applications config files. In that case I create multiple config files, > one for each of the environments it will be running in. > > Hans K _______________________________________________ New York PHP Talk Supporting AMP Technology (Apache/MySQL/PHP) http://lists.nyphp.org/mailman/listinfo/talk http://www.newyorkphp.org From jcrawford at codebowl.com Thu Jul 29 17:35:52 2004 From: jcrawford at codebowl.com (Joe Crawford) Date: Thu, 29 Jul 2004 17:35:52 -0400 Subject: [nycphp-talk] Development environment? In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6BC9@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6BC9@network.PLMresearch.com> Message-ID: <1091136952.11460.6.camel@68-235-15-192.sbtnvt.adelphia.net> i have never used Navicat Joe Crawford Jr. From mwithington at PLMresearch.com Thu Jul 29 17:36:35 2004 From: mwithington at PLMresearch.com (Mark Withington) Date: Thu, 29 Jul 2004 17:36:35 -0400 Subject: [nycphp-talk] Development environment? Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6BCA@network.PLMresearch.com> I'm don't work in their sales department ;-) But have been impressed: http://www.navicat.com/ Really helps me out. -------------------------- Mark L. Withington PLMresearch v: 508-746-2383 m: 508-801-0181 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 Joe Crawford Sent: Thursday, July 29, 2004 5:36 PM To: NYPHP Talk Subject: RE: [nycphp-talk] Development environment? i have never used Navicat Joe Crawford Jr. _______________________________________________ New York PHP Talk Supporting AMP Technology (Apache/MySQL/PHP) http://lists.nyphp.org/mailman/listinfo/talk http://www.newyorkphp.org From brian at vermonster.com Thu Jul 29 17:47:13 2004 From: brian at vermonster.com (Brian Kaney) Date: Thu, 29 Jul 2004 17:47:13 -0400 Subject: [nycphp-talk] Development environment? In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6BC9@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE3586A6BC9@network.PLMresearch.com> Message-ID: <1091137633.19178.59.camel@brian.vermonster.com> Or try MyCC, it's across platform client that's open source. We use it on our Linux workstations and Windows Laptops http://www.mysql.com/products/mysqlcc/ Or if you are in Windows, MySQL-Front is great (used to be free, but now costs $35) http://www.mysqlfront.de/ - Brian On Thu, 2004-07-29 at 17:30, Mark Withington wrote: > One more for everyone's consideration: Navicat in lieu of phpMyAdmin. The > latter is great, but Navicat (~$60) is fantastic and fast for MySQL > maintenance/design, etc. > > -------------------------- > Mark L. Withington > PLMresearch > v: 508-746-2383 > m: 508-801-0181 > Calendar: http://www.plmresearch.com/calendar.php From lists at neoncowboy.com Thu Jul 29 17:50:59 2004 From: lists at neoncowboy.com (John Corry) Date: Thu, 29 Jul 2004 11:50:59 -1000 Subject: [nycphp-talk] Development environment? In-Reply-To: <F0071A32A0E67843859B0AD55D653AB68FECEB@KCCLUST05EVS1.ugd.att.com> Message-ID: <20040729215059.803A7A86BF@virtu.nyphp.org> > I develop on Windows XP Professional myself. As much as I > like to bash M$, XP is their best OS yet, and is more stable > than previous ones (no more blue screens). Portability > between my Windows box and my LAMP host is not a problem. I > like Dreamweaver, and am considering adding another > Macromedia product - Fireworks - for image editing. Anyone > have any experience with that? I *love* Fireworks. It's the perfect blend of raster and vector tools for web graphics. Not nearly as clunky as Illustrator or Photoshop...but sort of a pared down subset of tools from each of those apps. The DW integration is sort of useful too. I'm on Win XP Apache 2, PHP, MySQL (using phpMyAdmin for admin), Firefox. jpc From jonbaer at jonbaer.net Thu Jul 29 18:28:05 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Thu, 29 Jul 2004 18:28:05 -0400 Subject: [nycphp-talk] Development environment? In-Reply-To: <BEDA46607410834AA6CD96E3FFEBD9E401A78533@mtvny9.mtvn.ad.viacom.com> Message-ID: <20040729222657.E3D07A862D@virtu.nyphp.org> Code by hand :-) Linux: Emacs, Bluefish WinXP: Modelworks JPadPro dbVisualizer,phpMyAdmin for DB. - Jon -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of EZ Sent: Thursday, July 29, 2004 3:11 PM To: talk at lists.nyphp.org Subject: [nycphp-talk] Development environment? Hello all, I wanted to solicit your thoughts and opinions on what you think is the best development environment for PHP and why you think this. I personally use Dreamweaver to code and test with Firefox (no error and output looks like it should? Must be error free. ;-) ). Part of this is because my sites are remotely hosted and I don't run LAMP at home (yet). I recognize there are probably better ways and that it is time to start using a "real" environment. Thanks in advance for your opinons! EZ _______________________________________________ New York PHP Talk Supporting AMP Technology (Apache/MySQL/PHP) http://lists.nyphp.org/mailman/listinfo/talk http://www.newyorkphp.org From jlacey at att.net Thu Jul 29 18:34:08 2004 From: jlacey at att.net (John Lacey) Date: Thu, 29 Jul 2004 16:34:08 -0600 Subject: [nycphp-talk] Development environment? In-Reply-To: <20040729222657.E3D07A862D@virtu.nyphp.org> References: <20040729222657.E3D07A862D@virtu.nyphp.org> Message-ID: <41097B60.6010809@att.net> Jon Baer wrote: > Code by hand :-) > > Linux: Emacs, Bluefish > WinXP: Modelworks JPadPro > > dbVisualizer,phpMyAdmin for DB. > that reminds me, DBDesigner is a nice program--and free http://www.fabforce.net/dbdesigner4/ John From brian at vermonster.com Thu Jul 29 18:40:56 2004 From: brian at vermonster.com (Brian Kaney) Date: Thu, 29 Jul 2004 18:40:56 -0400 Subject: [nycphp-talk] Development environment? In-Reply-To: <E1BqGIR-0008VD-Ee@neutron.nocdirect.com> References: <E1BqGIR-0008VD-Ee@neutron.nocdirect.com> Message-ID: <1091140856.19178.83.camel@brian.vermonster.com> Anyone use Eclipse with the PHP plugin for enterprise level projects? http://www.eclipse.org/ http://www.phpeclipse.de/tiki-view_articles.php On Thu, 2004-07-29 at 15:10, EZ wrote: > Hello all, > > I wanted to solicit your thoughts and opinions on what you think is the > best development environment for PHP and why you think this. I > personally use Dreamweaver to code and test with Firefox (no error and > output looks like it should? Must be error free. ;-) ). Part of this is > because my sites are remotely hosted and I don't run LAMP at home (yet). > I recognize there are probably better ways and that it is time to start > using a "real" environment. > > Thanks in advance for your opinons! > > EZ > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org From danielc at analysisandsolutions.com Thu Jul 29 19:12:56 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 29 Jul 2004 19:12:56 -0400 Subject: [nycphp-talk] Re: Setting up mailman In-Reply-To: <4109489A.4070606@bitblit.net> References: <20040729183541.GA6511@panix.com> <015d01c4759b$11a54140$12020a0a@dorganmobile> <4109489A.4070606@bitblit.net> Message-ID: <20040729231256.GA4228@panix.com> Donald: > Donald Organ wrote: > > there is no email coming back from the server, the error is when > > i try sending the message to the list from outlook, outlook give > > me the error On Thu, Jul 29, 2004 at 02:57:30PM -0400, Ajai Khattri wrote: > Im guessing the email address doesn't exist on the server... (hence "no > such user"). Ajai, that has nothing to do with the address existing on the server. Donald, this also has nothing to do with Mailman. This has to do with your Outlook settings and/or the connection from your computer to the internet. To figure out what's going on QUIT BEING VAGUE. Give us the SPECIFIC error message you are getting. --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 joshmccormack at travelersdiary.com Thu Jul 29 19:23:30 2004 From: joshmccormack at travelersdiary.com (Josh McCormack) Date: Thu, 29 Jul 2004 19:23:30 -0400 Subject: [nycphp-talk] foaf network software (was firefox extension) In-Reply-To: <32246-91276@sneakemail.com> References: <C0CDB9F5E81C234FBB42D84E7853125D013B0A8A@intamail1.inta> <31841-81706@sneakemail.com> <32246-91276@sneakemail.com> Message-ID: <410986F2.9030505@travelersdiary.com> Speaking of FOAF, anyone have any thoughts or opinions on existing FOSS FOAF software, discussion type stuff that would power a site like Friendster, Rzye, Monster Networking, etc? Any interest in working on an existing project to do this? Josh inforequest wrote: > inforequest sm11szw02-at-sneakemail.com |nyphp 04/2004| wrote: > >> Chris Bielanski Cbielanski-at-inta.org |nyphp 04/2004| wrote: >> >>> Joel can you email me offlist and tell me WTH "Foafer" is/does? I'm >>> dropping >>> it on the list in case I'm not the only one in the dark. >>> >>> Thanks, >>> Chris Bielanski >>> >> >> For those interested, FOAF is "_F_riend _O_f _A_ _F_riend". >> >> First people started "blogging". Then bloggers started listing their >> friends blogs in a sidebar on their blogs >> >> Since those friends also listed their friends blogs in sidebars of >> their blogs, someone noticed that these friends links on linked blogs >> were actually representative of a "social network". Think like the way >> Google does (links = relationships) and you'll see the potential. >> >> When blog hosting services noticed they were hosting thousands of >> interlinked blogs, they knew they could analyze the internetworking on >> the back end. In order to do it across bloghosts, some standard means >> would be needed. FOAF is the prevailing technology for doing that >> using XML. >> >> Hope that helps. >> >> -=john >> --------------------------------------------------------------------------------------------------------John >> Andrews, personal homepage with dancing bears not expected anytime soon. > > > > Sorry.. forgot the link. I consider this a good intro paper on the FOAF > approach > http://www-106.ibm.com/developerworks/xml/library/x-foaf.html > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org > >From hans not junk at nyphp.com Thu Jul 29 20:58:36 2004 Return-Path: <hans not junk at nyphp.com> Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id A0408A862D for <talk at lists.nyphp.org>; Thu, 29 Jul 2004 20:58:36 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Thu, 29 Jul 2004 17:58:36 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.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] Re: Setting up mailman Date: Thu, 29 Jul 2004 17:58:28 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870358B95C at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] Re: Setting up mailman Thread-Index: AcR1pTnNEqixioQMR+WC+AmmVIFwEgAKr9AA From: "Hans Zaunere" <hans not junk at nyphp.com> To: "NYPHP Talk" <talk at lists.nyphp.org> X-OriginalArrivalTime: 30 Jul 2004 00:58:36.0194 (UTC) FILETIME=[57EBE020:01C475D0] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk <talk at lists.nyphp.org> List-Id: NYPHP Talk <talk.lists.nyphp.org> List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=unsubscribe> List-Archive: <http://lists.nyphp.org/pipermail/talk> List-Post: <mailto:talk at lists.nyphp.org> List-Help: <mailto:talk-request at lists.nyphp.org?subject=help> List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>, <mailto:talk-request at lists.nyphp.org?subject=subscribe> X-List-Received-Date: Fri, 30 Jul 2004 00:58:37 -0000 > sendmail 1) When asking questions and posting on this or any mailing list, please provide as much detail as possible. Short and overly-simplistic postings generate unneeded list traffic and make it difficult to work through problems. 2) Let's take this off-list - it has nothing to do with PHP or anything AMP. 3) Since Mailman is Python, I'll mention the NYPHP Python SIG; http://nyphp.org/lists Thanks guys, --- Hans Zaunere President New York PHP http://nyphp.org From mitchy at spacemonkeylabs.com Thu Jul 29 21:44:41 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Thu, 29 Jul 2004 21:44:41 -0400 Subject: [nycphp-talk] Development environment? In-Reply-To: <20040729203818.46547.qmail@web53706.mail.yahoo.com> References: <20040729203818.46547.qmail@web53706.mail.yahoo.com> Message-ID: <4109A809.6080604@spacemonkeylabs.com> Susan Shemin wrote: > Question from a Dreamweaver-only user here... > > What is Firefox? http://www.mozilla.org/products/firefox It is the answer to all of my prayers. A cross-platform web browser with NO BLOAT. Give it a try, you owe it to yourself ;) From mitchy at spacemonkeylabs.com Thu Jul 29 21:52:18 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Thu, 29 Jul 2004 21:52:18 -0400 Subject: [nycphp-talk] Development environment? In-Reply-To: <F0071A32A0E67843859B0AD55D653AB68FECEB@KCCLUST05EVS1.ugd.att.com> References: <F0071A32A0E67843859B0AD55D653AB68FECEB@KCCLUST05EVS1.ugd.att.com> Message-ID: <4109A9D2.8000200@spacemonkeylabs.com> Kamm, William R (Bill), ALABS wrote: >I develop on Windows XP Professional myself. As much as I like to bash >M$, XP is their best OS yet, and is more stable than previous ones (no >more blue screens). Portability between my Windows box and my LAMP host >is not a problem. I like Dreamweaver, and am considering adding another >Macromedia product - Fireworks - for image editing. Anyone have any >experience with that? > I bought a new laptop a couple months ago and out of sheer boredom (and laziness) I just kept XP. Eventually found Wintel counterparts to all of my needs, and rely heavily on Macromedia's environment now (Dreamweaver, Fireworks, Flash). Thanks to firefox and thunderbird, I am comfortable on any platform. The only thing I miss? Code folding. Sure wish I could collapse those hairy classes and just look at the few functions in that script without having to hit page up forty times...(grumble grumble) On to fireworks, I started using Photoshop with the Mac IIcx (Bush's daddy was president I think), working my way to the SGI workstation of doom; and then switched off to Gimp on Linux when it became usable. When I first started playing with Fireworks, I just couldn't figure out how anything worked, and had to see some tutorials to grok the interface. Then, I just couldn't trust it, because it had automated stuff that took forever to do in Gimp. But it worked, and well. Now I can do something in Fireworks and it takes minutes, something that would take the whole dingdong day with anything else. I think you will be just fine, as long as you spend the time to learn the Fireworks way of doing things(tm). -- Mitch From php at haberco.com Thu Jul 29 21:56:01 2004 From: php at haberco.com (Eddie) Date: Thu, 29 Jul 2004 21:56:01 -0400 Subject: [nycphp-talk] Development environment? In-Reply-To: <20040729215059.803A7A86BF@virtu.nyphp.org> Message-ID: <BD2F22F1.92B5%php@haberco.com> Hi, I'm new to the list. I didn't see OS X represented yet so I thought I'd chime in. I'm blissfully happy in my OS X development environment. Why use M$ when you can run a 'Nix-based environment on localhost that has an amazing GUI? (no need to answer that, btw). OSX comes with PHP and Apache and PERL pre-installed. I've got the XAMP environment with some add-ins to PHP like PDFLib and stuff ISPs don't always enable. Code can be ported between servers transparently. Though haven't used Zend DE yet it is available for OS X. My DE is just a text editor (BBEdit) and a WYSIWYG HTML editor for making templates (I use GoLive). Eddie From jlacey at att.net Thu Jul 29 22:49:41 2004 From: jlacey at att.net (John Lacey) Date: Thu, 29 Jul 2004 20:49:41 -0600 Subject: [nycphp-talk] Development environment? In-Reply-To: <4109A9D2.8000200@spacemonkeylabs.com> References: <F0071A32A0E67843859B0AD55D653AB68FECEB@KCCLUST05EVS1.ugd.att.com> <4109A9D2.8000200@spacemonkeylabs.com> Message-ID: <4109B745.5010306@att.net> Mitch Pirtle wrote: > Now I can do something in Fireworks and it takes minutes, something that > would take the whole dingdong day with anything else. I think you will > be just fine, as long as you spend the time to learn the Fireworks way > of doing things(tm). my partner in crime, Lori, who has more graphic talent than she realizes now does most of her website design using Fireworks, and she's an extremely accomplished Photoshop wiz. As for me, I'm graphically challenged and do the backend stuff. We happily just landed a client where I can do the backend using PHP/MySQL :) after a few .ASP sites because of hosting... my real reason for this post though, is that I've just installed Mambo and it is one very slick CMS. And my hosting co. makes it too easy as well (fantastico intaller)--check this list out: http://www.edmunds-enterprises.com/linux/hosting_plans.php and they keep things up-to-date as well as run apache 1.3 (phpinfo) http://www.cerebralfusion.com/info.php if you back up one, you'll see my 'work in progress' from a couple days ago--I've got the tagline up at least :) John From jonbaer at jonbaer.net Thu Jul 29 23:02:06 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Thu, 29 Jul 2004 23:02:06 -0400 Subject: [nycphp-talk] Development environment? In-Reply-To: <41097B60.6010809@att.net> References: <20040729222657.E3D07A862D@virtu.nyphp.org> <41097B60.6010809@att.net> Message-ID: <4109BA2E.7010800@jonbaer.net> Jon Baer wrote: >> Code by hand :-) >> >> Linux: Emacs, Bluefish >> WinXP: Modelworks JPadPro >> dbVisualizer,phpMyAdmin for DB. >> <plug> Sorry forgot the URL ... http://www.modelworks.com ... all I need to say is that Chet Murphy (the author of the IDE) answers every single email you send him and I suggested PHP code folding and he added it the next day ... I have to say that when you don't have to wad through documentation or email sales at whatever.com for it to go off into space, its a big +. </plug> I use to hate the fact that alot of WYSIWYG ide's would put alot of bloating junk into their libraries but I ended up coding them into macros and popping them into JPadPro and it was easier. - Jon From dmintz at davidmintz.org Fri Jul 30 10:10:49 2004 From: dmintz at davidmintz.org (David Mintz) Date: Fri, 30 Jul 2004 10:10:49 -0400 (EDT) Subject: [nycphp-talk] Development environment? In-Reply-To: <4109BA2E.7010800@jonbaer.net> References: <20040729222657.E3D07A862D@virtu.nyphp.org> <41097B60.6010809@att.net> <4109BA2E.7010800@jonbaer.net> Message-ID: <Pine.BSF.4.58.0407300942520.14754@emra.pair.com> I wonder why it is that even though this old war horse of a topic re-emerges once every few months, we never tire of talking about it? I gotta admit I've read the whole thread. Windows 2000 (at work): Zend, and sometimes an aging HomeSite for HTML, Mozilla Linux RH9 (at home): Zend, Quanta, Mozilla Started fooling around with KDevelop on a Mandrake 10 notebook, because it was there. Jury still out. Looks promising, though. Have used Eclipse for some Java, and some PHP. Still haven't got the hang of Eclipse. My, doesn't it suck when you get distracted from the real work by the learning of the tools. And of course I do a little vi, especially when SSHing about, but I'm still pretty much vi-challenged. Zend is pretty nice but slow, unless your machine is quite muscular. Eclipse disappoints in this respect as well. That's Java for you. Both have good CVS support. It appears KDevelop supports both CVS and SubVersion, which I have yet to sample. For MySQL I do some phpMyAdmin, some MySQL Control Center (don't care for it too much), and a lot of "mysql> " Are you guys too paranoid for plain old ftp as opposed to SSH/SCP/SFTP? I *very* rarely use ftp anymore but I hear that having your creds stolen by a packet sniffing badguy is a rare and unlikely occurence. --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From donald at saturn5net.com Fri Jul 30 10:38:11 2004 From: donald at saturn5net.com (Donald Organ) Date: Fri, 30 Jul 2004 10:38:11 -0400 Subject: [nycphp-talk] Re: Setting up mailman References: <20040729183541.GA6511@panix.com><015d01c4759b$11a54140$12020a0a@dorganmobile><4109489A.4070606@bitblit.net> <20040729231256.GA4228@panix.com> Message-ID: <002701c47642$d97921d0$12020a0a@dorganmobile> ok here is the exact message: The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'test_list at list.dev.saturn5net.com'. Subject 'Test', Account: 'mail.saturn5net.com', Server: 'mail.saturn5net.com', Protocol: SMTP, Server Response: '550 No such user (test_list) -ERR test_list at saturn5net.com not found', Port: 25, Secure(SSL): No, Server Error: 550, Error Number: 0x800CCC79 ----- Original Message ----- From: "Daniel Convissor" <danielc at analysisandsolutions.com> To: "NYPHP Talk" <talk at lists.nyphp.org> Sent: Thursday, July 29, 2004 7:12 PM Subject: Re: [nycphp-talk] Re: Setting up mailman > Donald: > > > Donald Organ wrote: > > > there is no email coming back from the server, the error is when > > > i try sending the message to the list from outlook, outlook give > > > me the error > > On Thu, Jul 29, 2004 at 02:57:30PM -0400, Ajai Khattri wrote: > > Im guessing the email address doesn't exist on the server... (hence "no > > such user"). > > Ajai, that has nothing to do with the address existing on the server. > > Donald, this also has nothing to do with Mailman. > > This has to do with your Outlook settings and/or the connection from > your computer to the internet. To figure out what's going on QUIT > BEING VAGUE. Give us the SPECIFIC error message you are getting. > > --Dan > > -- > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > data intensive web and database programming > http://www.AnalysisAndSolutions.com/ > 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org From jonbaer at jonbaer.net Fri Jul 30 10:46:49 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 30 Jul 2004 10:46:49 -0400 Subject: [nycphp-talk] Development environment? (scp vs. ftp) In-Reply-To: <BEDA46607410834AA6CD96E3FFEBD9E401A78571@mtvny9.mtvn.ad.viacom.com> Message-ID: <20040730144557.8C4C1A85F0@virtu.nyphp.org> The letters ftp make me cringe .. It actually feels good to install cygwin for someone w/ the tools and teaching them how to just use Scp -r * me at me.com:~/somewhere Thus why I applauded the Zend integration w/ the IDE. The windump sniffing demos between ftp and scp are good ways to get the points across ;-) - Jon >>> Are you guys too paranoid for plain old ftp as opposed to SSH/SCP/SFTP? I *very* rarely use ftp anymore but I hear that having your creds stolen by a packet sniffing badguy is a rare and unlikely occurence. <<< --- David Mintz http://davidmintz.org/ From ajai at bitblit.net Fri Jul 30 10:54:24 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Fri, 30 Jul 2004 10:54:24 -0400 Subject: [nycphp-talk] Re: Setting up mailman In-Reply-To: <01f001c475a6$cb732b40$12020a0a@dorganmobile> References: <20040729181905.GA2961@uranus.faber.nom> <012501c47599$4c25ac80$12020a0a@dorganmobile> <20040729183541.GA6511@panix.com> <015d01c4759b$11a54140$12020a0a@dorganmobile> <4109489A.4070606@bitblit.net> <019801c475a1$7fed5060$12020a0a@dorganmobile> <4109533A.5010106@bitblit.net> <01b501c475a5$34d9a930$12020a0a@dorganmobile> <41095623.1020609@bitblit.net> <01f001c475a6$cb732b40$12020a0a@dorganmobile> Message-ID: <410A6120.8050100@bitblit.net> Donald Organ wrote: >i have done all of that already. > So what are the aliases then? -- Aj. Systems Administrator / Developer From danielc at analysisandsolutions.com Fri Jul 30 10:59:29 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 30 Jul 2004 10:59:29 -0400 Subject: [nycphp-talk] Re: Setting up mailman In-Reply-To: <002701c47642$d97921d0$12020a0a@dorganmobile> References: <20040729231256.GA4228@panix.com> <002701c47642$d97921d0$12020a0a@dorganmobile> Message-ID: <20040730145929.GA2700@panix.com> Folks: I sent Donald an email OFF LIST pointing him in the right direction. --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 Cbielanski at inta.org Fri Jul 30 11:06:33 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Fri, 30 Jul 2004 11:06:33 -0400 Subject: [nycphp-talk] Re: Setting up mailman Message-ID: <C0CDB9F5E81C234FBB42D84E7853125D013B0AA0@intamail1.inta> > Folks: > > I sent Donald an email OFF LIST pointing him in the right direction. > > --Dan Sounds good... I think it'd be nice to see the solve here on the list when all is said and done :) 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 donald at saturn5net.com Fri Jul 30 11:18:49 2004 From: donald at saturn5net.com (Donald Organ) Date: Fri, 30 Jul 2004 11:18:49 -0400 Subject: [nycphp-talk] Backup References: <20040729222657.E3D07A862D@virtu.nyphp.org><41097B60.6010809@att.net> <4109BA2E.7010800@jonbaer.net> <Pine.BSF.4.58.0407300942520.14754@emra.pair.com> Message-ID: <006601c47648$840f3ad0$12020a0a@dorganmobile> Does anyone know of good software that I can implement on my network, what i am looking to do is backup web and sql directorys on a windows box to a linux box via samba, if any on has any experience in this please email me off the list. From mikeh at dtev.com Fri Jul 30 11:22:18 2004 From: mikeh at dtev.com (mike hjorleifsson) Date: Fri, 30 Jul 2004 11:22:18 -0400 Subject: [nycphp-talk] Backup In-Reply-To: <006601c47648$840f3ad0$12020a0a@dorganmobile> References: <20040729222657.E3D07A862D@virtu.nyphp.org><41097B60.6010809@att.net> <4109BA2E.7010800@jonbaer.net> <Pine.BSF.4.58.0407300942520.14754@emra.pair.com> <006601c47648$840f3ad0$12020a0a@dorganmobile> Message-ID: <410A67AA.5070701@dtev.com> rsync is fast, and you can tunnell securely with ssh Donald Organ wrote: >Does anyone know of good software that I can implement on my network, what i >am looking to do is backup web and sql directorys on a windows box to a >linux box via samba, if any on has any experience in this please email me >off the list. > >_______________________________________________ >New York PHP Talk >Supporting AMP Technology (Apache/MySQL/PHP) >http://lists.nyphp.org/mailman/listinfo/talk >http://www.newyorkphp.org > > > > > -- ======================= 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 donald at saturn5net.com Fri Jul 30 11:22:24 2004 From: donald at saturn5net.com (Donald Organ) Date: Fri, 30 Jul 2004 11:22:24 -0400 Subject: [nycphp-talk] Backup References: <20040729222657.E3D07A862D@virtu.nyphp.org><41097B60.6010809@att.net> <4109BA2E.7010800@jonbaer.net> <Pine.BSF.4.58.0407300942520.14754@emra.pair.com><006601c47648$840f3ad0$12020a0a@dorganmobile> <410A67AA.5070701@dtev.com> Message-ID: <007201c47649$0427bda0$12020a0a@dorganmobile> basically what i was planning on doing was writing a PHP script that i could cron to pull the info from a DB on all the Hosts and shares that have to be backed up and then just copy all of it down to the linux server. ----- Original Message ----- From: "mike hjorleifsson" <mikeh at dtev.com> To: "NYPHP Talk" <talk at lists.nyphp.org> Sent: Friday, July 30, 2004 11:22 AM Subject: Re: [nycphp-talk] Backup > rsync is fast, and you can tunnell securely with ssh > > Donald Organ wrote: > > >Does anyone know of good software that I can implement on my network, what i > >am looking to do is backup web and sql directorys on a windows box to a > >linux box via samba, if any on has any experience in this please email me > >off the list. > > > >_______________________________________________ > >New York PHP Talk > >Supporting AMP Technology (Apache/MySQL/PHP) > >http://lists.nyphp.org/mailman/listinfo/talk > >http://www.newyorkphp.org > > > > > > > > > > > > -- > ======================= > 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. > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org From php at haberco.com Fri Jul 30 12:13:55 2004 From: php at haberco.com (Eddie Haber) Date: Fri, 30 Jul 2004 12:13:55 -0400 Subject: [nycphp-talk] Backup In-Reply-To: <007201c47649$0427bda0$12020a0a@dorganmobile> Message-ID: <BD2FEC03.92D7%php@haberco.com> I did this same thing recently for a project. Divide the tasks into two scripts so you don't have to worry about network latencies. DB_backup.php DB_ftp.php In DB_backup.php you just need to execute this command: <? exec("mysqldump --opt -u $USER --password=\"$PASSWORD\" $DATABASE | gzip -c > $LOCAL_FILENAME"); ?> (and manage some error trapping and logging if you want). IN DB_ftp.php use the ftp functions: <? $conn_id = ftp_connect($HOST); $login_result = ftp_login($conn_id, $HOST_UNAME, $HOST_PWORD); if ((!$conn_id) || (!$login_result)) { // print or log the next line print "FTP connection has failed. Could not connect to host: $HOST."; exit; } // put file if ( ! ftp_put($conn_id, $REMOTE_FILENAME, $LOCAL_FILENAME, FTP_ASCII) ) { // print or log the next line print "Error copying file. Could not copy file to server."; exit; } else { // print or log the next line print "Copy successful ."; } // close connection ftp_close($conn_id); ?> The crontab -e and set something like: 5 0 * * * php /path/to/script/DB_backup.php 10 0 * * * php /path/to/script/DB_ftp.php Hope this helps. Eddie On 7/30/04 11:22 AM, "Donald Organ" <donald at saturn5net.com> wrote: > basically what i was planning on doing was writing a PHP script that i could > cron to pull the info from a DB on all the Hosts and shares that have to be > backed up and then just copy all of it down to the linux server. > > > ----- Original Message ----- > From: "mike hjorleifsson" <mikeh at dtev.com> > To: "NYPHP Talk" <talk at lists.nyphp.org> > Sent: Friday, July 30, 2004 11:22 AM > Subject: Re: [nycphp-talk] Backup > > >> rsync is fast, and you can tunnell securely with ssh >> >> Donald Organ wrote: >> >>> Does anyone know of good software that I can implement on my network, > what i >>> am looking to do is backup web and sql directorys on a windows box to a >>> linux box via samba, if any on has any experience in this please email me >>> off the list. >>> >>> _______________________________________________ >>> New York PHP Talk >>> Supporting AMP Technology (Apache/MySQL/PHP) >>> http://lists.nyphp.org/mailman/listinfo/talk >>> http://www.newyorkphp.org >>> >>> >>> >>> >>> >> >> -- >> ======================= >> 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. >> >> _______________________________________________ >> New York PHP Talk >> Supporting AMP Technology (Apache/MySQL/PHP) >> http://lists.nyphp.org/mailman/listinfo/talk >> http://www.newyorkphp.org > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org From donald at saturn5net.com Fri Jul 30 12:21:25 2004 From: donald at saturn5net.com (Donald Organ) Date: Fri, 30 Jul 2004 12:21:25 -0400 Subject: [nycphp-talk] Backup References: <BD2FEC03.92D7%php@haberco.com> Message-ID: <00af01c47651$42ac4070$12020a0a@dorganmobile> will script execution time affect these if it hase to download 500+ MB ----- Original Message ----- From: "Eddie Haber" <php at haberco.com> To: "NYPHP Talk" <talk at lists.nyphp.org> Sent: Friday, July 30, 2004 12:13 PM Subject: Re: [nycphp-talk] Backup > I did this same thing recently for a project. Divide the tasks into two > scripts so you don't have to worry about network latencies. > > DB_backup.php > DB_ftp.php > > > In DB_backup.php you just need to execute this command: > > <? > exec("mysqldump --opt -u $USER --password=\"$PASSWORD\" $DATABASE | gzip -c > > $LOCAL_FILENAME"); > ?> > > (and manage some error trapping and logging if you want). > IN DB_ftp.php use the ftp functions: > > <? > > $conn_id = ftp_connect($HOST); > $login_result = ftp_login($conn_id, $HOST_UNAME, $HOST_PWORD); > if ((!$conn_id) || (!$login_result)) { > // print or log the next line > print "FTP connection has failed. Could not connect to host: $HOST."; > exit; > } > > // put file > if ( ! ftp_put($conn_id, $REMOTE_FILENAME, $LOCAL_FILENAME, FTP_ASCII) ) > { > // print or log the next line > print "Error copying file. Could not copy file to server."; > exit; > } > else > { > // print or log the next line > print "Copy successful ."; > } > > // close connection > ftp_close($conn_id); > > ?> > > The crontab -e and set something like: > > 5 0 * * * php /path/to/script/DB_backup.php > 10 0 * * * php /path/to/script/DB_ftp.php > > > Hope this helps. > Eddie > > > > > On 7/30/04 11:22 AM, "Donald Organ" <donald at saturn5net.com> wrote: > > > basically what i was planning on doing was writing a PHP script that i could > > cron to pull the info from a DB on all the Hosts and shares that have to be > > backed up and then just copy all of it down to the linux server. > > > > > > ----- Original Message ----- > > From: "mike hjorleifsson" <mikeh at dtev.com> > > To: "NYPHP Talk" <talk at lists.nyphp.org> > > Sent: Friday, July 30, 2004 11:22 AM > > Subject: Re: [nycphp-talk] Backup > > > > > >> rsync is fast, and you can tunnell securely with ssh > >> > >> Donald Organ wrote: > >> > >>> Does anyone know of good software that I can implement on my network, > > what i > >>> am looking to do is backup web and sql directorys on a windows box to a > >>> linux box via samba, if any on has any experience in this please email me > >>> off the list. > >>> > >>> _______________________________________________ > >>> New York PHP Talk > >>> Supporting AMP Technology (Apache/MySQL/PHP) > >>> http://lists.nyphp.org/mailman/listinfo/talk > >>> http://www.newyorkphp.org > >>> > >>> > >>> > >>> > >>> > >> > >> -- > >> ======================= > >> 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. > >> > >> _______________________________________________ > >> New York PHP Talk > >> Supporting AMP Technology (Apache/MySQL/PHP) > >> http://lists.nyphp.org/mailman/listinfo/talk > >> http://www.newyorkphp.org > > > > _______________________________________________ > > New York PHP Talk > > Supporting AMP Technology (Apache/MySQL/PHP) > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.newyorkphp.org > > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org From brian at vermonster.com Fri Jul 30 12:33:16 2004 From: brian at vermonster.com (Brian Kaney) Date: Fri, 30 Jul 2004 12:33:16 -0400 Subject: [nycphp-talk] Backup In-Reply-To: <00af01c47651$42ac4070$12020a0a@dorganmobile> References: <BD2FEC03.92D7%php@haberco.com> <00af01c47651$42ac4070$12020a0a@dorganmobile> Message-ID: <1091205195.19178.98.camel@brian.vermonster.com> In your crontab you could try setting the execution time to 0: * * * * * /path/to/php -d max_execution_time=0 /path/to/file.php Or use set_time_limit(0) in your script. I was never a fan of using PHP for system stuff. Perl and/or simple bash scripts seem more suitable to me. On Fri, 2004-07-30 at 12:21, Donald Organ wrote: > will script execution time affect these if it hase to download 500+ MB > From bpang at bpang.com Fri Jul 30 12:32:26 2004 From: bpang at bpang.com (Brian Pang) Date: Fri, 30 Jul 2004 11:32:26 -0500 Subject: [nycphp-talk] Development environment? Message-ID: <E1BqaJ0-000188-LH@thc3.thehostingcompany.us> trying to bring this back OT When possible, I like to set up a subdomain on the same server such that www.domain.com is my production environment and dev.domain.com is my dev environment (sometimes I'll also do a 3rd QA setup) the great advantage of this is everything on dev is exactly the same as on production a disadvantage would be that runaway processes on dev can affect the live site. disk space can also be an issue as well as making sure that any files you write to the disk are separated out by prod or dev (or qa). You'll also want to create duplicate databases for the dev environment. this has worked well for me where I have the space and power on the production server and not the $$$ for a separate box. I could use my linux workstation for dev purposes, but then I have to make sure that all the versions line up, etc. last, promoting your code to production is a lot faster as it's just a local cp since everyone else has said so... I still use vi(m) in the ssh shell for everything :) From php at haberco.com Fri Jul 30 12:35:13 2004 From: php at haberco.com (Eddie Haber) Date: Fri, 30 Jul 2004 12:35:13 -0400 Subject: [nycphp-talk] Backup In-Reply-To: <00af01c47651$42ac4070$12020a0a@dorganmobile> Message-ID: <BD2FF101.92DF%php@haberco.com> As far as large file size, I don't know how that effects either script sorry. I've tried it with up to about 20 MB DB files which compress to a manageable 5MB. You might just try putting more time (an hour?) between the jobs just to be safe. If both your servers are connected to a good internet connection (through a T1 or T3 etc.) then the transfer should only take a few minutes. In the code below also, you might have to change: FTP_ASCII to FTP_BINARY if the file is gzipped. Good luck, Eddie On 7/30/04 12:21 PM, "Donald Organ" <donald at saturn5net.com> wrote: > will script execution time affect these if it hase to download 500+ MB > > > ----- Original Message ----- > From: "Eddie Haber" <php at haberco.com> > To: "NYPHP Talk" <talk at lists.nyphp.org> > Sent: Friday, July 30, 2004 12:13 PM > Subject: Re: [nycphp-talk] Backup > > >> I did this same thing recently for a project. Divide the tasks into two >> scripts so you don't have to worry about network latencies. >> >> DB_backup.php >> DB_ftp.php >> >> >> In DB_backup.php you just need to execute this command: >> >> <? >> exec("mysqldump --opt -u $USER --password=\"$PASSWORD\" $DATABASE | > gzip -c >>> $LOCAL_FILENAME"); >> ?> >> >> (and manage some error trapping and logging if you want). >> IN DB_ftp.php use the ftp functions: >> >> <? >> >> $conn_id = ftp_connect($HOST); >> $login_result = ftp_login($conn_id, $HOST_UNAME, $HOST_PWORD); >> if ((!$conn_id) || (!$login_result)) { >> // print or log the next line >> print "FTP connection has failed. Could not connect to host: $HOST."; >> exit; >> } >> >> // put file >> if ( ! ftp_put($conn_id, $REMOTE_FILENAME, $LOCAL_FILENAME, FTP_ASCII) ) >> { >> // print or log the next line >> print "Error copying file. Could not copy file to server."; >> exit; >> } >> else >> { >> // print or log the next line >> print "Copy successful ."; >> } >> >> // close connection >> ftp_close($conn_id); >> >> ?> >> >> The crontab -e and set something like: >> >> 5 0 * * * php /path/to/script/DB_backup.php >> 10 0 * * * php /path/to/script/DB_ftp.php >> >> >> Hope this helps. >> Eddie >> >> >> >> >> On 7/30/04 11:22 AM, "Donald Organ" <donald at saturn5net.com> wrote: >> >>> basically what i was planning on doing was writing a PHP script that i > could >>> cron to pull the info from a DB on all the Hosts and shares that have to > be >>> backed up and then just copy all of it down to the linux server. >>> >>> >>> ----- Original Message ----- >>> From: "mike hjorleifsson" <mikeh at dtev.com> >>> To: "NYPHP Talk" <talk at lists.nyphp.org> >>> Sent: Friday, July 30, 2004 11:22 AM >>> Subject: Re: [nycphp-talk] Backup >>> >>> >>>> rsync is fast, and you can tunnell securely with ssh >>>> >>>> Donald Organ wrote: >>>> >>>>> Does anyone know of good software that I can implement on my network, >>> what i >>>>> am looking to do is backup web and sql directorys on a windows box to > a >>>>> linux box via samba, if any on has any experience in this please email > me >>>>> off the list. >>>>> >>>>> _______________________________________________ >>>>> New York PHP Talk >>>>> Supporting AMP Technology (Apache/MySQL/PHP) >>>>> http://lists.nyphp.org/mailman/listinfo/talk >>>>> http://www.newyorkphp.org >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> -- >>>> ======================= >>>> 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. >>>> >>>> _______________________________________________ >>>> New York PHP Talk >>>> Supporting AMP Technology (Apache/MySQL/PHP) >>>> http://lists.nyphp.org/mailman/listinfo/talk >>>> http://www.newyorkphp.org >>> >>> _______________________________________________ >>> New York PHP Talk >>> Supporting AMP Technology (Apache/MySQL/PHP) >>> http://lists.nyphp.org/mailman/listinfo/talk >>> http://www.newyorkphp.org >> >> >> _______________________________________________ >> New York PHP Talk >> Supporting AMP Technology (Apache/MySQL/PHP) >> http://lists.nyphp.org/mailman/listinfo/talk >> http://www.newyorkphp.org > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org From bpang at bpang.com Fri Jul 30 12:35:44 2004 From: bpang at bpang.com (Brian Pang) Date: Fri, 30 Jul 2004 11:35:44 -0500 Subject: [nycphp-talk] Development environment? Message-ID: <E1BqaMC-0001WJ-8N@thc3.thehostingcompany.us> oh.. oops.. maybe _I_ went off topic.. I got confused :-} > trying to bring this back OT From mitchy at spacemonkeylabs.com Fri Jul 30 12:57:34 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Fri, 30 Jul 2004 12:57:34 -0400 Subject: [nycphp-talk] Development environment (server side)? In-Reply-To: <E1BqaJ0-000188-LH@thc3.thehostingcompany.us> References: <E1BqaJ0-000188-LH@thc3.thehostingcompany.us> Message-ID: <410A7DFE.90201@spacemonkeylabs.com> Brian Pang wrote: >trying to bring this back OT > >When possible, I like to set up a subdomain on the same server such that >www.domain.com is my production environment and >dev.domain.com is my dev environment >(sometimes I'll also do a 3rd QA setup) > > This is where CVS really shines, as I track everything except the config file in CVS, then can export that project to the production websites directory and the configuration is still good. In a sense, a good practice that I try to follow is dev->test->prod, and I can use CVS to manage the whole shebang with simple export steps. You can even cron the export to test, so the test version is always current (within a day/hour/minute etc.). I've lately started keeping all configuration information in a separate config class, and that has really helped things out immeasurably. As long as the configuration info includes the URLs and directory paths, the only thing different in each of these sites is the values in the config class. Everything else should just work. And yes, I did learn this practice through working with Mambo... What other ways are there that are easy to do? Do I smell a PHundamentals opportunity? ;-) -- Mitch From lists at prusak.com Fri Jul 30 12:59:32 2004 From: lists at prusak.com (ophir prusak) Date: Fri, 30 Jul 2004 12:59:32 -0400 Subject: [nycphp-talk] Development environment? In-Reply-To: <E1BqGIR-0008VD-Ee@neutron.nocdirect.com> References: <E1BqGIR-0008VD-Ee@neutron.nocdirect.com> Message-ID: <410A7E74.3030401@prusak.com> Sheesh, It hasn't even been 24 hours and there are already about 30 replies to this question. I'm usually more of a lurker but thought I could provide some clarity. You ask what the "best" dev environment is, but the term best has different meanings to different people. That's why you received so many answers :) You might want to elaborate on what features are important to you. Price not being an issue, I don't think you'll find any IDE more feature rich then Zend Studio. Zend Studio is much more than an editor, especially when you run the Zend Studio Server component. This allows you to do things like trace/debug your PHP code ON THE SERVER. I don't remember the details but nyphp members can get a discount. If you're looking for something "lighter", there are numerous text editors which I'm sure you'll be happier with such as UltraEdit, TextPad or even Emacs or VIM :) On the side of what browser to use, personally I shoot for IE 5 and up since I know that's what about 95% of my users use. EZ wrote: >Hello all, > >I wanted to solicit your thoughts and opinions on what you think is the >best development environment for PHP and why you think this. I >personally use Dreamweaver to code and test with Firefox (no error and >output looks like it should? Must be error free. ;-) ). Part of this is >because my sites are remotely hosted and I don't run LAMP at home (yet). >I recognize there are probably better ways and that it is time to start >using a "real" environment. > >Thanks in advance for your opinons! > >EZ >_______________________________________________ >New York PHP Talk >Supporting AMP Technology (Apache/MySQL/PHP) >http://lists.nyphp.org/mailman/listinfo/talk >http://www.newyorkphp.org > > From bpang at bpang.com Fri Jul 30 13:05:39 2004 From: bpang at bpang.com (Brian Pang) Date: Fri, 30 Jul 2004 12:05:39 -0500 Subject: [nycphp-talk] Development environment (server side)? Message-ID: <E1Bqap9-00059A-BA@thc3.thehostingcompany.us> I do something similar, but I have it check either the DOCUMENT_ROOT or the HTTP_HOST and adjust config vars (urls, paths, etc) accordingly. That way I don't have to remember to change a var specifying dev/qa/prod > I've lately started keeping all configuration information in a separate > config class, and that has really helped things out immeasurably. As > long as the configuration info includes the URLs and directory paths, > the only thing different in each of these sites is the values in the > config class. Everything else should just work. And yes, I did learn > this practice through working with Mambo... From jeffknight at mac.com Fri Jul 30 13:07:25 2004 From: jeffknight at mac.com (Jeff Knight) Date: Fri, 30 Jul 2004 10:07:25 -0700 Subject: [nycphp-talk] Development environment? In-Reply-To: <410A7E74.3030401@prusak.com> References: <E1BqGIR-0008VD-Ee@neutron.nocdirect.com> <410A7E74.3030401@prusak.com> Message-ID: <EDE9D879-E24A-11D8-9360-000A95C0B064@mac.com> On Jul 30, 2004, at 9:59 AM, ophir prusak wrote: > On the side of what browser to use, personally I shoot for IE 5 and up > since I know that's what about 95% of my users use. I have to disagree with this. Aside from the many more obvious reasons, it is better to develop on anything but IE for a couple of reasons. First, since most people use it, any bugs are far more likely to be found by the users of IE, and you'll hear about them right away, but there a fewer eyes on the other browsers, so you're better served giving it a good look from that perspective yourself. Second, it is much easier to do something standards-compliant in an alternative browser and tweak it to work in IE than it is to start with IE an make it work elsewhere. From joel at tagword.com Fri Jul 30 13:10:46 2004 From: joel at tagword.com (Joel De Gan) Date: Fri, 30 Jul 2004 17:10:46 +0000 Subject: [nycphp-talk] Development environment? In-Reply-To: <41096A5A.4080809@phpwerx.net> References: <E1BqGIR-0008VD-Ee@neutron.nocdirect.com> <1091131957.7443.208.camel@bezel> <41096415.40205@cyberxdesigns.com> <41096A5A.4080809@phpwerx.net> Message-ID: <1091207445.5180.3.camel@bezel> Want to thank you for pointing to that font. it rocks. Switched my xterm default to it.. gvim et al. very very nice.. thanks again -joeldg On Thu, 2004-07-29 at 21:21, Dan Cech wrote: > Hans C. Kaspersetz wrote: > extra 'stuff' I don't need. I also use the font ProggyClean > (http://www.tactile3d.com/tristan/), which makes reading code a whole > lot easier on the eyes. -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From jlacey at att.net Fri Jul 30 13:21:12 2004 From: jlacey at att.net (John Lacey) Date: Fri, 30 Jul 2004 11:21:12 -0600 Subject: [nycphp-talk] Development environment? In-Reply-To: <1091207445.5180.3.camel@bezel> References: <E1BqGIR-0008VD-Ee@neutron.nocdirect.com> <1091131957.7443.208.camel@bezel> <41096415.40205@cyberxdesigns.com> <41096A5A.4080809@phpwerx.net> <1091207445.5180.3.camel@bezel> Message-ID: <410A8388.5070802@att.net> Joel De Gan wrote: > Want to thank you for pointing to that font. > it rocks. > Switched my xterm default to it.. gvim et al. > very very nice.. > > thanks again > > -joeldg > > On Thu, 2004-07-29 at 21:21, Dan Cech wrote: > >>Hans C. Kaspersetz wrote: >>extra 'stuff' I don't need. I also use the font ProggyClean >>(http://www.tactile3d.com/tristan/), which makes reading code a whole >>lot easier on the eyes. > > and for Ultraedit users out there, I find 'Bitstream Vera Sans Mono' to be quite readable John From danielc at analysisandsolutions.com Fri Jul 30 13:45:55 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 30 Jul 2004 13:45:55 -0400 Subject: [nycphp-talk] Development environment? In-Reply-To: <1091207445.5180.3.camel@bezel> References: <E1BqGIR-0008VD-Ee@neutron.nocdirect.com> <1091131957.7443.208.camel@bezel> <41096415.40205@cyberxdesigns.com> <41096A5A.4080809@phpwerx.net> <1091207445.5180.3.camel@bezel> Message-ID: <20040730174555.GA29939@panix.com> On Fri, Jul 30, 2004 at 05:10:46PM +0000, Joel De Gan wrote: > Want to thank you for pointing to that font. It's similar to "Lucida Console" on Windows, which is what I use. I write code in EditPlus, a basic text editor that has some handy coding features. I like it because it's clean and simple. Mitch mentioned code collapsing, which this doesn't have, but it does produce a list of all functions in a file via Search | Function List. I use Zend Studio for complex debugging. I don't like writing in it because it's too cluttered, let alone is overkill. --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 derek at sportspyder.com Fri Jul 30 14:05:27 2004 From: derek at sportspyder.com (Derek DeVries) Date: Fri, 30 Jul 2004 14:05:27 -0400 Subject: [nycphp-talk] Development environment? In-Reply-To: <EDE9D879-E24A-11D8-9360-000A95C0B064@mac.com> Message-ID: <000201c4765f$cb916290$187f11ac@ddevries2> >First, since most people use it, any bugs are far more likely to be >found by the users of IE, and you'll hear about them right away, but Where I work, bugs aren't allowed to reach the users. Neglecting to test in IE could cost us a client. Plus I've found that users don't usually jump at the chance to notify you of your bugs. I think that you'll run into more of a problem with Javascript/css between browsers. If you are developing server-side applications, your code should work in any browser. I usually get my code to work in IE and then pop open alternate browsers to confirm it works there as well. - Derek From jlacey at att.net Fri Jul 30 14:08:43 2004 From: jlacey at att.net (John Lacey) Date: Fri, 30 Jul 2004 12:08:43 -0600 Subject: [nycphp-talk] Development environment? In-Reply-To: <000201c4765f$cb916290$187f11ac@ddevries2> References: <000201c4765f$cb916290$187f11ac@ddevries2> Message-ID: <410A8EAB.6070203@att.net> Derek DeVries wrote: > I think that you'll run into more of a problem with Javascript/css between > browsers. If you are developing server-side applications, your code should > work in any browser. I usually get my code to work in IE and then pop open > alternate browsers to confirm it works there as well. > time for a "Best Viewed with Firefox" button :) J From michael.bendell at mssm.edu Fri Jul 30 14:16:15 2004 From: michael.bendell at mssm.edu (Bendell, Michael) Date: Fri, 30 Jul 2004 14:16:15 -0400 Subject: [nycphp-talk] PHP Training: David Sklar Message-ID: <B1D03CDE4EB62544BBDF49D2F4451C6E021388@exch.mssm.edu> This posting has been approved by the Board of New York PHP We are a small non-profit who has hired David Sklar (http://www.sklar.com/) to provide on-site training. This training specifically covers the topics of PHP5 OOP, focusing on writing object oriented wrappers for HTML Quick Form and effectively using XML. The cost of this class is expensive and we are looking to open up 2 seats to the public (Total of 5 seats) to offset the cost, it is a 2 day class - August 12(PHP5 OOP) & August 13 (Effectively using XML). We are hoping to get $750 per person but realize this is short notice and a lot of money. Please email me directly at michael.bendell at mssm.edu if you are interested with the subject line of PHP Training: David Sklar. Thank you. Best regards, Michael Bendell -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040730/abe6ceb4/attachment.html> From faber at linuxnj.com Fri Jul 30 14:23:56 2004 From: faber at linuxnj.com (Faber Fedor) Date: Fri, 30 Jul 2004 14:23:56 -0400 Subject: [nycphp-talk] Proggy fonts not seen? (WAS: Re: Development environment?) In-Reply-To: <20040730174555.GA29939@panix.com> References: <E1BqGIR-0008VD-Ee@neutron.nocdirect.com> <1091131957.7443.208.camel@bezel> <41096415.40205@cyberxdesigns.com> <41096A5A.4080809@phpwerx.net> <1091207445.5180.3.camel@bezel> <20040730174555.GA29939@panix.com> Message-ID: <20040730182356.GA11304@uranus.faber.nom> On Fri, Jul 30, 2004 at 05:10:46PM +0000, Joel De Gan wrote: > Want to thank you for pointing to that font. Any advice on how to get the fonts to work on Fedora Core 1? I followed the instructions on the site to no avail. I've exited and restarted both the X Font Server and X Windows several times. Yes, I did a mkfontdir on every dir in /usr/lib/X11/fonts. I Copied over the TTF and PCF fonts. I added 'Load "bitmap" to XF86Config... I can't locate "Proggy*" in Konsole, GVim, or K Control Center. What am I missing? -- Regards, Faber Linux New Jersey: Open Source Solutions for New Jersey http://www.linuxnj.com From dcech at phpwerx.net Fri Jul 30 14:24:17 2004 From: dcech at phpwerx.net (Dan Cech) Date: Fri, 30 Jul 2004 14:24:17 -0400 Subject: [nycphp-talk] Development environment? In-Reply-To: <1091207445.5180.3.camel@bezel> References: <E1BqGIR-0008VD-Ee@neutron.nocdirect.com> <1091131957.7443.208.camel@bezel> <41096415.40205@cyberxdesigns.com> <41096A5A.4080809@phpwerx.net> <1091207445.5180.3.camel@bezel> Message-ID: <410A9251.3030101@phpwerx.net> You're very welcome, it's amazing the difference the right font can make when coding. Dan Joel De Gan wrote: > Want to thank you for pointing to that font. > it rocks. > Switched my xterm default to it.. gvim et al. > very very nice.. > > thanks again > > -joeldg > > On Thu, 2004-07-29 at 21:21, Dan Cech wrote: > >>Hans C. Kaspersetz wrote: >>extra 'stuff' I don't need. I also use the font ProggyClean >>(http://www.tactile3d.com/tristan/), which makes reading code a whole >>lot easier on the eyes. > > From nyphp at enobrev.com Sat Jul 31 04:20:09 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Sat, 31 Jul 2004 04:20:09 -0400 Subject: [nycphp-talk] Development environment? In-Reply-To: <20040730174555.GA29939@panix.com> Message-ID: <20040731082013.4D3A4A85F0@virtu.nyphp.org> I've been using ProFont for at least a year now, which I TRULY enjoy using, both on my laptop and desktop with about every app I use for coding... http://www.tobias-jung.de/seekingprofont/ As far as IDEs, I enjoy using Zend Studio for it's PHP prowess (and debugging is fantastic when the client's dev server supports it, which my server does not), but hand coding HTML is a real pain in Zend in comparison to Dreamweaver MX and HomeSite. The code completion and color coding in both tools for html is phenomenal, and customizable, which is great for tag based template systems (I generally use patTemplate). Also, DWMX's regex search and replace is damned good. Zend's is decent but there's very little assistance for it. Oh, and of course vi when working over ssh. For the environment, I usually use my BSD server at my host (using projectName.enobrev.com). MY host is generally very good about adding whatever extensions I might need and whatnot. For larger projects with multiple developers, I'll usually create a new virtual server. When traveling, I use a barebones WAMP setup on my laptop, which I've found little to no modification necessary (besides directory stuff) when uploading to the usual LAMP server. I'm hoping to get a new box around here soon so I can make my current desktop into a local Linux server. That, or if I can find the time, I'll take the long dive into setting my laptop up with BSD or Linux. I'm REALLY interested in OSX, and would LOVE to hook up a nice lil DE on an OSX laptop for home and road, but even now in these busy times, Macs are expensive! Mark > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Daniel Convissor > Sent: Friday, July 30, 2004 1:46 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Development environment? > > On Fri, Jul 30, 2004 at 05:10:46PM +0000, Joel De Gan wrote: > > Want to thank you for pointing to that font. > > It's similar to "Lucida Console" on Windows, which is what I use. > > I write code in EditPlus, a basic text editor that has some > handy coding features. I like it because it's clean and simple. > > Mitch mentioned code collapsing, which this doesn't have, but > it does produce a list of all functions in a file via Search > | Function List. > > I use Zend Studio for complex debugging. I don't like > writing in it because it's too cluttered, let alone is overkill. > > --Dan > > -- > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > data intensive web and database programming > http://www.AnalysisAndSolutions.com/ > 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: > 718-854-0409 _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org > > From lists at prusak.com Sat Jul 31 10:04:05 2004 From: lists at prusak.com (ophir prusak) Date: Sat, 31 Jul 2004 10:04:05 -0400 Subject: [nycphp-talk] Development environment? In-Reply-To: <20040731082013.4D3A4A85F0@virtu.nyphp.org> References: <20040731082013.4D3A4A85F0@virtu.nyphp.org> Message-ID: <410BA6D5.6070101@prusak.com> Mark, You made a very good point. Creating HTML vs creating PHP code. There isn't a single tool that truly shines when doing both the "back end" coding (PHP code) and the "front end" HTML code. Back to the original question - "what is the best dev enviroment", this is a very big consideration. When I create a brand new page (or a new design), I first design it in something other than Zend Studio. Only when I'm doing the PHP coding do I use Zend Studio. I also use smarty templates which allows me to associate .php files with Zend studio and .tpl files with my HTML editor :) Ophir Mark Armendariz wrote: >I've been using ProFont for at least a year now, which I TRULY enjoy using, >both on my laptop and desktop with about every app I use for coding... >http://www.tobias-jung.de/seekingprofont/ > >As far as IDEs, I enjoy using Zend Studio for it's PHP prowess (and >debugging is fantastic when the client's dev server supports it, which my >server does not), but hand coding HTML is a real pain in Zend in comparison >to Dreamweaver MX and HomeSite. The code completion and color coding in >both tools for html is phenomenal, and customizable, which is great for tag >based template systems (I generally use patTemplate). > > > From lists at prusak.com Sat Jul 31 10:04:35 2004 From: lists at prusak.com (ophir prusak) Date: Sat, 31 Jul 2004 10:04:35 -0400 Subject: [nycphp-talk] Development environment? In-Reply-To: <20040731082013.4D3A4A85F0@virtu.nyphp.org> References: <20040731082013.4D3A4A85F0@virtu.nyphp.org> Message-ID: <410BA6F3.8050308@prusak.com> Mark, You made a very good point. Creating HTML vs creating PHP code. There isn't a single tool that truly shines when doing both the "back end" coding (PHP code) and the "front end" HTML code. Back to the original question - "what is the best dev environment", this is a very big consideration. When I create a brand new page (or a new design), I first design it in something other than Zend Studio. Only when I'm doing the PHP coding do I use Zend Studio. I also use smarty templates which allows me to associate .php files with Zend studio and .tpl files with my HTML editor :) Ophir Mark Armendariz wrote: >I've been using ProFont for at least a year now, which I TRULY enjoy using, >both on my laptop and desktop with about every app I use for coding... >http://www.tobias-jung.de/seekingprofont/ > >As far as IDEs, I enjoy using Zend Studio for it's PHP prowess (and >debugging is fantastic when the client's dev server supports it, which my >server does not), but hand coding HTML is a real pain in Zend in comparison >to Dreamweaver MX and HomeSite. The code completion and color coding in >both tools for html is phenomenal, and customizable, which is great for tag >based template systems (I generally use patTemplate). > > >