From webmaster at localnotion.com Sat Jan 1 01:10:51 2005 From: webmaster at localnotion.com (Matthew Terenzio) Date: Sat, 1 Jan 2005 01:10:51 -0500 Subject: [nycphp-talk] php bulletin boards In-Reply-To: <20050101044409.GA24129@panix.com> References: <20050101044409.GA24129@panix.com> Message-ID: On Dec 31, 2004, at 11:44 PM, Daniel Convissor wrote: >> phpbb > > All I can say is avoid that like the plague. Can't we just build something together right now that is better(the best) From nasir81 at gmail.com Sat Jan 1 02:10:44 2005 From: nasir81 at gmail.com (Nasir Zubair) Date: Sat, 1 Jan 2005 02:10:44 -0500 Subject: [nycphp-talk] php bulletin boards In-Reply-To: References: <20050101044409.GA24129@panix.com> Message-ID: <40fcda73041231231025f52dd7@mail.gmail.com> The best php based bulletin board I have used is vBulletin. Yes it is commercial, but the quality of the product and support is pretty good. On Sat, 1 Jan 2005 01:10:51 -0500, Matthew Terenzio wrote: > > On Dec 31, 2004, at 11:44 PM, Daniel Convissor wrote: > > >> phpbb > > > > All I can say is avoid that like the plague. > > Can't we just build something together right now that is better(the > best) > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From mitch.pirtle at gmail.com Sat Jan 1 10:50:04 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Sat, 1 Jan 2005 10:50:04 -0500 Subject: [nycphp-talk] [OT] recommend laptop repair place/Windows XP fixer-upper? In-Reply-To: <20050101002441.46504.qmail@web53704.mail.yahoo.com> References: <23697-81790@sneakemail.com> <20050101002441.46504.qmail@web53704.mail.yahoo.com> Message-ID: <330532b605010107507bbd23c1@mail.gmail.com> Here is another one, just in the nick of time ;-) http://www.pjls16812.pwp.blueyonder.co.uk/knowing-knoppix/index.html "You can't start Windows! Disaster? Possibly not. It is often possible to rescue files using Knoppix from crashed Windows computers, even when Windows cannot be started. This guide takes you step by step through the process." -- Mitch On Fri, 31 Dec 2004 16:24:41 -0800 (PST), Susan Shemin wrote: > Thanks for the link--I'll certainly check it out! From tgales at tgaconnect.com Sat Jan 1 11:52:08 2005 From: tgales at tgaconnect.com (Tim Gales) Date: Sat, 1 Jan 2005 11:52:08 -0500 Subject: [nycphp-talk] [OT] recommend laptop repair place/Windows XPfixer-upper? In-Reply-To: <330532b605010107507bbd23c1@mail.gmail.com> Message-ID: <001301c4f022$3b53d2c0$e98d3818@oberon1> Mitch Pirtle writes: > Subject: Re: [nycphp-talk] [OT] recommend laptop repair > > http://www.pjls16812.pwp.blueyonder.co.uk/knowing-knoppix/index.html > > "You can't start Windows! Disaster? Possibly not. You can run Knoppix if you have a minimum of 128 Mb (working) RAM. Maybe reinserting the ram chips in their sockets (again) would be a good thing to do. (seems like there are two problems goind on here: flaky ram and corrupted files) Earlier Susan had said that she was unable to bring up her laptop in 'Safe Mode' -- perhaps the master boot record is one of the things that got corrupted... If that's the case, it would seem that booting from another device (either a CD or floppy) would be the thing to try. But if you (Susan) have a rescue floppy for XP, maybe it would be easier to try booting from that. Then once booted in command line mode (effectively MS-Dos), copy what's important to floppies. If you have an installation CD, you could try pressing F10 (or 'R" to repair) at the setup welcome screen. (this is the route I would go -- after getting good copies of important files) If you meet strange obstacles while trying to effect a repair, you may find entering 'recovery' in the search box in the upper right hand corner of http://support.microsoft.com/winxp will produce some helpful ideas. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From jlacey at att.net Sat Jan 1 13:40:53 2005 From: jlacey at att.net (John Lacey) Date: Sat, 01 Jan 2005 11:40:53 -0700 Subject: [nycphp-talk] [OT] recommend laptop repair place/Windows XPfixer-upper? In-Reply-To: <001301c4f022$3b53d2c0$e98d3818@oberon1> References: <001301c4f022$3b53d2c0$e98d3818@oberon1> Message-ID: <41D6EEB5.5070508@att.net> Tim Gales wrote: > Mitch Pirtle writes: > >>Subject: Re: [nycphp-talk] [OT] recommend laptop repair >> >>http://www.pjls16812.pwp.blueyonder.co.uk/knowing-knoppix/index.html >> >>"You can't start Windows! Disaster? Possibly not. > > > You can run Knoppix if you have a minimum of 128 Mb (working) RAM. > Maybe reinserting the ram chips in their sockets (again) > would be a good thing to do. (seems like there are two > problems goind on here: flaky ram and corrupted files) In addition to the few suggestions concerning Knoppix, I highly recommend "Knoppix Hacks" (O'Reilly) which also comes with a Knoppix CD. There are hacks that specifically address "recovery situations" on Windows. And, if you bring it up in text mode -- "knoppix 2" at the boot prompt -- you can run it in 64MB (or less). I have personally used Knoppix to recover a lost Windows Product ID on a Win98 system for a friend who had bought a used PC and needed to re-install from the win98SE directory on the hard drive. I even keep a copy of Knoppix in my glovebox so's I'll have it "whenever" :) HTH, John p.s. a Happy and Prosperous New Year to all the NYPHP listies... From jayeshsh at ceruleansky.com Sat Jan 1 20:51:17 2005 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Sat, 1 Jan 2005 20:51:17 -0500 (EST) Subject: [nycphp-talk] dotDeb: Easy LAMP for Debian Message-ID: <39111.69.86.84.233.1104630677.spork@webmail.ceruleansky.com> Hello everyone, Happy 2005! I thought this link might be of interest to any Debian users out there who want an easy way to install LAMP (PHP4 or PHP5): http://dotdeb.org/index.php Best regards, - Jay Sheth From Cbielanski at inta.org Mon Jan 3 11:10:57 2005 From: Cbielanski at inta.org (Chris Bielanski) Date: Mon, 3 Jan 2005 11:10:57 -0500 Subject: [nycphp-talk] php bulletin boards Message-ID: <4DBE3775D77C744E9D1B9D06082E75D60AAAED@intamail1.com> vBulletin is nice, but from what I've come to undersand they are persnickety about mods to their code. phpB we all know about as a security-sieve, which leads me to ask a side question: What's the status of CLEW these days? 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: Nasir Zubair [mailto:nasir81 at gmail.com] > Sent: Saturday, January 01, 2005 2:11 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] php bulletin boards > > > The best php based bulletin board I have used is vBulletin. Yes it is > commercial, but the quality of the product and support is pretty good. > > > On Sat, 1 Jan 2005 01:10:51 -0500, Matthew Terenzio > wrote: > > > > On Dec 31, 2004, at 11:44 PM, Daniel Convissor wrote: > > > > >> phpbb > > > > > > All I can say is avoid that like the plague. > > > > Can't we just build something together right now that is better(the > > best) > > > > _______________________________________________ > > New York PHP Talk > > Supporting AMP Technology (Apache/MySQL/PHP) > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org > > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From alienz at 53cleveland.org Mon Jan 3 11:32:36 2005 From: alienz at 53cleveland.org (alienz at 53cleveland.org) Date: Mon, 3 Jan 2005 11:32:36 -0500 (EST) Subject: [nycphp-talk] DB Abstraction Peformance Message-ID: <36686.167.206.206.50.1104769956.squirrel@email.nethosters.com> While I like the flexibility of Creole (http://creole.phpdb.org/) I benched it along with ADOdb and straight MySQL using the benchmark from (http://phplens.com/lens/adodb/) Seems Creole is slightly slower than ADOdb, but nothing comes close to MySQL, I was wondering if anyone had an opinion on this sort of thing. With a MySQL cache turned on should I be worried about performance on a site that is mostly SELECT's? From mjdewitt at alexcommgrp.com Mon Jan 3 11:34:41 2005 From: mjdewitt at alexcommgrp.com (DeWitt, Michael) Date: Mon, 3 Jan 2005 11:34:41 -0500 Subject: [nycphp-talk] I posted your pictures Message-ID: Just wanted to drop you a line and let you know I posted your pictures of the "regulars" to the NYPHP gallery. I skipped two, Felix Z, and Ryan (don't know his last name, you had him as pic P9280020.jpg) since I couldn't find their email addresses. Here is the link: http://www.nyphp.org/content/gallery/view_album.php?set_albumName=whoswho Mike PS At the next meeting, I will have to get your picture for the gallery! From jayeshsh at ceruleansky.com Mon Jan 3 12:58:10 2005 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Mon, 3 Jan 2005 12:58:10 -0500 (EST) Subject: [nycphp-talk] rich-gui PHP Wiki and other PHP gems Message-ID: <60108.69.86.84.233.1104775090.spork@webmail.ceruleansky.com> Hello all, Some of you have been asking lately about alternative image galleries, Wikis, and blog-ware for PHP. Here are some of the recent goodies I have found. I think some of you may be interested in this rich-GUI PHP Wiki: PHPTiddlyWiki http://www.patrickcurry.com/tiddly/ I have only looked at the demo yet, not the code. But from the demo alone it looks good. Also, For those looking for easy/simple photo gallery software, I found the following: http://folderblog.tetto.org/ http://www.pixelpost.org/ http://relativelyabsolute.com/spg/ This demo of PixelPost is quite impressive: http://www.keoshi.com/fblog/index.php?showimage=57 Oh, and finally, a great-looking RSS feed organizer: http://lilina.sourceforge.net/ (I really need to start a mini-blog / links-blog to preserve and organize these daily PHP gems.) Best regards, - Jay From mitch.pirtle at gmail.com Mon Jan 3 13:55:03 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Mon, 3 Jan 2005 13:55:03 -0500 Subject: [nycphp-talk] DB Abstraction Peformance In-Reply-To: <36686.167.206.206.50.1104769956.squirrel@email.nethosters.com> References: <36686.167.206.206.50.1104769956.squirrel@email.nethosters.com> Message-ID: <330532b6050103105517bc1bc1@mail.gmail.com> Having the query cache in MySQL enabled should be adequate. We did a lot of testing for Mambo, and learned that although ADOdb's client-side caching was faster than MySQL's query cache (no network trips at all, as the cache was on the webserver instead of on the database machine), we also saw the load go up on the webserver (especially on slower hardware or sites under heavy load). Finally, after all that work, we discovered that caching the output (templates, output HTML etc.) gave us MUCH MORE significant results than any query caching toolkits available. So you can use whichever caching you prefer, but know that researching something like PEAR's Cache_Lite would provide infinitely more performance gains for about the same amount of effort. -- Mitch On Mon, 3 Jan 2005 11:32:36 -0500 (EST), alienz at 53cleveland.org wrote: > While I like the flexibility of Creole (http://creole.phpdb.org/) I > benched it along with ADOdb and straight MySQL using the benchmark from > (http://phplens.com/lens/adodb/) > > Seems Creole is slightly slower than ADOdb, but nothing comes close to > MySQL, I was wondering if anyone had an opinion on this sort of thing. > With a MySQL cache turned on should I be worried about performance on a > site that is mostly SELECT's? > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From gatzby3jr at gmail.com Mon Jan 3 17:11:04 2005 From: gatzby3jr at gmail.com (Brian O'Connor) Date: Mon, 3 Jan 2005 17:11:04 -0500 Subject: [nycphp-talk] php bulletin boards In-Reply-To: <20050101044409.GA24129@panix.com> References: <20050101044409.GA24129@panix.com> Message-ID: <29da5d1505010314113739cdb8@mail.gmail.com> I'm relatively new to the php world and I was wondering what's wrong with phpBB? I am using them now for temporary forums while I make my personal site. On Fri, 31 Dec 2004 23:44:09 -0500, Daniel Convissor wrote: > On Fri, Dec 31, 2004 at 09:01:27PM -0500, Ophir Prusak wrote: > > phpbb > > All I can say is avoid that like the plague. > > --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.nyphp.org > -- Brian O'Connor From yury at heavenspa.com Mon Jan 3 17:14:21 2005 From: yury at heavenspa.com (Yury Rush) Date: Mon, 3 Jan 2005 17:14:21 -0500 Subject: [nycphp-talk] php bulletin boards In-Reply-To: <29da5d1505010314113739cdb8@mail.gmail.com> Message-ID: Hi -- there was an exploit a few weeks ago that affected phpBB boards.. thousands were hacked via a worm that found phpBB sites using google's search.. just an FYI- invisionboard is good for a free BB. ciao yury www.motionrush.com -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Brian O'Connor Sent: Monday, January 03, 2005 5:11 PM To: NYPHP Talk Subject: Re: [nycphp-talk] php bulletin boards I'm relatively new to the php world and I was wondering what's wrong with phpBB? I am using them now for temporary forums while I make my personal site. On Fri, 31 Dec 2004 23:44:09 -0500, Daniel Convissor wrote: > On Fri, Dec 31, 2004 at 09:01:27PM -0500, Ophir Prusak wrote: > > phpbb > > All I can say is avoid that like the plague. > > --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.nyphp.org > -- Brian O'Connor _______________________________________________ New York PHP Talk Supporting AMP Technology (Apache/MySQL/PHP) http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From smanes at magpie.com Mon Jan 3 17:58:50 2005 From: smanes at magpie.com (Steve Manes) Date: Mon, 03 Jan 2005 17:58:50 -0500 Subject: [nycphp-talk] php bulletin boards In-Reply-To: References: Message-ID: <41D9CE2A.2010904@magpie.com> Yury Rush wrote: > Hi -- there was an exploit a few weeks ago that affected phpBB boards.. > thousands were hacked via a worm that found phpBB sites using google's > search.. That exploit is actually a bug in PHP's unserialize(), not PHPBB. There are several exploits in 4.3.9 and 5.0.2: http://national.auscert.org.au/render.html?it=4636 From jayeshsh at ceruleansky.com Mon Jan 3 18:05:52 2005 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Mon, 03 Jan 2005 18:05:52 -0500 Subject: [nycphp-talk] php bulletin boards Message-ID: <41D9CFD0.7040408@ceruleansky.com> Hello all, phpBB is full-featured, but has had some prominent security issues in the recent past; hence people are recommending against installing it. It is easy for virus and worm writers as well as hackers to target software that has a large installed base. phpBB is widely installed, hence it is widely exploited. (I have not looked at its code, but it could not be that bad so popular at the same time, right?) I have used (an older version of) MiniBB in the past for a low-traffic forum: http://www.minibb.net/ The Wordpress (weblog software) guys used to use MiniBB for their forum software, but now it seems they have written their own: http://bbpress.org/about/ BBpress is supposed to be even lighter and even more secure than MiniBB. I have also heard that Fudforum is more secure than phpBB: It is www.fudforum.org , I think, but it seems to be down now. Best regards, - Jay From hans at nyphp.com Mon Jan 3 19:01:29 2005 From: hans at nyphp.com (Hans Zaunere) Date: Mon, 3 Jan 2005 16:01:29 -0800 Subject: [nycphp-talk] FW: The Year 2014: What happened to MSFT, AMZN, GOOG ? What happend to News Media? Message-ID: <41EE526EC2D3C74286415780D3BA9F8707495632@ehost011-1.exch011.intermedia.net> > http://www.broom.org/epic/ ...but I think they forgot the part about Morpheus and Neo? H From jperkins at sneer.org Mon Jan 3 21:04:49 2005 From: jperkins at sneer.org (Jason N.Perkins) Date: Mon, 3 Jan 2005 20:04:49 -0600 Subject: [nycphp-talk] php bulletin boards In-Reply-To: <41D9CE2A.2010904@magpie.com> References: <41D9CE2A.2010904@magpie.com> Message-ID: <03FFDF29-5DF5-11D9-8993-000D93C999BA@sneer.org> On Jan 3, 2005, at 4:58 PM, Steve Manes wrote: > Yury Rush wrote: >> Hi -- there was an exploit a few weeks ago that affected phpBB >> boards.. >> thousands were hacked via a worm that found phpBB sites using google's >> search.. > > That exploit is actually a bug in PHP's unserialize(), not PHPBB. > > There are several exploits in 4.3.9 and 5.0.2: > > http://national.auscert.org.au/render.html?it=4636 The Sanity phpBB worm used the phpBB Highlight Vulnerability which has nothing to do with the unserialize vulnerability. As (only) Derick Rethans could put it: "Everybody who thinks that the Santy.A worm uses one of the security problems addressed in PHP's latest bugfix releases is wrong. It was NOT due to any bug in PHP, but merely a badly checked input variable which was passed to preg with the /e modifier. Besides this, phpBB is also vulnarable for some of the things address by PHP's new releases. But they are wrong saying that it is not their fault. Not-checked usage of serialized data is still their problem. Short version: use FUDforum." Original link: More info at: This isn't to chastise Steve - phpBB rushed with the story that it wasn't there fault. -- Jason N Perkins From 1j0lkq002 at sneakemail.com Mon Jan 3 21:40:55 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Mon, 03 Jan 2005 21:40:55 -0500 Subject: [nycphp-talk] php bulletin boards In-Reply-To: <03FFDF29-5DF5-11D9-8993-000D93C999BA@sneer.org> References: <41D9CE2A.2010904@magpie.com> <03FFDF29-5DF5-11D9-8993-000D93C999BA@sneer.org> Message-ID: <4407-25672@sneakemail.com> Jason N.Perkins jperkins-at-sneer.org |nyphp dev/internal group use| wrote: > On Jan 3, 2005, at 4:58 PM, Steve Manes wrote: > >> Yury Rush wrote: >> >>> Hi -- there was an exploit a few weeks ago that affected phpBB >>> boards.. >>> thousands were hacked via a worm that found phpBB sites using google's >>> search.. >> >> >> That exploit is actually a bug in PHP's unserialize(), not PHPBB. >> >> There are several exploits in 4.3.9 and 5.0.2: >> >> http://national.auscert.org.au/render.html?it=4636 > > The Sanity phpBB worm used the phpBB Highlight Vulnerability which > has nothing to do with the unserialize vulnerability. As (only) > Derick Rethans could put it: > > "Everybody who thinks that the Santy.A worm uses one of the security > problems addressed in PHP's latest bugfix releases is wrong. It was > NOT due to any bug in PHP, but merely a badly checked input variable > which was passed to preg with the /e modifier. Besides this, phpBB is > also vulnarable for some of the things address by PHP's new > releases. But they are wrong saying that it is not their fault. > Not-checked usage of serialized data is still their problem. Short > version: use FUDforum." > > Original link: item=200412241207#200412241207> > > More info at: > > > > > This isn't to chastise Steve - phpBB rushed with the story that it > wasn't there fault. > -- > Jason N Perkins > I posted this on the 22nd of December, although it seemed like the highlight patch was removed sometime ater it was originally posted to phpBB website (?) : http://lists.nyphp.org/pipermail/talk/2004-December/013284.html -=john andrews -- Secunia Advisory 12/30/2004: "Almost every single branch of the Microsoft Windows operating system is vulnerable to several new vulnerabilities... no vendor solution is available for these vulnerabilities." From hans at nyphp.com Mon Jan 3 21:48:31 2005 From: hans at nyphp.com (Hans Zaunere) Date: Mon, 3 Jan 2005 18:48:31 -0800 Subject: [nycphp-talk] php bulletin boards Message-ID: <41EE526EC2D3C74286415780D3BA9F87074956D9@ehost011-1.exch011.intermedia.net> > More info at: > > > > http://www.php.net has also posted a similar retort as to Derick's (Derick likely wrote it) as their top story. --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org From keithjr at gmail.com Tue Jan 4 11:13:10 2005 From: keithjr at gmail.com (Keith Richardson) Date: Tue, 4 Jan 2005 11:13:10 -0500 Subject: [nycphp-talk] php bulletin boards In-Reply-To: <4DBE3775D77C744E9D1B9D06082E75D60AAAED@intamail1.com> References: <4DBE3775D77C744E9D1B9D06082E75D60AAAED@intamail1.com> Message-ID: <4e1a9bc05010408132178530b@mail.gmail.com> I use vbulletin and hack it regularly, as they seem not to care, and promote it, because you can download hacks at http://www.vbulletin.org/ - and the only way to download them is to have a license for vbulletin.. Its easy to navigate the code once you have played with it a bit, and is actually quite nice to use their registration system/etc as a homebrewed main site user auth system, as I have written a bunch of php functions to take username and get userid, validate username+password as a good combo, etc.. Though when they release a new version, it stinks that you have to find out your code mods, install the new vbulletin on a test folder, modify the crap outta your themes and code, and then it should work, but always has glitches :/ http://www.forumsx.net/ is our network site forums spawned from war3.com - if you wish to check it out. I used to have a bunch of automated thread creation scripts for other parts of the site before the big bad hard drive decided to crash, and only partial backups were performed, but It isnt too hard, just gotta know what proper sql tables to edit... I'm going to stick with vbulletin, since I paid for it (but my free updates have expired from 1 year after purchase), since it is nice and I havent had any problems with it at all. -keith richardson On Mon, 3 Jan 2005 11:10:57 -0500, Chris Bielanski wrote: > vBulletin is nice, but from what I've come to undersand they are persnickety > about mods to their code. phpB we all know about as a security-sieve, which > leads me to ask a side question: > > What's the status of CLEW these days? > > 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: Nasir Zubair [mailto:nasir81 at gmail.com] > > Sent: Saturday, January 01, 2005 2:11 AM > > To: NYPHP Talk > > Subject: Re: [nycphp-talk] php bulletin boards > > > > > > The best php based bulletin board I have used is vBulletin. Yes it is > > commercial, but the quality of the product and support is pretty good. > > > > > > On Sat, 1 Jan 2005 01:10:51 -0500, Matthew Terenzio > > wrote: > > > > > > On Dec 31, 2004, at 11:44 PM, Daniel Convissor wrote: > > > > > > >> phpbb > > > > > > > > All I can say is avoid that like the plague. > > > > > > Can't we just build something together right now that is better(the > > > best) > > > > > > _______________________________________________ > > > New York PHP Talk > > > Supporting AMP Technology (Apache/MySQL/PHP) > > > http://lists.nyphp.org/mailman/listinfo/talk > > > http://www.nyphp.org > > > > > _______________________________________________ > > New York PHP Talk > > Supporting AMP Technology (Apache/MySQL/PHP) > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org > > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -- Keith Richardson keith at keithjr.net From nasir81 at gmail.com Tue Jan 4 13:15:20 2005 From: nasir81 at gmail.com (Nasir Zubair) Date: Tue, 4 Jan 2005 13:15:20 -0500 Subject: [nycphp-talk] php bulletin boards In-Reply-To: <4DBE3775D77C744E9D1B9D06082E75D60AAAED@intamail1.com> References: <4DBE3775D77C744E9D1B9D06082E75D60AAAED@intamail1.com> Message-ID: <40fcda73050104101572876d16@mail.gmail.com> On Mon, 3 Jan 2005 11:10:57 -0500, Chris Bielanski wrote: > vBulletin is nice, but from what I've come to under sand they are persnickety > about mods to their code. Not really. You can modify the code all you want. Their technical support may not be able to help you with the modified code (can you blame them?), but the hack community at http://www.vbulletin.org/ makes up for it more than adequately. From webmaster at localnotion.com Tue Jan 4 16:26:07 2005 From: webmaster at localnotion.com (Matthew Terenzio) Date: Tue, 4 Jan 2005 16:26:07 -0500 Subject: [nycphp-talk] bouncing emails Message-ID: <3F4A84BA-5E97-11D9-8C6D-0003938BDF32@localnotion.com> My email was down whilst a DNS change took effect. If it bounced too many times, does that mean I'll need to subscribe again? From codebowl at gmail.com Tue Jan 4 16:35:40 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 4 Jan 2005 16:35:40 -0500 Subject: [nycphp-talk] bouncing emails In-Reply-To: <3F4A84BA-5E97-11D9-8C6D-0003938BDF32@localnotion.com> References: <3F4A84BA-5E97-11D9-8C6D-0003938BDF32@localnotion.com> Message-ID: <8d9a42800501041335562e937e@mail.gmail.com> i see this post just fine so i am not sure why you would need to subscribe again if it seems to work :D -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From ashaw at iifwp.org Tue Jan 4 17:46:17 2005 From: ashaw at iifwp.org (Allen Shaw) Date: Tue, 04 Jan 2005 17:46:17 -0500 Subject: [nycphp-talk] blueshoes? Message-ID: <41DB1CB9.8060202@iifwp.org> Anybody here have experience with the BlueShoes project (http://blueshoes.org)? -- =========================================================== Allen Shaw IIFWP Data and 914.631.1331 x.106 IT Services http://www.iifwp.org From sajith.ml at gmail.com Wed Jan 5 00:10:01 2005 From: sajith.ml at gmail.com (Sajith A) Date: Wed, 5 Jan 2005 10:40:01 +0530 Subject: [nycphp-talk] photos.com color search Message-ID: I recently came accross a new feature added by photos.com. They allows the users to search images based on the color. http://www.photos.com/en/search/index?srch=Search&cp_color=%23b02020%2B They are using linux server and i hope it is done in php. Anybody has any idea how this is implemented. I don't think they are accessing the image files each and every time - they might be storing the color info in the db. Any idea how this can be implemented. This is not a requirement i'm facing - just curios..... From nyphp at enobrev.com Wed Jan 5 04:43:03 2005 From: nyphp at enobrev.com (Mark Armendariz) Date: Wed, 5 Jan 2005 04:43:03 -0500 Subject: [nycphp-talk] photos.com color search In-Reply-To: Message-ID: <20050105094300.D61B5A863E@virtu.nyphp.org> Well, upon a quick somewhat inebriated research session, I found that gd2 has the capability to find the color of a pixel (http://us2.php.net/manual/en/function.imagecolorat.php), which tells me that you could probably write something in php to 'parse' an image for the majority color with gd2. Then again I tend to avoid gd due to how slow it can be with php, but if gd does it, I'd imagine the functionality being available with imagemagick and/or pnm. So, I suppose it's possible with php, although probably slower than an 'outside' solution. Mark > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > On Behalf Of Sajith A > Sent: Wednesday, January 05, 2005 12:10 AM > To: NYPHP Talk > Subject: [nycphp-talk] photos.com color search > > I recently came accross a new feature added by photos.com. They allows > the users to search images based on the color. > > http://www.photos.com/en/search/index?srch=Search&cp_color=%23b02020%2B > > They are using linux server and i hope it is done in php. Anybody has > any idea how this is implemented. I don't think they are accessing the > image files each and every time - they might be storing the color info > in the db. Any idea how this can be implemented. This is not a > requirement i'm facing - just curios..... > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org From scott at crisscott.com Wed Jan 5 08:00:00 2005 From: scott at crisscott.com (Scott Mattocks) Date: Wed, 05 Jan 2005 08:00:00 -0500 Subject: [nycphp-talk] photos.com color search In-Reply-To: References: Message-ID: <41DBE4D0.4010603@crisscott.com> Sajith A wrote: > I recently came accross a new feature added by photos.com. They allows > the users to search images based on the color. > > http://www.photos.com/en/search/index?srch=Search&cp_color=%23b02020%2B > > They are using linux server and i hope it is done in php. Anybody has > any idea how this is implemented. According to netcraft (http://uptime.netcraft.com/up/graph/?host=photos.com) they are using perl not PHP. -- Scott Mattocks scott at crisscott.com http://www.crisscott.com http://pear.php.net/user/scottmattocks From mitch.pirtle at gmail.com Wed Jan 5 09:57:08 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Wed, 5 Jan 2005 09:57:08 -0500 Subject: [nycphp-talk] photos.com color search In-Reply-To: References: Message-ID: <330532b6050105065722caca68@mail.gmail.com> FWIW I know that some commercial indexing servers can also determine physical appearance attributes of images (search for 'red', for example) and can also be trained with shapes (search for 'tree' for example). I'm pretty sure they are using something like that, or are possibly generating their own keyword lists manually. -- Mitch On Wed, 5 Jan 2005 10:40:01 +0530, Sajith A wrote: > I recently came accross a new feature added by photos.com. They allows > the users to search images based on the color. > > http://www.photos.com/en/search/index?srch=Search&cp_color=%23b02020%2B > > They are using linux server and i hope it is done in php. Anybody has > any idea how this is implemented. I don't think they are accessing the > image files each and every time - they might be storing the color info > in the db. Any idea how this can be implemented. This is not a > requirement i'm facing - just curios..... From hydrocrates1066 at yahoo.com Wed Jan 5 13:04:07 2005 From: hydrocrates1066 at yahoo.com (n a) Date: Wed, 5 Jan 2005 10:04:07 -0800 (PST) Subject: [nycphp-talk] php bulletin boards In-Reply-To: Message-ID: <20050105180407.43089.qmail@web51604.mail.yahoo.com> My two cents for bulletin board experiences: phpBB had all the options/features I wished to use. WebWarrior.Net uses a postnuke CMS module based directly off phpBB and it has worked like a champ solidly for over two years (including suffering upgrades). I can't comment on vbulletin, as I didn't look into it because it wasn't open source. I also never ran into or used IPB, but a quick gander shows that one to be licensed as well. Granted the pricing for vbulletin and IPB are trivial for some clients, so it really just boils down to the slight user interface/feature differences. Joseph Moshier aka Tragen WebWarrior.Net Ophir Prusak wrote: Hi all, I'm looking to install a bulletin board system on a site I run. I know this subject was discussed a while back. I was wondering what the current lowdown on my options are. Of course free is good but I'm willing to consider other options. When I checked a couple of years ago, the "big three" were phpbb, ipb and vbulletin. Can anyone share their bulletin board experiences ?? Thanx Ophir _______________________________________________ New York PHP Talk Supporting AMP Technology (Apache/MySQL/PHP) http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajai at bitblit.net Wed Jan 5 14:23:59 2005 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 05 Jan 2005 14:23:59 -0500 Subject: [nycphp-talk] MySQL select replication Message-ID: <41DC3ECF.5060409@bitblit.net> Not a PHP specific question (sorry): Is it possible to replicate only select databases between master and server MySQL server? Ive read through the replication docs and it appears to be an all or nothing setup. -- Aj. Systems Administrator / Developer From psaw at pswebcode.com Wed Jan 5 16:10:40 2005 From: psaw at pswebcode.com (Peter Sawczynec) Date: Wed, 5 Jan 2005 16:10:40 -0500 Subject: [nycphp-talk] Apache/Unix Flavor Issue and Information Message-ID: <001401c4f36b$05f837a0$68e4a144@Liz> Solaris 8/Apache 1.3.31/PHP 4.3.9 When checking the processes on the server (commands: ps -el, ps -ef), many instances of httpd are listed, perhaps 40+. Is this normal for a busy server? Or is Apache demonstrating unusual activity and consuming resources inordinately? Any talk to this topic would be appreciated. Warmest regards, Peter Sawczynec Technology Director PSWebcode psaw at pswebcode.com 718.543.3240 From tgales at tgaconnect.com Wed Jan 5 16:14:25 2005 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 5 Jan 2005 16:14:25 -0500 Subject: [nycphp-talk] MySQL select replication Message-ID: <200501052114.j05LEPL01520@tgaconnect.com> > Not a PHP specific question (sorry): > > Is it possible to replicate only select databases between master and > server MySQL server? > Ive read through the replication docs and it appears to be an all or > nothing setup. > Not a PHP specific question (sorry): > > Is it possible to replicate only select databases between master and > server MySQL server? > Ive read through the replication docs and it appears to be an all or > nothing setup. > There are some filtering options which you can set for the master (binary) log: binlog-do-db and binlog-ignore-db On the slave side there are: replicate-wild-ignore-table replicate-wild-do-table replicate-do-table replicate-ingnore-table and replicate-ignore-db replicate-do-db replicate-rewrite-db T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From ajai at bitblit.net Wed Jan 5 16:39:31 2005 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 05 Jan 2005 16:39:31 -0500 Subject: [nycphp-talk] Apache/Unix Flavor Issue and Information In-Reply-To: <001401c4f36b$05f837a0$68e4a144@Liz> References: <001401c4f36b$05f837a0$68e4a144@Liz> Message-ID: <41DC5E93.1050209@bitblit.net> Peter Sawczynec wrote: >Solaris 8/Apache 1.3.31/PHP 4.3.9 > >When checking the processes on the server (commands: ps -el, ps -ef), many >instances of httpd are listed, perhaps 40+. >Is this normal for a busy server? > Yes - on a web server I manage we have 64 httpd processes... >Or is Apache demonstrating unusual >activity and consuming resources inordinately? > >Any talk to this topic would be appreciated. > If this is a problem, you can limit the max slaves in httpd.conf. -- Aj. Systems Administrator / Developer From codebowl at gmail.com Wed Jan 5 21:20:05 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 5 Jan 2005 21:20:05 -0500 Subject: [nycphp-talk] php bulletin boards In-Reply-To: <20050105180407.43089.qmail@web51604.mail.yahoo.com> References: <20050105180407.43089.qmail@web51604.mail.yahoo.com> Message-ID: <8d9a4280050105182055b4036b@mail.gmail.com> Wow shows i dont use it but since when is IPB comercial and not OS? -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From 1j0lkq002 at sneakemail.com Wed Jan 5 21:38:39 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Wed, 05 Jan 2005 21:38:39 -0500 Subject: [nycphp-talk] php bulletin boards In-Reply-To: <8d9a4280050105182055b4036b@mail.gmail.com> References: <20050105180407.43089.qmail@web51604.mail.yahoo.com> <8d9a4280050105182055b4036b@mail.gmail.com> Message-ID: <14412-63960@sneakemail.com> Joseph Crawford codebowl-at-gmail.com |nyphp dev/internal group use| wrote: >Wow shows i dont use it but since when is IPB comercial and not OS? > > > Last I used it (v1.2, 2.0) it was always OS but never free. -=john andrews -- Secunia Advisory 12/30/2004: "Almost every single branch of the Microsoft Windows operating system is vulnerable to several new vulnerabilities... no vendor solution is available for these vulnerabilities." From codebowl at gmail.com Thu Jan 6 07:46:58 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Thu, 6 Jan 2005 07:46:58 -0500 Subject: [nycphp-talk] php bulletin boards In-Reply-To: <14412-63960@sneakemail.com> References: <20050105180407.43089.qmail@web51604.mail.yahoo.com> <8d9a4280050105182055b4036b@mail.gmail.com> <14412-63960@sneakemail.com> Message-ID: <8d9a42800501060446163d9b97@mail.gmail.com> i know it wasnt free but now it's not even OS -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From codebowl at gmail.com Thu Jan 6 14:06:01 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Thu, 6 Jan 2005 14:06:01 -0500 Subject: [nycphp-talk] PHP and MSSQL 7 In-Reply-To: <4331629.1103576200712.JavaMail.root@huey.psp.pas.earthlink.net> References: <4331629.1103576200712.JavaMail.root@huey.psp.pas.earthlink.net> Message-ID: <8d9a428005010611067df74d2c@mail.gmail.com> Nestor, when i try to use your method this is what i recieve Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: 207.76.168.21,1433 in /htdocs/test/default.php on line 8 DATABASE FAILED TO RESPOND. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From ajai at bitblit.net Thu Jan 6 14:14:53 2005 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 06 Jan 2005 14:14:53 -0500 Subject: [nycphp-talk] Data import from MySQL 3.23 to MySQL 4.0 Message-ID: <41DD8E2D.5010300@bitblit.net> Im trying to import data from a database in MySQL 3.23 to another server using MySQL 4.0. Im getting an error creating this table: ERROR 1064 at line 47: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'show tinyint(1) unsigned NOT NULL default '1', PRIMARY KEY (s_ The SQL looks like this: CREATE TABLE items ( s_id int(10) unsigned NOT NULL auto_increment, title varchar(100) default NULL, description tinytext, price float default NULL, pic varchar(50) default NULL, show tinyint(1) unsigned NOT NULL default '1', PRIMARY KEY (s_id) ) TYPE=MyISAM; Anyone know offhand what changed and how I can modify this to complete the import? -- Aj. Systems Administrator / Developer From ashaw at iifwp.org Thu Jan 6 14:21:15 2005 From: ashaw at iifwp.org (Allen Shaw) Date: Thu, 06 Jan 2005 14:21:15 -0500 Subject: [nycphp-talk] Data import from MySQL 3.23 to MySQL 4.0 In-Reply-To: <41DD8E2D.5010300@bitblit.net> References: <41DD8E2D.5010300@bitblit.net> Message-ID: <41DD8FAB.90102@iifwp.org> SHOW is a keyword in 4.0. Try using backticks so mysql knows you're defining a column name and not a SHOW statement: ... pic varchar(50) default NULL, `show` tinyint(1) unsigned NOT NULL default '1', PRIMARY KEY (s_id) ... - Allen Ajai Khattri wrote: > Im trying to import data from a database in MySQL 3.23 to another > server using MySQL 4.0. > > Im getting an error creating this table: > > ERROR 1064 at line 47: You have an error in your SQL syntax. Check > the manual that corresponds to your MySQL server version for the right > syntax to use near 'show tinyint(1) unsigned NOT NULL default '1', > PRIMARY KEY (s_ > > The SQL looks like this: > > CREATE TABLE items ( > s_id int(10) unsigned NOT NULL auto_increment, > title varchar(100) default NULL, > description tinytext, > price float default NULL, > pic varchar(50) default NULL, > show tinyint(1) unsigned NOT NULL default '1', PRIMARY KEY (s_id) > ) TYPE=MyISAM; > > Anyone know offhand what changed and how I can modify this to complete > the import? > -- =========================================================== Allen Shaw ashaw at iifwp.org IIFWP Data and 914.631.1331 x.106 IT Services http://www.iifwp.org From ashaw at iifwp.org Thu Jan 6 14:23:24 2005 From: ashaw at iifwp.org (Allen Shaw) Date: Thu, 06 Jan 2005 14:23:24 -0500 Subject: [nycphp-talk] Data import from MySQL 3.23 to MySQL 4.0 In-Reply-To: <41DD8FAB.90102@iifwp.org> References: <41DD8E2D.5010300@bitblit.net> <41DD8FAB.90102@iifwp.org> Message-ID: <41DD902C.30201@iifwp.org> And, incedentally, if you're using mysqldump to export the data, there's an option to force backticks on table and column names: |--quote-names, -Q| Quote database, table, and column names within ``' characters. If the server SQL mode includes the |ANSI_QUOTES| option, names are quoted within `"' characters. As of MySQL 4.1.1, |--quote-names| is on by default, but can be disabled with |--skip-quote-names|. - A. Allen Shaw wrote: > SHOW is a keyword in 4.0. Try using backticks so mysql knows you're > defining a column name and not a SHOW statement: > ... pic varchar(50) default NULL, > `show` tinyint(1) unsigned NOT NULL default '1', PRIMARY KEY (s_id) ... > > - Allen > > Ajai Khattri wrote: > >> Im trying to import data from a database in MySQL 3.23 to another >> server using MySQL 4.0. >> >> Im getting an error creating this table: >> >> ERROR 1064 at line 47: You have an error in your SQL syntax. Check >> the manual that corresponds to your MySQL server version for the >> right syntax to use near 'show tinyint(1) unsigned NOT NULL default >> '1', PRIMARY KEY (s_ >> >> The SQL looks like this: >> >> CREATE TABLE items ( >> s_id int(10) unsigned NOT NULL auto_increment, >> title varchar(100) default NULL, >> description tinytext, >> price float default NULL, >> pic varchar(50) default NULL, >> show tinyint(1) unsigned NOT NULL default '1', PRIMARY KEY (s_id) >> ) TYPE=MyISAM; >> >> Anyone know offhand what changed and how I can modify this to >> complete the import? >> > -- =========================================================== Allen Shaw ashaw at iifwp.org IIFWP Data and 914.631.1331 x.106 IT Services http://www.iifwp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajai at bitblit.net Thu Jan 6 14:34:24 2005 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 06 Jan 2005 14:34:24 -0500 Subject: [nycphp-talk] Data import from MySQL 3.23 to MySQL 4.0 In-Reply-To: <41DD902C.30201@iifwp.org> References: <41DD8E2D.5010300@bitblit.net> <41DD8FAB.90102@iifwp.org> <41DD902C.30201@iifwp.org> Message-ID: <41DD92C0.5080700@bitblit.net> Allen Shaw wrote: > And, incedentally, if you're using mysqldump to export the data, > there's an option to force backticks on table and column names: > > |--quote-names, -Q| > Quote database, table, and column names within ``' characters. If > the server SQL mode includes the |ANSI_QUOTES| option, names are > quoted within `"' characters. As of MySQL 4.1.1, |--quote-names| > is on by default, but can be disabled with |--skip-quote-names|. > Good to know - this is a much better way to do the import :-) Thanks very much! -- Aj. Systems Administrator / Developer From nestorflorez at earthlink.net Thu Jan 6 14:37:32 2005 From: nestorflorez at earthlink.net (Nestor Florez) Date: Thu, 6 Jan 2005 11:37:32 -0800 (GMT-08:00) Subject: [nycphp-talk] PHP and MSSQL 7 Message-ID: <8934292.1105040252025.JavaMail.root@waldorf.psp.pas.earthlink.net> Joseph, That is what I use to access my MSSQL databases from a W2K machine here at work. I do know that I have the MSSQL client install on my developing machine and MYODBC. This is my in my include file: ------------ $hostname = "10.5.0.200,1433"; $username = "user"; $password = "pwd"; $dbName = "dbname"; if($conn = mssql_connect($hostname,$username,$password)) { } else { die("DATABASE FAILED TO RESPOND."); } ---------------- Someone mentioned that if you are on a Linux machine you use the ':". The application that I have written (PHP/MSSQL) allows students, parents and teachers to access student scholastic information vi the internet. :-) -----Original Message----- From: Joseph Crawford Sent: Jan 6, 2005 11:06 AM To: NYPHP Talk Subject: Re: [nycphp-talk] PHP and MSSQL 7 Nestor, when i try to use your method this is what i recieve Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: 207.76.168.21,1433 in /htdocs/test/default.php on line 8 DATABASE FAILED TO RESPOND. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com _______________________________________________ New York PHP Talk Supporting AMP Technology (Apache/MySQL/PHP) http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From codebowl at gmail.com Thu Jan 6 14:43:29 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Thu, 6 Jan 2005 14:43:29 -0500 Subject: [nycphp-talk] PHP and MSSQL 7 In-Reply-To: <8934292.1105040252025.JavaMail.root@waldorf.psp.pas.earthlink.net> References: <8934292.1105040252025.JavaMail.root@waldorf.psp.pas.earthlink.net> Message-ID: <8d9a428005010611437752db23@mail.gmail.com> ahh Nestor, there is a big difference when connecting to mssql server from a linux machine that is why that code didnt work for me but does for you :D csnyder, i am back to using FreeTDS but do you have any ideas why it seems to connect but then times out when i execute this query $res = mssql_query("select * from idxmls1 where mod_date_time >'2004-1-1 00:00:00'", $conn); $arr = mssql_fetch_array($res); echo '
';
print_r($arr);
echo '
'; the following is the error that i get Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 192 bytes) in /htdocs/test/default.php on line 13 -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From danielc at analysisandsolutions.com Thu Jan 6 14:55:02 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 6 Jan 2005 14:55:02 -0500 Subject: [nycphp-talk] Data import from MySQL 3.23 to MySQL 4.0 In-Reply-To: <41DD902C.30201@iifwp.org> References: <41DD8E2D.5010300@bitblit.net> <41DD8FAB.90102@iifwp.org> <41DD902C.30201@iifwp.org> Message-ID: <20050106195502.GA6010@panix.com> On Thu, Jan 06, 2005 at 02:23:24PM -0500, Allen Shaw wrote: > And, incedentally, if you're using mysqldump to export the data, there's > an option to force backticks on table and column names: A bad idea. Using reserved words will cause you major grief in the long run. Here's a great reference on naming conventions, including a list of reserved words: http://www.dbazine.com/gulutzan5.shtml --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 ajai at bitblit.net Thu Jan 6 14:58:42 2005 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 06 Jan 2005 14:58:42 -0500 Subject: [nycphp-talk] Data import from MySQL 3.23 to MySQL 4.0 In-Reply-To: <20050106195502.GA6010@panix.com> References: <41DD8E2D.5010300@bitblit.net> <41DD8FAB.90102@iifwp.org> <41DD902C.30201@iifwp.org> <20050106195502.GA6010@panix.com> Message-ID: <41DD9872.2070405@bitblit.net> Daniel Convissor wrote: >On Thu, Jan 06, 2005 at 02:23:24PM -0500, Allen Shaw wrote: > >>And, incedentally, if you're using mysqldump to export the data, there's >>an option to force backticks on table and column names: >> > >A bad idea. Using reserved words will cause you major grief in the long >run. Here's a great reference on naming conventions, including a list of >reserved words: http://www.dbazine.com/gulutzan5.shtml > This is someone else's application that I am moving from one sevrer to another. Luckily, I don't have to fix this :-) -- Aj. Systems Administrator / Developer From ashaw at iifwp.org Thu Jan 6 15:04:49 2005 From: ashaw at iifwp.org (Allen Shaw) Date: Thu, 06 Jan 2005 15:04:49 -0500 Subject: [nycphp-talk] Data import from MySQL 3.23 to MySQL 4.0 In-Reply-To: <20050106195502.GA6010@panix.com> References: <41DD8E2D.5010300@bitblit.net> <41DD8FAB.90102@iifwp.org> <41DD902C.30201@iifwp.org> <20050106195502.GA6010@panix.com> Message-ID: <41DD99E1.40802@iifwp.org> True, much better to remember this in the design phase, and potentially a PIA to fix on an existing project. - Allen Daniel Convissor wrote: >On Thu, Jan 06, 2005 at 02:23:24PM -0500, Allen Shaw wrote: > > >>And, incedentally, if you're using mysqldump to export the data, there's >>an option to force backticks on table and column names: >> >> > >A bad idea. Using reserved words will cause you major grief in the long >run. Here's a great reference on naming conventions, including a list of >reserved words: http://www.dbazine.com/gulutzan5.shtml > >--Dan > > > -- =========================================================== Allen Shaw ashaw at iifwp.org IIFWP Data and 914.631.1331 x.106 IT Services http://www.iifwp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Fri Jan 7 07:31:43 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 7 Jan 2005 07:31:43 -0500 Subject: [nycphp-talk] PHP and MSSQL 7 In-Reply-To: <8d9a428005010611437752db23@mail.gmail.com> References: <8934292.1105040252025.JavaMail.root@waldorf.psp.pas.earthlink.net> <8d9a428005010611437752db23@mail.gmail.com> Message-ID: <8d9a428005010704316ab71000@mail.gmail.com> Does anyone have any ideas on this? i keep getting this error after it takes a while to load Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 192 bytes) in /htdocs/test/default.php on line 13 http://codebowl.dontexist.net/test/default.php -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From codebowl at gmail.com Fri Jan 7 08:03:59 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 7 Jan 2005 08:03:59 -0500 Subject: [nycphp-talk] PHP and MSSQL 7 In-Reply-To: <8d9a428005010704316ab71000@mail.gmail.com> References: <8934292.1105040252025.JavaMail.root@waldorf.psp.pas.earthlink.net> <8d9a428005010611437752db23@mail.gmail.com> <8d9a428005010704316ab71000@mail.gmail.com> Message-ID: <8d9a428005010705034814ac2b@mail.gmail.com> i see that the problem is MSSQL is using the limit of 8mb ram that can be used (set in the php.ini) I guess i would like to know what would make mssql use 8mb ram, would it be the size of the query results? i have upped that in my php.ini to 20mb and it even errored saying that it used all of the 20mb of ram as well -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From maggie.cassidy at avaion.com Fri Jan 7 11:07:27 2005 From: maggie.cassidy at avaion.com (Maggie Cassidy) Date: Fri, 7 Jan 2005 11:07:27 -0500 Subject: [nycphp-talk] Data import from MySQL 3.23 to MySQL 4.0 In-Reply-To: <41DD902C.30201@iifwp.org> Message-ID: <20050107160729.FEJZ4801.imta01a2.registeredsite.com@maggie> Can you force backticks on mysqlimports? I?ve tried unsuccessfully. We have an existing database that has a few key words as table names (group, status) and the mysqlimports for those tables fail. In the future, we are migrating the database to Oracle, so we?re also wondering if this will also be a problem with Oracle? Maggie Cassidy _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Allen Shaw Sent: Thursday, January 06, 2005 2:23 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Data import from MySQL 3.23 to MySQL 4.0 And, incedentally, if you're using mysqldump to export the data, there's an option to force backticks on table and column names: --quote-names, -Q Quote database, table, and column names within ``' characters. If the server SQL mode includes the ANSI_QUOTES option, names are quoted within `"' characters. As of MySQL 4.1.1, --quote-names is on by default, but can be disabled with --skip-quote-names. - A. Allen Shaw wrote: SHOW is a keyword in 4.0. Try using backticks so mysql knows you're defining a column name and not a SHOW statement: ... pic varchar(50) default NULL, `show` tinyint(1) unsigned NOT NULL default '1', PRIMARY KEY (s_id) ... - Allen Ajai Khattri wrote: Im trying to import data from a database in MySQL 3.23 to another server using MySQL 4.0. Im getting an error creating this table: ERROR 1064 at line 47: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'show tinyint(1) unsigned NOT NULL default '1', PRIMARY KEY (s_ The SQL looks like this: CREATE TABLE items ( s_id int(10) unsigned NOT NULL auto_increment, title varchar(100) default NULL, description tinytext, price float default NULL, pic varchar(50) default NULL, show tinyint(1) unsigned NOT NULL default '1', PRIMARY KEY (s_id) ) TYPE=MyISAM; Anyone know offhand what changed and how I can modify this to complete the import? -- =========================================================== Allen Shaw HYPERLINK "mailto:ashaw at iifwp.org"ashaw at iifwp.org IIFWP Data and 914.631.1331 x.106 IT Services HYPERLINK "http://www.iifwp.org"http://www.iifwp.org --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.823 / Virus Database: 561 - Release Date: 12/26/2004 -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.9 - Release Date: 1/6/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.9 - Release Date: 1/6/2005 -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at nyphp.com Fri Jan 7 11:17:47 2005 From: hans at nyphp.com (Hans Zaunere) Date: Fri, 7 Jan 2005 08:17:47 -0800 Subject: [nycphp-talk] Data import from MySQL 3.23 to MySQL 4.0 Message-ID: <41EE526EC2D3C74286415780D3BA9F87076D00FA@ehost011-1.exch011.intermedia.net> > > And, incedentally, if you're using mysqldump to export the data, there's > > an option to force backticks on table and column names: > > A bad idea. Using reserved words will cause you major grief in the long > run. Here's a great reference on naming conventions, including a list of > reserved words: http://www.dbazine.com/gulutzan5.shtml That's a great article, and since it's written by the MySQL's SQL Standards Engineer, you can be sure that the article is a best practice for using MySQL moving forward. H From danielc at analysisandsolutions.com Fri Jan 7 13:30:17 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 7 Jan 2005 13:30:17 -0500 Subject: [nycphp-talk] Data import from MySQL 3.23 to MySQL 4.0 In-Reply-To: <20050107160729.FEJZ4801.imta01a2.registeredsite.com@maggie> References: <41DD902C.30201@iifwp.org> <20050107160729.FEJZ4801.imta01a2.registeredsite.com@maggie> Message-ID: <20050107183017.GA2965@panix.com> On Fri, Jan 07, 2005 at 11:07:27AM -0500, Maggie Cassidy wrote: > Can you force backticks on mysqlimports? I?ve tried unsuccessfully. I believe they said "mysqldump." > In the future, we are migrating the database to Oracle, so we?re also > wondering if this will also be a problem with Oracle? Every database has reserved words. Oracle escapes such with double quote marks (as per the SQL standard). --Dan ... rest of posting of reposting of reposting snipped... -- 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 jayeshsh at ceruleansky.com Fri Jan 7 13:48:31 2005 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Fri, 07 Jan 2005 13:48:31 -0500 Subject: [nycphp-talk] Where does Zend's Development Environment find its PHP extensions? Message-ID: <41DED97F.2070703@ceruleansky.com> Hello all, Just recently did I get around to trying Zend's Development Environment (ZDE) from the CD distributed at the NYTCHP. So far it looks like a great product. I was especially interested in learning about the integrated debugger, but ran into some problems with it. Some background information: I chose to install ZDE with PHP5 support on Windows XP. ZDE bundles a PHP 5 CGI binary stored in C:\Program Files\Zend\bin\php5 The integrated debugger uses this binary to parse and execute scripts, and to show their output I was using the 'local debugger', not the 'server debugger'. You can debug a file with the following contents to see which extensions the Zend PHP binary supports: The output of that file lists a whole bunch of extensions, but I could not find them anywhere in the C:\Program Files\Zend\ directory! (There was no 'ext' subdirectory' and there were no .dll files) The php.ini file is also stored in the same location The php.ini file contains only three lines: zend_extension_ts=C:\Program Files\Zend\lib\php5\ZendDebuggerLocal.dll zend_debugger.allow_hosts=127.0.0.1/32 session.save_path=C:\Program Files\Zend\tmp I then tried to debug a file with a call to mysql_connect() but that resulted in the output of 'undefined function', so I am now trying to find out how I can make Zend's PHP binary support it. It is probably compiled without MySQL support, but would swapping in another PHP CGI binary help? I was thinking it would not, because this seems to be a custom-built PHP binary. Any thoughts on this? Best regards, - Jay From tgales at tgaconnect.com Fri Jan 7 16:13:47 2005 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 7 Jan 2005 16:13:47 -0500 Subject: [nycphp-talk] Where does Zend's Development Environment find its PHP extensions? Message-ID: <200501072113.j07LDlg02096@tgaconnect.com> > I chose to install ZDE with PHP5 support on Windows XP. > ZDE bundles a PHP 5 CGI binary stored in C:\Program Files\Zend\bin\php5 > The integrated debugger uses this binary to parse and execute scripts, > I was using the 'local debugger', not the 'server debugger'. > > You can debug a file with the following contents to see which extensions > the Zend PHP binary supports: > The output of that file lists a whole bunch of extensions, but I could > not find them anywhere in the C:\Program Files\Zend\ directory! (There > was no 'ext' subdirectory' and there were no .dll files) > > The php.ini file is also stored in the same location > The php.ini file contains only three lines: > zend_extension_ts=C:\Program Files\Zend\lib\php5\ZendDebuggerLocal.dll > zend_debugger.allow_hosts=127.0.0.1/32 > session.save_path=C:\Program Files\Zend\tmp > > I then tried to debug a file with a call to mysql_connect() but that > resulted in the output of 'undefined function', so I am now trying to > find out how I can make Zend's PHP binary support it. > It is probably compiled without MySQL support, but would swapping in > another PHP CGI binary help? I was thinking it would not, because this > seems to be a custom-built PHP binary. > > Any thoughts on this? Try reading this: http://lists.nyphp.org/pipermail/talk/2004-December/013177.html T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From tgales at tgaconnect.com Fri Jan 7 16:24:35 2005 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 7 Jan 2005 16:24:35 -0500 Subject: [nycphp-talk] Where does Zend's Development Environment find its PHP extensions? Message-ID: <200501072124.j07LOZH06431@tgaconnect.com> > The php.ini file contains only three lines: > zend_extension_ts=C:\Program Files\Zend\lib\php5\ZendDebuggerLocal.dll > zend_debugger.allow_hosts=127.0.0.1/32 > session.save_path=C:\Program Files\Zend\tmp If your php.ini file doesn't have a extension_dir = "c:\some_dir", you will have to enter that directive yourself (and populate that directory with the proper dll's) T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From prusak at gmail.com Fri Jan 7 16:43:00 2005 From: prusak at gmail.com (Ophir Prusak) Date: Fri, 7 Jan 2005 16:43:00 -0500 Subject: [nycphp-talk] Where does Zend's Development Environment find its PHP extensions? In-Reply-To: <41DED97F.2070703@ceruleansky.com> References: <41DED97F.2070703@ceruleansky.com> Message-ID: I think you might be better off using server side debugging, even if you want to test out code on your local machine (and use localhost as the server). Zend Studio has two components. The client side IDE (which also includes the Zend Engine) and a server side component which allows you to do server side debugging. That way you can setup your PHP environment the "normal" way. Let me know if how things turn out for you. Ophir On Fri, 07 Jan 2005 13:48:31 -0500, Jayesh Sheth wrote: > Hello all, > > Just recently did I get around to trying Zend's Development Environment > (ZDE) from the CD distributed at the NYTCHP. So far it looks like a > great product. > > I was especially interested in learning about the integrated debugger, > but ran into some problems with it. > > Some background information: > > I chose to install ZDE with PHP5 support on Windows XP. > ZDE bundles a PHP 5 CGI binary stored in C:\Program Files\Zend\bin\php5 > The integrated debugger uses this binary to parse and execute scripts, > and to show their output > > I was using the 'local debugger', not the 'server debugger'. > > You can debug a file with the following contents to see which extensions > the Zend PHP binary supports: > The output of that file lists a whole bunch of extensions, but I could > not find them anywhere in the C:\Program Files\Zend\ directory! (There > was no 'ext' subdirectory' and there were no .dll files) > > The php.ini file is also stored in the same location > The php.ini file contains only three lines: > zend_extension_ts=C:\Program Files\Zend\lib\php5\ZendDebuggerLocal.dll > zend_debugger.allow_hosts=127.0.0.1/32 > session.save_path=C:\Program Files\Zend\tmp > > I then tried to debug a file with a call to mysql_connect() but that > resulted in the output of 'undefined function', so I am now trying to > find out how I can make Zend's PHP binary support it. > It is probably compiled without MySQL support, but would swapping in > another PHP CGI binary help? I was thinking it would not, because this > seems to be a custom-built PHP binary. > > Any thoughts on this? > > Best regards, > > - Jay > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From leam at reuel.net Sun Jan 9 13:35:14 2005 From: leam at reuel.net (leam at reuel.net) Date: Sun, 9 Jan 2005 13:35:14 -0500 Subject: [nycphp-talk] Apache/Unix Flavor Issue and Information In-Reply-To: <001401c4f36b$05f837a0$68e4a144@Liz> References: <001401c4f36b$05f837a0$68e4a144@Liz> Message-ID: <20050109183514.GE2884@leitz> Very normal. I've seen places that set limits on apache, like maybe 1500 or so. 40+ is not that bad. Might want to look at the performance and ram/cpu power of th eserver though. The ones I had doing up to 1500 Apache instances were Sun 420s with, I think 4cpus and 4G ram. ciao! leam On Wed, Jan 05, 2005 at 04:10:40PM -0500, Peter Sawczynec wrote: > Solaris 8/Apache 1.3.31/PHP 4.3.9 > > When checking the processes on the server (commands: ps -el, ps -ef), many > instances of httpd are listed, perhaps 40+. > Is this normal for a busy server? Or is Apache demonstrating unusual > activity and consuming resources inordinately? > > Any talk to this topic would be appreciated. > > Warmest regards, > > Peter Sawczynec > Technology Director > PSWebcode > psaw at pswebcode.com > 718.543.3240 From leam at reuel.net Sun Jan 9 13:36:56 2005 From: leam at reuel.net (leam at reuel.net) Date: Sun, 9 Jan 2005 13:36:56 -0500 Subject: [nycphp-talk] problems with php.net/docs.php? Message-ID: <20050109183656.GF2884@leitz> Is it just me? I'm trying to look at the manual at php.net/docs.php and it flashes a page up that quickly dissappears and leaves me with a "loading" browser. ciao! leam From danielc at analysisandsolutions.com Sun Jan 9 13:40:05 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sun, 9 Jan 2005 13:40:05 -0500 Subject: [nycphp-talk] problems with php.net/docs.php? In-Reply-To: <20050109183656.GF2884@leitz> References: <20050109183656.GF2884@leitz> Message-ID: <20050109184005.GB22136@panix.com> On Sun, Jan 09, 2005 at 01:36:56PM -0500, leam at reuel.net wrote: > Is it just me? I'm trying to look at the manual at php.net/docs.php and http://www.php.net/docs.php Comes up fine. --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 smanes at magpie.com Sun Jan 9 14:22:14 2005 From: smanes at magpie.com (Steve Manes) Date: Sun, 09 Jan 2005 14:22:14 -0500 Subject: [nycphp-talk] problems with php.net/docs.php? In-Reply-To: <20050109183656.GF2884@leitz> References: <20050109183656.GF2884@leitz> Message-ID: <41E18466.9050908@magpie.com> leam at reuel.net wrote: > Is it just me? I'm trying to look at the manual at php.net/docs.php and it flashes a page up that quickly dissappears and leaves me with a "loading" browser. I've got the same problem in Firefox with http://us2.php.net/manual/en/function.die.php From leam at reuel.net Sun Jan 9 14:47:36 2005 From: leam at reuel.net (leam at reuel.net) Date: Sun, 9 Jan 2005 14:47:36 -0500 Subject: [nycphp-talk] problems with php.net/docs.php? In-Reply-To: <41E18466.9050908@magpie.com> References: <20050109183656.GF2884@leitz> <41E18466.9050908@magpie.com> Message-ID: <20050109194736.GG2884@leitz> Both my linux/mozilla boxes, not my wife's Mac/Safari... Odd that... ciao! leam On Sun, Jan 09, 2005 at 02:22:14PM -0500, Steve Manes wrote: > leam at reuel.net wrote: > >Is it just me? I'm trying to look at the manual at php.net/docs.php and it > >flashes a page up that quickly dissappears and leaves me with a "loading" > >browser. > > I've got the same problem in Firefox with > http://us2.php.net/manual/en/function.die.php > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From gatzby3jr at gmail.com Sun Jan 9 14:53:42 2005 From: gatzby3jr at gmail.com (Brian O'Connor) Date: Sun, 9 Jan 2005 14:53:42 -0500 Subject: [nycphp-talk] problems with php.net/docs.php? In-Reply-To: <41E18466.9050908@magpie.com> References: <20050109183656.GF2884@leitz> <41E18466.9050908@magpie.com> Message-ID: <29da5d150501091153a0f4d3@mail.gmail.com> I'm getting the same problem with Mozilla. On Sun, 09 Jan 2005 14:22:14 -0500, Steve Manes wrote: > leam at reuel.net wrote: > > Is it just me? I'm trying to look at the manual at php.net/docs.php and it flashes a page up that quickly dissappears and leaves me with a "loading" browser. > > I've got the same problem in Firefox with > http://us2.php.net/manual/en/function.die.php > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -- Brian O'Connor From leam at reuel.net Sun Jan 9 14:58:16 2005 From: leam at reuel.net (leam at reuel.net) Date: Sun, 9 Jan 2005 14:58:16 -0500 Subject: [nycphp-talk] problems with php.net/docs.php? In-Reply-To: <20050109194736.GG2884@leitz> References: <20050109183656.GF2884@leitz> <41E18466.9050908@magpie.com> <20050109194736.GG2884@leitz> Message-ID: <20050109195816.GH2884@leitz> If I disallow javascript the page stays. I thought php was a pretty good language on it's own, why are we using javascript? :) ciao! leam On Sun, Jan 09, 2005 at 02:47:36PM -0500, leam at reuel.net wrote: > Both my linux/mozilla boxes, not my wife's Mac/Safari... > > Odd that... > > ciao! > > leam > > On Sun, Jan 09, 2005 at 02:22:14PM -0500, Steve Manes wrote: > > leam at reuel.net wrote: > > >Is it just me? I'm trying to look at the manual at php.net/docs.php and it > > >flashes a page up that quickly dissappears and leaves me with a "loading" > > >browser. > > > > I've got the same problem in Firefox with > > http://us2.php.net/manual/en/function.die.php From jperkins at sneer.org Sun Jan 9 15:21:23 2005 From: jperkins at sneer.org (Jason N.Perkins) Date: Sun, 9 Jan 2005 14:21:23 -0600 Subject: [nycphp-talk] problems with php.net/docs.php? In-Reply-To: <20050109195816.GH2884@leitz> References: <20050109183656.GF2884@leitz> <41E18466.9050908@magpie.com> <20050109194736.GG2884@leitz> <20050109195816.GH2884@leitz> Message-ID: <07F93222-627C-11D9-9C38-000D93C999BA@sneer.org> On Jan 9, 2005, at 1:58 PM, leam at reuel.net wrote: > If I disallow javascript the page stays. I thought php was a pretty > good language on it's own, why are we using javascript? :) XMLHttp objects. More info (and how to disable the functionality) at: -- Jason N Perkins From 1j0lkq002 at sneakemail.com Sun Jan 9 20:33:37 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Sun, 09 Jan 2005 20:33:37 -0500 Subject: [nycphp-talk] problems with php.net/docs.php? In-Reply-To: <07F93222-627C-11D9-9C38-000D93C999BA@sneer.org> References: <20050109183656.GF2884@leitz> <41E18466.9050908@magpie.com> <20050109194736.GG2884@leitz> <20050109195816.GH2884@leitz> <07F93222-627C-11D9-9C38-000D93C999BA@sneer.org> Message-ID: <30388-01154@sneakemail.com> Jason N.Perkins jperkins-at-sneer.org |nyphp dev/internal group use| wrote: > On Jan 9, 2005, at 1:58 PM, leam at reuel.net wrote: > >> If I disallow javascript the page stays. I thought php was a pretty >> good language on it's own, why are we using javascript? :) > > XMLHttp objects. More info (and how to disable the functionality) at: > > > -- > Jason N Perkins > My Firebird 0.7 has the problem, unless I stop JS. php.net says to register and then you can set personalizations to remove it. Ain't that a killer. My Firefox 1.0 doesn't have any trouble (even with JS on). From jperkins at sneer.org Sun Jan 9 22:08:02 2005 From: jperkins at sneer.org (Jason N.Perkins) Date: Sun, 9 Jan 2005 21:08:02 -0600 Subject: [nycphp-talk] problems with php.net/docs.php? In-Reply-To: <30388-01154@sneakemail.com> References: <20050109183656.GF2884@leitz> <41E18466.9050908@magpie.com> <20050109194736.GG2884@leitz> <20050109195816.GH2884@leitz> <07F93222-627C-11D9-9C38-000D93C999BA@sneer.org> <30388-01154@sneakemail.com> Message-ID: On Jan 9, 2005, at 7:33 PM, inforequest wrote: > My Firebird 0.7 has the problem, unless I stop JS. > php.net says to register and then you can set personalizations to > remove it. Ain't that a killer. There was also a request to submit issues/problems on that page. Just saying. -- Jason N Perkins From nasir81 at gmail.com Sun Jan 9 22:17:33 2005 From: nasir81 at gmail.com (Nasir Zubair) Date: Sun, 9 Jan 2005 22:17:33 -0500 Subject: [nycphp-talk] Developing a Plugin Interface Message-ID: <40fcda7305010919171f0da934@mail.gmail.com> Hi, I'm looking for some help and directions in order to build a plugin interface for a small CMS I'm working on as my pet project. I've tried to study some of the blogs/cms scripts that provide plugins. Most of these scripts make it easy to develop the plugins/modules, but the interface itself is very complicated. Thanks for the help. -- Nasir Zubair http://www.nasir.us/ From ereyes at totalcreations.com Sun Jan 9 22:53:27 2005 From: ereyes at totalcreations.com (Edgar Reyes) Date: Sun, 09 Jan 2005 22:53:27 -0500 Subject: [nycphp-talk] problems with php.net/docs.php? In-Reply-To: <30388-01154@sneakemail.com> Message-ID: <003801c4f6c7$f1233e00$6400a8c0@ERENTR> I only have the problem with firefox but not with IE, with IE it works fine.!!! Go Figure.. ER -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of inforequest Sent: Sunday, January 09, 2005 8:34 PM To: talk at lists.nyphp.org Subject: Re: [nycphp-talk] problems with php.net/docs.php? Jason N.Perkins jperkins-at-sneer.org |nyphp dev/internal group use| wrote: > On Jan 9, 2005, at 1:58 PM, leam at reuel.net wrote: > >> If I disallow javascript the page stays. I thought php was a pretty >> good language on it's own, why are we using javascript? :) > > XMLHttp objects. More info (and how to disable the functionality) at: > > > -- > Jason N Perkins > My Firebird 0.7 has the problem, unless I stop JS. php.net says to register and then you can set personalizations to remove it. Ain't that a killer. My Firefox 1.0 doesn't have any trouble (even with JS on). _______________________________________________ New York PHP Talk Supporting AMP Technology (Apache/MySQL/PHP) http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From mitch.pirtle at gmail.com Sun Jan 9 23:45:34 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Sun, 9 Jan 2005 23:45:34 -0500 Subject: [nycphp-talk] Developing a Plugin Interface In-Reply-To: <40fcda7305010919171f0da934@mail.gmail.com> References: <40fcda7305010919171f0da934@mail.gmail.com> Message-ID: <330532b60501092045166ebd8f@mail.gmail.com> Mambo has a pretty extensive and well-documented API for plugins - ranging from templates to components. Take a look there and steal anything you find of value ;-) http://www.mamboserver.com/ All I ask is that if you come up with a better idea, you gotta share ;-) -- Mitch, Mambo Core Developer On Sun, 9 Jan 2005 22:17:33 -0500, Nasir Zubair wrote: > Hi, > > I'm looking for some help and directions in order to build a plugin > interface for a small CMS I'm working on as my pet project. I've tried > to study some of the blogs/cms scripts that provide plugins. Most of > these scripts make it easy to develop the plugins/modules, but the > interface itself is very complicated. > > Thanks for the help. > > -- > Nasir Zubair > http://www.nasir.us/ > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From tom at ztml.com Mon Jan 10 07:54:14 2005 From: tom at ztml.com (Tom Wong) Date: 10 Jan 2005 12:54:14 -0000 Subject: [nycphp-talk] Developing a Plugin Interface Message-ID: <20050110125414.24615.qmail@host180.ipowerweb.com> On Sun, 9 Jan 2005 22:17:33 -0500, Nasir Zubair wrote: > Hi, > > I'm looking for some help and directions in order to build a plugin > interface for a small CMS I'm working on as my pet project. I've tried > to study some of the blogs/cms scripts that provide plugins. Most of > these scripts make it easy to develop the plugins/modules, but the > interface itself is very complicated. > > Thanks for the help. > > -- > Nasir Zubair > http://www.nasir.us/ Hi, I?m developing a system called TML (Template Markup Language), which provides tools that you can use to build web pages. If a page cannot be constructed with existing tools, you can create new tools that will do that, which is the same as plugins that other projects referring to. I have submitted TML as a project for NYPHP (http://ztml.com/ca/) but they are not interested. If you are interested in giving TML a try, we can work together and build your small CMS. However, if the CMS that you are building were using system such as Mambo or WordPress, then it would be best to learn how to build the interfaces into those systems. Good luck with your project. Tom http://www.ztml.com/ From 1j0lkq002 at sneakemail.com Mon Jan 10 12:32:56 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Mon, 10 Jan 2005 12:32:56 -0500 Subject: [nycphp-talk] [OT] Anyone using RubyRails? In-Reply-To: <20050110125414.24615.qmail@host180.ipowerweb.com> References: <20050110125414.24615.qmail@host180.ipowerweb.com> Message-ID: <16881-30166@sneakemail.com> curious if anyone has current experience with it including server setup issues. -=john andrews From blovett at gmail.com Mon Jan 10 14:14:13 2005 From: blovett at gmail.com (Bill Lovett) Date: Mon, 10 Jan 2005 14:14:13 -0500 Subject: [nycphp-talk] user contributed notes on php.net Message-ID: Does anyone know if the comment system on php.net is available for use in other applications? I know I can get the files through cvs, but was wondering if there's any documentation or stuff like that. I'm looking to add commenting features like php.net's to one of my open source projects. I don't think I want to go so far as using a full-blown forum package. From adam at trachtenberg.com Mon Jan 10 14:38:09 2005 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 10 Jan 2005 14:38:09 -0500 (EST) Subject: [nycphp-talk] user contributed notes on php.net In-Reply-To: References: Message-ID: On Mon, 10 Jan 2005, Bill Lovett wrote: > Does anyone know if the comment system on php.net is available for use > in other applications? I know I can get the files through cvs, but was > wondering if there's any documentation or stuff like that. Welcome to the wonderful world of open source software. :) Actually, try sending a list to the php-doc mailing list, they may be able to point you in the right direction. -adam -- adam at trachtenberg.com | http://www.trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From smanes at magpie.com Mon Jan 10 14:39:34 2005 From: smanes at magpie.com (Steve Manes) Date: Mon, 10 Jan 2005 14:39:34 -0500 Subject: [nycphp-talk] user contributed notes on php.net In-Reply-To: References: Message-ID: <41E2D9F6.5090700@magpie.com> Bill Lovett wrote: > I'm looking to add commenting features like php.net's to one of my > open source projects. I don't think I want to go so far as using a > full-blown forum package. There are dozens of these around. Look for "guestbook". From jperkins at sneer.org Mon Jan 10 14:47:42 2005 From: jperkins at sneer.org (Jason N.Perkins) Date: Mon, 10 Jan 2005 13:47:42 -0600 Subject: [nycphp-talk] [OT] Anyone using RubyRails? In-Reply-To: <16881-30166@sneakemail.com> References: <20050110125414.24615.qmail@host180.ipowerweb.com> <16881-30166@sneakemail.com> Message-ID: <7E181DEA-6340-11D9-9C38-000D93C999BA@sneer.org> On Jan 10, 2005, at 11:32 AM, inforequest wrote: > curious if anyone has current experience with it including server > setup issues. I've set it up and have played around with it on OS X. Good stuff, imho. -- Jason N Perkins From 1j0lkq002 at sneakemail.com Mon Jan 10 15:39:03 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Mon, 10 Jan 2005 15:39:03 -0500 Subject: [nycphp-talk] user contributed notes on php.net In-Reply-To: <41E2D9F6.5090700@magpie.com> References: <41E2D9F6.5090700@magpie.com> Message-ID: <7011-41779@sneakemail.com> Steve Manes smanes-at-magpie.com |nyphp dev/internal group use| wrote: > Bill Lovett wrote: > >> I'm looking to add commenting features like php.net's to one of my >> open source projects. I don't think I want to go so far as using a >> full-blown forum package. > > > There are dozens of these around. Look for "guestbook". > _______________________________________________ If you want to play on the progressive "bleeding" edge and perhaps contribute then checkout bbpress bbpress.org see it in action here: http://wordpress.org/support/ -=john andrews From agfische at email.smith.edu Mon Jan 10 15:53:28 2005 From: agfische at email.smith.edu (Aaron Fischer) Date: Mon, 10 Jan 2005 15:53:28 -0500 Subject: [nycphp-talk] user contributed notes on php.net In-Reply-To: <7011-41779@sneakemail.com> References: <41E2D9F6.5090700@magpie.com> <7011-41779@sneakemail.com> Message-ID: I started using WordPress a few days ago for blogware and have been pretty happy so far. It seems like it might be a better tool for commenting than a forum package. -Aaron On Jan 10, 2005, at 3:39 PM, inforequest wrote: >> Bill Lovett wrote: >> >>> I'm looking to add commenting features like php.net's to one of my >>> open source projects. I don't think I want to go so far as using a >>> full-blown forum package. >> >> >> There are dozens of these around. Look for "guestbook". >> _______________________________________________ > > If you want to play on the progressive "bleeding" edge and perhaps > contribute then checkout bbpress > bbpress.org > see it in action here: > http://wordpress.org/support/ > > -=john andrews From dmintz at davidmintz.org Mon Jan 10 16:07:24 2005 From: dmintz at davidmintz.org (David Mintz) Date: Mon, 10 Jan 2005 16:07:24 -0500 (EST) Subject: [nycphp-talk] user contributed notes on php.net In-Reply-To: References: <41E2D9F6.5090700@magpie.com> <7011-41779@sneakemail.com> Message-ID: On Mon, 10 Jan 2005, Aaron Fischer wrote: > I started using WordPress a few days ago for blogware and have been > pretty happy so far. It seems like it might be a better tool for > commenting than a forum package. I've gotten the impression from browsing their site that their anti-comment-spam approach is still essentially blacklist-based, and that you will frequently end up having to play cat and mouse with spammers as they develop knew ways of beating they latest thing someone came up with to beat them with. Sorry for the poor sentence. --- David Mintz http://davidmintz.org/ "Don't let the liberal media tell you what to think and feel. If you have hatred in your heart, let it out." -- Clayton Bigsby, black white supremacist From agfische at email.smith.edu Mon Jan 10 16:19:00 2005 From: agfische at email.smith.edu (Aaron Fischer) Date: Mon, 10 Jan 2005 16:19:00 -0500 Subject: [nycphp-talk] user contributed notes on php.net In-Reply-To: References: <41E2D9F6.5090700@magpie.com> <7011-41779@sneakemail.com> Message-ID: <3EF14209-634D-11D9-93C6-0003930D07F2@email.smith.edu> Um, can you explain this a bit? I'm trying to understand what you're saying here, but my brain has come up with too many possibilities so I think it's just better to ask. I did notice that if a user wants to attach comments to a blog post, the following line precedes the comment form: "Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed" Is that relevant to your comments? -Aaron On Jan 10, 2005, at 4:07 PM, David Mintz wrote: >> WordPress > I've gotten the impression from browsing their site that their > anti-comment-spam approach is still essentially blacklist-based, and > that > you will frequently end up having to play cat and mouse with spammers > as > they develop knew ways of beating they latest thing someone came up > with > to beat them with. Sorry for the poor sentence. From dmintz at davidmintz.org Mon Jan 10 16:39:33 2005 From: dmintz at davidmintz.org (David Mintz) Date: Mon, 10 Jan 2005 16:39:33 -0500 (EST) Subject: [nycphp-talk] user contributed notes on php.net In-Reply-To: <3EF14209-634D-11D9-93C6-0003930D07F2@email.smith.edu> References: <41E2D9F6.5090700@magpie.com> <7011-41779@sneakemail.com> <3EF14209-634D-11D9-93C6-0003930D07F2@email.smith.edu> Message-ID: Gee it must've been a worse sentence than I thought. My point is that they apparently have all these plugins that use all kinds of computational muscle to defeat comment-spamming, as opposed to the fairly new MoveableType style system, which relies on the TypeKey authentication service -- a modest PITA for the legitimate commenter, perhaps, but I have found it 100% effective and stopping comment spamming. On Mon, 10 Jan 2005, Aaron Fischer wrote: > Um, can you explain this a bit? I'm trying to understand what you're > saying here, but my brain has come up with too many possibilities so I > think it's just better to ask. > > I did notice that if a user wants to attach comments to a blog post, > the following line precedes the comment form: > "Line and paragraph breaks automatic, e-mail address never displayed, > HTML allowed" > > Is that relevant to your comments? > > On Jan 10, 2005, at 4:07 PM, David Mintz wrote: > > >> WordPress > > > I've gotten the impression from browsing their site that their > > anti-comment-spam approach is still essentially blacklist-based,[...] --- David Mintz http://davidmintz.org/ "Don't let the liberal media tell you what to think and feel. If you have hatred in your heart, let it out." -- Clayton Bigsby, black white supremacist From dmintz at davidmintz.org Mon Jan 10 16:48:07 2005 From: dmintz at davidmintz.org (David Mintz) Date: Mon, 10 Jan 2005 16:48:07 -0500 (EST) Subject: [nycphp-talk] user contributed notes on php.net In-Reply-To: References: <41E2D9F6.5090700@magpie.com> <7011-41779@sneakemail.com> <3EF14209-634D-11D9-93C6-0003930D07F2@email.smith.edu> Message-ID: On Mon, 10 Jan 2005, David Mintz wrote: sorry, make that: > -- a modest PITA for the legitimate commenter, perhaps, but I have > found it 100% effective at [not 'and'] stopping comment spamming. --- David Mintz http://davidmintz.org/ "Don't let the liberal media tell you what to think and feel. If you have hatred in your heart, let it out." -- Clayton Bigsby, black white supremacist From rajlist at rajshekhar.net Mon Jan 10 21:28:41 2005 From: rajlist at rajshekhar.net (Raj Shekhar) Date: Tue, 11 Jan 2005 07:58:41 +0530 Subject: [nycphp-talk] user contributed notes on php.net In-Reply-To: References: <41E2D9F6.5090700@magpie.com> <7011-41779@sneakemail.com> <3EF14209-634D-11D9-93C6-0003930D07F2@email.smith.edu> Message-ID: <41E339D9.8010905@rajshekhar.net> David Mintz wrote: > Gee it must've been a worse sentence than I thought. My point is that they > apparently have all these plugins that use all kinds of computational > muscle to defeat comment-spamming, as opposed to the fairly new > MoveableType style system, which relies on the TypeKey authentication > service -- a modest PITA for the legitimate commenter, perhaps, but I have > found it 100% effective and stopping comment spamming. Have you used the blacklist feature of the WP ? I am using it and it is quite good. Yes they have plugins for filtering spam comments (IP blocking, checking against open proxies list, Bayesian filtering etc.) , however even the default blacklist is good enough to effectively catch 90% of the spam appearing on my blog. For those interested, the process is outlined at http://rajshekhar.net/blog/index.php?p=49 Personally, I am strongly against registration (for either commenting or reading). Some wikis require you to register before you can edit the pages. Isn't that silly ? Yes spam is the problem and registration is not the solution. Regards -- ,-.___,-. Raj Shekhar \_/_ _\_/ System Administrator, programmer and slacker )O_O( home : http://rajshekhar.net { (_) } blog : http://rajshekhar.net/blog/ `-^-' work : http://netphotograph.com From 1j0lkq002 at sneakemail.com Mon Jan 10 21:46:19 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Mon, 10 Jan 2005 21:46:19 -0500 Subject: [nycphp-talk] user contributed notes on php.net In-Reply-To: References: <41E2D9F6.5090700@magpie.com> <7011-41779@sneakemail.com> <3EF14209-634D-11D9-93C6-0003930D07F2@email.smith.edu> Message-ID: <12538-68473@sneakemail.com> David Mintz dmintz-at-davidmintz.org |nyphp dev/internal group use| wrote: >Gee it must've been a worse sentence than I thought. My point is that they >apparently have all these plugins that use all kinds of computational >muscle to defeat comment-spamming, as opposed to the fairly new >MoveableType style system, which relies on the TypeKey authentication >service -- a modest PITA for the legitimate commenter, perhaps, but I have >found it 100% effective and stopping comment spamming. > A central-signon authentication system like typekey is just a hurdle in the way of spammers, just like captchas, word games, pictures, and randomized forms. However, a central authority that cannot be trusted (such as typekey) is actually more dangerous,because it purports to be somehting blog publishers can "trust" and whenever there is trust there is a hack. (Typekey can't be trusted because it doesn't actually authenticate anyone.. it just acts as a middleman i.e. hurdle). Granted the only thing at risk here is your blog, but the point is why set up a trusted authority if you can't trust it? In other words, why pass off some control to a "central authority" when you went to blogging in order to be free of the centralized mamagement system for publishing? Sure of course SixApart would never abuse all that information about who is commenting on what blog...... just like Google can be trusted with knwoing-everything-about-you-via-gmail. Back to Wordpress... it is cutting edge, so you will find plug ins for just about every approach to comment spam management, along with blogs chronicling how it did or di not work. Here's a page with links 15 different approaches (tarpit, google redirector, latency management, blacklist, etc etc etc). http://weblogtoolscollection.com/archives/2004/09/15/wordpress-comment-spam-stoppage-techniques/ -=john andrews From dmintz at davidmintz.org Mon Jan 10 22:12:55 2005 From: dmintz at davidmintz.org (David Mintz) Date: Mon, 10 Jan 2005 22:12:55 -0500 (EST) Subject: [nycphp-talk] combatting comment spam [was: user contributed notes on php.net] In-Reply-To: <12538-68473@sneakemail.com> References: <41E2D9F6.5090700@magpie.com> <7011-41779@sneakemail.com> <3EF14209-634D-11D9-93C6-0003930D07F2@email.smith.edu> <12538-68473@sneakemail.com> Message-ID: Hmm, this is so interesting I'm glad we brought it up (-: I see your point about handing the keys to the kingdom over to a 3rd party (my words, not yours, granted...) but OTOH it works (in my experience), and I don't have to spend ~any~ time perusing blogs dedicated to which of the latest and greatest anti-spam plugins works best. On Mon, 10 Jan 2005, inforequest wrote: > > A central-signon authentication system like typekey is just a hurdle in > the way of spammers, just like captchas, word games, pictures, and > randomized forms. However, a central authority that cannot be trusted > (such as typekey) is actually more dangerous,because it purports to be > somehting blog publishers can "trust" and whenever there is trust there > is a hack. (Typekey can't be trusted because it doesn't actually > authenticate anyone.. it just acts as a middleman i.e. hurdle). > > Granted the only thing at risk here is your blog, but the point is why > set up a trusted authority if you can't trust it? In other words, why > pass off some control to a "central authority" when you went to blogging > in order to be free of the centralized mamagement system for publishing? [...] > Back to Wordpress... it is cutting edge, so you will find plug ins for > just about every approach to comment spam management, along with blogs > chronicling how it did or di not work. Here's a page with links 15 > different approaches (tarpit, google redirector, latency management, > blacklist, etc etc etc)[...] --- David Mintz http://davidmintz.org/ "Don't let the liberal media tell you what to think and feel. If you have hatred in your heart, let it out." -- Clayton Bigsby, black white supremacist From 1j0lkq002 at sneakemail.com Mon Jan 10 22:19:58 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Mon, 10 Jan 2005 22:19:58 -0500 Subject: [OT] Re: [nycphp-talk] combatting comment spam [was: user contributed notes on php.net] In-Reply-To: References: <41E2D9F6.5090700@magpie.com> <7011-41779@sneakemail.com> <3EF14209-634D-11D9-93C6-0003930D07F2@email.smith.edu> <12538-68473@sneakemail.com> Message-ID: <15502-68423@sneakemail.com> David Mintz dmintz-at-davidmintz.org |nyphp dev/internal group use| wrote: >Hmm, this is so interesting I'm glad we brought it up (-: I see your point >about handing the keys to the kingdom over to a 3rd party (my words, not >yours, granted...) but OTOH it works (in my experience), and I don't have >to spend ~any~ time perusing blogs dedicated to which of the latest and >greatest anti-spam plugins works best. > Yes, that is exactly correct. You trust them because it is convenient, it appears to work, and they appear to be trustworthy. Isn't that how government always starts? ;-) -=john andrews From nasir81 at gmail.com Mon Jan 10 22:21:02 2005 From: nasir81 at gmail.com (Nasir Zubair) Date: Mon, 10 Jan 2005 22:21:02 -0500 Subject: [nycphp-talk] Developing a Plugin Interface In-Reply-To: <330532b60501092045166ebd8f@mail.gmail.com> References: <40fcda7305010919171f0da934@mail.gmail.com> <330532b60501092045166ebd8f@mail.gmail.com> Message-ID: <40fcda73050110192112f9dd2b@mail.gmail.com> Thanks Mitch, I downloaded it and am looking at its source code. Developing the plugins/modules seems to be pretty easy, but not yet sure about the interface that detects and runs the plugins. Will let you know if I make any progress :-) -- Nasir Zubair http://www.nasir.us/ From mitch.pirtle at gmail.com Mon Jan 10 22:36:12 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Mon, 10 Jan 2005 22:36:12 -0500 Subject: [nycphp-talk] Developing a Plugin Interface In-Reply-To: <40fcda73050110192112f9dd2b@mail.gmail.com> References: <40fcda7305010919171f0da934@mail.gmail.com> <330532b60501092045166ebd8f@mail.gmail.com> <40fcda73050110192112f9dd2b@mail.gmail.com> Message-ID: <330532b605011019364a0845d1@mail.gmail.com> Another interesting project is SMF, a forum that IMHO looks like it should be the king of the hill - fast, modular, more secure than phpBB, and free. Basically vbulletin for free LOL http://www.simplemachines.org/smf They have a web-based plugin browser that lets you select what you want do install from the admin interface on your own forum, VERY NICE. -- Mitch, thinking about doing the same for Mambo 5.0 On Mon, 10 Jan 2005 22:21:02 -0500, Nasir Zubair wrote: > Thanks Mitch, I downloaded it and am looking at its source code. > Developing the plugins/modules seems to be pretty easy, but not yet > sure about the interface that detects and runs the plugins. Will let > you know if I make any progress :-) > > -- > Nasir Zubair > http://www.nasir.us/ > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From Cbielanski at inta.org Tue Jan 11 09:11:43 2005 From: Cbielanski at inta.org (Chris Bielanski) Date: Tue, 11 Jan 2005 09:11:43 -0500 Subject: [OT] Re: [nycphp-talk] combatting comment spam [was: user cont ributed notes on php.net] Message-ID: <4DBE3775D77C744E9D1B9D06082E75D60AAB04@intamail1.com> > > David Mintz dmintz-at-davidmintz.org |nyphp dev/internal > group use| wrote: > > >Hmm, this is so interesting I'm glad we brought it up (-: I > >see your point[...]but OTOH it works (in my experience)[.] > > > Yes, that is exactly correct. You trust them because it is > convenient, > it appears to work, and they appear to be trustworthy. Isn't that how > government always starts? ;-) > > -=john andrews ...and trust - like freedom - carries with it the toll of "constant vigilance," to paraphrase B. Franklin... ;) ~C From codebowl at gmail.com Tue Jan 11 11:39:57 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 11 Jan 2005 11:39:57 -0500 Subject: [nycphp-talk] Zend Studio Server Message-ID: <8d9a4280050111083972c5160e@mail.gmail.com> Has anyone here installed ZSS and had it cause this problem? i use a dynamic dns hostname http://codebowl.dontexist.net/phpinfo.php this domain really redirects to http://codebowl.homelinux.net:8001/phpinfo.php i do that so that if i change my port i dont have to tell everyone, it redirects automatically. now when i call that page from this local machine, i keep getting the save dialog in firefox, however when someone else calls the page it shows the phpinfo() also i should note that if i use http://localhost:8001/ it loads the php files for me just fine. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From mjdewitt at alexcommgrp.com Tue Jan 11 13:53:04 2005 From: mjdewitt at alexcommgrp.com (DeWitt, Michael) Date: Tue, 11 Jan 2005 13:53:04 -0500 Subject: [nycphp-talk] Seeking comments on "PHP Power Programming" Message-ID: The publisher of "PHP 5 Power Programming," authored by Andi Gutmans/Stig Bakken and Derick Rethans, http://www.phptr.com/title/013147149X is seeking comments and recommendations for the book. If you have interest in sharing your review of the book, please respond to me at mailto:mjdewitt at alexcommgrp.com and I will put you in touch with them. Mike From psaw at pswebcode.com Tue Jan 11 14:06:00 2005 From: psaw at pswebcode.com (Peter Sawczynec) Date: Tue, 11 Jan 2005 14:06:00 -0500 Subject: [nycphp-talk] PHP "connection_aborted" and Capturing User Log Out / Browser Close Message-ID: <000901c4f810$9a1acf70$68e4a144@Liz> Using PHP, is there a simple way to capture browser shutdown or a session termination event, so that a user's departure time from a site can be captured when they don't use the formal Log Out button. I need to track user time logged into a site. I am using PHP sessions. Currently, capturing the user Log In efforts and capturing the user Log Out time when they hit Logout button. Any solution suggestions for capturing log out time of users who just close the browser? Warmest regards, Peter Sawczynec Technology Director PSWebcode psaw at pswebcode.com 718.543.3240 From rahmin at insite-out.com Tue Jan 11 14:16:57 2005 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Tue, 11 Jan 2005 14:16:57 -0500 Subject: [nycphp-talk] PHP Message-ID: <200501111916.j0BJGvwN006558@webmail2.megamailservers.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From ajai at bitblit.net Tue Jan 11 14:23:07 2005 From: ajai at bitblit.net (Ajai Khattri) Date: Tue, 11 Jan 2005 14:23:07 -0500 Subject: [nycphp-talk] PHP In-Reply-To: <200501111916.j0BJGvwN006558@webmail2.megamailservers.com> References: <200501111916.j0BJGvwN006558@webmail2.megamailservers.com> Message-ID: <41E4279B.1090406@bitblit.net> Rahmin Pavlovic wrote: >A possible solution would be log 'on-site' time by saving a timestamp of every >page view. We do that in-part to prevent additional log-in's from the same >account during a given active timeframe. > Most web stats tracking is bogus. -- Aj. Systems Administrator / Developer From psaw at pswebcode.com Tue Jan 11 14:33:09 2005 From: psaw at pswebcode.com (Peter Sawczynec) Date: Tue, 11 Jan 2005 14:33:09 -0500 Subject: [nycphp-talk] PHP In-Reply-To: <200501111916.j0BJGvwN006558@webmail2.megamailservers.com> Message-ID: <000b01c4f814$64d6ce50$68e4a144@Liz> This is a possible "almost does it" option. The time of every new page hit by the user can be entered as the newest logout time. So if they never formally logout we at least have an approximate Log Out time. If they really Log Out, we get the Log Out time for real. By the by, there is a way to rig something with JavaScript and the onUnload event. But it has pitfalls too. I am surprised now that PHP doesn't offer "on session start" and "on session end" event capturing, or am I wrong? Thanks, Peter -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Rahmin Pavlovic Sent: Tuesday, January 11, 2005 2:17 PM To: NYPHP Talk Subject: Re: [nycphp-talk] PHP On Tue, 11 Jan 2005 14:06 , Peter Sawczynec sent: >Using PHP, is there a simple way to capture browser shutdown or a >session termination event, so that a user's departure time from a site >can be captured when they don't use the formal Log Out button. > >I need to track user time logged into a site. I am using PHP sessions. >Currently, capturing the user Log In efforts and capturing the user Log >Out time when they hit Logout button. > >Any solution suggestions for capturing log out time of users who just >close the browser? > A possible solution would be log 'on-site' time by saving a timestamp of every page view. We do that in-part to prevent additional log-in's from the same account during a given active timeframe. _______________________________________________ New York PHP Talk Supporting AMP Technology (Apache/MySQL/PHP) http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From codebowl at gmail.com Tue Jan 11 14:42:26 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 11 Jan 2005 14:42:26 -0500 Subject: [nycphp-talk] Profiling Applications Message-ID: <8d9a4280050111114236b2fb3e@mail.gmail.com> Hello Everyone, i have a database class that i have created to make working with the database connections much easier for me, however on my dev machine i have the following specs P4 1.4ghz 128mb RDRAM my question is this.... would my small amount of ram lag my mysql connections? If i put the site on a live server with more ram etc.. would it load faster? again this is on my dev machine, however i am thinking it is my resources that are slowing it almost to a halt, i have never seen a site (properly coded) that takes 5+ seconds to load the total load time for this page and profile is 5.5078 seconds (according to my timer class). i have profiled my app and i see that smarty and my DB::Open method are what is hogging the load times. for instance here is my open method public function open() { $this->_link = mysql_connect( $this->_host, $this->_user, $this->_pass); if ( $this->_link == null ) { throw new MySQLEx( '$db->_link == null, connection to '.$this->_host.' failed'); } if( !mysql_select_db( $this->_database, $this->_link ) ) { throw new MySQLEx("could not select database!
".mysql_error()); } } should that really take this long to run? the rest of the page aside from these 2 objects run around 600 (ms) each still slow but nowhere near as slow as these 2 here are the results of one such profiling MySQL MySQL::__construct 0.11 (ms) MySQL::Open 4,199.46 (ms) MySQL::FetchAll 0.22 (ms) main 0.92 (ms) MySQL::NumRows 163.25 (ms) MySQL::Query 863.41 (ms) MySQL::FetchArray 12.11 (ms) Total: 5.238.74 (ms) Percent 46.90 percent Smarty Smarty::Smarty 0.03 (ms) Smarty::Display 0.03 (ms) Smarty::fetch 2,119.29 (ms) main 106.11 (ms) Smarty::_get_plugin_filepath 1.74 (ms) Smarty::_smarty_include 1,859.19 (ms) Smarty::_is_compiled 17.49 (ms) Smarty::_get_compile_path 0.26 (ms) Smarty::_fetch_resource_info 1.47 (ms) Smarty::_parse_resource_name 161.26 (ms) Smarty::_get_auto_filename 20.46 (ms) Smarty::assign 0.06 (ms) Total: 4,297.84 (ms) Percent 38.40 percent -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From codebowl at gmail.com Tue Jan 11 14:45:42 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 11 Jan 2005 14:45:42 -0500 Subject: [nycphp-talk] Re: Profiling Applications In-Reply-To: <8d9a4280050111114236b2fb3e@mail.gmail.com> References: <8d9a4280050111114236b2fb3e@mail.gmail.com> Message-ID: <8d9a428005011111455e52ae61@mail.gmail.com> i should also tell you that the profiler said total time to load was 13,549.5 (ms) -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From george at omniti.com Tue Jan 11 14:49:59 2005 From: george at omniti.com (George Schlossnagle) Date: Tue, 11 Jan 2005 14:49:59 -0500 Subject: [nycphp-talk] Profiling Applications In-Reply-To: <8d9a4280050111114236b2fb3e@mail.gmail.com> References: <8d9a4280050111114236b2fb3e@mail.gmail.com> Message-ID: On Jan 11, 2005, at 2:42 PM, Joseph Crawford wrote: > should that really take this long to run? > the rest of the page aside from these 2 objects run around 600 (ms) > each still slow but nowhere near as slow as these 2 DNS issue looking up your mysql hostname perhaps? Can you generate an internal function level profile? George From cderr at simons-rock.edu Tue Jan 11 14:59:19 2005 From: cderr at simons-rock.edu (charlie derr) Date: Tue, 11 Jan 2005 14:59:19 -0500 Subject: [nycphp-talk] PHP In-Reply-To: <000b01c4f814$64d6ce50$68e4a144@Liz> References: <000b01c4f814$64d6ce50$68e4a144@Liz> Message-ID: <41E43017.8000404@simons-rock.edu> What about using in the header of the page? As i understand it, this would try to grab a new copy of the page every minute (modify the 60 if you want a longer or shorter time). By keeping track of when the reloads cease, you'd know when the visitor closed the browser (or lost network connectivity) even if she/he didn't hit the logout button. And surely it'll be no picnic to integrate something like this with your already existing authentication code (so that it works seamlessly and doesn't demand a new login on every automatic refresh once a minute). And if your pages are places where people can input data (via forms), it'd be a real drag to have the page automatically reload (and lose the paragraph or so of text that your visitor just entered in a form field(s)). good luck, ~c Peter Sawczynec wrote: > This is a possible "almost does it" option. > > The time of every new page hit by the user can be entered as the newest > logout time. So if they never formally logout we at least have an > approximate Log Out time. If they really Log Out, we get the Log Out time > for real. > > By the by, there is a way to rig something with JavaScript and the onUnload > event. But it has pitfalls too. > > I am surprised now that PHP doesn't offer "on session start" and "on session > end" event capturing, or am I wrong? > > Thanks, > > Peter > > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On > Behalf Of Rahmin Pavlovic > Sent: Tuesday, January 11, 2005 2:17 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] PHP > > > > > On Tue, 11 Jan 2005 14:06 , Peter Sawczynec sent: > > >>Using PHP, is there a simple way to capture browser shutdown or a >>session termination event, so that a user's departure time from a site >>can be captured when they don't use the formal Log Out button. >> >>I need to track user time logged into a site. I am using PHP sessions. >>Currently, capturing the user Log In efforts and capturing the user Log >>Out time when they hit Logout button. >> >>Any solution suggestions for capturing log out time of users who just >>close the browser? >> > > > A possible solution would be log 'on-site' time by saving a timestamp of > every page view. We do that in-part to prevent additional log-in's from the > same account during a given active timeframe. > > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org From codebowl at gmail.com Tue Jan 11 15:05:21 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 11 Jan 2005 15:05:21 -0500 Subject: [nycphp-talk] Profiling Applications In-Reply-To: References: <8d9a4280050111114236b2fb3e@mail.gmail.com> Message-ID: <8d9a4280050111120547273c5b@mail.gmail.com> my mysql hostname is localhost there shouldnt be any issues looking that up :D i will try 127.0.0.1 though. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From ajai at bitblit.net Tue Jan 11 15:08:53 2005 From: ajai at bitblit.net (Ajai Khattri) Date: Tue, 11 Jan 2005 15:08:53 -0500 Subject: [nycphp-talk] PHP In-Reply-To: <41E43017.8000404@simons-rock.edu> References: <000b01c4f814$64d6ce50$68e4a144@Liz> <41E43017.8000404@simons-rock.edu> Message-ID: <41E43255.6030808@bitblit.net> charlie derr wrote: > What about using > in the header of the page? Pretty annoying if you're on dialup, especially if you just logged off... -- Aj. Systems Administrator / Developer From george at omniti.com Tue Jan 11 15:07:49 2005 From: george at omniti.com (George Schlossnagle) Date: Tue, 11 Jan 2005 15:07:49 -0500 Subject: [nycphp-talk] Profiling Applications In-Reply-To: <8d9a4280050111120547273c5b@mail.gmail.com> References: <8d9a4280050111114236b2fb3e@mail.gmail.com> <8d9a4280050111120547273c5b@mail.gmail.com> Message-ID: <77CA94AA-640C-11D9-8C51-000D93359332@omniti.com> On Jan 11, 2005, at 3:05 PM, Joseph Crawford wrote: > my mysql hostname is localhost there shouldnt be any issues looking > that up :D i will try 127.0.0.1 though. What profiler are you using? The results do seem a bit sketchy. If those are the best you can get from your profiler, you may try to follow the process with strace and see what that turns up. George From codebowl at gmail.com Tue Jan 11 15:11:18 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 11 Jan 2005 15:11:18 -0500 Subject: [nycphp-talk] Profiling Applications In-Reply-To: <77CA94AA-640C-11D9-8C51-000D93359332@omniti.com> References: <8d9a4280050111114236b2fb3e@mail.gmail.com> <8d9a4280050111120547273c5b@mail.gmail.com> <77CA94AA-640C-11D9-8C51-000D93359332@omniti.com> Message-ID: <8d9a428005011112115bcf5830@mail.gmail.com> i am using zend studio's profiling capabilities, however when i load the page in a browser my timer object (times the load time) reports that it is 5+ seconds can you give me some insight about strace? I was using APD however when i installed Zend Studio Server it had conflicts and i had to remove APD. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From psaw at pswebcode.com Tue Jan 11 15:19:02 2005 From: psaw at pswebcode.com (Peter Sawczynec) Date: Tue, 11 Jan 2005 15:19:02 -0500 Subject: [nycphp-talk] PHP In-Reply-To: <41E43017.8000404@simons-rock.edu> Message-ID: <000e01c4f81a$ce107640$68e4a144@Liz> Couple of alternate solutions (viable but got pitfalls): 1) Tiny JavaScripted popup or popunder window polls the opener page for it's existence. When opener page disappears, the popup window does location change to PHP logout page, processes, and then closes itself. 2) 1x1 transparent gif src points to PHP script page that polls for "connectin_aborted" and fires logout script when true. Peter -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of charlie derr Sent: Tuesday, January 11, 2005 2:59 PM To: NYPHP Talk Subject: Re: [nycphp-talk] PHP What about using in the header of the page? As i understand it, this would try to grab a new copy of the page every minute (modify the 60 if you want a longer or shorter time). By keeping track of when the reloads cease, you'd know when the visitor closed the browser (or lost network connectivity) even if she/he didn't hit the logout button. And surely it'll be no picnic to integrate something like this with your already existing authentication code (so that it works seamlessly and doesn't demand a new login on every automatic refresh once a minute). And if your pages are places where people can input data (via forms), it'd be a real drag to have the page automatically reload (and lose the paragraph or so of text that your visitor just entered in a form field(s)). good luck, ~c Peter Sawczynec wrote: > This is a possible "almost does it" option. > > The time of every new page hit by the user can be entered as the > newest logout time. So if they never formally logout we at least have > an approximate Log Out time. If they really Log Out, we get the Log > Out time for real. > > By the by, there is a way to rig something with JavaScript and the > onUnload event. But it has pitfalls too. > > I am surprised now that PHP doesn't offer "on session start" and "on > session end" event capturing, or am I wrong? > > Thanks, > > Peter > > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Rahmin Pavlovic > Sent: Tuesday, January 11, 2005 2:17 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] PHP > > > > > On Tue, 11 Jan 2005 14:06 , Peter Sawczynec sent: > > >>Using PHP, is there a simple way to capture browser shutdown or a >>session termination event, so that a user's departure time from a site >>can be captured when they don't use the formal Log Out button. >> >>I need to track user time logged into a site. I am using PHP sessions. >>Currently, capturing the user Log In efforts and capturing the user Log >>Out time when they hit Logout button. >> >>Any solution suggestions for capturing log out time of users who just >>close the browser? >> > > > A possible solution would be log 'on-site' time by saving a timestamp > of every page view. We do that in-part to prevent additional log-in's > from the same account during a given active timeframe. > > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org _______________________________________________ New York PHP Talk Supporting AMP Technology (Apache/MySQL/PHP) http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From Consult at CovenantEDesign.com Tue Jan 11 18:04:21 2005 From: Consult at CovenantEDesign.com (Edward) Date: Tue, 11 Jan 2005 18:04:21 -0500 Subject: [nycphp-talk] Zend Studio Server References: <8d9a4280050111083972c5160e@mail.gmail.com> Message-ID: <003a01c4f831$e366af20$45896e41@ced> Joe, Did you check all of your queries? That seems to be the other (yet also typical) long response that was returned. Just seems that if your running localhost (and your Development workstation is the server), it's most not likely going to be 'locating issues'... back-to-basics is where i always start from, I'd go back through once more over the queries, make sure prefixs exist where they need for tables, change error reporting while you have the opportunity before the page goes live etc. -Edward ----- Original Message ----- From: "Joseph Crawford" To: "NYPHP Talk" Sent: Tuesday, January 11, 2005 11:39 AM Subject: [nycphp-talk] Zend Studio Server > Has anyone here installed ZSS and had it cause this problem? > > i use a dynamic dns hostname http://codebowl.dontexist.net/phpinfo.php > > this domain really redirects to > http://codebowl.homelinux.net:8001/phpinfo.php i do that so that if i > change my port i dont have to tell everyone, it redirects > automatically. > > now when i call that page from this local machine, i keep getting the > save dialog in firefox, however when someone else calls the page it > shows the phpinfo() > > also i should note that if i use http://localhost:8001/ it loads the > php files for me just fine. > > -- > Joseph Crawford Jr. > Codebowl Solutions > codebowl at gmail.com > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From codebowl at gmail.com Tue Jan 11 18:32:26 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 11 Jan 2005 18:32:26 -0500 Subject: [nycphp-talk] Zend Studio Server In-Reply-To: <003a01c4f831$e366af20$45896e41@ced> References: <8d9a4280050111083972c5160e@mail.gmail.com> <003a01c4f831$e366af20$45896e41@ced> Message-ID: <8d9a42800501111532e3179f0@mail.gmail.com> it's not the queries, it's the MySQL::Open method that is called once the queries seem to run fast -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From Consult at CovenantEDesign.com Tue Jan 11 19:08:30 2005 From: Consult at CovenantEDesign.com (Edward) Date: Tue, 11 Jan 2005 19:08:30 -0500 Subject: [nycphp-talk] Zend Studio Server References: <8d9a4280050111083972c5160e@mail.gmail.com><003a01c4f831$e366af20$45896e41@ced> <8d9a42800501111532e3179f0@mail.gmail.com> Message-ID: <000501c4f83a$d9c2cb30$45896e41@ced> Joe, Have you tried making a seperate "open" file and then including it? -Edward ----- Original Message ----- From: "Joseph Crawford" To: "NYPHP Talk" Sent: Tuesday, January 11, 2005 6:32 PM Subject: Re: [nycphp-talk] Zend Studio Server > it's not the queries, it's the MySQL::Open method that is called once > > the queries seem to run fast > > -- > Joseph Crawford Jr. > Codebowl Solutions > codebowl at gmail.com > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From psaw at pswebcode.com Tue Jan 11 19:41:46 2005 From: psaw at pswebcode.com (Peter Sawczynec) Date: Tue, 11 Jan 2005 19:41:46 -0500 Subject: [nycphp-talk] Nyphp.org -- PDA and Mobile Environments Message-ID: <001b01c4f83f$828244e0$68e4a144@Liz> How do we look on a PDA? Can at least the mailing lists and the future member directory section be worked to play in a mobile environment? For the PDA, isn't it a matter of some browser detection, maybe a little CSS adjustment and maybe some stripped down JavaScript or a little new WML to get the introductory pages to look good and function on Pocket Internet Explorer? Pocket Internet Explorer (PIE) for Pocket PC (PPC) 2003 supports: HTML 4.0 XML XHTML CSS JScript 5.5 (approx. ECMAScript v3 or JavaScript 1.5) Animated GIFS WAP 2.0 Any thoughts? Warmest regards, Peter Sawczynec Technology Director PSWebcode psaw at pswebcode.com 718.543.3240 From mitch.pirtle at gmail.com Tue Jan 11 20:27:17 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Tue, 11 Jan 2005 20:27:17 -0500 Subject: [nycphp-talk] PHP "connection_aborted" and Capturing User Log Out / Browser Close In-Reply-To: <000901c4f810$9a1acf70$68e4a144@Liz> References: <000901c4f810$9a1acf70$68e4a144@Liz> Message-ID: <330532b6050111172761ded4c1@mail.gmail.com> On Tue, 11 Jan 2005 14:06:00 -0500, Peter Sawczynec wrote: > Using PHP, is there a simple way to capture browser shutdown or a session > termination event, so that a user's departure time from a site can be > captured when they don't use the formal Log Out button. Hey Peter, What I have done in the past was include a timestamp in the session (cookie that is, as well as in an 'online' table in the database), and after 5 minutes the authentication script updates the timestamp in the database. I then have a cron job running every 5 minutes that deletes any records with timestamps > 5 minutes old. In essence, if you close the browser or leave without logging out, your 'session' will get tossed in 5 minutes. I'd love to hear of other approaches, to see what makes the most sense. -- Mitch From codebowl at gmail.com Tue Jan 11 22:03:04 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 11 Jan 2005 22:03:04 -0500 Subject: [nycphp-talk] Zend Studio Server In-Reply-To: <000501c4f83a$d9c2cb30$45896e41@ced> References: <8d9a4280050111083972c5160e@mail.gmail.com> <003a01c4f831$e366af20$45896e41@ced> <8d9a42800501111532e3179f0@mail.gmail.com> <000501c4f83a$d9c2cb30$45896e41@ced> Message-ID: <8d9a42800501111903506a3637@mail.gmail.com> i will do this in the morning but i couldnt see the object being of that much of a bottleneck. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From codebowl at gmail.com Wed Jan 12 13:03:16 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 12 Jan 2005 13:03:16 -0500 Subject: [nycphp-talk] Zend Studio Server In-Reply-To: <8d9a42800501111903506a3637@mail.gmail.com> References: <8d9a4280050111083972c5160e@mail.gmail.com> <003a01c4f831$e366af20$45896e41@ced> <8d9a42800501111532e3179f0@mail.gmail.com> <000501c4f83a$d9c2cb30$45896e41@ced> <8d9a42800501111903506a3637@mail.gmail.com> Message-ID: <8d9a428005011210035846cb4b@mail.gmail.com> i have tested this way as well and it seems to be the same as using an object, at first it seemed faster, then i tested the object way again and using the object actually wasnt as slow this morning, maybe it's because i am running everything on 128mb ram maybe not. apps i am running Xwindows Zend Studio Firefox Gaim xTerm i have tried it with closing Gaim and the xTerm and it seemed to go a bit faster, so i am once again left thinking that it is just a memory issue that will hopefully be resolved soon. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From brian at vermonster.com Wed Jan 12 15:41:14 2005 From: brian at vermonster.com (Brian Kaney) Date: Wed, 12 Jan 2005 15:41:14 -0500 Subject: [nycphp-talk] Windows 2003 - IIS 6 - mssql connect issue Message-ID: <1105562474.28757.38.camel@brian.vermonster.com> Greetings, I am having a strange data access issue, maybe someone out there could help (I am a Linux guy and don't know my way around in win32/IIS). Here is the environment: Application Server: Windows 2003 IIS 6.0 PHP 4.3.10 Database Server: Windows 2003 SQLServer 2000 The App server reports a connection error when attempting to open a mssql connection to the DB server. I am using SQLServer Users (not Windows Users) to authenticate into the DB. Looking at the user comments on mssql_connect (php.net), I've tried: installing MDAC 2.8, changing the Everyone/Anonymous Policy, and enabling guest accounts. The connection error is not a native error code, indicating the SQLServer is not getting the connection attempt (must be blocked at the server level). I tried various authentication setting in IIS. It seems IIS is trying to pass the web users credentials to the DB server before trying the SQLServer connection. Am I missing an IIS security setting? Quirks: The exact same code works from IIS 5.0 / Windows 2000 (to the same DB server), so I think it is an IIS 6.0 / Windows 2003 issue. Another disturbing thing we found is if we authenticate Administrator _and_ the Administrator passwords on the App and DB server match, it connects! Any Windows gurus out there with any experience and/or suggestions? Sorry in advance for the long post, but I've spent days trying to figure this one out! - Brian From Cbielanski at inta.org Wed Jan 12 16:30:03 2005 From: Cbielanski at inta.org (Chris Bielanski) Date: Wed, 12 Jan 2005 16:30:03 -0500 Subject: [nycphp-talk] [OT] The CMS Dance Redux Message-ID: <4DBE3775D77C744E9D1B9D06082E75D60AAB0A@intamail1.com> Pardon the OT-ness, but I seek professional advice about content Management Systems. Right now we're looking over the featuresets of three: Mambo, ezPublish, and Contribute. This may sound ridiculous but I've been asked to look for a commercial product, like Contribute, that we can review to allay the concerns that we did not do sufficient research. Personally, I'm ready to jam some Mambo up in here and rock on, but it's a decision above my head. What other commercial CMS systems out there aren't utter hell on the user and the admin? First hand experience is preferred but I'll take anecdotes, too. 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 codebowl at gmail.com Wed Jan 12 16:36:11 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 12 Jan 2005 16:36:11 -0500 Subject: [nycphp-talk] [OT] The CMS Dance Redux In-Reply-To: <4DBE3775D77C744E9D1B9D06082E75D60AAB0A@intamail1.com> References: <4DBE3775D77C744E9D1B9D06082E75D60AAB0A@intamail1.com> Message-ID: <8d9a428005011213362ebcebdb@mail.gmail.com> this might be one worth looking into http://matrix.squiz.net/ i hear it's pretty good but then again that's from my friend who works for them and is the lead programmer for the installer or something like that, personally i never tried it, except a demo that he had setup for me. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From mitch.pirtle at gmail.com Wed Jan 12 16:49:12 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Wed, 12 Jan 2005 16:49:12 -0500 Subject: [nycphp-talk] [OT] The CMS Dance Redux In-Reply-To: <4DBE3775D77C744E9D1B9D06082E75D60AAB0A@intamail1.com> References: <4DBE3775D77C744E9D1B9D06082E75D60AAB0A@intamail1.com> Message-ID: <330532b605011213491499b852@mail.gmail.com> As a Mambo developer I am biased - but can still say in all honesty nobody can compete feature-for-feature with Plone (www.plone.org). The only real needs you have are: 1) you gotta have hardware - the environment is big (think aircraft carrier) and you will need both reverse proxy servers (I recommend pound) and a dedicated SMP machine for zope 2) you will need someone with python experience - managing a plone site is really a no-brainer once you get it installed, but then someone starts asking about customization, then you get hooked up wth Archetypes (my favourite feature)... Those two things handled, it is a VERY powerful environment that will handle anything they could possibly dream up. I even plugged Zope hosted on a linux machine directly to a MS SQL server, all with FOSS goodies (FreeTDS, SQL Relay and some voodoo). With OpenSourceCMS you can demo just about every single LAMP-based CMS available, so that should be an afternoon spent wisely. I was drawn to Mambo over the administration interface, and that opinion is purely subjective! To each his own. I'd like to see your results posted here just for grins, as somebody seems to ask a similar question once a month. I'd also like to commend your wisdom in your initial recommendation ;-) -- Mambo Mitch On Wed, 12 Jan 2005 16:30:03 -0500, Chris Bielanski wrote: > Pardon the OT-ness, but I seek professional advice about content Management > Systems. > Right now we're looking over the featuresets of three: Mambo, ezPublish, and > Contribute. This may sound ridiculous but I've been asked to look for a > commercial product, like Contribute, that we can review to allay the > concerns that we did not do sufficient research. > > Personally, I'm ready to jam some Mambo up in here and rock on, but it's a > decision above my head. > > What other commercial CMS systems out there aren't utter hell on the user > and the admin? First hand experience is preferred but I'll take anecdotes, > too. > > 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.nyphp.org > From Consult at CovenantEDesign.com Wed Jan 12 18:04:09 2005 From: Consult at CovenantEDesign.com (Edward) Date: Wed, 12 Jan 2005 18:04:09 -0500 Subject: [nycphp-talk] [OT] The CMS Dance Redux References: <4DBE3775D77C744E9D1B9D06082E75D60AAB0A@intamail1.com> Message-ID: <000701c4f8fb$06c39fe0$45896e41@ced> Chris, I've used MAcromedia's Contribute several times, it's ability to send"timed access keys", limi editable regions and moe make it a pretty well-rounded choice, if you're gonna dump in the dough, I'd give MAcromedia the Go... rhyming intended:P -Edward JS Prevost II Consult at covenantedesign.com www.covenantedesign.com ----- Original Message ----- From: "Chris Bielanski" To: "NYPHP Talk (E-mail)" Sent: Wednesday, January 12, 2005 4:30 PM Subject: [nycphp-talk] [OT] The CMS Dance Redux > Pardon the OT-ness, but I seek professional advice about content Management > Systems. > Right now we're looking over the featuresets of three: Mambo, ezPublish, and > Contribute. This may sound ridiculous but I've been asked to look for a > commercial product, like Contribute, that we can review to allay the > concerns that we did not do sufficient research. > > Personally, I'm ready to jam some Mambo up in here and rock on, but it's a > decision above my head. > > What other commercial CMS systems out there aren't utter hell on the user > and the admin? First hand experience is preferred but I'll take anecdotes, > too. > > > 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.nyphp.org > From nyphp at aumcomputers.com Thu Jan 13 06:19:32 2005 From: nyphp at aumcomputers.com (Anirudh Zala) Date: Thu, 13 Jan 2005 16:49:32 +0530 Subject: [nycphp-talk] PHP "connection_aborted" and Capturing User Log Out/ Browser Close References: <000901c4f810$9a1acf70$68e4a144@Liz> <330532b6050111172761ded4c1@mail.gmail.com> Message-ID: <022a01c4f961$ca672dc0$10cc000a@aum1> We use same option that mitch uses. I don't see any other way better than this one. Anirudh Zala (Z) ----- Original Message ----- From: "Mitch Pirtle" To: "NYPHP Talk" Sent: Wednesday, January 12, 2005 6:57 AM Subject: Re: [nycphp-talk] PHP "connection_aborted" and Capturing User Log Out/ Browser Close > On Tue, 11 Jan 2005 14:06:00 -0500, Peter Sawczynec wrote: > > Using PHP, is there a simple way to capture browser shutdown or a session > > termination event, so that a user's departure time from a site can be > > captured when they don't use the formal Log Out button. > > Hey Peter, > > What I have done in the past was include a timestamp in the session > (cookie that is, as well as in an 'online' table in the database), and > after 5 minutes the authentication script updates the timestamp in the > database. I then have a cron job running every 5 minutes that deletes > any records with timestamps > 5 minutes old. > > In essence, if you close the browser or leave without logging out, > your 'session' will get tossed in 5 minutes. > > I'd love to hear of other approaches, to see what makes the most sense. > > -- Mitch > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From sajith.ml at gmail.com Thu Jan 13 10:03:39 2005 From: sajith.ml at gmail.com (Sajith A) Date: Thu, 13 Jan 2005 20:33:39 +0530 Subject: [nycphp-talk] Curl Message-ID: It would be a great help if someone can point out curl resources. Thank you From ajai at bitblit.net Thu Jan 13 12:39:41 2005 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 13 Jan 2005 12:39:41 -0500 Subject: [nycphp-talk] Curl In-Reply-To: References: Message-ID: <41E6B25D.3070208@bitblit.net> Sajith A wrote: >It would be a great help if someone can point out curl resources. > Did Google break when I wasn't looking? ;-) -- Aj. Systems Administrator / Developer From hans at cyberxdesigns.com Thu Jan 13 13:03:54 2005 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Thu, 13 Jan 2005 13:03:54 -0500 Subject: [nycphp-talk] Curl In-Reply-To: <41E6B25D.3070208@bitblit.net> References: <41E6B25D.3070208@bitblit.net> Message-ID: <41E6B80A.3030702@cyberxdesigns.com> Ajai Khattri wrote: > Sajith A wrote: > >> It would be a great help if someone can point out curl resources. >> > > Did Google break when I wasn't looking? ;-) > Why put pigeons to work when you can put people to work? -- Hans C. Kaspersetz Cyber X Designs http://www.cyberxdesigns.com From Consult at CovenantEDesign.com Thu Jan 13 13:13:23 2005 From: Consult at CovenantEDesign.com (Edward) Date: Thu, 13 Jan 2005 13:13:23 -0500 Subject: [nycphp-talk] Curl References: <41E6B25D.3070208@bitblit.net> <41E6B80A.3030702@cyberxdesigns.com> Message-ID: <000e01c4f99b$9277d330$45896e41@ced> Umm, I have curls, in my hair. =D -Edward www.CovenantEdesign.com consult at covenantedesign.com ----- Original Message ----- From: "Hans C. Kaspersetz" To: "NYPHP Talk" Sent: Thursday, January 13, 2005 1:03 PM Subject: Re: [nycphp-talk] Curl > Ajai Khattri wrote: > > > Sajith A wrote: > > > >> It would be a great help if someone can point out curl resources. > >> > > > > Did Google break when I wasn't looking? ;-) > > > Why put pigeons to work when you can put people to work? > > > > -- > Hans C. Kaspersetz > Cyber X Designs > > http://www.cyberxdesigns.com > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From codebowl at gmail.com Thu Jan 13 13:26:38 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Thu, 13 Jan 2005 13:26:38 -0500 Subject: [nycphp-talk] Curl In-Reply-To: <000e01c4f99b$9277d330$45896e41@ced> References: <41E6B25D.3070208@bitblit.net> <41E6B80A.3030702@cyberxdesigns.com> <000e01c4f99b$9277d330$45896e41@ced> Message-ID: <8d9a428005011310264613b432@mail.gmail.com> lol i think the most obvious and probably one of the best would be http://php.net/curl -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From rajlist at rajshekhar.net Thu Jan 13 14:08:38 2005 From: rajlist at rajshekhar.net (Raj Shekhar) Date: Fri, 14 Jan 2005 00:38:38 +0530 Subject: [nycphp-talk] Curl In-Reply-To: References: Message-ID: <41E6C736.1000404@rajshekhar.net> Sajith A wrote: > It would be a great help if someone can point out curl resources. http://curl.haxx.se/libcurl/php/examples/ -- ,-.___,-. Raj Shekhar \_/_ _\_/ System Administrator, programmer and slacker )O_O( home : http://rajshekhar.net { (_) } blog : http://rajshekhar.net/blog/ `-^-' work : http://netphotograph.com From sajith.ml at gmail.com Fri Jan 14 00:23:11 2005 From: sajith.ml at gmail.com (Sajith A) Date: Fri, 14 Jan 2005 10:53:11 +0530 Subject: [nycphp-talk] MySQL doubt Message-ID: I'm not sure whether i should post this here. Correct me if i'm wrong.. I would like to know whether there is any performance difference between. "SELECT count(*) FROM table" and "SELECT count(field) FROM table". From faber at linuxnj.com Fri Jan 14 00:36:48 2005 From: faber at linuxnj.com (Faber Fedor) Date: Fri, 14 Jan 2005 00:36:48 -0500 Subject: [nycphp-talk] Re: MySQL doubt In-Reply-To: References: Message-ID: <20050114053648.GA20771@uranus.faber.nom> On 14/01/05 10:53 +0530, Sajith A wrote: > I'm not sure whether i should post this here. Correct me if i'm > wrong.. I would like to know > whether there is any performance difference between. "SELECT count(*) > FROM table" and "SELECT count(field) FROM table". Depends on the table. Read http://dev.mysql.com/doc/mysql/en/EXPLAIN.html then do EXPLAIN SELECT count(*) FROM table; EXPLAIN SELECT count(field) from table; at the mysql prompt and let us know what you find. -- Regards, Faber Linux New Jersey: Open Source Solutions for New Jersey http://www.linuxnj.com From fields at hedge.net Fri Jan 14 00:43:10 2005 From: fields at hedge.net (Adam Fields) Date: Fri, 14 Jan 2005 00:43:10 -0500 Subject: [nycphp-talk] Re: MySQL doubt In-Reply-To: <20050114053648.GA20771@uranus.faber.nom> References: <20050114053648.GA20771@uranus.faber.nom> Message-ID: <20050114054310.GR10666@lola.aquick.org> On Fri, Jan 14, 2005 at 12:36:48AM -0500, Faber Fedor wrote: > On 14/01/05 10:53 +0530, Sajith A wrote: > > I'm not sure whether i should post this here. Correct me if i'm > > wrong.. I would like to know > > whether there is any performance difference between. "SELECT count(*) > > FROM table" and "SELECT count(field) FROM table". > > Depends on the table. Read http://dev.mysql.com/doc/mysql/en/EXPLAIN.html > then do > > EXPLAIN SELECT count(*) FROM table; > > EXPLAIN SELECT count(field) from table; > > at the mysql prompt and let us know what you find. This won't show anything different - there's no where clause, and the row determination will be the same. That doesn't mean one isn't faster because you're moving less data around. I hope that it would optimize this to reading off an internal row counter rather than fetching all of the rows and counting them. In the former case, they should be the same. If it's doing the latter, count(field) will be faster. But I don't know for sure. -- - Adam ----- ** Internet users who enjoyed this email also clicked on this link to my weblog --> http://www.aquick.org/blog [ http://www.adamfields.com ][ http://del.icio.us/fields ] [ http://www.aquick.org/photoblog ] From faber at linuxnj.com Fri Jan 14 09:31:39 2005 From: faber at linuxnj.com (Faber Fedor) Date: Fri, 14 Jan 2005 09:31:39 -0500 Subject: [nycphp-talk] Re: MySQL doubt In-Reply-To: <20050114054310.GR10666@lola.aquick.org> References: <20050114053648.GA20771@uranus.faber.nom> <20050114054310.GR10666@lola.aquick.org> Message-ID: <20050114143139.GA23475@uranus.faber.nom> On 14/01/05 00:43 -0500, Adam Fields wrote: > This won't show anything different Looks different to me: mysql> explain select count(*) from foobar ; +------------------------------+ | Comment | +------------------------------+ | Select tables optimized away | +------------------------------+ 1 row in set (0.01 sec) mysql> explain select count(row_names) from r1000g_meanVectors ; +--------------------+------+---------------+------+---------+------+------+-------+ | table | type | possible_keys | key | key_len | ref | rows | Extra | +--------------------+------+---------------+------+---------+------+------+-------+ | foobar | ALL | NULL | NULL | NULL | NULL | 149 | | +--------------------+------+---------------+------+---------+------+------+-------+ 1 row in set (0.01 sec) > I hope that it would optimize this to reading off an internal row > counter rather than fetching all of the rows and counting them. In the > former case, they should be the same. If it's doing the latter, > count(field) will be faster. The first one in my example says to me "I don't even need to look at the table, I already know the answer" and the second one tells me the table has to be looked at. -- Regards, Faber Linux New Jersey: Open Source Solutions for New Jersey http://www.linuxnj.com From mark at nostromo.net Fri Jan 14 10:49:07 2005 From: mark at nostromo.net (Mark Horton) Date: Fri, 14 Jan 2005 10:49:07 -0500 Subject: [nycphp-talk] MySQL doubt In-Reply-To: References: Message-ID: <41E7E9F3.4050101@nostromo.net> Sajith A wrote: > I'm not sure whether i should post this here. Correct me if i'm > wrong.. I would like to know > whether there is any performance difference between. "SELECT count(*) > FROM table" and "SELECT count(field) FROM table". Mysql has different table types. MyISAM tables always know the number of rows within the table. The result of "SELECT (*) from table" is always known and should return instantly. This may not work on other table types however. For instance, it does not work for InnoDB tables. Mark From zaunere at gmail.com Fri Jan 14 11:50:42 2005 From: zaunere at gmail.com (Hans Zaunere) Date: Fri, 14 Jan 2005 11:50:42 -0500 Subject: [nycphp-talk] MySQL doubt In-Reply-To: <41E7E9F3.4050101@nostromo.net> Message-ID: <20050114164650.5BEE999DC@mailrelay.t-mobile.com> > > I'm not sure whether i should post this here. Correct me if i'm > > wrong.. I would like to know > > whether there is any performance difference between. "SELECT count(*) > > FROM table" and "SELECT count(field) FROM table". Those queries are the same performance wise. Adding in a GROUP BY, however, could change the query. > Mysql has different table types. MyISAM tables always know the number > of rows within the table. The result of "SELECT (*) from table" is > always known and should return instantly. Correct... as part of the MyISAM data structure, the number of rows is kept. However, using a GROUP BY would still cause for a calculation in some cases. > This may not work on other table types however. For instance, it does > not work for InnoDB tables. These still all work for InnoDB, however InnoDB doesn't keep the number of rows as part of it's data structure. So, for a MyISAM table: SELECT COUNT(*) FROM mytable Will always return instantly, whereas for a InnoDB table, it actually has to make the count (which makes sense, since InnoDB is ACID transactional). --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org Gmail: The 1gb spam catcher From codebowl at gmail.com Fri Jan 14 13:29:43 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 14 Jan 2005 13:29:43 -0500 Subject: [nycphp-talk] [OT] Flow Charts Message-ID: <8d9a4280050114102933e91776@mail.gmail.com> can anyone criticize this and maybe point me to a good site to help me learn to do this stuff better? http://codebowl.homelinux.net:8001/flow/ i just found RoboChart for linux which seems pretty good :D -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From codebowl at gmail.com Fri Jan 14 13:30:49 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 14 Jan 2005 13:30:49 -0500 Subject: [nycphp-talk] Re: [OT] Flow Charts In-Reply-To: <8d9a4280050114102933e91776@mail.gmail.com> References: <8d9a4280050114102933e91776@mail.gmail.com> Message-ID: <8d9a428005011410303c1734c7@mail.gmail.com> and when i say a good site, please dont respond with google :D i am already searching there for resources i just thought someone here might have a good one i may not stumble accross. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From andrew at digitalpulp.com Fri Jan 14 14:05:24 2005 From: andrew at digitalpulp.com (Andrew Yochum) Date: Fri, 14 Jan 2005 14:05:24 -0500 Subject: [nycphp-talk] [OT] Flow Charts In-Reply-To: <8d9a4280050114102933e91776@mail.gmail.com> References: <8d9a4280050114102933e91776@mail.gmail.com> Message-ID: <20050114190512.GA15013@zoidberg.digitalpulp.com> On Fri, Jan 14, 2005 at 01:29:43PM -0500, Joseph Crawford wrote: > can anyone criticize this and maybe point me to a good site to help me > learn to do this stuff better? IBM has some good articles on UML: http://www-106.ibm.com/developerworks/rational/library/content/RationalEdge/archives/uml.html And then the Garrett IA doc: http://www.jjg.net/ia/visvocab/ HTH, Andrew From codebowl at gmail.com Fri Jan 14 14:09:08 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 14 Jan 2005 14:09:08 -0500 Subject: [nycphp-talk] [OT] Flow Charts In-Reply-To: <20050114190512.GA15013@zoidberg.digitalpulp.com> References: <8d9a4280050114102933e91776@mail.gmail.com> <20050114190512.GA15013@zoidberg.digitalpulp.com> Message-ID: <8d9a4280050114110923353aa@mail.gmail.com> thanks andrew :D -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From zaunere at gmail.com Fri Jan 14 14:39:05 2005 From: zaunere at gmail.com (Hans Zaunere) Date: Fri, 14 Jan 2005 14:39:05 -0500 Subject: [nycphp-talk] FW: new tool : the first remote PHP vulnerability scanner Message-ID: <41e81fe2.3ccaaae9.205d.000c@smtp.gmail.com> Might be of interest to some... > > rpvs aka Remote PHP Vulnerability Scanner > > rpvs isn't a cgi scanner > > screenshot: http://overdose.tcpteam.org/efil4zaggin.PNG > > binary: http://overdose.tcpteam.org/rpvs.exe > > code source: http://overdose.tcpteam.org/rpvs_src/ From codebowl at gmail.com Fri Jan 14 14:44:48 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 14 Jan 2005 14:44:48 -0500 Subject: [nycphp-talk] FW: new tool : the first remote PHP vulnerability scanner In-Reply-To: <41e81fe2.3ccaaae9.205d.000c@smtp.gmail.com> References: <41e81fe2.3ccaaae9.205d.000c@smtp.gmail.com> Message-ID: <8d9a428005011411444ddde856@mail.gmail.com> is there a linux version? -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From jlacey at att.net Fri Jan 14 14:48:09 2005 From: jlacey at att.net (John Lacey) Date: Fri, 14 Jan 2005 12:48:09 -0700 Subject: [nycphp-talk] FW: new tool : the first remote PHP vulnerability scanner In-Reply-To: <41e81fe2.3ccaaae9.205d.000c@smtp.gmail.com> References: <41e81fe2.3ccaaae9.205d.000c@smtp.gmail.com> Message-ID: <41E821F9.9010504@att.net> Hans Zaunere wrote: > Might be of interest to some... > > >>rpvs aka Remote PHP Vulnerability Scanner >> >>rpvs isn't a cgi scanner >> >>screenshot: http://overdose.tcpteam.org/efil4zaggin.PNG >> >>binary: http://overdose.tcpteam.org/rpvs.exe >> >>code source: http://overdose.tcpteam.org/rpvs_src/ > > sounds interesting.. I'll check it out, thanks RNCS "rpvs is not a cgi scanner" -- does that work? :) J From codebowl at gmail.com Fri Jan 14 15:33:02 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 14 Jan 2005 15:33:02 -0500 Subject: [nycphp-talk] [OT] Flow Charts In-Reply-To: <8d9a4280050114110923353aa@mail.gmail.com> References: <8d9a4280050114102933e91776@mail.gmail.com> <20050114190512.GA15013@zoidberg.digitalpulp.com> <8d9a4280050114110923353aa@mail.gmail.com> Message-ID: <8d9a4280050114123317d17dd9@mail.gmail.com> a heads up for anyone looking to do flow charts on linux, RoboChart is horrible compared to Kivio which is part of kOffice. the ui in Kivio blows my mind :D -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From pl at eskimo.com Fri Jan 14 16:01:45 2005 From: pl at eskimo.com (Peter Lehrer) Date: Fri, 14 Jan 2005 16:01:45 -0500 (EST) Subject: [nycphp-talk] test Message-ID: <3780.66.2.44.120.1105736505.squirrel@66.2.44.120> test From pl at eskimo.com Fri Jan 14 16:04:40 2005 From: pl at eskimo.com (Peter Lehrer) Date: Fri, 14 Jan 2005 16:04:40 -0500 (EST) Subject: [nycphp-talk] test Message-ID: <3783.66.2.44.120.1105736680.squirrel@66.2.44.120> test From agfische at email.smith.edu Fri Jan 14 16:05:02 2005 From: agfische at email.smith.edu (Aaron Fischer) Date: Fri, 14 Jan 2005 16:05:02 -0500 Subject: [nycphp-talk] test In-Reply-To: <3780.66.2.44.120.1105736505.squirrel@66.2.44.120> References: <3780.66.2.44.120.1105736505.squirrel@66.2.44.120> Message-ID: delete On Jan 14, 2005, at 4:01 PM, Peter Lehrer wrote: > test From jlacey at att.net Fri Jan 14 16:06:11 2005 From: jlacey at att.net (John Lacey) Date: Fri, 14 Jan 2005 14:06:11 -0700 Subject: [nycphp-talk] [OT] Flow Charts In-Reply-To: <8d9a4280050114123317d17dd9@mail.gmail.com> References: <8d9a4280050114102933e91776@mail.gmail.com> <20050114190512.GA15013@zoidberg.digitalpulp.com> <8d9a4280050114110923353aa@mail.gmail.com> <8d9a4280050114123317d17dd9@mail.gmail.com> Message-ID: <41E83443.5000701@att.net> Joseph Crawford wrote: > a heads up for anyone looking to do flow charts on linux, RoboChart is > horrible compared to Kivio which is part of kOffice. the ui in Kivio > blows my mind :D > > you might check out DIA as well... it's gtk+ based and GPL'd, it'll run on quite a few platforms. http://www.gnome.org/projects/dia/ John From zaunere at gmail.com Fri Jan 14 16:22:06 2005 From: zaunere at gmail.com (Hans Zaunere) Date: Fri, 14 Jan 2005 16:22:06 -0500 Subject: [nycphp-talk] test In-Reply-To: <3783.66.2.44.120.1105736680.squirrel@66.2.44.120> Message-ID: <41e83808.34a1a4a4.66b5.00cb@smtp.gmail.com> Please don't send excessive test messages to the lists. Thank you, H > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > On Behalf Of Peter Lehrer > Sent: Friday, January 14, 2005 4:05 PM > To: talk at lists.nyphp.org > Subject: [nycphp-talk] test > > test > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org From faber at linuxnj.com Fri Jan 14 20:20:40 2005 From: faber at linuxnj.com (Faber Fedor) Date: Fri, 14 Jan 2005 20:20:40 -0500 Subject: [nycphp-talk] Need MS web developer Message-ID: <20050115012040.GA25896@uranus.faber.nom> This is probably OT for this group; if so, I apologize upfront. A client of mine has a website that runs on IIS using (I think) ASP and COM (or what ever MS is pushing this week). The site was originally outsourced overseas and now they need some changes made. This is NOT a full-time position and consulting on web development has to be your day job. The client is in Fairfield, NJ. If you're interested, please contact me off-list. -- Regards, Faber Linux New Jersey: Open Source Solutions for New Jersey http://www.linuxnj.com From prusak at gmail.com Fri Jan 14 21:16:24 2005 From: prusak at gmail.com (Ophir Prusak) Date: Fri, 14 Jan 2005 21:16:24 -0500 Subject: [nycphp-talk] MySQL doubt In-Reply-To: References: Message-ID: As long as we're on the subject, could someone shed some light on this behavior? It caused me a good amount of hair pulling until I realized what mysql was doing. Why doesn't MySQL use the primary key in the second query? I would think that count doesn't care what column I use, but obviously it does. mysql> explain select count(rev_id) from review where rev_id > 10000; +--------+-------+---------------+---------+---------+------+-------+-------------------------+ | table | type | possible_keys | key | key_len | ref | rows | Extra | +--------+-------+---------------+---------+---------+------+-------+-------------------------+ | review | range | PRIMARY | PRIMARY | 4 | NULL | 30608 | where used; Using index | +--------+-------+---------------+---------+---------+------+-------+-------------------------+ 1 row in set (0.00 sec) mysql> explain select count(rev_title) from review where rev_id > 10000; +--------+------+---------------+------+---------+------+-------+------------+ | table | type | possible_keys | key | key_len | ref | rows | Extra | +--------+------+---------------+------+---------+------+-------+------------+ | review | ALL | PRIMARY | NULL | NULL | NULL | 43894 | where used | +--------+------+---------------+------+---------+------+-------+------------+ 1 row in set (0.00 sec) mysql> desc review; +----------------+--------------+------+-----+------------+----------------+ | Field | Type | Null | Key | Default | Extra | +----------------+--------------+------+-----+------------+----------------+ | rev_id | int(11) | | PRI | NULL | auto_increment | | rev_usr_id | int(11) | | MUL | 0 | | | rev_gsy_id | int(11) | | MUL | 0 | | | rev_text | text | YES | | NULL | | | rev_status | char(1) | YES | | NULL | | | rev_regdate | date | | MUL | 0000-00-00 | | | rev_email | varchar(255) | YES | | NULL | | | rev_title | varchar(255) | YES | | NULL | | | rev_score | int(11) | YES | | NULL | | | rev_from | varchar(255) | YES | | NULL | | | rev_name | varchar(255) | YES | | NULL | | | rev_show_name | tinyint(4) | YES | | NULL | | | rev_show_email | tinyint(4) | YES | | NULL | | | rev_notes | text | YES | | NULL | | | help_yes | int(11) | | | 0 | | | help_no | int(11) | | | 0 | | +----------------+--------------+------+-----+------------+----------------+ 16 rows in set (0.00 sec) On Fri, 14 Jan 2005 10:53:11 +0530, Sajith A wrote: > I'm not sure whether i should post this here. Correct me if i'm > wrong.. I would like to know > whether there is any performance difference between. "SELECT count(*) > FROM table" and "SELECT count(field) FROM table". > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From codebowl at gmail.com Fri Jan 14 21:17:40 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 14 Jan 2005 21:17:40 -0500 Subject: [nycphp-talk] XML Posts to other sites Message-ID: <8d9a428005011418172b93f5fe@mail.gmail.com> Hello Everyone, I have a client that is interested in making thier site use TeleMessage. http://xml.telemessage.com/multialert/system_overview.html Thier flowchart and docs look pretty basic and self explanatory however i need to know can anyone here tell me (i'm drawing a blank and they have no examples in php) how i would send the xml request to thier servers.... they have VB examples that use the MSXML com object. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From codebowl at gmail.com Fri Jan 14 21:22:20 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 14 Jan 2005 21:22:20 -0500 Subject: [nycphp-talk] Re: XML Posts to other sites In-Reply-To: <8d9a428005011418172b93f5fe@mail.gmail.com> References: <8d9a428005011418172b93f5fe@mail.gmail.com> Message-ID: <8d9a42800501141822c970d89@mail.gmail.com> basically i need to submit the XML as an http form post automatically without a user clicking a button. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From prusak at gmail.com Fri Jan 14 23:34:58 2005 From: prusak at gmail.com (Ophir Prusak) Date: Fri, 14 Jan 2005 23:34:58 -0500 Subject: [nycphp-talk] Re: XML Posts to other sites In-Reply-To: <8d9a42800501141822c970d89@mail.gmail.com> References: <8d9a428005011418172b93f5fe@mail.gmail.com> <8d9a42800501141822c970d89@mail.gmail.com> Message-ID: curl ?? On Fri, 14 Jan 2005 21:22:20 -0500, Joseph Crawford wrote: > basically i need to submit the XML as an http form post automatically > without a user clicking a button. > > > -- > Joseph Crawford Jr. > Codebowl Solutions > codebowl at gmail.com > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From sajith.ml at gmail.com Sat Jan 15 00:01:16 2005 From: sajith.ml at gmail.com (Sajith A) Date: Sat, 15 Jan 2005 10:31:16 +0530 Subject: [nycphp-talk] Re: XML Posts to other sites In-Reply-To: <8d9a42800501141822c970d89@mail.gmail.com> References: <8d9a428005011418172b93f5fe@mail.gmail.com> <8d9a42800501141822c970d89@mail.gmail.com> Message-ID: > basically i need to submit the XML as an http form post automatically > without a user clicking a button. Please see http://php.net/stream Example 2 might be of help to you. --- s?j?th http://apilgrim.info sajith.ml[at]gmail.com From faber at linuxnj.com Sat Jan 15 00:09:15 2005 From: faber at linuxnj.com (Faber Fedor) Date: Sat, 15 Jan 2005 00:09:15 -0500 Subject: [nycphp-talk] Re: MySQL doubt In-Reply-To: References: Message-ID: <20050115050915.GA26585@uranus.faber.nom> On 14/01/05 21:16 -0500, Ophir Prusak wrote: > As long as we're on the subject, could someone shed some light on this behavior? > It caused me a good amount of hair pulling until I realized what mysql > was doing. > > Why doesn't MySQL use the primary key in the second query? I may be missing something here, but why would MySQL use the PK in the second query? You didn't ask it to. > I would think that count doesn't care what column I use, but obviously it does. Why would you think that? count doesn't care what column you use, but the optimizer will use an index if it is available. If an index is not available, it uses the raw data (read: column). -- Regards, Faber Linux New Jersey: Open Source Solutions for New Jersey http://www.linuxnj.com From prusak at gmail.com Sat Jan 15 00:11:22 2005 From: prusak at gmail.com (Ophir Prusak) Date: Sat, 15 Jan 2005 00:11:22 -0500 Subject: [nycphp-talk] Re: XML Posts to other sites In-Reply-To: References: <8d9a428005011418172b93f5fe@mail.gmail.com> <8d9a42800501141822c970d89@mail.gmail.com> Message-ID: i still think curl is easier :) in fact, there is an example of exactly what you're trying to do. See http://us4.php.net/manual/en/ref.curl.php look at the user comment from "mmm at turkmenweb dot com" On Fri, 14 Jan 2005 23:34:58 -0500, Ophir Prusak wrote: > curl ?? > > > On Fri, 14 Jan 2005 21:22:20 -0500, Joseph Crawford wrote: > > basically i need to submit the XML as an http form post automatically > > without a user clicking a button. > > > > > > -- > > Joseph Crawford Jr. > > Codebowl Solutions > > codebowl at gmail.com > > _______________________________________________ > > New York PHP Talk > > Supporting AMP Technology (Apache/MySQL/PHP) > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org > > > From prusak at gmail.com Sat Jan 15 00:23:43 2005 From: prusak at gmail.com (Ophir Prusak) Date: Sat, 15 Jan 2005 00:23:43 -0500 Subject: [nycphp-talk] Re: MySQL doubt In-Reply-To: <20050115050915.GA26585@uranus.faber.nom> References: <20050115050915.GA26585@uranus.faber.nom> Message-ID: Both queries have the same where clause. Since the where clause is using a column which DOES have an index, I would think the parser would be smart enough to realize that in both queries you'll get the same answer, so why not execute them both in the fastest way possible (using the index)? I'm not sure what you mean by "asking" mysql to use an index. Ophir On Sat, 15 Jan 2005 00:09:15 -0500, Faber Fedor wrote: > On 14/01/05 21:16 -0500, Ophir Prusak wrote: > > As long as we're on the subject, could someone shed some light on this behavior? > > It caused me a good amount of hair pulling until I realized what mysql > > was doing. > > > > Why doesn't MySQL use the primary key in the second query? > > I may be missing something here, but why would MySQL use the PK in the second > query? You didn't ask it to. > > > I would think that count doesn't care what column I use, but obviously it does. > > Why would you think that? count doesn't care what column you use, but > the optimizer will use an index if it is available. If an index is not > available, it uses the raw data (read: column). > > > -- > > 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.nyphp.org > From faber at linuxnj.com Sat Jan 15 00:45:57 2005 From: faber at linuxnj.com (Faber Fedor) Date: Sat, 15 Jan 2005 00:45:57 -0500 Subject: [nycphp-talk] Re: MySQL doubt In-Reply-To: References: <20050115050915.GA26585@uranus.faber.nom> Message-ID: <20050115054557.GA26785@uranus.faber.nom> On 15/01/05 00:23 -0500, Ophir Prusak wrote: > Both queries have the same where clause. That's what I missed. I too would have expected the parser to execute the WHERE clause before the SELECT clause. Is this another case where MySQL is nonstandard? -- Regards, Faber Linux New Jersey: Open Source Solutions for New Jersey http://www.linuxnj.com From rajlist at rajshekhar.net Sat Jan 15 00:58:24 2005 From: rajlist at rajshekhar.net (Raj Shekhar) Date: Sat, 15 Jan 2005 11:28:24 +0530 Subject: [nycphp-talk] [OT] Flow Charts In-Reply-To: <8d9a4280050114102933e91776@mail.gmail.com> References: <8d9a4280050114102933e91776@mail.gmail.com> Message-ID: <41E8B100.7040300@rajshekhar.net> Joseph Crawford wrote: > i just found RoboChart for linux which seems pretty good :D > Xfig - comes with most linux distros but is not installed by default. Has support for doing flowcharts, logic diagrams, UML etc. UI might turn you off if you are a KDE-type :-) . Has a good user guide/manual -- ,-.___,-. Raj Shekhar \_/_ _\_/ System Administrator, programmer and slacker )O_O( home : http://rajshekhar.net { (_) } blog : http://rajshekhar.net/blog/ `-^-' work : http://netphotograph.com From 1j0lkq002 at sneakemail.com Sat Jan 15 01:15:01 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Sat, 15 Jan 2005 01:15:01 -0500 Subject: [nycphp-talk] [OT] Gmail security issue - avoid Froogle for a while? In-Reply-To: <20050115054557.GA26785@uranus.faber.nom> References: <20050115050915.GA26585@uranus.faber.nom> <20050115054557.GA26785@uranus.faber.nom> Message-ID: <26059-36055@sneakemail.com> Looks like a Froogle link can grab your personal info and access to Google services data... http://www.aviransplace.com/index.php/archives/2005/01/13/serious-flaw-in-froogle-reveals-gmail-accounts/ From zaunere at gmail.com Sat Jan 15 02:41:47 2005 From: zaunere at gmail.com (Hans Zaunere) Date: Sat, 15 Jan 2005 02:41:47 -0500 Subject: [nycphp-talk] Re: MySQL doubt In-Reply-To: <20050115054557.GA26785@uranus.faber.nom> Message-ID: <41e8c945.23491c43.178c.0011@smtp.gmail.com> > > Both queries have the same where clause. > > That's what I missed. I too would have expected the parser to execute > the WHERE clause before the SELECT clause. > > Is this another case where MySQL is nonstandard? It is standard. MyISAM has a special optimization that allows a COUNT(*) to read the table definition directly, whereas most cases, this cannot hold true. For example, a row with a NULL in a COUNT(somecolumn)'d isn't counted. A WHERE or GROUP BY generally requires a real calculation to be performed because the contents of each row cannot be assumed, and for InnoDB tables, this can never be assumed because of multi-versioning. See http://dev.mysql.com/doc/mysql/en/GROUP-BY-Functions.html --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org Gmail: The 1gb spam catcher From tgales at tgaconnect.com Sat Jan 15 12:22:00 2005 From: tgales at tgaconnect.com (Tim Gales) Date: Sat, 15 Jan 2005 12:22:00 -0500 Subject: [nycphp-talk] MySQL doubt In-Reply-To: Message-ID: <007701c4fb26$b90ef230$e98d3818@oberon1> Ophir Prusak writes: > Why doesn't MySQL use the primary key in the second query? > I would think that count doesn't care what column I use, but > obviously it does. In the first query, the MySQL optimizer recognizes that it can get everything it needs from the index -- and uses it. Notice the difference between types: range vs. ALL In the MySQL manual it says: "The definition of a range condition for a single-part index is as follows: For both BTREE and HASH indexes, comparison of a key part with a constant value is a range condition when using the =, <=>, IN, IS NULL, or IS NOT NULL operators" http://dev.mysql.com/doc/mysql/en/Range_access_single-part.html It would seem that the optimizer either got befuddled by bad statistics or it decided that using the index would require more seeks to read both the index and the table versus just reading 'all' of the table. You could coerce the optimizer to go with range by adding a limit. Try explaining "select count(rev_title) from review where rev_id > 10000 limit 30000" (just for fun try explaining with a limit greater than the total number of rows in the table) You might want to try benchmarking with and without the limit of 30000 -- to see if the optimizer made a good choice. 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 > Sent: Friday, January 14, 2005 9:16 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] MySQL doubt > > > As long as we're on the subject, could someone shed some > light on this behavior? It caused me a good amount of hair > pulling until I realized what mysql was doing. > > > mysql> explain select count(rev_id) from review where rev_id > 10000; > +--------+-------+---------------+---------+---------+------+- > ------+-------------------------+ > | table | type | possible_keys | key | key_len | ref | rows | > Extra | > +--------+-------+---------------+---------+---------+------+- > ------+-------------------------+ > | review | range | PRIMARY | PRIMARY | 4 | NULL | 30608 | > where used; Using index | > +--------+-------+---------------+---------+---------+------+- > ------+-------------------------+ > 1 row in set (0.00 sec) > > mysql> explain select count(rev_title) from review where > rev_id > 10000; > +--------+------+---------------+------+---------+------+----- > --+------------+ > | table | type | possible_keys | key | key_len | ref | > rows | Extra | > +--------+------+---------------+------+---------+------+----- > --+------------+ > | review | ALL | PRIMARY | NULL | NULL | NULL | > 43894 | where used | > +--------+------+---------------+------+---------+------+----- > --+------------+ > 1 row in set (0.00 sec) > > mysql> desc review; > +----------------+--------------+------+-----+------------+--- > -------------+ > | Field | Type | Null | Key | Default | > Extra | > +----------------+--------------+------+-----+------------+--- > -------------+ > | rev_id | int(11) | | PRI | NULL | > auto_increment | > | rev_usr_id | int(11) | | MUL | 0 | > | > | rev_gsy_id | int(11) | | MUL | 0 | > | > | rev_text | text | YES | | NULL | > | > | rev_status | char(1) | YES | | NULL | > | > | rev_regdate | date | | MUL | 0000-00-00 | > | > | rev_email | varchar(255) | YES | | NULL | > | > | rev_title | varchar(255) | YES | | NULL | > | > | rev_score | int(11) | YES | | NULL | > | > | rev_from | varchar(255) | YES | | NULL | > | > | rev_name | varchar(255) | YES | | NULL | > | > | rev_show_name | tinyint(4) | YES | | NULL | > | > | rev_show_email | tinyint(4) | YES | | NULL | > | > | rev_notes | text | YES | | NULL | > | > | help_yes | int(11) | | | 0 | > | > | help_no | int(11) | | | 0 | > | > +----------------+--------------+------+-----+------------+--- > -------------+ > 16 rows in set (0.00 sec) > > On Fri, 14 Jan 2005 10:53:11 +0530, Sajith A > wrote: > > I'm not sure whether i should post this here. Correct me if i'm > > wrong.. I would like to know whether there is any performance > > difference between. "SELECT count(*) FROM table" and "SELECT > > count(field) FROM table". > > _______________________________________________ > > New York PHP Talk > > Supporting AMP Technology (Apache/MySQL/PHP) > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org > > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From mark at nostromo.net Sat Jan 15 13:49:30 2005 From: mark at nostromo.net (Mark Horton) Date: Sat, 15 Jan 2005 13:49:30 -0500 Subject: [nycphp-talk] MySQL doubt In-Reply-To: References: Message-ID: <41E965BA.9080809@nostromo.net> Ophir Prusak wrote: > As long as we're on the subject, could someone shed some light on this behavior? > It caused me a good amount of hair pulling until I realized what mysql > was doing. > > Why doesn't MySQL use the primary key in the second query? > I would think that count doesn't care what column I use, but obviously it does. I think what many have said on this is accurate. I wanted to further say that the short answer to your question is that if the optimizer detects it will scan more than 30% of the index tree then it may decide not to use the index at all and do a full table scan. (According to the recent docs there are other variables taken into account, but I believe the 30% rule is a significant factor.) You table has 43894 rows and your where clause indicates it will scan about 75% of the index tree, thus your second query does a full table scan. However, the results of your first query can be wholly computed without touching the data at all, so it decides not to do a table scan. You are fetching rev_id and using rev_id in the where clause, so it gets everything it needs from the index tree. (It doesn't always work like this, but I believe it does for integer based indexes.) Why would it decide to do a full table scan? My guess is that it doesn't take into account that rev_id is an auto_increment column. So it doesn't know that it can simply start at 10001 and work its way up using the index. For all it knows your index could be a normal index with duplicates. I believe this is related to cardinality. IOW it decides it would be faster to only reference the data (1 disk seek) instead of the index tree then also fetch the data (possibly 2 disk seeks). You can hand optimize the second query with 'force index' if you want. I've also read that you can use 'max_seeks_for_key' to manipulate some of the behavior, although I've never used it myself. Mark From prusak at gmail.com Sat Jan 15 17:01:36 2005 From: prusak at gmail.com (Ophir Prusak) Date: Sat, 15 Jan 2005 17:01:36 -0500 Subject: [nycphp-talk] MySQL doubt In-Reply-To: <41E965BA.9080809@nostromo.net> References: <41E965BA.9080809@nostromo.net> Message-ID: thanx for the explanations everyone! fyi, i did the following two queries which use the same columns but return a different number of results. Indeed the %30 rule seems to be the case. mysql> explain select rev_regdate from review where rev_id > 30000; +--------+-------+---------------+---------+---------+------+-------+------------+ | table | type | possible_keys | key | key_len | ref | rows | Extra | +--------+-------+---------------+---------+---------+------+-------+------------+ | review | range | PRIMARY | PRIMARY | 4 | NULL | 11032 | where used | +--------+-------+---------------+---------+---------+------+-------+------------+ 1 row in set (0.04 sec) mysql> explain select rev_regdate from review where rev_id > 10000; +--------+------+---------------+------+---------+------+-------+------------+ | table | type | possible_keys | key | key_len | ref | rows | Extra | +--------+------+---------------+------+---------+------+-------+------------+ | review | ALL | PRIMARY | NULL | NULL | NULL | 43896 | where used | +--------+------+---------------+------+---------+------+-------+------------+ 1 row in set (0.01 sec) On Sat, 15 Jan 2005 13:49:30 -0500, Mark Horton wrote: > Ophir Prusak wrote: > > As long as we're on the subject, could someone shed some light on this behavior? > > It caused me a good amount of hair pulling until I realized what mysql > > was doing. > > > > Why doesn't MySQL use the primary key in the second query? > > I would think that count doesn't care what column I use, but obviously it does. > > I think what many have said on this is accurate. I wanted to further > say that the short answer to your question is that if the optimizer > detects it will scan more than 30% of the index tree then it may decide > not to use the index at all and do a full table scan. (According to the > recent docs there are other variables taken into account, but I believe > the 30% rule is a significant factor.) > > You table has 43894 rows and your where clause indicates it will scan > about 75% of the index tree, thus your second query does a full table scan. > > However, the results of your first query can be wholly computed without > touching the data at all, so it decides not to do a table scan. You are > fetching rev_id and using rev_id in the where clause, so it gets > everything it needs from the index tree. (It doesn't always work like > this, but I believe it does for integer based indexes.) > > Why would it decide to do a full table scan? My guess is that it > doesn't take into account that rev_id is an auto_increment column. So > it doesn't know that it can simply start at 10001 and work its way up > using the index. For all it knows your index could be a normal index > with duplicates. I believe this is related to cardinality. IOW it > decides it would be faster to only reference the data (1 disk seek) > instead of the index tree then also fetch the data (possibly 2 disk > seeks). > > You can hand optimize the second query with 'force index' if you want. > I've also read that you can use 'max_seeks_for_key' to manipulate some > of the behavior, although I've never used it myself. > > Mark > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From leam at reuel.net Sat Jan 15 21:46:44 2005 From: leam at reuel.net (leam at reuel.net) Date: Sat, 15 Jan 2005 21:46:44 -0500 Subject: [nycphp-talk] Shopping Cart? Message-ID: <20050116024644.GE2879@leitz> While keeping in mind my relative lack of skill in programming, I may get a request to do a shopping cart. While I still have basic things to find out like the host operating system, etc, what are some other questions I should ask? I'd be more than happy to take an open source existing package and configure it for them. If they have a unix system and there is an open-source package that meets their needs, what would you suggest as a charge for it? How many hours would you expect to spend on it? I'm inclined, as it's a friend of a friend, to be very easy on cost, especially as I'm not a great programmer and it'd take me more hours to make things work. Of course, it is a profitable company and they sell stuff I like, so I may just as for payment in kind. :) Anyway, sorry to ramble. I'm trying to figure this one out, grab it if its a good challenge and politely decline if it's not a good fit for them or I. Any wisdom you care to impart? ciao! leam From smanes at magpie.com Sat Jan 15 22:59:41 2005 From: smanes at magpie.com (Steve Manes) Date: Sat, 15 Jan 2005 22:59:41 -0500 Subject: [nycphp-talk] MySQL doubt In-Reply-To: References: <41E965BA.9080809@nostromo.net> Message-ID: <41E9E6AD.3070901@magpie.com> Ophir Prusak wrote: > thanx for the explanations everyone! > > fyi, i did the following two queries which use the same columns but > return a different number of results. Indeed the %30 rule seems to be > the case. If you recall, we had the same situation on Postgresql at Trafficmac with some of those mondo adserver queries which had gobs of duped indices. That's why I built those summary tables. I believe that most SQL engines are smart enough to see that a flat table scan may be faster than diving through an overpopulated index tree. From keithjr at gmail.com Mon Jan 17 14:27:03 2005 From: keithjr at gmail.com (Keith Richardson) Date: Mon, 17 Jan 2005 14:27:03 -0500 Subject: [nycphp-talk] [OT] Gmail security issue - avoid Froogle for a while? In-Reply-To: <26059-36055@sneakemail.com> References: <20050115050915.GA26585@uranus.faber.nom> <20050115054557.GA26785@uranus.faber.nom> <26059-36055@sneakemail.com> Message-ID: <4e1a9bc0501171127152645fe@mail.gmail.com> hmm link is down... do you have a recap of what it said? On Sat, 15 Jan 2005 01:15:01 -0500, inforequest <1j0lkq002 at sneakemail.com> wrote: > Looks like a Froogle link can grab your personal info and access to > Google services data... > > http://www.aviransplace.com/index.php/archives/2005/01/13/serious-flaw-in-froogle-reveals-gmail-accounts/ > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -- Keith Richardson keith at keithjr.net From 1j0lkq002 at sneakemail.com Mon Jan 17 14:43:12 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Mon, 17 Jan 2005 14:43:12 -0500 Subject: [nycphp-talk] [OT] Gmail security issue - avoid Froogle for a while? In-Reply-To: <4e1a9bc0501171127152645fe@mail.gmail.com> References: <20050115050915.GA26585@uranus.faber.nom> <20050115054557.GA26785@uranus.faber.nom> <26059-36055@sneakemail.com> <4e1a9bc0501171127152645fe@mail.gmail.com> Message-ID: <11274-35931@sneakemail.com> Keith Richardson keithjr-at-gmail.com |nyphp dev/internal group use| wrote: >hmm link is down... do you have a recap of what it said? > > >On Sat, 15 Jan 2005 01:15:01 -0500, inforequest ><1j0lkq002 at sneakemail.com> wrote: > > >>Looks like a Froogle link can grab your personal info and access to >>Google services data... >> >>http://www.aviransplace.com/index.php/archives/2005/01/13/serious-flaw-in-froogle-reveals-gmail-accounts/ >> >> >> >> I guess that means it is a legitimate threat ;-) Until they fix it, avoid froogle. It was an html exploit of a froogle security flaw, such that if you browsed Froogle and clicked on a malicious link, it could grab some of your google account info from froogle, and then use it to compromise other google services via your account data (including gmail). Typical demonstration of the hazards of central sign on. -=john andrews PS: here's a copy from Yahoo's cache: 1/13/2005 Serious flaw in Froogle Reveals Gmail Accounts Filed under: * Security * Google ? Aviran Mordo @ 4:24 pm New security flaw in Google?s price comparison engine, Froogle , was discovered by an Israeli hacker. By embedding JavaScript in a URL pointing to Froogle, a hacker can gain access to the user?s Gmail account. The JavaScript redirects the browser to a malicious web site, where the hacker can read the user?s cookie, which contains personal information, such as purchase history, user name and password for Google services. According to Nir Goldshlager, who discovered the flaw, even if the user chooses not to save the cookie, the hacker can still discover the user?s user name and password for other google services such as Google Alerts ,Google Group because google stores a unique number per user that identifies the user is other google services, and the hacker will be able to read this identification number. Source: Ynet (Hebrew) 5 Comments ? The URI to TrackBack this entry is: /http://www.aviransplace.com/index.php/archives/2005/01/13/serious-flaw-in-froogle-reveals-gmail-accounts/trackback// 1. *Froogle security hole gives out Gmail account details* By embedding JavaScript in a URL pointing to Froogle, a hacker can gain access to the user?s Gmail account. The JavaScript redirects the browser to a malicious web site, where the hacker can read the user?s cookie, which contains perso Trackback by Threadwatch.org ? 1/14/2005 @ 11:50 am 2. *Froogle Security Alert* Aviran Mordo is reporting a Serious flaw in Froogle Reveals Gmail Accounts. ?By embedding JavaScript in a URL pointing to Froogle, a hacker can gain access to the user?s Gmail account. The JavaScript redirects the browser to a malicious web? Trackback by Organized Shopping Blog ? 1/14/2005 @ 12:52 pm 3. *Froogle flaw shows Gmail details* A security flaw in Google?s popular e-commerce application, Froogle, has been reported, in which hackers can harvest Gmail account details. Discovered by Israeli hacker Nir Goldshlager, and reported by Aviran Mordo in Serious flaw in Froogle Reveals G? Trackback by Platinax Internet News ? 1/15/2005 @ 5:08 am 4. *Serious flaw in Froogle Reveals Gmail Accounts* Trackback by Donna\?s SecurityFlash ? 1/15/2005 @ 12:00 pm 5. *Gmail is in the sights* Trackback by Rod Trent at myITforum.com ? 1/15/2005 @ 3:04 pm From 1j0lkq002 at sneakemail.com Mon Jan 17 14:48:29 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Mon, 17 Jan 2005 14:48:29 -0500 Subject: [nycphp-talk] [OT] Gmail security issue - avoid Froogle for a while? In-Reply-To: <4e1a9bc0501171127152645fe@mail.gmail.com> References: <20050115050915.GA26585@uranus.faber.nom> <20050115054557.GA26785@uranus.faber.nom> <26059-36055@sneakemail.com> <4e1a9bc0501171127152645fe@mail.gmail.com> Message-ID: <10030-90126@sneakemail.com> Keith Richardson keithjr-at-gmail.com |nyphp dev/internal group use| wrote: >hmm link is down... do you have a recap of what it said? > > >On Sat, 15 Jan 2005 01:15:01 -0500, inforequest ><1j0lkq002 at sneakemail.com> wrote: > > >>Looks like a Froogle link can grab your personal info and access to >>Google services data... >> >>http://www.aviransplace.com/index.php/archives/2005/01/13/serious-flaw-in-froogle-reveals-gmail-accounts/ >> >> For clarity, there are reports it has been fixed (unconfirmed byme). The original report is here (in Hebrew) http://www.ynet.co.il/NonReg/Ext/App/Billing/BillingRegistration/CdaRegBill_RegScreen1_SubsDetails/1,,,00.html?CG=US&HU=/articles/0,7340,L-3031962,00.html A second flaw fixed by google on the same day (but not the same issue) is here: http://www.computerworld.com/securitytopics/security/holes/story/0,10801,98920,00.html The slashdot coverage is here: http://slashdot.org/article.pl?sid=05/01/12/1655246 Since you are reading this via gmail, why doesn't google detect the context and insert a nice big banner ad that says "Froogle has been fixed! Gmail is safe! Be Happy!"... since they CAN. (well, that's what I would do if I worked there) -=john andrews From rahmin at insite-out.com Mon Jan 17 16:10:16 2005 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Mon, 17 Jan 2005 16:10:16 -0500 Subject: [nycphp-talk] xml -> mysql. Navicat? Message-ID: <200501172110.j0HLAGwN032708@webmail2.megamailservers.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From dmintz at davidmintz.org Mon Jan 17 16:29:16 2005 From: dmintz at davidmintz.org (David Mintz) Date: Mon, 17 Jan 2005 16:29:16 -0500 (EST) Subject: [nycphp-talk] if you were teaching PHP... Message-ID: I wonder if any of y'all care to opine about this: If you were teaching an introductory PHP course (no previous programming experience required) and you intended to cover some MySQL, would you teach the "classic" procedural mysql_xxxx API, mysqli, PEAR::DB, or some combination of the above? I taught this class last semester and spent some time on mysql_xxx, followed by PEAR::DB, but next time around I am tempted to require my victims to run MySQL 4.1 and learn about mysqli. Gratefully, --- David Mintz http://davidmintz.org/ "Don't let the liberal media tell you how to think and feel. If you have hatred in your heart, let it out." -- Clayton Bigsby, black white supremacist From Consult at CovenantEDesign.com Mon Jan 17 17:04:58 2005 From: Consult at CovenantEDesign.com (Edward) Date: Mon, 17 Jan 2005 17:04:58 -0500 Subject: [nycphp-talk] if you were teaching PHP... References: Message-ID: <001101c4fce0$962a87a0$45896e41@ced> Dave, I have pointed several friends to your "free-offical/unoffical PHP Class", So, are you planning on taking that 2004 course down? -Edward www.covenantdesign.com ----- Original Message ----- From: "David Mintz" To: Sent: Monday, January 17, 2005 4:29 PM Subject: [nycphp-talk] if you were teaching PHP... > > I wonder if any of y'all care to opine about this: > > If you were teaching an introductory PHP course (no previous programming > experience required) and you intended to cover some MySQL, would you teach > the "classic" procedural mysql_xxxx API, mysqli, PEAR::DB, or some > combination of the above? > > I taught this class last semester and spent some time on mysql_xxx, > followed by PEAR::DB, but next time around I am tempted to require my > victims to run MySQL 4.1 and learn about mysqli. > > Gratefully, > > --- > David Mintz > http://davidmintz.org/ > > "Don't let the liberal media tell you how to think and feel. If you have > hatred in your heart, let it out." > > -- Clayton Bigsby, black white supremacist > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From mitch.pirtle at gmail.com Mon Jan 17 17:08:19 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Mon, 17 Jan 2005 17:08:19 -0500 Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: References: Message-ID: <330532b605011714084c0b87d3@mail.gmail.com> Depends on where you want your students to be at the end of the course. Do you want them to be limited to writing native mysqli calls, or have an understanding of how to use whatever database was available? If the course is on php development, then you should show them how to write database independent code, and then show what the cons/pros are of writing the apps with the native libraries instead. I mean, it is easy to understand how to work with native libraries, but the more abstract nuances of using classes is always better explained in the flesh, no? Database abstraction is a perfect scenario to illustrate the benefits of an OO-based approach. -- Mitch From dmintz at davidmintz.org Mon Jan 17 17:26:06 2005 From: dmintz at davidmintz.org (David Mintz) Date: Mon, 17 Jan 2005 17:26:06 -0500 (EST) Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: <001101c4fce0$962a87a0$45896e41@ced> References: <001101c4fce0$962a87a0$45896e41@ced> Message-ID: On Mon, 17 Jan 2005, Edward wrote: > Dave, > I have pointed several friends to your "free-offical/unoffical PHP Class", > So, are you planning on taking that 2004 course down? > Not exactly. I will keep it there but update the content. Glad you thought someone would find it useful (-: --- David Mintz http://davidmintz.org/ "Don't let the liberal media tell you what to think and feel. If you have hatred in your heart, let it out." -- Clayton Bigsby, black white supremacist From dmintz at davidmintz.org Mon Jan 17 17:34:27 2005 From: dmintz at davidmintz.org (David Mintz) Date: Mon, 17 Jan 2005 17:34:27 -0500 (EST) Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: <330532b605011714084c0b87d3@mail.gmail.com> References: <330532b605011714084c0b87d3@mail.gmail.com> Message-ID: Thanks Mitch, points well taken. My thinking was, this is PHP and MySQL is immensely popular, so let's show them one native PHP MySQL API and let's show them PEAR. There isn't time to get into both mysql_xxxx and mysqli_xxx, so I have to choose one. The former is of course still widely used, but the latter is the way of the future, or so I assume. Of course, I try mightily to teach them principles, terminology and self-teaching skills such as RTFM, so they should be reasonably prepared to self-teach whatever we don't get into. On Mon, 17 Jan 2005, Mitch Pirtle wrote: > Depends on where you want your students to be at the end of the > course. Do you want them to be limited to writing native mysqli calls, > or have an understanding of how to use whatever database was > available? > > If the course is on php development, then you should show them how to > write database independent code, and then show what the cons/pros are > of writing the apps with the native libraries instead. > > I mean, it is easy to understand how to work with native libraries, > but the more abstract nuances of using classes is always better > explained in the flesh, no? Database abstraction is a perfect scenario > to illustrate the benefits of an OO-based approach. --- David Mintz http://davidmintz.org/ "Don't let the liberal media tell you what to think and feel. If you have hatred in your heart, let it out." -- Clayton Bigsby, black white supremacist From dcech at phpwerx.net Mon Jan 17 18:37:32 2005 From: dcech at phpwerx.net (Dan Cech) Date: Mon, 17 Jan 2005 18:37:32 -0500 Subject: [nycphp-talk] cURL login to Squirrelmail In-Reply-To: <691D8258-5763-11D9-AD23-000A95BE04BE@geeksociety.com> References: <691D8258-5763-11D9-AD23-000A95BE04BE@geeksociety.com> Message-ID: <41EC4C3C.5050009@phpwerx.net> Jeffrey Stevison wrote: > I'm using the following to automatically login users to their web based > email from our intranet. I get a message from the browser "Can't open > page blah because it could not load any data from this location" I managed to get the cURL call to work in that it can successfully log in, however you can't just redirect the user this simply. The problem is that sqmail remembers the user by setting cookies, if you log them in this way it can't set the required cookies and the user would be logged out again as soon as they clicked on anything. The easiest way to make a 'my email' link is to use a hidden form which points to 'http://mysite/webmail/src/redirect.php'. Something like this ought to do the trick:
If you really don't want to have the password on the page it may be possible to use the curl request to get the headers then parse out the cookies and set them on the user's machine, though this will most likely require that your script and the sqmail instance are on the same domain. Dan > I'm not sure if the problem is with my cURL code or squirrelmail. Here > is the code: > > session_start(); > > $ch = curl_init(); > > curl_setopt($ch, CURLOPT_URL,"http://mysite/webmail/src/redirect.php"); > curl_setopt($ch, CURLOPT_POST, 1); > curl_setopt($ch, CURLOPT_POSTFIELDS, > "login_username=".$_SESSION['Username']."&secretkey=".$_SESSION['Passwor > d']."&js_autodetect_results=0&just_logged_in=1"); > curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1); > > curl_exec ($ch); > curl_close ($ch); > > > Jeff > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.newyorkphp.org From 1j0lkq002 at sneakemail.com Mon Jan 17 19:14:23 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Mon, 17 Jan 2005 19:14:23 -0500 Subject: [nycphp-talk] if you were teaching PHP... Message-ID: <20818-04556@sneakemail.com> Hmmm.. snce you asked... You teach them PHP and then you get to the database concept. So you need to step outside of PHP and show them MySql by itself (just show them.. that means you do all the work, they don't need to know it all, but you show them command line mysql like you were preparing for a dynamic website. All MySQL. Then you step out of MySql and *discuss* how PHP can integrate the database with the website.... call on mysql for data, generate HTMl etc. Still no PHP-mysql coding, just mysql commands and PHP coding. Then, since this all makes great sense and they have seen the power of MySql and understand how HP should be able to automate the crap out of that commandline process, yu give them a real-world dose of coding mysql in php. That's manual coding with num_rows and fetches and all. Sur eit's tedious but it's didactic, and you're the one who chose to be a teacher ;-) Once it is clear what a PITA this PHP-MySql thing is, suggest that other dbms/file systems might be better suited. Take a peek at sql lite, php itself without a db/fs, and hopefully you've made the point that MySql is nutritious. Maybe mention postgres as that other unwieldy open source one; jst to be fair ;-) Now at this point they see that databases are 1.) alot of work 2.) tedious and repetitive and 3.) essential for many website projects. Your success will depend on your ability to sow them the vision of a properly integrated PHP/MySql system...CSS and all. Not always as easy as it sounds. Only then would I go into PEAR:DB and abstraction. I would approach it via the concept of abstraction. That way you get to start them on a path towards writing their own MySql function libraries, since they "know" php. Now quickly abandon that crazy idea, adopt PEAR based on it's claims and Dan's evident genious and utmost confidence in it, demonstrate the commitment required and the platform dependencies (maybe this will introduce them to the idea of third-party dependencies?), and hopefully nudge them conceptually towards the concept of interfaces and OOP. Since it is a first course, this deeper stuff is meant to wet their appetite -- PHP as advanced such that it really has conquered the practical issues but the programmer needs to master the concepts in addition to developing coding skillz. But all of that is not available to every PHP programmer. As it gets deep, be sure to provide practical "but here's what we realy do" examples. Don't be afraid of coding mysql queries for small projects; don't get to deep into custom abstraction; don't be afraid of PEAR but understand what you're getting into when you adopt it; understand how PHP addressed the core issues with mysqli, available at your nearest $5/month hosting company any century now; and of course emphasize how separation of data management from coding from designing from information architecture **FROM SEO REQUIREMENTS** is so essnetial for anything larger than you local church website. Phew. Good luck! -=john andrews Original Message: ----------------- From: David Mintz dmintz-at-davidmintz.org |nyphp dev/internal group use| ... Date: Mon, 17 Jan 2005 17:34:27 -0500 (EST) To: talk at lists.nyphp.org Subject: Re: [nycphp-talk] if you were teaching PHP... Thanks Mitch, points well taken. My thinking was, this is PHP and MySQL is immensely popular, so let's show them one native PHP MySQL API and let's show them PEAR. There isn't time to get into both mysql_xxxx and mysqli_xxx, so I have to choose one. The former is of course still widely used, but the latter is the way of the future, or so I assume. Of course, I try mightily to teach them principles, terminology and self-teaching skills such as RTFM, so they should be reasonably prepared to self-teach whatever we don't get into. On Mon, 17 Jan 2005, Mitch Pirtle wrote: > Depends on where you want your students to be at the end of the > course. Do you want them to be limited to writing native mysqli calls, > or have an understanding of how to use whatever database was > available? > > If the course is on php development, then you should show them how to > write database independent code, and then show what the cons/pros are > of writing the apps with the native libraries instead. > > I mean, it is easy to understand how to work with native libraries, > but the more abstract nuances of using classes is always better > explained in the flesh, no? Database abstraction is a perfect scenario > to illustrate the benefits of an OO-based approach. --- David Mintz http://davidmintz.org/ "Don't let the liberal media tell you what to think and feel. If you have hatred in your heart, let it out." -- Clayton Bigsby, black white supremacist _______________________________________________ New York PHP Talk Supporting AMP Technology (Apache/MySQL/PHP) http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From 1j0lkq002 at sneakemail.com Mon Jan 17 19:25:59 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Mon, 17 Jan 2005 19:25:59 -0500 Subject: [nycphp-talk] SEO Search Engine optimization, Website optimization, PHP talk next week in NYC Message-ID: <26469-24647@sneakemail.com> I am locking down the outline of next weeks NYPHP meeting talk on SEO considerations on LAMP (see htp://ww.nyphp.org for details). I am now offering a "last call" to anyone who wants to suggest that some particular topic get included, or question addressed. SEO(SEM, website optimization, ROI, marketing, or whatever you want to call it today) is so broad and encompasses so much, we'll touch on a small fraction. I have of course included my favorite topics, and the ones I think can best highlight/demonstrate the opportunities for PHP. If anyone would like to sugest anything please post or email to me and I'll be sure and give it consideration. Also, if you have a website you would not mind used as an example, send me the URL. -=john andrews -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From jlacey at att.net Mon Jan 17 21:00:02 2005 From: jlacey at att.net (John Lacey) Date: Mon, 17 Jan 2005 19:00:02 -0700 Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: References: Message-ID: <41EC6DA2.9050506@att.net> David Mintz wrote: > I wonder if any of y'all care to opine about this: > > If you were teaching an introductory PHP course (no previous programming > experience required) and you intended to cover some MySQL, would you teach > the "classic" procedural mysql_xxxx API, mysqli, PEAR::DB, or some > combination of the above? > > I taught this class last semester and spent some time on mysql_xxx, > followed by PEAR::DB, but next time around I am tempted to require my > victims to run MySQL 4.1 and learn about mysqli. > Since abstraction is "hiding" the classic procedural, meaning you have to ultimately talk to MySQL, or any database, with what it understands, I'd teach them both. First, the classic, then the abstract (PEAR). Given the amount of time, I would cover PEAR::DB over against ADODB for the simple fact that there is a lot more happenin' in PEAR and they should be exposed to what it offers--besides DB abstraction. Of course, it wouldn't hurt to provide an example of ADODB where they don't have to actually code and run it. As to learning the syntax of basic SQL statements, I'd spend some time entering basic SQL commands using the MySQL command line client (demo the MySQL GUI too!) before coding it in PHP. That said, I would also make sure they learn mysqli. If that sounds like a lot, it is. I'm sure anyone who has taught (and learned!) programming appreciates the time that can be saved by providing partially coded examples (for a worksession) where they only have to complete a small percentage of the code. After all, it's not a data entry or typing class. You can provide complete examples as a part of the course documentation. They need to walk away with a good representation of what they are actually going to run into "out there". It pretty much boils down to how much time they have for *doing*. I'd rather cover 70% of "the material" and have them feel comfortable with 90-95% of it rather than trying for "100%" of the material and have them feel comfortable with 65-70%. It's about building confidence as well as skills. At the end of a class, I want them to say: "Wow, I really learned a lot!" and *not* "The instructor was really knowledgable". my $0.02 for what it's worth, John From prusak at gmail.com Mon Jan 17 22:11:17 2005 From: prusak at gmail.com (Ophir Prusak) Date: Mon, 17 Jan 2005 22:11:17 -0500 Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: References: Message-ID: I won't repeat what other people have already said (which are great answers) but I do have another angle to throw in the mix. Most people will, at some point, will be involved with code that they didn't write. When I teach PHP, apart from the goal of teaching students how to create their own applications, I also try to give them the knowledge needed to understand other people's code. Either at a workplace, or reading the source of an open source package. Ophir On Mon, 17 Jan 2005 16:29:16 -0500 (EST), David Mintz wrote: > > I wonder if any of y'all care to opine about this: > > If you were teaching an introductory PHP course (no previous programming > experience required) and you intended to cover some MySQL, would you teach > the "classic" procedural mysql_xxxx API, mysqli, PEAR::DB, or some > combination of the above? > > I taught this class last semester and spent some time on mysql_xxx, > followed by PEAR::DB, but next time around I am tempted to require my > victims to run MySQL 4.1 and learn about mysqli. > > Gratefully, > > --- > David Mintz > http://davidmintz.org/ > > "Don't let the liberal media tell you how to think and feel. If you have > hatred in your heart, let it out." > > -- Clayton Bigsby, black white supremacist > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From prusak at gmail.com Mon Jan 17 22:13:56 2005 From: prusak at gmail.com (Ophir Prusak) Date: Mon, 17 Jan 2005 22:13:56 -0500 Subject: [nycphp-talk] SEO Search Engine optimization, Website optimization, PHP talk next week in NYC In-Reply-To: <26469-24647@sneakemail.com> References: <26469-24647@sneakemail.com> Message-ID: I know this isn't a PHP related issue, but I'd love to hear a little about not over doing it. I know google will penalize you if it thinks you're trying to "spam" it. On Mon, 17 Jan 2005 19:25:59 -0500, inforequest <1j0lkq002 at sneakemail.com> wrote: > I am locking down the outline of next weeks NYPHP meeting talk on SEO > considerations on LAMP (see htp://ww.nyphp.org for details). > > I am now offering a "last call" to anyone who wants to suggest that some > particular topic get included, or question addressed. > > SEO(SEM, website optimization, ROI, marketing, or whatever you want to call > it today) is so broad and encompasses so much, we'll touch on a small > fraction. I have of course included my favorite topics, and the ones I > think can best highlight/demonstrate the opportunities for PHP. > > If anyone would like to sugest anything please post or email to me and I'll > be sure and give it consideration. Also, if you have a website you would > not mind used as an example, send me the URL. > > -=john andrews > > -------------------------------------------------------------------- > mail2web - Check your email from the web at > http://mail2web.com/ . > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From jlacey at att.net Mon Jan 17 23:13:46 2005 From: jlacey at att.net (John Lacey) Date: Mon, 17 Jan 2005 21:13:46 -0700 Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: References: Message-ID: <41EC8CFA.50502@att.net> Ophir Prusak wrote: > I won't repeat what other people have already said (which are great > answers) but I do have another angle to throw in the mix. > > Most people will, at some point, will be involved with code that they > didn't write. > > When I teach PHP, apart from the goal of teaching students how to > create their own applications, I also try to give them the knowledge > needed to understand other people's code. Either at a workplace, or > reading the source of an open source package. > well now, if you want to talk about how to create "the best learning vehicle", we could be travelling back and forth for days... :) J From sajith.ml at gmail.com Tue Jan 18 02:05:32 2005 From: sajith.ml at gmail.com (Sajith A) Date: Tue, 18 Jan 2005 12:35:32 +0530 Subject: [nycphp-talk] Dynamic Textbox Message-ID: I'm trying to add dynamic textboxes in a form. The javscript function to add the textbox is this ----------------------------------------------------------------- function addAttribute() { count++; divA = document.getElementById('divAttribute'); divA.innerHTML = divA.innerHTML + ".... ....."; } ----------------------------------------------------------------- Inside the form i have a block "
" whose contents will change when i click a button which calls the function addAttribute(); Now the function is working fine except that in firefox, innerHTML is not giving the value i typed into the textboxes. So each time i add a textbox, the values i typed into the previously added textboxes are lost. This is happening in firefox only. In ie it is working fine. When i tried to list the elements in firefox, i found that the dynamically added textboxes are not appearing in the list. Yet gmail's "Attach a file" is working fine in mozilla. wondering what they are doing... Has anyone encountered a similar problem before? Any thoughts/alternatives? --------------------------------- s?j?th http://apilgrim.info sajith.ml[at]gmail.com From nestorflorez at earthlink.net Tue Jan 18 02:14:10 2005 From: nestorflorez at earthlink.net (Nestor Florez) Date: Mon, 17 Jan 2005 23:14:10 -0800 (GMT-08:00) Subject: [nycphp-talk] Dynamic Textbox Message-ID: <3834106.1106032450576.JavaMail.root@daisy.psp.pas.earthlink.net> Run javascript: and see if it finds any errors. Also when you enter informaton in the box, wy don't you have a box pop up to display the values of the elements you want to see. It wll help you debug your code. Nestor :-) -----Original Message----- From: Sajith A Sent: Jan 17, 2005 11:05 PM To: NYPHP Talk Subject: [nycphp-talk] Dynamic Textbox I'm trying to add dynamic textboxes in a form. The javscript function to add the textbox is this ----------------------------------------------------------------- function addAttribute() { count++; divA = document.getElementById('divAttribute'); divA.innerHTML = divA.innerHTML + ".... ....."; } ----------------------------------------------------------------- Inside the form i have a block "
" whose contents will change when i click a button which calls the function addAttribute(); Now the function is working fine except that in firefox, innerHTML is not giving the value i typed into the textboxes. So each time i add a textbox, the values i typed into the previously added textboxes are lost. This is happening in firefox only. In ie it is working fine. When i tried to list the elements in firefox, i found that the dynamically added textboxes are not appearing in the list. Yet gmail's "Attach a file" is working fine in mozilla. wondering what they are doing... Has anyone encountered a similar problem before? Any thoughts/alternatives? --------------------------------- s???j???th http://apilgrim.info sajith.ml[at]gmail.com _______________________________________________ New York PHP Talk Supporting AMP Technology (Apache/MySQL/PHP) http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From sajith.ml at gmail.com Tue Jan 18 03:29:45 2005 From: sajith.ml at gmail.com (Sajith A) Date: Tue, 18 Jan 2005 13:59:45 +0530 Subject: [nycphp-talk] Dynamic Textbox In-Reply-To: <3834106.1106032450576.JavaMail.root@daisy.psp.pas.earthlink.net> References: <3834106.1106032450576.JavaMail.root@daisy.psp.pas.earthlink.net> Message-ID: > Run javascript: and see if it finds any errors. > Also when you enter informaton in the box, wy don't you > have a box pop up to display the values of the elements > you want to see. It wll help you debug your code. It is not a matter of javascript error..Mozilla is not retaining with values i typed into the textbox while taking innerHTML for the div. However ie is retaining it. Thank you for your time. Sajith A From dmintz at davidmintz.org Tue Jan 18 10:20:16 2005 From: dmintz at davidmintz.org (David Mintz) Date: Tue, 18 Jan 2005 10:20:16 -0500 (EST) Subject: [nycphp-talk] Dynamic Textbox In-Reply-To: References: <3834106.1106032450576.JavaMail.root@daisy.psp.pas.earthlink.net> Message-ID: I predict that somebody will point out this thread really ought to be on the front-end list (-: On Tue, 18 Jan 2005, Sajith A wrote: > > Run javascript: and see if it finds any errors. > > Also when you enter informaton in the box, wy don't you > > have a box pop up to display the values of the elements > > you want to see. It wll help you debug your code. > > It is not a matter of javascript error..Mozilla is not retaining with > values i typed into the textbox while taking innerHTML for the div. > However ie is retaining it. Thank you for your time. > > Sajith A > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > --- David Mintz http://davidmintz.org/ "Don't let the liberal media tell you what to think and feel. If you have hatred in your heart, let it out." -- Clayton Bigsby, black white supremacist From dmintz at davidmintz.org Tue Jan 18 10:35:08 2005 From: dmintz at davidmintz.org (David Mintz) Date: Tue, 18 Jan 2005 10:35:08 -0500 (EST) Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: <41EC8CFA.50502@att.net> References: <41EC8CFA.50502@att.net> Message-ID: Gentlemen, Thanks a million. For brevity's sake I didn't go into the approaches and techniques that I used last time, and it's reassuring to see that several things you advise are exactly the things I do (e.g., when you get to MySQL, first teach MySQL as MySQL independently, and then get into how PHP talks to MySQL). Of course, I'm still not settled on the mysql(i) curriculum question that brought me here, but what else is new? With this as with so many other questions, you gather information, then make your own decision; there's no one omniscient patriarch or omnipotent authority to tell you what to do. (Hmm, good sermon to put into one of my lectures (-: ) --- David Mintz http://davidmintz.org/ "Don't let the liberal media tell you what to think and feel. If you have hatred in your heart, let it out." -- Clayton Bigsby, black white supremacist From mitch.pirtle at gmail.com Tue Jan 18 10:41:43 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Tue, 18 Jan 2005 10:41:43 -0500 Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: References: <41EC8CFA.50502@att.net> Message-ID: <330532b605011807416175fae@mail.gmail.com> On Tue, 18 Jan 2005 10:35:08 -0500 (EST), David Mintz wrote: > > Of course, I'm still not settled on the mysql(i) curriculum question that > brought me here, but what else is new? With this as with so many other > questions, you gather information, then make your own decision; there's > no one omniscient patriarch or omnipotent authority to tell you what to > do. (Hmm, good sermon to put into one of my lectures (-: ) That's exactly why database abstraction is a necessity - with PEAR's DB or ADOdb it doesn't matter if you need mysql or mysqli (or any other database)... -- Mitch From Consult at CovenantEDesign.com Tue Jan 18 10:41:48 2005 From: Consult at CovenantEDesign.com (Edward) Date: Tue, 18 Jan 2005 10:41:48 -0500 Subject: [nycphp-talk] if you were teaching PHP... References: <41EC8CFA.50502@att.net> Message-ID: <000f01c4fd74$4652ed50$45896e41@ced> Dave, Interesting you would chose the word "sermon" :> hmmm. :P -Edward ----- Original Message ----- From: "David Mintz" To: "NYPHP Talk" Sent: Tuesday, January 18, 2005 10:35 AM Subject: Re: [nycphp-talk] if you were teaching PHP... > > Gentlemen, > > Thanks a million. > > For brevity's sake I didn't go into the approaches and techniques that I > used last time, and it's reassuring to see that several things you advise > are exactly the things I do (e.g., when you get to MySQL, first teach > MySQL as MySQL independently, and then get into how PHP talks to MySQL). > > Of course, I'm still not settled on the mysql(i) curriculum question that > brought me here, but what else is new? With this as with so many other > questions, you gather information, then make your own decision; there's > no one omniscient patriarch or omnipotent authority to tell you what to > do. (Hmm, good sermon to put into one of my lectures (-: ) > > --- > David Mintz > http://davidmintz.org/ > > "Don't let the liberal media tell you what to think > and feel. If you have hatred in your heart, let it out." > > -- Clayton Bigsby, black white supremacist > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From dmintz at davidmintz.org Tue Jan 18 11:01:31 2005 From: dmintz at davidmintz.org (David Mintz) Date: Tue, 18 Jan 2005 11:01:31 -0500 (EST) Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: <330532b605011807416175fae@mail.gmail.com> References: <41EC8CFA.50502@att.net> <330532b605011807416175fae@mail.gmail.com> Message-ID: On Tue, 18 Jan 2005, Mitch Pirtle wrote: > On Tue, 18 Jan 2005 10:35:08 -0500 (EST), David Mintz > wrote: > > > > Of course, I'm still not settled on the mysql(i) curriculum question that > > brought me here, but what else is new? With this as with so many other > > questions, you gather information, then make your own decision; there's > > no one omniscient patriarch or omnipotent authority to tell you what to > > do. (Hmm, good sermon to put into one of my lectures (-: ) > > That's exactly why database abstraction is a necessity - with PEAR's > DB or ADOdb it doesn't matter if you need mysql or mysqli (or any > other database)... PEAR is in there, absolutely. The only question is which if any native PHP MySQL API to cover in addition. --Mintz From codebowl at gmail.com Tue Jan 18 12:28:53 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 18 Jan 2005 12:28:53 -0500 Subject: [nycphp-talk] [OT] PHP Email And GMail Message-ID: <8d9a428005011809287cb6eb80@mail.gmail.com> Hello Everyone, does gmail handle it's headers differently than other email services / clients? I have setup a script that sends a contact form information as a very basic HTML email, however in gmail it doesnt accept the headers, instead it prints them as part of the message. Yahoo on the other hand it works perfect with. Here is the source of the email according to GMail X-Gmail-Received: 4ce33c49d6168d040d1878e9ecd7e0b4b77217f8 Delivered-To: codebowl at gmail.com Received: by 10.38.78.7 with SMTP id a7cs11736rnb; Tue, 18 Jan 2005 09:24:46 -0800 (PST) Received: by 10.38.76.77 with SMTP id y77mr179306rna; Tue, 18 Jan 2005 09:24:46 -0800 (PST) Return-Path: Received: from work.codebowl.com (69-173-187-56.sbtnvt.adelphia.net [69.173.187.56]) by mx.gmail.com with ESMTP id 63si154602rna.2005.01.18.09.24.44; Tue, 18 Jan 2005 09:24:46 -0800 (PST) Received-SPF: neutral (gmail.com: 69.173.187.56 is neither permitted nor denied by domain of nobody at work.codebowl.com) Received: by work.codebowl.com (Postfix, from userid 65534) id 8D77F624312; Tue, 18 Jan 2005 12:23:57 -0500 (EST) To: codebowl at gmail.com Subject: New Contact Form Information MIME-Version: 1.0 this is where the body seems to start, everything below here is in the email body and not the headers. Content-type: text/html; charset=iso-8859-1 From: Hamilton Park Reply-To: blah at blah.com Message-ID: <9b7ce5c8fef013fe13cac23be9dd766a at codebowl.homelinux.net> X-Mailer: PHP/4.3.10 Date: Tue, 18 Jan 2005 12:23:57 -0500 (EST) These are the headers according to yahoo mail X-Apparently-To: codebowl at yahoo.com via 66.218.95.67; Tue, 18 Jan 2005 09:17:59 -0800 Authentication-Results: mta107.mail.sc5.yahoo.com from=blah.com; domainkeys=neutral (no sig) X-Originating-IP: [69.173.187.56] Return-Path: Received: from 69.173.187.56 (EHLO work.codebowl.com) (69.173.187.56) by mta107.mail.sc5.yahoo.com with SMTP; Tue, 18 Jan 2005 09:17:59 -0800 Received: by work.codebowl.com (Postfix, from userid 65534) id EC143624312; Tue, 18 Jan 2005 12:17:12 -0500 (EST) To: codebowl at yahoo.com Subject: New Contact Form Information MIME-Version: 1.0 Content-type: text/html; charset=iso-8859-1 From: "Hamilton Park" Add to Address BookAdd to Address Book Reply-to: blah at blah.com Message-ID: <849c29709fbe3f1d203083d0c763c64b at codebowl.homelinux.net> X-Mailer: PHP/4.3.10 Date: Tue, 18 Jan 2005 12:17:12 -0500 (EST) Content-Length: 291 -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From codebowl at gmail.com Tue Jan 18 12:44:52 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 18 Jan 2005 12:44:52 -0500 Subject: [nycphp-talk] Re: [OT] PHP Email And GMail In-Reply-To: <8d9a428005011809287cb6eb80@mail.gmail.com> References: <8d9a428005011809287cb6eb80@mail.gmail.com> Message-ID: <8d9a4280050118094430e620da@mail.gmail.com> i should also note that for some odd reason they are not sent to the email addresses such as jcrawford at codebowl.com, never shows up in my inbox :( -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From codebowl at gmail.com Tue Jan 18 12:47:13 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 18 Jan 2005 12:47:13 -0500 Subject: [nycphp-talk] Re: [OT] PHP Email And GMail In-Reply-To: <8d9a4280050118094430e620da@mail.gmail.com> References: <8d9a428005011809287cb6eb80@mail.gmail.com> <8d9a4280050118094430e620da@mail.gmail.com> Message-ID: <8d9a428005011809471e2eee26@mail.gmail.com> ere are the headers i am using from my PHP code $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: ".$org_name." <".$reply_email.">\r\n"; $headers .= "Reply-To: ".$reply_email."\r\n"; $headers .= "Message-ID: <".md5(uniqid(time()))."@{$_SERVER['SERVER_NAME']}>\r\n"; $headers .= "X-Mailer: Microsoft Office Outlook, Build 11.0.5510\r\n"; $headers .= "X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441\r\n"; -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From lists at zaunere.com Tue Jan 18 16:04:41 2005 From: lists at zaunere.com (Hans Zaunere) Date: Tue, 18 Jan 2005 16:04:41 -0500 Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: Message-ID: <20050118205956.9713699D8@mailrelay.t-mobile.com> > > That's exactly why database abstraction is a necessity - with PEAR's > > DB or ADOdb it doesn't matter if you need mysql or mysqli (or any > > other database)... Yes, but you then don't get any of the benefit of a particular database's API. Not to knock PEAR::DB, but it can't possibly be aware of each feature available in the various DB's. > PEAR is in there, absolutely. The only question is which if any native PHP > MySQL API to cover in addition. Those who know me know I don't favor DB abstraction, so this will be biased, and frankly I don't know that much about PEAR::DB. Can it support prepared statements? Can it support cursors (server side)? Can it support collation? etc... While DB abstraction can be useful for simple apps, and is something worth learning about, large applications never use generic abstraction, since they are rarely deployed on multiple databases. That said, abstraction within the application - that is, "custom" abstraction written specifically in the application, and for their database - can add a lot of value, since it can expose the needed features for that db/app combo. Lastly, knowing how a database works, and thus how to talk to it in the most efficient manner, is central in a successful and scalable application. --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org Gmail: The 1gb spam catcher From 1j0lkq002 at sneakemail.com Tue Jan 18 16:16:07 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Tue, 18 Jan 2005 16:16:07 -0500 Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: <20050118205956.9713699D8@mailrelay.t-mobile.com> References: <20050118205956.9713699D8@mailrelay.t-mobile.com> Message-ID: <30533-54803@sneakemail.com> Hans Zaunere lists-at-zaunere.com |nyphp dev/internal group use| wrote: >While DB abstraction can be useful for simple apps, and is something worth learning about, large applications never use generic abstraction, since they are rarely deployed on multiple databases. > >That said, abstraction within the application - that is, "custom" abstraction written specifically in the application, and for their database - can add a lot of value, since it can expose the needed features for that db/app combo. Lastly, knowing how a database works, and thus how to talk to it in the most efficient manner, is central in a successful and scalable application. > >--- >Hans Zaunere >President, Founder >New York PHP >http://www.nyphp.org > > Okay so let's be honest. How many real world applications have actually been scaled up without a rewrite of the database? C'mon... a show of hands would be nice. -=cynic From greg at click3x.com Tue Jan 18 16:35:24 2005 From: greg at click3x.com (Greg Faber) Date: Tue, 18 Jan 2005 16:35:24 -0500 Subject: [nycphp-talk] how much to charge? Message-ID: Hello, I need some advice to find out how much I should charge for this thing... I created this simple content-management app for my boss. It allows him to create "extranets" for clients and then post stills, movie clips and other documents to the extranets so the clients can view and approve them. It's been online for about a year now and I've made some improvements to it, because of feedback I got from users. It's got all the standard login forms, user creation forms, etc. It was also the first real app I ever built in php. Anyway, there's a number of clients who like this extranet thing and have asked me to build them one too. My question is this, how much should I charge? Knowing that I "developed" it while I was at work (though web programming is NOT the core of my work, it was more like a side project). It really wouldn't require me to do much more programming, just setting up their DB, phpmyadmin, etc, change the look a little bit (color scheme and so on). Also, some of the interested parties are "production companies" who budgeted over 100 Grand for some TV commercials, but also there's some individual artists (editors, special fx artists) who asked me to build them one too. So how much should I charge for the company, and how much should I charge the individual? thanks for your input, Greg From rahmin at insite-out.com Tue Jan 18 16:54:22 2005 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Tue, 18 Jan 2005 16:54:22 -0500 Subject: [nycphp-talk] how much to charge? Message-ID: <200501182154.j0ILsMwN006972@webmail2.megamailservers.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From matt at jobsforge.com Tue Jan 18 16:58:41 2005 From: matt at jobsforge.com (Matthew Terenzio) Date: Tue, 18 Jan 2005 16:58:41 -0500 Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: <30533-54803@sneakemail.com> References: <20050118205956.9713699D8@mailrelay.t-mobile.com> <30533-54803@sneakemail.com> Message-ID: <1DAFBA42-699C-11D9-87B6-0003938BDF32@jobsforge.com> On Jan 18, 2005, at 4:16 PM, inforequest wrote: > Okay so let's be honest. How many real world applications have > actually been scaled up without a rewrite of the database? C'mon... a > show of hands would be nice. > > -=cynic That may be true, but if you are really big on PL/pgSQL, for instance , migration to MySQL is going to be a lot more than recreating the DB tables and deciding how best a Postgres boolean will be represented in MySQL. In fact, unless great care is taken in representing data types alone, (I think Daniel has a Power point about this somewhere), it's going to be as much work recreating the DB as it is porting the PHP code. here's the presentation I mentioned up there: http://www.analysisandsolutions.com/presentations/portability/slides/ index.htm From matt at jobsforge.com Tue Jan 18 17:01:34 2005 From: matt at jobsforge.com (Matthew Terenzio) Date: Tue, 18 Jan 2005 17:01:34 -0500 Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: <1DAFBA42-699C-11D9-87B6-0003938BDF32@jobsforge.com> References: <20050118205956.9713699D8@mailrelay.t-mobile.com> <30533-54803@sneakemail.com> <1DAFBA42-699C-11D9-87B6-0003938BDF32@jobsforge.com> Message-ID: <84DA5976-699C-11D9-87B6-0003938BDF32@jobsforge.com> On Jan 18, 2005, at 4:58 PM, Matthew Terenzio wrote: > n fact, unless great care is taken in representing data types alone, > (I think Daniel has a Power point about this somewhere), it's going to > be as much work recreating the DB as it is porting the PHP code. Sorry about the Power Point line. It's a presentation. Kind of like kleenex or band aids, there. From list at harveyk.com Tue Jan 18 17:15:21 2005 From: list at harveyk.com (harvey) Date: Tue, 18 Jan 2005 17:15:21 -0500 Subject: [nycphp-talk] how much to charge? In-Reply-To: <200501182154.j0ILsMwN006972@webmail2.megamailservers.com> References: <200501182154.j0ILsMwN006972@webmail2.megamailservers.com> Message-ID: <6.2.0.14.0.20050118170852.03aba678@mail.harveyk.com> > >Knowing that I "developed" it while I was at work (though web > >programming is NOT the core of my work, it was more like a side > >project). > >You should look into who legally owns your work. It may be the company >and not >you the individual. If you developed the code at work while "on the clock", it is not yours. It's a "work for hire" and the copyright belongs to your employer. http://biz.findlaw.com/intellectual_property/source/faqs/faq292.html "A copyright is owned by the artist who created the work, unless the artist sells the copyright or the work was "made for hire." Generally speaking, work made for hire is something that was created by an employee while on the job, or by an independent contractor who was hired to create the work. The copyright on work made for hire belongs to the employer or the party who commissioned the work. An employee who writes an article, designs a web page, creates a computer program, or draws an illustration for a company publication is creating a work for hire. Even if the artist is not technically an employee, if a court determines an employment relationship exists between the artist and the employer, the artist will not own the copyright on his or her work. If an employee creates a work on his own time, it probably is not work for hire, even if the employee uses it on the job. ..." From lists at zaunere.com Tue Jan 18 17:32:44 2005 From: lists at zaunere.com (Hans Zaunere) Date: Tue, 18 Jan 2005 17:32:44 -0500 Subject: [nycphp-talk] xml -> mysql. Navicat? In-Reply-To: <200501172110.j0HLAGwN032708@webmail2.megamailservers.com> Message-ID: <20050118223257.7B861A85F3@virtu.nyphp.org> > I have about 1800 xml files I'd like to import to MySQL, but I seem to be coming > up short on my googling. Most roads lead to a product called Navicat, which > looks MySQL-Frontish. Has anyone used this? Their demo looks decent enough. I've used Navicat, although not for XML purposes. It is a great product, and I've seen it recommended to customers for XML and MySQL. > We don't need all the fields, and I do need to massage the data after the fact, > but I was thinking of just doing a straight dump and managing all the content on > the SQL side. I have no problem writing a parser to only grab what I need, but > it is a lot of content to go through, and phpMyAdmin 2.5.7 doesn't seem to have > an XML import util. We're using PHP 4.3.7. Thoughts? Yeah, phpMyAdmin is likely to fall short. Depending on how much data it is, you could just load the whole dataset, and then manipulate it in SQL. Other than that, Navicat should work well, or a quick PHP script to do it (maybe build a CLI version of PHP 5 just for this XML job?) --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org Gmail: The 1gb spam catcher From danielc at analysisandsolutions.com Tue Jan 18 17:33:19 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Tue, 18 Jan 2005 17:33:19 -0500 Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: <84DA5976-699C-11D9-87B6-0003938BDF32@jobsforge.com> References: <20050118205956.9713699D8@mailrelay.t-mobile.com> <30533-54803@sneakemail.com> <1DAFBA42-699C-11D9-87B6-0003938BDF32@jobsforge.com> <84DA5976-699C-11D9-87B6-0003938BDF32@jobsforge.com> Message-ID: <20050118223319.GA15132@panix.com> Hey Matthew: On Tue, Jan 18, 2005 at 05:01:34PM -0500, Matthew Terenzio wrote: > > Sorry about the Power Point line. It's a presentation. Kind of like > kleenex or band aids, there. I was going to say something about that accusation. :) It's HTML. Anyway, thanks for plugging the presentation. I recently fixed the bug in it you mentioned. Thanks. 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 1j0lkq002 at sneakemail.com Tue Jan 18 17:52:23 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Tue, 18 Jan 2005 17:52:23 -0500 Subject: [nycphp-talk] how much to charge? Message-ID: <22564-84674@sneakemail.com> Original Message: ----------------- From: harvey list-at-harveyk.com |nyphp dev/internal group use| ... Date: Tue, 18 Jan 2005 17:15:21 -0500 To: talk at lists.nyphp.org Subject: Re: [nycphp-talk] how much to charge? > >Knowing that I "developed" it while I was at work (though web > >programming is NOT the core of my work, it was more like a side > >project). > >You should look into who legally owns your work. It may be the company >and not you the individual. If you developed the code at work while "on the clock", it is not yours. it's a "work for hire" and the copyright belongs to your employer. http://biz.findlaw.com/intellectual_property/source/faqs/faq292.html << ================================================================== the better question is... why do those other people want to use it? 1. They know how your company has been using it, so they are comfortable choosing it as well. 2. They know you, and are choosing you to make it work for them, too. 3. They have considered all other options (commercial, free/os CMS, blogs, groupware) and determined that yours is the best choice. I would bet it is #1 and #2, in which case you should recognize it is YOU that have value, and not your code. Ask your boss if he wants to be in the business of providing web services like this. If he is, perhaps you'll lead up a new division. If he is not, negotiate a deal where you are free (with written permission) to do this, with this code, and with his clients, on your own. Of course put the raw codd into that document, so that there is a record of exactly what the code is that you worked on while on the clock. later, wen yu re-write the whole thing from scratch without a single copied line of code, this will be important. If it really is #3, then figure out what it is that makes it so unique and ask your boss to either a) pay to get a patent and/or file formal copyright or b) give you a written statement that he does not want to purse intellectual property ownership of it, and you can. The idea that company time means company ownership is not absolute. In many cases the company has to either pursue it or drop it. Of course the hard part is when they know this and they file just enough paper to retain the rights but not enough to make it happen (big corps are already setup that way). It doesn't sound like you are in that spot. Of course I am not a lawyer and have never built a megablockbuster software app or stewarded a dot com success or anything else for that matter, so take this advice for the value of the bandwidth it was ransfered over 9the first time). -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From 1j0lkq002 at sneakemail.com Tue Jan 18 19:42:26 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Tue, 18 Jan 2005 19:42:26 -0500 Subject: [nycphp-talk] of interest - new form of database programming In-Reply-To: References: Message-ID: <24966-56666@sneakemail.com> I thought this was very interesting, and might spark some ideas in this community -=john Data On The Fly - By Daniel Lyons - Forbes.com - January 18, 2004 http://www.forbes.com/2005/01/18/cz_dl_0118streambase.html NEW YORK - Relational databases are great, but not for everything, *Michael Stonebraker* says. He should know. The former computer science professor at University of California, Berkeley is a bit of a legend in the database world, having created two well-known relational database systems, Ingres and Postgres. Ingres, the company Stonebraker founded, is now part of *Computer Associates International* (nyse: CA - news - people ). Stonebraker also founded *Illustra*, a database company that was acquired by *Informix*, which later was acquired by *IBM* (nyse: IBM - news - people ). Now Stonebraker has launched a new database software company to tackle one of the toughest jobs in computing--analyzing huge amounts of streaming data on the fly. It is a job Stonebraker says ordinary database programs made by IBM, *Microsoft* (nasdaq: MSFT - news - people ) and *Oracle* (nasdaq: ORCL - news - people ) simply cannot handle. "Relational databases are one to two orders of magnitude too slow," says Stonebraker, who is chief technology officer at Streambase, a 25-person outfit based in Lexington, Mass. "Big customers have already tried to use relational databases for streaming data and dismissed them. Those products are non-starters in this market." In a recent pilot program, Streambase was able to analyze 140,000 messages per second, while a leading relational database--Stonebraker won't say which one--could handle only 900 messages per second. Streambase has 12 customers now testing its software, all of them financial services companies that need to analyze rapid-fire ticker feeds and other streaming data. Stonebraker calls his product a stream processing engine. On top of that engine, customers write applications to handle specific tasks, using a version of Structured Query Language that traditional database programs use. Streambase's version is called StreamSQL and is designed to handle data on the fly. Unlike traditional database programs, Streambase analyzes data without storing it to disk, performing queries on data as it flows. Traditional systems bog down because they first store data on hard drives or in main memory and then query it, Stonebraker says. The company's approach to making sales is pretty simple: "We ask big customers to point us to their hardest problems. Then we say go home and write the application on our own nickel and come back in a week with it running," Stonebraker says. Streambase grew out of research conducted in computer science departments at the Massachusetts Institute of Technology, where Stonebraker has been teaching, as well as Brown University and Brandeis University. The three universities hold equity stakes in Streambase, alongside venture backers Bessemer Venture Partners and Highland Capital Partners. Streambase runs on industry standard servers running *Intel* (nasdaq: INTC - news - people ) microprocessors and the Linux operating system, and on *Sun Microsystems* (nasdaq: SUNW - news - people ) servers running Solaris. A version that runs on Microsoft Windows will be available soon. Streambase charges customers annual subscriptions for its software, setting prices based on how many CPUs a customer uses to power the software. Typical deals so far have ranged from $100,000 to $300,000 a year, says Barry Morris, Streambase's chief executive. For now Streambase is focusing attention on financial services companies, which hope to do things like track how well traders are performing on a real-time basis, rather than aggregating trades at the end of the day and analyzing them overnight. From codebowl at gmail.com Tue Jan 18 19:58:00 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 18 Jan 2005 19:58:00 -0500 Subject: [nycphp-talk] of interest - new form of database programming In-Reply-To: <24966-56666@sneakemail.com> References: <24966-56666@sneakemail.com> Message-ID: <8d9a428005011816583e067c10@mail.gmail.com> Very Interesting, also very expensive *ouch* i guess i really dont understand how this would work, i see it doesnt store any data on a hard drive, but where does it store it? if it is there for others to grab via stream it must be stored somewhere. This confuses me i guess :D -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From faber at linuxnj.com Tue Jan 18 20:27:00 2005 From: faber at linuxnj.com (Faber Fedor) Date: Tue, 18 Jan 2005 20:27:00 -0500 Subject: [nycphp-talk] Re: of interest - new form of database programming In-Reply-To: <24966-56666@sneakemail.com> References: <24966-56666@sneakemail.com> Message-ID: <20050119012700.GB23336@uranus.faber.nom> On 18/01/05 19:42 -0500, inforequest wrote: > I thought this was very interesting, and might spark some ideas in this > community > -=john > > > > Data On The Fly - By Daniel Lyons - Forbes.com - January 18, 2004 > http://www.forbes.com/2005/01/18/cz_dl_0118streambase.html > > NEW YORK - Relational databases are great, but not for everything, > *Michael Stonebraker* says. I'm wondering if this is the guy whose lecture I attended about two years ago over at Steven's? The lecture was about a new relational database technology and he had Chris Date opening up for him! The interesting part was his basic premise: conceptually, data is stored in rows and columns in tables. That is how the database designers thought of it as well; when they stored the data on the hard drive, they wrote it in rows and columns! This fellow pointed out that there was no need for this and proceeded to show how things could be sped up with a different data structure on the hard drive (something similar to a linked list, IIRC). It was one of those "DOH!" moments. I immediately thought "Open Source people could implement this with no problem!". Too bad I don't code at that level anymore. He then went on to describe some other improvements he had made in the design. I had to leave, but my buddy said he then demonstrated how fast things got and it got the whole room excited. -- Regards, Faber Linux New Jersey: Open Source Solutions for New Jersey http://www.linuxnj.com From mitch.pirtle at gmail.com Tue Jan 18 21:08:30 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Tue, 18 Jan 2005 21:08:30 -0500 Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: <20050118205956.9713699D8@mailrelay.t-mobile.com> References: <20050118205956.9713699D8@mailrelay.t-mobile.com> Message-ID: <330532b605011818085824caf6@mail.gmail.com> On Tue, 18 Jan 2005 16:04:41 -0500, Hans Zaunere wrote: > > Those who know me know I don't favor DB abstraction, so this will be biased, and frankly I don't know that much about PEAR::DB. Can it support prepared statements? Can it support cursors (server side)? Can it support collation? etc... Sounds funny coming from a MySQL guy. (rimshot) > While DB abstraction can be useful for simple apps, and is something worth learning about, large applications never use generic abstraction, since they are rarely deployed on multiple databases. All I can tell you is that after working on sites that get 10 million visitors daily, had I coded anything to a native API the whole thing would have died a horrible death! When you are really pushing the limits, native APIs are what kill you, not save you - as you end up worrying more about scaling and redundancy, where a more generic communication-presentation-application-data layered approach will save your bacon time after time. Something like: Load Balancers <=> Webservers <=> Application Servers <=> Databases As a matter of fact, the biggest site I ever worked on ended up going the java route, where database transparency was one of the main goals. (Not my decision as I had moved on, but you get the point.) If you implement an application that maxes out mysql's functionality for example (mitchy bites tongue), you are then going to lose a lot of effort if you decide to put SQL Relay in front of your database servers. Ok, maybe not logical for MySQL, but for something like Oracle (where OCI connections have lots of overhead) this progression happens frequently, and apps end up getting partially rewritten in order to decouple the logic from the database layer to accomodate the connection pool... > That said, abstraction within the application - that is, "custom" abstraction written specifically in the application, and for their database - can add a lot of value, since it can expose the needed features for that db/app combo. Lastly, knowing how a database works, and thus how to talk to it in the most efficient manner, is central in a successful and scalable application. The first sentence is dead on, and Mambo's database class is a good example. Still native MySQL calls, but nice abstraction to make the interface simple and predictable for 3rd party developers. Knowing how databases work is *critical* to learning how to write useful software, as poorly-designed applications are also difficult to maintain, let alone scale. Which does bring up a great debate - where do you draw the line between portability and native functionality? If you have PostgreSQL or Oracle, then does it make sense to load up all of your DML into the database as stored procedures, for example? I used to think that way, but also was convinced at the time that there were limited options on the database server side; and now that is just not the case, with PostgreSQL and Firebird around (and yes, even MySQL is catching up with 5.0) ;-) Ditto for the HTTP layer - do you write some apache modules for speed, or just keep everything in available (and portable) environments such as PHP/python/etc.? -- Mitch From sajith.ml at gmail.com Tue Jan 18 22:49:57 2005 From: sajith.ml at gmail.com (Sajith A) Date: Wed, 19 Jan 2005 09:19:57 +0530 Subject: [nycphp-talk] Dynamic Textbox In-Reply-To: References: <3834106.1106032450576.JavaMail.root@daisy.psp.pas.earthlink.net> Message-ID: > I predict that somebody will point out this thread really ought to be on > the front-end list Sorry for troubling you with this. It would be a great help to pointout whether NYPHP has such a list. Sajith From lists at zaunere.com Tue Jan 18 22:50:46 2005 From: lists at zaunere.com (Hans Zaunere) Date: Tue, 18 Jan 2005 22:50:46 -0500 Subject: [nycphp-talk] Dynamic Textbox In-Reply-To: Message-ID: <20050119035056.D0B1EA85F3@virtu.nyphp.org> > > I predict that somebody will point out this thread really ought to be on > > the front-end list > Sorry for troubling you with this. It would be a great help to > pointout whether NYPHP has such a list. http://www.nyphp.org/lists H From joshmccormack at travelersdiary.com Tue Jan 18 22:52:33 2005 From: joshmccormack at travelersdiary.com (Josh McCormack) Date: Tue, 18 Jan 2005 22:52:33 -0500 Subject: [nycphp-talk] how much to charge? In-Reply-To: <6.2.0.14.0.20050118170852.03aba678@mail.harveyk.com> References: <200501182154.j0ILsMwN006972@webmail2.megamailservers.com> <6.2.0.14.0.20050118170852.03aba678@mail.harveyk.com> Message-ID: <41EDD981.5020602@travelersdiary.com> harvey wrote: > >> >Knowing that I "developed" it while I was at work (though web >> >programming is NOT the core of my work, it was more like a side >> >project). >> >> You should look into who legally owns your work. It may be the >> company and not >> you the individual. > > > If you developed the code at work while "on the clock", it is not yours. > It's a "work for hire" and the copyright belongs to your employer. > Sounds like you could probably sell this really well, and if you developed the thing "at work", perhaps as you were developing your programming skills, it probably was not done as well as you could do it now. I'd suggest you map out just what you want it to do, rebuild (stronger, faster, better), and make it really pretty. Sell, retire a millionaire, etc. Josh From joshmccormack at travelersdiary.com Tue Jan 18 23:04:50 2005 From: joshmccormack at travelersdiary.com (Josh McCormack) Date: Tue, 18 Jan 2005 23:04:50 -0500 Subject: [nycphp-talk] of interest - new form of database programming In-Reply-To: <8d9a428005011816583e067c10@mail.gmail.com> References: <24966-56666@sneakemail.com> <8d9a428005011816583e067c10@mail.gmail.com> Message-ID: <41EDDC62.1060504@travelersdiary.com> Joseph Crawford wrote: > Very Interesting, > > also very expensive *ouch* > > i guess i really dont understand how this would work, i see it doesnt > store any data on a hard drive, but where does it store it? if it is > there for others to grab via stream it must be stored somewhere. This > confuses me i guess :D > Pure speculation, but could be in memory (RAM), which is increasingly interesting option as price of RAM goes down. Josh From lists at zaunere.com Tue Jan 18 23:13:56 2005 From: lists at zaunere.com (Hans Zaunere) Date: Tue, 18 Jan 2005 23:13:56 -0500 Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: <330532b605011818085824caf6@mail.gmail.com> Message-ID: <20050119041406.EC5B0A85F3@virtu.nyphp.org> > > Those who know me know I don't favor DB abstraction, so this will be biased, and > frankly I don't know that much about PEAR::DB. Can it support prepared statements? > Can it support cursors (server side)? Can it support collation? etc... > > Sounds funny coming from a MySQL guy. (rimshot) Hmm, not sure how to read that one :) > > While DB abstraction can be useful for simple apps, and is something worth > learning about, large applications never use generic abstraction, since they are > rarely deployed on multiple databases. > > All I can tell you is that after working on sites that get 10 million > visitors daily, had I coded anything to a native API the whole thing > would have died a horrible death! When you are really pushing the > limits, native APIs are what kill you, not save you - as you end up > worrying more about scaling and redundancy, where a more generic > communication-presentation-application-data layered approach will save > your bacon time after time. Something like: That's an interesting take, that is, adding code to enforce proper architecture. I see what you're saying, but at the end of the day the more code something executes, the slower it'll be. Now that's not to say a minor abstraction for proper replication handling, for example, isn't a good thing. > Load Balancers <=> Webservers <=> Application Servers <=> Databases > > As a matter of fact, the biggest site I ever worked on ended up going > the java route, where database transparency was one of the main goals. > (Not my decision as I had moved on, but you get the point.) Quite true, and frankly, Java kind of has the best of both worlds. JDBC drivers are "abstractions" but written particularly for that database, ie, they expose the same interface but are native calls themselves. It's a totally different layer of abstraction than, let's say, PEAR::DB. > If you implement an application that maxes out mysql's functionality > for example (mitchy bites tongue), you are then going to lose a lot of > effort if you decide to put SQL Relay in front of your database > servers. Ok, maybe not logical for MySQL, but for something like > Oracle (where OCI connections have lots of overhead) this progression > happens frequently, and apps end up getting partially rewritten in > order to decouple the logic from the database layer to accomodate the > connection pool... Agreed, but this is most often and best done with application layer DB abstraction. Per above, implementing fault tolerance with replication requires some layer of abstraction, but I wouldn't (and couldn't) do it with a generic abstraction. Fault tolerance between, let's say, MySQL and Oracle, just wouldn't work with a generic abstraction that tries to cover PostgreSQL, MSSQL, SQL Lite, Access, Sybase, and TimesTen. > > That said, abstraction within the application - that is, "custom" abstraction > written specifically in the application, and for their database - can add a lot of > value, since it can expose the needed features for that db/app combo. Lastly, > knowing how a database works, and thus how to talk to it in the most efficient > manner, is central in a successful and scalable application. > > The first sentence is dead on, and Mambo's database class is a good > example. Still native MySQL calls, but nice abstraction to make the > interface simple and predictable for 3rd party developers. Agreed 100%; this is application layer database abstraction, not generic. > Knowing how databases work is *critical* to learning how to write > useful software, as poorly-designed applications are also difficult to > maintain, let alone scale. > > Which does bring up a great debate - where do you draw the line > between portability and native functionality? If you have PostgreSQL > or Oracle, then does it make sense to load up all of your DML into the > database as stored procedures, for example? I used to think that way, > but also was convinced at the time that there were limited options on > the database server side; and now that is just not the case, with > PostgreSQL and Firebird around (and yes, even MySQL is catching up > with 5.0) ;-) That actually brings up an excellent point. Stored procedures are the ultimate in database abstraction, and frankly makes the most sense. At the same time, companies are founded and make millions on porting stored procedure code, so in the end, portability is often a marketing term. No database implements the same stored procedure language, and although SQL2003's PSM language is considered standard these days (which MySQL is implementing from scratch after learning the mistakes of everyone else), there's still a porting process to the standard. DB abstraction can happen at various levels, and should. But overly abstracting database access is often more of a hassle than advantage, especially as the complexity of the application increases. And I smell the seeds of a presentation here :) --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org Gmail: The 1gb spam catcher From prusak at gmail.com Wed Jan 19 01:02:05 2005 From: prusak at gmail.com (Ophir Prusak) Date: Wed, 19 Jan 2005 01:02:05 -0500 Subject: [nycphp-talk] of interest - new form of database programming In-Reply-To: <41EDDC62.1060504@travelersdiary.com> References: <24966-56666@sneakemail.com> <8d9a428005011816583e067c10@mail.gmail.com> <41EDDC62.1060504@travelersdiary.com> Message-ID: Read the article folks :) -- quote -- Streambase analyzes data without storing it to disk, performing queries on data as it flows. Traditional systems bog down because they first store data on hard drives or in main memory and then query it, -- end quote -- 1. It isn't storing the data. period. it's just allowing you to query it as it streams. Think of a constant flow of stock market prices as a stream. I'm guessing you can query something like: Select * from stream where symbol = 'IBM' and price > 100; 2. this ISN'T a relational database. the title says "Relational databases are great, but not for everything" I think the term "database" is a bit misleading here, since most people immediately think relational when they hear the term database. Ophir On Tue, 18 Jan 2005 23:04:50 -0500, Josh McCormack wrote: > Joseph Crawford wrote: > > > Very Interesting, > > > > also very expensive *ouch* > > > > i guess i really dont understand how this would work, i see it doesnt > > store any data on a hard drive, but where does it store it? if it is > > there for others to grab via stream it must be stored somewhere. This > > confuses me i guess :D > > > > Pure speculation, but could be in memory (RAM), which is increasingly > interesting option as price of RAM goes down. > > Josh > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From codebowl at gmail.com Wed Jan 19 08:06:13 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 19 Jan 2005 08:06:13 -0500 Subject: [nycphp-talk] of interest - new form of database programming In-Reply-To: References: <24966-56666@sneakemail.com> <8d9a428005011816583e067c10@mail.gmail.com> <41EDDC62.1060504@travelersdiary.com> Message-ID: <8d9a4280050119050642a291a8@mail.gmail.com> yes i understand it is streaming data, however even streaming data has to be stored somehow, you cant just have data on the computer and not stored anywhere :D and if it is streaming what's to say you wont "miss" a quote by not querying at as it is going through the stream? -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From sailer at bnl.gov Wed Jan 19 08:47:03 2005 From: sailer at bnl.gov (Tim Sailer) Date: Wed, 19 Jan 2005 08:47:03 -0500 Subject: [nycphp-talk] of interest - new form of database programming In-Reply-To: <8d9a4280050119050642a291a8@mail.gmail.com> References: <24966-56666@sneakemail.com> <8d9a428005011816583e067c10@mail.gmail.com> <41EDDC62.1060504@travelersdiary.com> <8d9a4280050119050642a291a8@mail.gmail.com> Message-ID: <20050119134702.GB422@bnl.gov> On Wed, Jan 19, 2005 at 08:06:13AM -0500, Joseph Crawford wrote: > yes i understand it is streaming data, however even streaming data has > to be stored somehow, you cant just have data on the computer and not > stored anywhere :D Nope, not true. I have a central log server that just outputs to a pipe. I have scripts that watch the pipe for certain info, and perform certain acts, depending on what they see. I think this is sorta the same thing. > and if it is streaming what's to say you wont "miss" a quote by not > querying at as it is going through the stream? I'm sure that a certain amount is in a read buffer... Tim -- Tim Sailer Information and Special Technologies Program Office of CounterIntelligence Brookhaven National Laboratory (631) 344-3001 From fields at hedge.net Wed Jan 19 09:39:04 2005 From: fields at hedge.net (Adam Fields) Date: Wed, 19 Jan 2005 09:39:04 -0500 Subject: [nycphp-talk] of interest - new form of database programming In-Reply-To: <24966-56666@sneakemail.com> References: <24966-56666@sneakemail.com> Message-ID: <20050119143904.GH24310@lola.aquick.org> On Tue, Jan 18, 2005 at 07:42:26PM -0500, inforequest wrote: [...] > "Relational databases are one to two orders of magnitude too slow," says > Stonebraker, who is chief technology officer at Streambase, a 25-person > outfit based in Lexington, Mass. "Big customers have already tried to > use relational databases for streaming data and dismissed them. Those > products are non-starters in this market." [...] This is not news. Relational databases are widely known to be slow, which is why you have throw things like Oracle at the problem before you get anything close to realtime analytics, and even they fall down a lot. Relational databases, however, are mature and stable. This doesn't sound like an alternative to a relational database, but a complement - you still have to store the data somewhere. I wonder if they've done speed comparisons vs. a relational database that's entirely in memory (or properly tuned). Technique alteration is one thing, but just saying "the whole thing's in RAM" isn't a revolution. -- - Adam ----- ** Internet users who enjoyed this email also clicked on this link to my weblog --> http://www.aquick.org/blog [ http://www.adamfields.com ][ http://del.icio.us/fields ] [ http://www.aquick.org/photoblog ] From dmintz at davidmintz.org Wed Jan 19 10:00:25 2005 From: dmintz at davidmintz.org (David Mintz) Date: Wed, 19 Jan 2005 10:00:25 -0500 (EST) Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: <20050119041406.EC5B0A85F3@virtu.nyphp.org> References: <20050119041406.EC5B0A85F3@virtu.nyphp.org> Message-ID: On Tue, 18 Jan 2005, Hans Zaunere wrote: > > [Mitch wrote ...] > > As a matter of fact, the biggest site I ever worked on ended up going > > the java route, where database transparency was one of the main goals. > > (Not my decision as I had moved on, but you get the point.) > > Quite true, and frankly, Java kind of has the best of both worlds. > JDBC drivers are "abstractions" but written particularly for that > database, ie, they expose the same interface but are native calls > themselves. It's a totally different layer of abstraction than, let's > say, PEAR::DB. > This may be a naive question, but, well... Do you suppose PEAR::DB is written the way it is (rather than more like JDBC) because PHP 4 doesn't support the notion of interfaces? I can imagine a PEAR::DB for PHP 5 whose factory-style constructor returns a class that implements an interface. --- David Mintz http://davidmintz.org/ "Don't let the liberal media tell you what to think and feel. If you have hatred in your heart, let it out." -- Clayton Bigsby, black white supremacist From tgales at tgaconnect.com Wed Jan 19 10:26:52 2005 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 19 Jan 2005 10:26:52 -0500 Subject: [nycphp-talk] if you were teaching PHP... Message-ID: <200501191526.j0JFQqM07470@tgaconnect.com> David Mintz writes > On Tue, 18 Jan 2005, Hans Zaunere wrote: > > > > [Mitch wrote ...] > > > As a matter of fact, the biggest site I ever worked on ended up going > > > the java route, where database transparency was one of the main goals. > > > (Not my decision as I had moved on, but you get the point.) > > > > Quite true, and frankly, Java kind of has the best of both worlds. > > JDBC drivers are "abstractions" but written particularly for that > > database, ie, they expose the same interface but are native calls > > themselves. It's a totally different layer of abstraction than, let's > > say, PEAR::DB. > > > > This may be a naive question, but, well... Do you suppose PEAR::DB is > written the way it is (rather than more like JDBC) because PHP 4 doesn't > support the notion of interfaces? I They are two different things. PEAR is a framework. PEAR::DB provides a layer of abstraction which can mask the idiosynchracies of the underlying SQL syntax(es). PEAR:DB has to fit in with the PEAR structure -- how it handles errors etc. (some of the framework, in my opinion, tries to make up for the deficiencies of the PHP 4 object model -- which may be what you said). JDBC, on the other hand, provides a connection to a database with a subset of functionality. So PEAR:DB can help to make SQL statements portable. JDBC, on the other hand, makes the data itself portable by offering a lobotomized wersion of SQL to databases which support a JDBC connection. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From jayeshsh at ceruleansky.com Wed Jan 19 12:42:25 2005 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Wed, 19 Jan 2005 12:42:25 -0500 Subject: [nycphp-talk] if you were teaching PHP... Message-ID: <41EE9C01.4060702@ceruleansky.com> Hi all, My take on using PEAR DB is as follows: It is a good thing, because it not only helps make your application more portable between different database vendors (e.g. between MySQL and Oracle) but also between multiple database versions from the same database vendor (MySQL 3.x and 4.x vs. MySQL 4.1). What I mean is that if you are using the old MySQL client library in PHP (mysql_connect() ) with MySQL 3.x or MySQL 4.0, and then you upgrade to MySQL 4.1, your application will break. This is because to access MySQL 4.1 PHP needs the new MySQL client library (mysqli_connect() - note the extra 'i'). So, if you use PEAR DB, you can make migration of your PHP scripts between different versions of MySQL much easier. - Jay From mitch.pirtle at gmail.com Wed Jan 19 13:02:29 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Wed, 19 Jan 2005 13:02:29 -0500 Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: <41EE9C01.4060702@ceruleansky.com> References: <41EE9C01.4060702@ceruleansky.com> Message-ID: <330532b605011910022da12fa7@mail.gmail.com> Agree wholly with Jay's sentiments. Beyond that, imagine that you are writing software that you are going to give away (open source) or will have multiple installations, maybe even become a commercial product. One of the main reasons MySQL is so pervasive is that nobody wants to support anything else, dare I say the MS Office of FOSS databases (gasp!). FOSS is all about choice, and there are plenty of great choices in the database arena... Seriously, if you are writing a web-based app that you are going to distribute, even commercially, you would be insane to tie it directly with any particluar database's API. Why would you force someone to use a database when it is so easy to let them decide for themselves? And this is not an anti-MySQL rant, I'd be just as peeved if all the sudden everything on sourceforge required PostgreSQL, Firebird or any other database. Sure, if you are writing a proprietary application that will only have one install, and will be deployed such that every minute API call could make or break performance, then the native API is the only way to go. But that is the only scenario where I have seen such justification, and also do not agree with that architectural strategy. -- Mitch, feeling like a rebellious borg ;-) On Wed, 19 Jan 2005 12:42:25 -0500, Jayesh Sheth wrote: > Hi all, > > My take on using PEAR DB is as follows: > > It is a good thing, because it not only helps make your application more > portable between different database vendors (e.g. between MySQL and > Oracle) but also between multiple database versions from the same > database vendor (MySQL 3.x and 4.x vs. MySQL 4.1). What I mean is that > if you are using the old MySQL client library in PHP (mysql_connect() ) > with MySQL 3.x or MySQL 4.0, and then you upgrade to MySQL 4.1, your > application will break. This is because to access MySQL 4.1 PHP needs > the new MySQL client library (mysqli_connect() - note the extra 'i'). > So, if you use PEAR DB, you can make migration of your PHP scripts > between different versions of MySQL much easier. From codebowl at gmail.com Wed Jan 19 13:17:37 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 19 Jan 2005 13:17:37 -0500 Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: <200501191526.j0JFQqM07470@tgaconnect.com> References: <200501191526.j0JFQqM07470@tgaconnect.com> Message-ID: <8d9a42800501191017721bb204@mail.gmail.com> i cannot really comment on this to tell you what you should do. However what i will do is tell you what would apeal to me from a student perspective. Everything i know i have taught myself, i have learned to use phpmyadmin php etc.. I would like to see a course that would teach the basics of php, and when time to go to mysql, focus on mysql for a while, talk about what makes mysql stand out from the rest, teach them how to admin it from the command line, then when all said and done show them phpmyadmin :D and move on to more advanced php stuff. command line is something i need to learn sometime soon lol and more adv sql stuff. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From danielc at analysisandsolutions.com Wed Jan 19 13:23:50 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 19 Jan 2005 13:23:50 -0500 Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: <8d9a42800501191017721bb204@mail.gmail.com> References: <200501191526.j0JFQqM07470@tgaconnect.com> <8d9a42800501191017721bb204@mail.gmail.com> Message-ID: <20050119182350.GA1242@panix.com> Hey Folks: The original email asked whether to go with mysql*() or mysqli*() functions. I'd suggest mysqli*(), since that's where things are going and they're quite different. Whether to teach that over PEAR DB, well, depends on what the class is about and what your goals are. They both have their place. --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 1j0lkq002 at sneakemail.com Wed Jan 19 13:24:14 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Wed, 19 Jan 2005 13:24:14 -0500 Subject: [nycphp-talk] of interest - new form of database programming In-Reply-To: <20050119143904.GH24310@lola.aquick.org> References: <24966-56666@sneakemail.com> <20050119143904.GH24310@lola.aquick.org> Message-ID: <504-19969@sneakemail.com> Adam Fields fields-at-hedge.net |nyphp dev/internal group use| wrote: >On Tue, Jan 18, 2005 at 07:42:26PM -0500, inforequest wrote: >[...] > > >>"Relational databases are one to two orders of magnitude too slow," says >>Stonebraker, who is chief technology officer at Streambase, a 25-person >>outfit based in Lexington, Mass. "Big customers have already tried to >>use relational databases for streaming data and dismissed them. Those >>products are non-starters in this market." >> >> >[...] > >This is not news. Relational databases are widely known to be slow, >which is why you have throw things like Oracle at the problem before >you get anything close to realtime analytics, and even they fall down >a lot. Relational databases, however, are mature and stable. This >doesn't sound like an alternative to a relational database, but a >complement - you still have to store the data somewhere. > >I wonder if they've done speed comparisons vs. a relational database >that's entirely in memory (or properly tuned). Technique alteration is >one thing, but just saying "the whole thing's in RAM" isn't a >revolution. > I think he was saying they are too slow for *this application* streaming data). I posted this because it described querying data as it streams by, not because it is a replacement for the relational database. Sometimes we get caught up in the constraints of technology, and don't see innovation as easily as we might. How many people are grabbing RSS feeds, storing them to a database, querying them, and using the results of the queries? And of those cases, how many consider old data worth saving? For example, what if Feedster was querying a massive aggregate RSS stream instead of a database? What if the results where then streamed to another site, which displayed tag-based trending of that result set? What if...... I like stuff that makes you think outside the box... while at one company someone is parsing and sorting and categorizing and his team is optimizing databases, balancing servers and scaling and the company is utilizing the result set for ecommerce, while at a competitor someone is processing the stream and utilizing it for ecommerce. Faster to conversion, faster to maximizing ROI, more flexible, less overhead. How many cpu cycles and GB of storage are dedicated to log file/log analysis these days, just to produce periodic traffic summaries? I know many people have gone to work on inserting rdb's so they could better manage that process... only to run itnto massive scaling issues. If only they could process the stream? -=john andrews From sailer at bnl.gov Wed Jan 19 13:41:26 2005 From: sailer at bnl.gov (Tim Sailer) Date: Wed, 19 Jan 2005 13:41:26 -0500 Subject: [nycphp-talk] of interest - new form of database programming In-Reply-To: <504-19969@sneakemail.com> References: <24966-56666@sneakemail.com> <20050119143904.GH24310@lola.aquick.org> <504-19969@sneakemail.com> Message-ID: <20050119184126.GB7819@bnl.gov> On Wed, Jan 19, 2005 at 01:24:14PM -0500, inforequest wrote: > How many cpu cycles and GB of storage are dedicated to log file/log > analysis these days, just to produce periodic traffic summaries? I know > many people have gone to work on inserting rdb's so they could better > manage that process... only to run itnto massive scaling issues. If only > they could process the stream? We do things like this, and Flow data munging. On an OC-48, that's a LOT of data. We have a telecon/webinar scheduled with them for tomorrow PM. It should be interesting. Tim -- Tim Sailer Information and Special Technologies Program Office of CounterIntelligence Brookhaven National Laboratory (631) 344-3001 From gatzby3jr at gmail.com Wed Jan 19 13:56:07 2005 From: gatzby3jr at gmail.com (Brian O'Connor) Date: Wed, 19 Jan 2005 13:56:07 -0500 Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: <8d9a42800501191017721bb204@mail.gmail.com> References: <200501191526.j0JFQqM07470@tgaconnect.com> <8d9a42800501191017721bb204@mail.gmail.com> Message-ID: <29da5d150501191056754d55a0@mail.gmail.com> I agree. Although I don't know all that much, everything I do know I've taught myself. I think one of my main disadvantages is that I don't know all of the basics that someone from a structured class might learn, and therefore progressing to advanced topics might be more difficult for me. On Wed, 19 Jan 2005 13:17:37 -0500, Joseph Crawford wrote: > i cannot really comment on this to tell you what you should do. > However what i will do is tell you what would apeal to me from a > student perspective. > > Everything i know i have taught myself, i have learned to use > phpmyadmin php etc.. > > I would like to see a course that would teach the basics of php, and > when time to go to mysql, focus on mysql for a while, talk about what > makes mysql stand out from the rest, teach them how to admin it from > the command line, then when all said and done show them phpmyadmin :D > and move on to more advanced php stuff. > > command line is something i need to learn sometime soon lol and more > adv sql stuff. > > -- > Joseph Crawford Jr. > Codebowl Solutions > codebowl at gmail.com > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -- Brian O'Connor From dmintz at davidmintz.org Wed Jan 19 15:42:41 2005 From: dmintz at davidmintz.org (David Mintz) Date: Wed, 19 Jan 2005 15:42:41 -0500 (EST) Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: <20050119182350.GA1242@panix.com> References: <200501191526.j0JFQqM07470@tgaconnect.com> <8d9a42800501191017721bb204@mail.gmail.com> <20050119182350.GA1242@panix.com> Message-ID: On Wed, 19 Jan 2005, Daniel Convissor wrote: > Hey Folks: > > The original email asked whether to go with mysql*() or mysqli*() > functions. I'd suggest mysqli*(), since that's where things are going and > they're quite different. Thanks. I have been thinking the same way. Teach with a view towards the future -- if need be, they will be able to teach themselves "classic" mysql*() easily enough by the time I get done with them. > Whether to teach that over PEAR DB, well, depends on what the class is > about and what your goals are. They both have their place. Hear hear. The goal is to provide a solid PHP foundation and overview of what's out there, and I think it's appropriate introduce them to some PEAR, so why not DB. Last time we covered both mysql*() and PEAR::DB; this time we'll cover mysqli and PEAR::DB. Thanks again to all. It's been illuminating. --- David Mintz http://davidmintz.org/ "Don't let the liberal media tell you what to think and feel. If you have hatred in your heart, let it out." -- Clayton Bigsby, black white supremacist From 1j0lkq002 at sneakemail.com Wed Jan 19 16:34:52 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Wed, 19 Jan 2005 16:34:52 -0500 Subject: [nycphp-talk] if you were teaching PHP... In-Reply-To: References: <200501191526.j0JFQqM07470@tgaconnect.com> <8d9a42800501191017721bb204@mail.gmail.com> <20050119182350.GA1242@panix.com> Message-ID: <29584-60331@sneakemail.com> David Mintz dmintz-at-davidmintz.org |nyphp dev/internal group use| wrote: >Hear hear. The goal is to provide a solid PHP foundation and overview of >what's out there, and I think it's appropriate introduce them to some >PEAR, so why not DB. Last time we covered both mysql*() and PEAR::DB; this >time we'll cover mysqli and PEAR::DB. > >Thanks again to all. It's been illuminating. > > > And now off you go to "pass the candle" :-) From stephen at musgrave.org Wed Jan 19 19:05:12 2005 From: stephen at musgrave.org (Stephen Musgrave) Date: Wed, 19 Jan 2005 19:05:12 -0500 Subject: [nycphp-talk] Session problem on virtual host? Message-ID: List - I am having a problem with a content management system that I wrote running on a Speakeasy shared host. I use session to store variables to maintain state such as the primary key ID for a content row I am updating. For the most part, this works really well, but from time to time something goes wrong and it feels like the session gets wiped out or a formerly used primary key ID reappears into the session, overwriting the current primary key ID and causes me to overwrite that record in the database. I haven't actually witnessed this occurrence, as it happens only about 5 percent of the time, according to the person who is reporting it. I think I have read somewhere in passing that if shared hosts are not setup properly, sessions from other virtual domains can conflict or that session is flaky altogether. I have reason to suspect that the server isn't setup properly because when I use $_SERVER['DOCUMENT_ROOT'], it points to a directory that is somewhere else in the file system. Somebody told me that this is because they are cheating and using symbolic links. I'm not a server guy and I haven't been able to get a straight answer from the hosting provider support staff. I should note that this CMS has run on at least 5 other shared hosting environments and it has been a problem. Thanks, Stephen From danielc at analysisandsolutions.com Wed Jan 19 19:14:02 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 19 Jan 2005 19:14:02 -0500 Subject: [nycphp-talk] Session problem on virtual host? In-Reply-To: References: Message-ID: <20050120001402.GA11010@panix.com> Hi: You didn't give a lot of relevant information, but let me guess. Consider changing session.save_path. More importantly, carefully read the manual about sessions: http://us2.php.net/manual/en/ref.session.php --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From nyphp at enobrev.com Wed Jan 19 19:25:21 2005 From: nyphp at enobrev.com (Mark Armendariz) Date: Wed, 19 Jan 2005 19:25:21 -0500 Subject: [nycphp-talk] Session problem on virtual host? In-Reply-To: Message-ID: <20050120002518.5BE6FA85F0@virtu.nyphp.org> On shared servers, I generally try to avoid using the server's global tmp folder and instead use a 'local' one. In your php.ini, htaccess or ini_set() you can do that with the following vars: # for file upload temp files upload_tmp_dir = '/path/to/a/local/hidden/tmp/folder/' # for sessions on your site session.save_path = '/path/to/a/local/hidden/tmp/folder/' On a few servers I've worked on you usually get access to a folder just 'above' the public_html folder: /home/username/public_html/ /home/username/tmp/ <-- great place for a local tmp folder And here's some info about setting those values properly: http://education.nyphp.org/phundamentals/PH_ini.php?expiredate=2/16/2004 This is also more secure (as long as the shared host is jailed / sandboxed somehow), as your sessions and upload temp files aren't sitting in some shared folder that everyone on the server has access to. On a side note, anyone here use pair.com? I just ran into something very disturbing on their shared servers that I'd like to tell you about off-list. Mark > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > On Behalf Of Stephen Musgrave > Sent: Wednesday, January 19, 2005 7:05 PM > To: talk at lists.nyphp.org > Subject: [nycphp-talk] Session problem on virtual host? > > List - > > I am having a problem with a content management system that I wrote > running on a Speakeasy shared host. I use session to store variables > to maintain state such as the primary key ID for a content row I am > updating. > > For the most part, this works really well, but from time to time > something goes wrong and it feels like the session gets wiped out or a > formerly used primary key ID reappears into the session, overwriting > the current primary key ID and causes me to overwrite that record in > the database. > > I haven't actually witnessed this occurrence, as it happens only about > 5 percent of the time, according to the person who is reporting it. > > I think I have read somewhere in passing that if shared hosts are not > setup properly, sessions from other virtual domains can conflict or > that session is flaky altogether. > > I have reason to suspect that the server isn't setup properly because > when I use $_SERVER['DOCUMENT_ROOT'], it points to a directory that is > somewhere else in the file system. Somebody told me that this is > because they are cheating and using symbolic links. I'm not a server > guy and I haven't been able to get a straight answer from the hosting > provider support staff. > > I should note that this CMS has run on at least 5 other shared hosting > environments and it has been a problem. > > Thanks, > > Stephen > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org From rolan at omnistep.com Thu Jan 20 02:55:03 2005 From: rolan at omnistep.com (Rolan Yang) Date: Thu, 20 Jan 2005 02:55:03 -0500 Subject: [nycphp-talk] Session problem on virtual host? In-Reply-To: References: Message-ID: <41EF63D7.4080104@omnistep.com> Does speakeasy employ clustering or load balancing on their web servers? If they run multiple machines (with your home directory NFS mounted), the sessions data could be written to /tmp on one machine and not the other. This would result in your session disappearing if you hit the "second" web server and also cause old data to reappear if you were to hit the "first"/original one again. Using the MySQL sessions handler would prevent this problem. ~Rolan Stephen Musgrave wrote: > List - > > > For the most part, this works really well, but from time to time > something goes wrong and it feels like the session gets wiped out or a > formerly used primary key ID reappears into the session, overwriting > the current primary key ID and causes me to overwrite that record in > the database. > From stephen at musgrave.org Thu Jan 20 07:36:48 2005 From: stephen at musgrave.org (Stephen Musgrave) Date: Thu, 20 Jan 2005 07:36:48 -0500 Subject: [nycphp-talk] Session problem on virtual host? In-Reply-To: <41EF63D7.4080104@omnistep.com> References: <41EF63D7.4080104@omnistep.com> Message-ID: Well, the marketing text says, "Host your website on our professional, managed webcluster," but i'm not 100% sure that implies the technical architecture. Thanks, Stephen On Jan 20, 2005, at 2:55 AM, Rolan Yang wrote: > Does speakeasy employ clustering or load balancing on their web > servers? > If they run multiple machines (with your home directory NFS mounted), > the sessions data could be written to /tmp on one machine and not the > other. This would result in your session disappearing if you hit the > "second" web server and also cause old data to reappear if you were to > hit the "first"/original one again. Using the MySQL sessions handler > would prevent this problem. > > ~Rolan > > > Stephen Musgrave wrote: > >> List - >> >> >> For the most part, this works really well, but from time to time >> something goes wrong and it feels like the session gets wiped out or >> a formerly used primary key ID reappears into the session, >> overwriting the current primary key ID and causes me to overwrite >> that record in the database. >> > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > From stephen at musgrave.org Thu Jan 20 10:25:47 2005 From: stephen at musgrave.org (Stephen Musgrave) Date: Thu, 20 Jan 2005 10:25:47 -0500 Subject: [nycphp-talk] Session problem on virtual host? In-Reply-To: <41EF63D7.4080104@omnistep.com> References: <41EF63D7.4080104@omnistep.com> Message-ID: <8F39036D-6AF7-11D9-A105-000D933C4BA8@musgrave.org> I did a bit more research and it appears that my use of the simple PHP session with a clustered environment is a no-no unless using a local session directory. Thanks for pushing me in the right direction. On Jan 20, 2005, at 2:55 AM, Rolan Yang wrote: > Does speakeasy employ clustering or load balancing on their web > servers? > If they run multiple machines (with your home directory NFS mounted), > the sessions data could be written to /tmp on one machine and not the > other. This would result in your session disappearing if you hit the > "second" web server and also cause old data to reappear if you were to > hit the "first"/original one again. Using the MySQL sessions handler > would prevent this problem. > > ~Rolan > > > Stephen Musgrave wrote: > >> List - >> >> >> For the most part, this works really well, but from time to time >> something goes wrong and it feels like the session gets wiped out or >> a formerly used primary key ID reappears into the session, >> overwriting the current primary key ID and causes me to overwrite >> that record in the database. >> > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > From alexchan.1976 at gmail.com Thu Jan 20 11:02:46 2005 From: alexchan.1976 at gmail.com (Alex C) Date: Thu, 20 Jan 2005 11:02:46 -0500 Subject: [nycphp-talk] Viewing a Past Presentation Message-ID: <8f494f7605012008022257f7f@mail.gmail.com> Hi everybody, I am trying to look at a past presentaton(Parsing, Validating and Saving Data from Complex XML Streams ) . I click on the link and i get the following error. "Redirection limit for this URL exceeded. Unable to load the Requested Page." Is there a way of viewing the presentation. Thanks in advance, Alex From tom at supertom.com Thu Jan 20 11:09:07 2005 From: tom at supertom.com (Tom Melendez) Date: Thu, 20 Jan 2005 11:09:07 -0500 Subject: [nycphp-talk] [OT] Anyone know someone at Novell? In-Reply-To: <8F39036D-6AF7-11D9-A105-000D933C4BA8@musgrave.org> References: <41EF63D7.4080104@omnistep.com> <8F39036D-6AF7-11D9-A105-000D933C4BA8@musgrave.org> Message-ID: <41EFD7A3.8040303@supertom.com> Way Off - Topic, but I'm sure someone here can help me. Here on Long Island, there is an organization called LISTNET (http://www.listnet.org) which I am involved (in addition to LIPHP). We focus on the use of technology in business, and cater primarily to the business crowd. I am a co-chair of the "Linux in Business Special Interest Group", and would like to have someone from Novell come down and speak to our group. Anyone have any contacts that could help me sift through the red tape? Thanks for the help! Tom http://www.liphp.org From codebowl at gmail.com Thu Jan 20 11:14:54 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Thu, 20 Jan 2005 11:14:54 -0500 Subject: [nycphp-talk] PHP and SQL Server 7 Message-ID: <8d9a4280050120081430c1c913@mail.gmail.com> Hey everyone, i am still struggling to get PHP to connect to a remote database. I am now using a windows host since connecting from linux was a true pita. However i still cannot get it to work properly. this is the code i have that doesnt work at all, always says failed to respond if($conn = mssql_connect($hostname,$username,$password)) { mssql_select_db($dbName) or die('cannot select db'); $sql = "select id, bath_level from idxmls1 where mod_date_time >'2005-1-1 00:00:00'"; $res = mssql_query($sql, $conn) or die('query error'); $data = mssql_fetch_array($res) or die('fetch error'); echo '
';
 print_r($data);
 echo '
'; } else { die("DATABASE FAILED TO RESPOND."); } here is some example code that i found, it connects and starts retrieving data however i am not sure how to use this type of COM and could use some direction as to what to search for. I did a search for ADO and i hadnt a clue what i was looking for lol. $db = new COM("ADODB.Connection"); $dsn = "DRIVER={SQL Server}; SERVER=207.76.168.21;UID=******;PWD=******; DATABASE=******"; $db->Open($dsn); $rs = $db->Execute("select * from idxmls1 where mod_date_time >'2005-1-1 00:00:00'"); while (!$rs->EOF) { echo $rs->Fields['column']->Value."
"; $rs->MoveNext(); } when i use this i get a ton of errors like the following Warning: main(): Invoke() failed: Exception occurred. Source: ADODB.Fields Description: Item cannot be found in the collection corresponding to the requested name or ordinal. in C:\Domains\killingtonholidayrealestate.com\wwwroot\test.php on line 16 then it times out after 60 seconds of running. any help would be appreciated -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From rolan at omnistep.com Thu Jan 20 11:45:38 2005 From: rolan at omnistep.com (Rolan Yang) Date: Thu, 20 Jan 2005 11:45:38 -0500 Subject: [nycphp-talk] Session problem on virtual host? In-Reply-To: <20050120002518.5BE6FA85F0@virtu.nyphp.org> References: <20050120002518.5BE6FA85F0@virtu.nyphp.org> Message-ID: <41EFE032.6090809@omnistep.com> Your post reminded me of an problem I have with shared hosts. Is there any way to hide/protect the mysql login/password from other users who may have shell access to the same machine? Since the php script permissions must be accessible to the web server, anyone could write a script which would load and display the source code of any other php script on the same machine. ~Rolan Mark Armendariz wrote: >On a side note, anyone here use pair.com? I just ran into something very >disturbing on their shared servers that I'd like to tell you about off-list. > >Mark > > > > From codebowl at gmail.com Thu Jan 20 11:45:59 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Thu, 20 Jan 2005 11:45:59 -0500 Subject: [nycphp-talk] Re: PHP and SQL Server 7 In-Reply-To: <8d9a4280050120081430c1c913@mail.gmail.com> References: <8d9a4280050120081430c1c913@mail.gmail.com> Message-ID: <8d9a42800501200845e331852@mail.gmail.com> i should also note i have tried adodb from pear's repository http://killingtonholiday.accuwebhosting.biz/test.php it wont even connect to the remote database using the ip,port and it wont connect without the port either. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From lists at zaunere.com Thu Jan 20 12:00:10 2005 From: lists at zaunere.com (Hans Zaunere) Date: Thu, 20 Jan 2005 12:00:10 -0500 Subject: [nycphp-talk] Viewing a Past Presentation In-Reply-To: <8f494f7605012008022257f7f@mail.gmail.com> Message-ID: <20050120170030.253EAA86CD@virtu.nyphp.org> > I am trying to look at a past presentaton(Parsing, Validating and > Saving Data from Complex XML Streams ) . I click on the link and i > get the following error. "Redirection limit for this URL exceeded. > Unable to load the Requested Page." Is there a way of viewing the > presentation. Fixed, thanks for the report. http://www.nyphp.org/content/presentations/pvsxml/ --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org From lists at zaunere.com Thu Jan 20 12:23:19 2005 From: lists at zaunere.com (Hans Zaunere) Date: Thu, 20 Jan 2005 12:23:19 -0500 Subject: [nycphp-talk] FW: [PECL-DEV] New PECL package MaxDB PHP Message-ID: <20050120172329.46C63A85F0@virtu.nyphp.org> Interesting news for those wanting to play with MaxDB. H > Sent: Thursday, January 20, 2005 12:13 PM > To: pecl-dev at lists.php.net > Subject: [PECL-DEV] New PECL package MaxDB PHP > > Hi, > > I put a new PECL package into PHP CVS, the MaxDB PHP package. > > MaxDB PHP allows access to MySQL MaxDB database servers using PHP. This > package is compatible to MySQL's mysqli extension. > > Regards, > > Thomas Simenec > SAP Labs Berlin From rahmin at insite-out.com Thu Jan 20 12:36:27 2005 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Thu, 20 Jan 2005 12:36:27 -0500 Subject: [nycphp-talk] PHPLot: double dichotomy? Message-ID: <200501201736.j0KHaRJt003044@webmail3.megamailservers.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From prusak at gmail.com Thu Jan 20 13:01:47 2005 From: prusak at gmail.com (Ophir Prusak) Date: Thu, 20 Jan 2005 13:01:47 -0500 Subject: [nycphp-talk] PHPLot: double dichotomy? In-Reply-To: <200501201736.j0KHaRJt003044@webmail3.megamailservers.com> References: <200501201736.j0KHaRJt003044@webmail3.megamailservers.com> Message-ID: I know this doesn't help you with phplot, but I feel that you'll get more bang for the buck with this solution that creates the graphs in flash: http://www.maani.us/charts/index.php?menu=Introduction and they'll look SO much nicer :) On Thu, 20 Jan 2005 12:36:27 -0500, Rahmin Pavlovic wrote: > > Here's hoping someone with more experience w/PHPLot than I can help out.. > > I'm trying to create a double-dichotomy chart, like this: > http://insite-out.com/double_dichotomy.html > > I can create the html table above from the database, so now I'm playing around > with PHPLot to see if I can build a graph out of the data, but I'm having a hard > time a) customizing the text labels on either axis (it's displaying the numerical > values anyway) and b) setting lext labels on the y-axis at all, and c) getting > the x-axis to appear on top. > > I need to play around with the API a bit more, but even when I just use their > example: > > //Define the object > $graph =& new PHPlot(300,250); > > //Set titles > $graph->SetTitle("Title\n\rSubtitle"); > $graph->SetXTitle('X data'); > $graph->SetYTitle('Y data'); > > //Define some data > $example_data = array( > array('a',3,4,2), > array('b',5,'',1), // here we have a missing data point, that's ok > array('c',7,2,6), > array('d',8,1,4), > array('e',2,4,6), > array('f',6,4,5), > array('g',7,2,3) > ); > $graph->SetDataValues($example_data); > > //Draw it > $graph->DrawGraph(); > > I get numerical data visually interspersed with the text labels. Doesn't come > out the way they say it will. Is there something I'm missing? > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From rahmin at insite-out.com Thu Jan 20 13:03:50 2005 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Thu, 20 Jan 2005 13:03:50 -0500 Subject: [nycphp-talk] PHPLot: double dichotomy? Message-ID: <200501201803.j0KI3oJt007737@webmail3.megamailservers.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From dmintz at davidmintz.org Thu Jan 20 15:16:26 2005 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 20 Jan 2005 15:16:26 -0500 (EST) Subject: [nycphp-talk] Session problem on virtual host? In-Reply-To: <41EFE032.6090809@omnistep.com> References: <20050120002518.5BE6FA85F0@virtu.nyphp.org> <41EFE032.6090809@omnistep.com> Message-ID: On Thu, 20 Jan 2005, Rolan Yang wrote: > Your post reminded me of an problem I have with shared hosts. Is there > any way to hide/protect the mysql login/password from other users who > may have shell access to the same machine? Since the php script > permissions must be accessible to the web server, anyone could write a > script which would load and display the source code of any other php > script on the same machine. Here's one possible solution: http://shiflett.org/articles/security-corner-mar2004 See the part about using Apache SetEnv directives. The only downside here is that you need your sysadmin's cooperation but it's not an unreasonable request imho. --- David Mintz http://davidmintz.org/ "Don't let the liberal media tell you what to think and feel. If you have hatred in your heart, let it out." -- Clayton Bigsby, black white supremacist From matt at jobsforge.com Thu Jan 20 15:45:09 2005 From: matt at jobsforge.com (Matthew Terenzio) Date: Thu, 20 Jan 2005 15:45:09 -0500 Subject: [nycphp-talk] Auth and cookies Message-ID: <2C56A4E0-6B24-11D9-9501-0003938BDF32@jobsforge.com> I t seems like the only way I can get PEAR Auth to use cookies is with session.use_only_cookies . session.use_cookies was enabled but the URLs were being rewritten by default even though my client was accepting cookies. Kind of vague, I know, but since everthing works fine when I toggle use_only_cookies, I find it strange. Matt From dmintz at davidmintz.org Thu Jan 20 16:15:30 2005 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 20 Jan 2005 16:15:30 -0500 (EST) Subject: [nycphp-talk] shared server security [Session problem on virtual host] In-Reply-To: References: <20050120002518.5BE6FA85F0@virtu.nyphp.org> <41EFE032.6090809@omnistep.com> Message-ID: On Thu, 20 Jan 2005, David Mintz wrote: > On Thu, 20 Jan 2005, Rolan Yang wrote: > > > Your post reminded me of an problem I have with shared hosts. Is there > > any way to hide/protect the mysql login/password from other users who > > may have shell access to the same machine? I forgot to mention another possible solution. Run in cgi mode under php-cgiwrap, so your scripts run as you; then chmod your scripts to 600 so others (such as 'nobody' and your fellow hosting customers) can't read them. HTH --- David Mintz http://davidmintz.org/ "Don't let the liberal media tell you what to think and feel. If you have hatred in your heart, let it out." -- Clayton Bigsby, black white supremacist From ajai at bitblit.net Thu Jan 20 16:59:43 2005 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 20 Jan 2005 16:59:43 -0500 Subject: [nycphp-talk] shared server security [Session problem on virtual host] In-Reply-To: References: <20050120002518.5BE6FA85F0@virtu.nyphp.org> <41EFE032.6090809@omnistep.com> Message-ID: <41F029CF.6040801@bitblit.net> David Mintz wrote: > > >I forgot to mention another possible solution. Run in cgi mode under >php-cgiwrap, so your scripts run as you; then chmod your scripts to 600 so >others (such as 'nobody' and your fellow hosting customers) can't read >them. > suexec does this too. The only problem is the performance hit with CGI (not sure if mod_fastcgi will help here). On our new shared web server, for security, no customers have shell access ;-) -- Aj. Systems Administrator / Developer From codebowl at gmail.com Thu Jan 20 17:24:51 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Thu, 20 Jan 2005 17:24:51 -0500 Subject: [nycphp-talk] Imaged In the DB Message-ID: <8d9a428005012014245a5652da@mail.gmail.com> i am retrieving records from a database where the images are stored in the DB, when i retrieve them it says that $row['medium_photo'] is an array, when i print_r it's all indexes of numbers, i guess my questions is can anyone point me to a resource where i can learn about taking this value and storing it as an image on the drive rather than in the db. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From codebowl at gmail.com Thu Jan 20 18:23:29 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Thu, 20 Jan 2005 18:23:29 -0500 Subject: [nycphp-talk] Re: Imaged In the DB In-Reply-To: <8d9a428005012014245a5652da@mail.gmail.com> References: <8d9a428005012014245a5652da@mail.gmail.com> Message-ID: <8d9a428005012015233b61332@mail.gmail.com> I found an article about this on the net, but what confuses me is that when i retrieve the medium_photo column from the database it is returning an array, shouldnt plain binary data just be that, not an array? Is something happening in between communications or from MSSQL BLOB do i need to do something to get the straight binary data? -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From chsnyder at gmail.com Thu Jan 20 21:07:29 2005 From: chsnyder at gmail.com (csnyder) Date: Thu, 20 Jan 2005 21:07:29 -0500 Subject: [nycphp-talk] Re: Imaged In the DB In-Reply-To: <8d9a428005012015233b61332@mail.gmail.com> References: <8d9a428005012014245a5652da@mail.gmail.com> <8d9a428005012015233b61332@mail.gmail.com> Message-ID: Joseph Crawford wrote: > MSSQL BLOB ... run screaming!!! It's the MSSQL BLOB! (sorry, dock my karma for that) From dmintz at davidmintz.org Thu Jan 20 21:10:01 2005 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 20 Jan 2005 21:10:01 -0500 (EST) Subject: [nycphp-talk] shared server security [Session problem on virtual host] In-Reply-To: <41F029CF.6040801@bitblit.net> References: <20050120002518.5BE6FA85F0@virtu.nyphp.org> <41EFE032.6090809@omnistep.com> <41F029CF.6040801@bitblit.net> Message-ID: On Thu, 20 Jan 2005, Ajai Khattri wrote: > >I forgot to mention another possible solution. Run in cgi mode under > >php-cgiwrap,[...] > > suexec does this too. > The only problem is the performance hit with CGI (not sure if > mod_fastcgi will help here). This got me curious enough to look around, and I found something that looks interesting: http://www.suphp.org/ --- David Mintz http://davidmintz.org/ "Don't let the liberal media tell you what to think and feel. If you have hatred in your heart, let it out." -- Clayton Bigsby, black white supremacist From codebowl at gmail.com Fri Jan 21 07:39:27 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 21 Jan 2005 07:39:27 -0500 Subject: [nycphp-talk] Re: Imaged In the DB In-Reply-To: References: <8d9a428005012014245a5652da@mail.gmail.com> <8d9a428005012015233b61332@mail.gmail.com> Message-ID: <8d9a428005012104395a853e8b@mail.gmail.com> lol csnyder -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From shiflett at php.net Fri Jan 21 12:12:52 2005 From: shiflett at php.net (Chris Shiflett) Date: Fri, 21 Jan 2005 09:12:52 -0800 (PST) Subject: [nycphp-talk] Auth and cookies In-Reply-To: <2C56A4E0-6B24-11D9-9501-0003938BDF32@jobsforge.com> Message-ID: <20050121171252.60993.qmail@web52806.mail.yahoo.com> --- Matthew Terenzio wrote: > It seems like the only way I can get PEAR Auth to use cookies > is with session.use_only_cookies. Disclaimer: I've never used PEAR::Auth. > session.use_cookies was enabled but the URLs were being > rewritten by default even though my client was accepting > cookies. > > Kind of vague, I know, but since everthing works fine when I > toggle use_only_cookies, I find it strange. (This seems to be related to sessions, not specifically to PEAR::Auth.) As a guess, it sounds like you were only observing the first page, at which time PHP cannot determine whether the user has enabled cookies. It will rewrite all URLs to append the session identifier, and it will also set a cookie. On the next page, it can determine whether cookies are enabled (in which case it will no longer rewrite URLs) or disabled (in which case it's a good thing the session identifier was also propagated in the URL). If you use session.use_only_cookies, you're basically saying that it's fine for a user who does not enable cookies to lose session, so PHP won't bother with rewriting URLs, even on the first page. This rewriting behavior depends upon session.use_trans_sid, which seems to enabled. Hope that helps. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http://httphandbook.org/ From webmaster at jaymax.com Sat Jan 22 02:38:52 2005 From: webmaster at jaymax.com (Joseph E. Maxwell) Date: Fri, 21 Jan 2005 23:38:52 -0800 Subject: [nycphp-talk] PHP.ini setup, config, installation & recognition? Message-ID: <41F2030C.4010806@jaymax.com> Hello, I am setting up a program that requires allow_call_time_pass_reference to be enabled. I've set allow_call_time_pass_reference = ON in the /usr/local/etc/php.ini file grep -n allow_call_time_pass_reference /usr/local/etc/php.ini 70: - allow_call_time_pass_reference = 1 [Code cleanliness] 167:allow_call_time_pass_reference = 1 But the program still calls for the option to be enabled. So I have run a test file with the ini_get function, the code below. ------code------- Test Page ----end code----- Output page ==> blank /usr/local/etc/php.ini has permissions set to 444 and listed in phpinfo.php Suggestions? Thanks! From tgales at tgaconnect.com Sat Jan 22 09:07:06 2005 From: tgales at tgaconnect.com (Tim Gales) Date: Sat, 22 Jan 2005 09:07:06 -0500 Subject: [nycphp-talk] PHP.ini setup, config, installation & recognition? Message-ID: <200501221407.j0ME76d23554@tgaconnect.com> Joseph E. Maxwell writes: > I have run a test file with the ini_get function, the code below. > ------code------- > > > Test Page > > > > > > ----end code----- > > Output page ==> blank > > Suggestions? try (there's no .htaccess file and your script has a .php or php4 extension -- right?) T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From phil at bearingasset.com Sun Jan 23 14:45:10 2005 From: phil at bearingasset.com (Phil Duffy) Date: Sun, 23 Jan 2005 14:45:10 -0500 Subject: [nycphp-talk] Migration to XAMPP Message-ID: <20050123194519.78A41A85FE@virtu.nyphp.org> I currently have PHP/MySQL installed on the following platforms: ~ Windows XP Pro/IIS 5.1/PHP 5.03/MySQL 4.1.4-gamma ~ SuSE Linix 9.0/Apache 2.0/PHP 4.3.3/MySQL 4.0.15 I would like to install XAMPP on both the Windows and Linux platforms with these differences: ~ The Linux installation could be replaced if necessary. ~ I need to maintain the existing Windows installation, but create an additional Apache/PHP/MySQL stack. What software do I need to de-install before doing an XAMPP installation on both platforms? Are there special considerations because I would be installing XAMPP on the Windows system in parallel with the existing Windows/IIS/AMP stack? Thank you for your help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at cyber-ny.com Sun Jan 23 23:10:50 2005 From: john at cyber-ny.com (John Nunez) Date: Sun, 23 Jan 2005 23:10:50 -0500 Subject: [nycphp-talk] PHP In-Reply-To: <200501111916.j0BJGvwN006558@webmail2.megamailservers.com> References: <200501111916.j0BJGvwN006558@webmail2.megamailservers.com> Message-ID: Hey Guys, Maybe I am missing the question here but wouldn't the simplest solution be "session-set-save-handler". Use this function and insert it as a include into each of your pages before the session is started. This will allow you to manage your sessions. Therefore you can create the functions that will open and close a session. On close you can easily write the time to the db. See : http://us3.php.net/manual/en/function.session-set-save-handler.php Thanks, John Nunez Cyber-NY Interactive 212-475-2721 www.cyber-ny.com john at cyber-ny.com On Jan 11, 2005, at 2:16 PM, Rahmin Pavlovic wrote: > > > On Tue, 11 Jan 2005 14:06 , Peter Sawczynec sent: > >> Using PHP, is there a simple way to capture browser shutdown or a >> session >> termination event, so that a user's departure time from a site can be >> captured when they don't use the formal Log Out button. >> >> I need to track user time logged into a site. I am using PHP sessions. >> Currently, capturing the user Log In efforts and capturing the user >> Log Out >> time when they hit Logout button. >> >> Any solution suggestions for capturing log out time of users who just >> close >> the browser? >> > > A possible solution would be log 'on-site' time by saving a timestamp > of every > page view. We do that in-part to prevent additional log-in's from the > same > account during a given active timeframe. > > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From enunez at tiaa-cref.org Mon Jan 24 14:19:33 2005 From: enunez at tiaa-cref.org (Nunez, Eddy) Date: Mon, 24 Jan 2005 12:19:33 -0700 Subject: [nycphp-talk] SuSE linux & unused swap space Message-ID: <7CE0EC1FC2D0D411910700508BE38D0F17B91865@msxnyusr01.msx.ops.tiaa-cref.org> Greets all you fellow php'ers... If sys admins can answer this one it'd be great. For last couple of weeks my development linux box has not been using it's swap space at all, EVER. It's always at "0K used"...I mean ALWAYS; even when new processes are spawned. Recently I was trying to write some PHP for CLI cron task and it consistantly caused a Seg fault. My guess it's because PHP CLI script is denied the memory it needs. I tried doing web searches for anything helpful, found nothing useful .. so I thought I'd give the list a try. Here's a snapshot of top: ---------------------------------------------------------------------------- - 4:35pm up 3 days, 19:27, 1 user, load average: 0.00, 0.00, 0.00 49 processes: 48 sleeping, 1 running, 0 zombie, 0 stopped CPU states: 0.3% user, 0.0% system, 0.0% nice, 99.6% idle Mem: 392668K av, 389284K used, 3384K free, 0K shrd, 275740K buff Swap: 136544K av, 0K used, 136544K free 20832K cached -Ed ************************************************************** 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 andrew at plexpod.com Mon Jan 24 14:57:31 2005 From: andrew at plexpod.com (Andrew Yochum) Date: Mon, 24 Jan 2005 14:57:31 -0500 Subject: [nycphp-talk] SuSE linux & unused swap space In-Reply-To: <7CE0EC1FC2D0D411910700508BE38D0F17B91865@msxnyusr01.msx.ops.tiaa-cref.org> References: <7CE0EC1FC2D0D411910700508BE38D0F17B91865@msxnyusr01.msx.ops.tiaa-cref.org> Message-ID: <20050124195725.GG7289@zoidberg.digitalpulp.com> On Mon, Jan 24, 2005 at 12:19:33PM -0700, Nunez, Eddy wrote: > > Greets all you fellow php'ers... > > If sys admins can answer this one it'd be great. For last couple of > weeks > my development linux box has not been using it's swap space at all, EVER. > It's always > at "0K used"...I mean ALWAYS; even when new processes are spawned. 0K used is good :-) That means someone spent enough $$ on RAM that you're not swapping to slow disks. > Recently I was trying to write some PHP for CLI cron task and it > consistantly > caused a Seg fault. My guess it's because PHP CLI script is denied the > memory it needs. Mmm.. probably not, IMO. Seg faults are from memory pointers going beyond the bounds of the application's allocated memory space. This is usually due to buggy pointer arithmetic code, not the inability to allocate memory. In my experience, if memory isn't available, you get an "out of memory" or "unable to allocate memory" error or something along those lines, not a segfault. > I tried doing web searches for anything helpful, found nothing > useful .. so I thought > I'd give the list a try. > > Here's a snapshot of top: > ---------------------------------------------------------------------------- > - > 4:35pm up 3 days, 19:27, 1 user, load average: 0.00, 0.00, 0.00 > 49 processes: 48 sleeping, 1 running, 0 zombie, 0 stopped > CPU states: 0.3% user, 0.0% system, 0.0% nice, 99.6% idle > Mem: 392668K av, 389284K used, 3384K free, 0K shrd, 275740K > buff > Swap: 136544K av, 0K used, 136544K free 20832K > cached Well, this tells us that you have something like 384MB of RAM, a little bit is free and 275MB of it is allocated for buffers. Oh, and no swap used ;-). This is quite a typical snapshot profile of a healthy system with a lot of RAM free. The kernel typically sucks up all it can for its buffers/cache. This is made a bit more clear by the output of the "vmstat" command. The RAM allocated there will be given to newly spawned processes or processes requesting more RAM on-the-fly. No need to worry I believe - you see to have plenty free. I'd say your problem lies elsewhere. Does it happen consistently in a particular script? Are you able to track it down to a particular line or function? Is this code using a non-standard PHP extension? Are you using a hand-built PHP binary, pre-packaged RPM/deb/etc binary? Hope that helps... Andrew From leam at reuel.net Tue Jan 25 06:58:08 2005 From: leam at reuel.net (leam at reuel.net) Date: Tue, 25 Jan 2005 06:58:08 -0500 Subject: [nycphp-talk] Choice of CMS? Message-ID: <20050125115808.GF2921@leitz> I'm looking at helping set up a web-site with a possible OSCommerce shopping cart. My parameters are Linux 2.4.25, MySql 4.0.22-Standard, Apache 1.3.33 and PHP 4.3.10. The possible CMS systems are Drupal, Mambo, PHP-Nuke, phpWCMS, PhpWebsite, PostNuke, Siteframe, and Xoops. The theory is that the site would be set up and then handed over to the client who is not a "computer person". Ease and simplicity would be helpful, and security as it's a small business. Any recommentations for or against? ciao! leam From ajai at bitblit.net Tue Jan 25 10:58:22 2005 From: ajai at bitblit.net (Ajai Khattri) Date: Tue, 25 Jan 2005 10:58:22 -0500 Subject: [nycphp-talk] Choice of CMS? In-Reply-To: <20050125115808.GF2921@leitz> References: <20050125115808.GF2921@leitz> Message-ID: <41F66C9E.1050004@bitblit.net> leam at reuel.net wrote: >I'm looking at helping set up a web-site with a possible OSCommerce shopping cart. My parameters are Linux 2.4.25, MySql 4.0.22-Standard, Apache 1.3.33 and PHP 4.3.10. The possible CMS systems are Drupal, Mambo, PHP-Nuke, phpWCMS, PhpWebsite, PostNuke, Siteframe, and Xoops. > >The theory is that the site would be set up and then handed over to the client who is not a "computer person". Ease and simplicity would be helpful, and security as it's a small business. Any recommentations for or against? > Mambo comes with a ready built backend. I have similar clients and Im using Mambo. -- Aj. Systems Administrator / Developer From thegeek at thecolorgeek.com Tue Jan 25 11:39:54 2005 From: thegeek at thecolorgeek.com (The Geek) Date: Tue, 25 Jan 2005 11:39:54 -0500 Subject: [nycphp-talk] Choice of CMS? In-Reply-To: <41F66C9E.1050004@bitblit.net> Message-ID: Any one have links to live Mambo Stores. Have used OSC but it is a pain to modify page layout. Thinking of using Mambo but would like to see some working examples. If page layout is a little easier to manage I would consider it. OSC is the devil I know at the moments so at least I know what I'm in for. Paul On Tuesday, January 25, 2005, at 10:58 AM, Ajai Khattri wrote: > leam at reuel.net wrote: > >> I'm looking at helping set up a web-site with a possible OSCommerce >> shopping cart. My parameters are Linux 2.4.25, MySql 4.0.22-Standard, >> Apache 1.3.33 and PHP 4.3.10. The possible CMS systems are Drupal, >> Mambo, PHP-Nuke, phpWCMS, PhpWebsite, PostNuke, Siteframe, and Xoops. >> The theory is that the site would be set up and then handed over to >> the client who is not a "computer person". Ease and simplicity would >> be helpful, and security as it's a small business. Any >> recommentations for or against? >> > > Mambo comes with a ready built backend. > > I have similar clients and Im using Mambo. > > -- > Aj. > Systems Administrator / Developer > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From ajai at bitblit.net Tue Jan 25 12:12:30 2005 From: ajai at bitblit.net (Ajai Khattri) Date: Tue, 25 Jan 2005 12:12:30 -0500 Subject: [nycphp-talk] Choice of CMS? In-Reply-To: References: Message-ID: <41F67DFE.6020107@bitblit.net> The Geek wrote: > Any one have links to live Mambo Stores. Have used OSC but it is a > pain to modify page layout. Thinking of using Mambo but would like to > see some working examples. If page layout is a little easier to > manage I would consider it. OSC is the devil I know at the moments so > at least I know what I'm in for. Here's a few sites that are using Mambo with the phpshop plugin: http://www.buyinnovation.com/ http://www.bearcuboutfitters.com/ http://www.rlddetroit.com/ http://www.pepper-passion.com/ http://www.smokedamagedgoods.com/ http://www.sdsdigital.co.uk/ -- Aj. Systems Administrator / Developer From jlacey at att.net Tue Jan 25 22:07:04 2005 From: jlacey at att.net (John Lacey) Date: Tue, 25 Jan 2005 20:07:04 -0700 Subject: [nycphp-talk] Migration to XAMPP In-Reply-To: <20050123194519.78A41A85FE@virtu.nyphp.org> References: <20050123194519.78A41A85FE@virtu.nyphp.org> Message-ID: <41F70958.6040307@att.net> Phil Duffy wrote: > I currently have PHP/MySQL installed on the following platforms: > > > > ~ Windows XP Pro/IIS 5.1/PHP 5.03/MySQL 4.1.4-gamma > > > > ~ SuSE Linix 9.0/Apache 2.0/PHP 4.3.3/MySQL 4.0.15 > > > > I would like to install XAMPP on both the Windows and Linux platforms > > with these differences: > > > > ~ The Linux installation could be replaced if necessary. > > > > ~ I need to maintain the existing Windows installation, but create an > > additional Apache/PHP/MySQL stack. > > > > What software do I need to de-install before doing an XAMPP > > installation on both platforms? First, I'm sure you already appreciate that XAMPP is not "production quality" security-wise. It sounds like you may be using it for development from the above platform description, I'm guessing. Are there special considerations For Windows: The nice thing about "installing" XAMPP, is that it's not really installed. On windows, no registry entries are made and Apache and MySQL are only installed as services if you invoke the "installservice" bat files for each. If you just use the "start..." bat files, Apache and MySQL are stopped when you close the corresponding DOS cmd windows, which must be left open while running XAMPP under these circumstances. So, what that means is that you need to make sure you stop IIS and your MySQL 4.1.4-gamma when wanting to run the Apache and MySQL in XAMPP -- and vice versa. If you want to save yourself some work, as well as having the latest MySQL, you might consider installing the normal windows MySQL 4.1.9 (like the 4.1.4-gamma), and just not start the MySQL (4.1.8) packaged with XAMPP 1.4.11. That way, MySQL will serve for both IIS/PHP and Apache/PHP and you won't have to start/stop that service. For Linux: XAMPP is installed in /opt/lampp. So, as on windows, you have a completely separate AMP stack under XAMPP. Once again, you just need to stop the "normal" Apache and MySQL daemons and start the XAMPP Apache and MySQL ones. But you did indicate that you could just replace those with XAMPP, and that's what I'd recommend for a development platform. HTH, John From leam at reuel.net Wed Jan 26 05:55:24 2005 From: leam at reuel.net (leam at reuel.net) Date: Wed, 26 Jan 2005 05:55:24 -0500 Subject: [nycphp-talk] Choice of CMS? In-Reply-To: <41F66C9E.1050004@bitblit.net> References: <20050125115808.GF2921@leitz> <41F66C9E.1050004@bitblit.net> Message-ID: <20050126105524.GA2881@leitz> Tue, Jan 25, 2005 at 10:58:22AM -0500, Ajai Khattri wrote: > leam at reuel.net wrote: > > >I'm looking at helping set up a web-site with a possible OSCommerce > >shopping cart. My parameters are Linux 2.4.25, MySql 4.0.22-Standard, > >Apache 1.3.33 and PHP 4.3.10. The possible CMS systems are Drupal, Mambo, > >PHP-Nuke, phpWCMS, PhpWebsite, PostNuke, Siteframe, and Xoops. > >The theory is that the site would be set up and then handed over to the > >client who is not a "computer person". Ease and simplicity would be > >helpful, and security as it's a small business. Any recommentations for or > >against? > > > > Mambo comes with a ready built backend. > > I have similar clients and Im using Mambo. > > -- > Aj. > Systems Administrator / Developer Hmm... server problems this morning. Took a wile to find the server, the test drive is down. Is that a regular thing for them? ciao! leam From phil at bearingasset.com Wed Jan 26 06:06:40 2005 From: phil at bearingasset.com (Phil Duffy) Date: Wed, 26 Jan 2005 06:06:40 -0500 Subject: [nycphp-talk] Migration to XAMPP In-Reply-To: <41F70958.6040307@att.net> Message-ID: <20050126110642.BD0CAA85F0@virtu.nyphp.org> John, Many thanks for your thorough response. I feel a lot more confident about proceeding. Phil -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of John Lacey Sent: Tuesday, January 25, 2005 10:07 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Migration to XAMPP Phil Duffy wrote: > I currently have PHP/MySQL installed on the following platforms: > > > > ~ Windows XP Pro/IIS 5.1/PHP 5.03/MySQL 4.1.4-gamma > > > > ~ SuSE Linix 9.0/Apache 2.0/PHP 4.3.3/MySQL 4.0.15 > > > > I would like to install XAMPP on both the Windows and Linux platforms > > with these differences: > > > > ~ The Linux installation could be replaced if necessary. > > > > ~ I need to maintain the existing Windows installation, but create an > > additional Apache/PHP/MySQL stack. > > > > What software do I need to de-install before doing an XAMPP > > installation on both platforms? First, I'm sure you already appreciate that XAMPP is not "production quality" security-wise. It sounds like you may be using it for development from the above platform description, I'm guessing. Are there special considerations For Windows: The nice thing about "installing" XAMPP, is that it's not really installed. On windows, no registry entries are made and Apache and MySQL are only installed as services if you invoke the "installservice" bat files for each. If you just use the "start..." bat files, Apache and MySQL are stopped when you close the corresponding DOS cmd windows, which must be left open while running XAMPP under these circumstances. So, what that means is that you need to make sure you stop IIS and your MySQL 4.1.4-gamma when wanting to run the Apache and MySQL in XAMPP -- and vice versa. If you want to save yourself some work, as well as having the latest MySQL, you might consider installing the normal windows MySQL 4.1.9 (like the 4.1.4-gamma), and just not start the MySQL (4.1.8) packaged with XAMPP 1.4.11. That way, MySQL will serve for both IIS/PHP and Apache/PHP and you won't have to start/stop that service. For Linux: XAMPP is installed in /opt/lampp. So, as on windows, you have a completely separate AMP stack under XAMPP. Once again, you just need to stop the "normal" Apache and MySQL daemons and start the XAMPP Apache and MySQL ones. But you did indicate that you could just replace those with XAMPP, and that's what I'd recommend for a development platform. HTH, John _______________________________________________ New York PHP Talk Supporting AMP Technology (Apache/MySQL/PHP) http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From tom at supertom.com Wed Jan 26 10:08:04 2005 From: tom at supertom.com (Tom Melendez) Date: Wed, 26 Jan 2005 10:08:04 -0500 Subject: [nycphp-talk] Zend Studio and Server In-Reply-To: <20050121171252.60993.qmail@web52806.mail.yahoo.com> References: <20050121171252.60993.qmail@web52806.mail.yahoo.com> Message-ID: <41F7B254.5010106@supertom.com> Hey Folks, I know this comes up from time to time on this list, but I recall someone on here being affiliated with Zend, and offering discounts for their products. I've been playing around with Zend Studio lately, and might be interested in purchasing a few licenses. Anyone have any info about it? Also, any comments about their support? Are you "on your own" after you buy the product, or is their support top notch? Any thoughts or opinions are greatly appreciated! Thanks, Tom www.liphp.org From mwithington at PLMresearch.com Wed Jan 26 10:13:00 2005 From: mwithington at PLMresearch.com (Mark Withington) Date: Wed, 26 Jan 2005 10:13:00 -0500 Subject: [nycphp-talk] Zend Studio and Server Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358D69F09@network.PLMresearch.com> I think it's a great product. I purchased the extended support - which is conducted via email. This can get a little frustrating give the time differences (e.g. ~11 hours EST), but all in all has worked out ok. -------------------------- 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 Tom Melendez Sent: Wednesday, January 26, 2005 10:08 AM To: NYPHP Talk Subject: [nycphp-talk] Zend Studio and Server Hey Folks, I know this comes up from time to time on this list, but I recall someone on here being affiliated with Zend, and offering discounts for their products. I've been playing around with Zend Studio lately, and might be interested in purchasing a few licenses. Anyone have any info about it? Also, any comments about their support? Are you "on your own" after you buy the product, or is their support top notch? Any thoughts or opinions are greatly appreciated! Thanks, Tom www.liphp.org _______________________________________________ New York PHP Talk Supporting AMP Technology (Apache/MySQL/PHP) http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From mitch.pirtle at gmail.com Wed Jan 26 10:19:12 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Wed, 26 Jan 2005 10:19:12 -0500 Subject: [nycphp-talk] Choice of CMS? In-Reply-To: <20050126105524.GA2881@leitz> References: <20050125115808.GF2921@leitz> <41F66C9E.1050004@bitblit.net> <20050126105524.GA2881@leitz> Message-ID: <330532b6050126071976c01c92@mail.gmail.com> On Wed, 26 Jan 2005 05:55:24 -0500, leam at reuel.net wrote: > > Hmm... server problems this morning. Took a wile to find the server, the test drive is down. Is that a regular thing for them? Nope. First we had a power supply fail, taking the hard drive with it. Then the replacement power supply failed, again taking the power supply with it. Now we are in the throes of getting FreeBSD to act like all other server operating systems (which means allow more than 28 people to connect to the database at once). * mitchy slaps forehead For now you can get it at my site: http://www.spacemonkeylabs.com/ And hopefully I can get the new bsd box cooperating today. -- Mitch, thinking bsd makes gentoo look like MacOS :-/ From nyphp at enobrev.com Wed Jan 26 10:33:26 2005 From: nyphp at enobrev.com (Mark Armendariz) Date: Wed, 26 Jan 2005 10:33:26 -0500 Subject: [nycphp-talk] Zend Studio and Server In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358D69F09@network.PLMresearch.com> Message-ID: <20050126153328.73F2AA85F0@virtu.nyphp.org> > I know this comes up from time to time on this list, but I recall > someone on here being affiliated with Zend, and offering discounts for > their products. I've been playing around with Zend Studio lately, and > might be interested in purchasing a few licenses. Anyone have any info > about it? As a beta tester you get a pretty good amount off the price (20%?). they just started a round of testing for ZDE 4, so you might be able to get in on it. > Also, any comments about their support? Are you "on your own" after you > buy the product, or is their support top notch? Any thoughts or opinions > are greatly appreciated! I've had very good experience with their support, at least in the one instance I truly needed it. There were some shared servers the ftp of ZDE wouldn't log into correctly. It wouldn't show linked directories properly. I gave the tech a login to recreate the error and within a couple days I had a new build of ZDE 3 which fixed the problem. > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > On Behalf Of Mark Withington > Sent: Wednesday, January 26, 2005 10:13 AM > To: 'NYPHP Talk' > Subject: RE: [nycphp-talk] Zend Studio and Server > > I think it's a great product. I purchased the extended support - which is > conducted via email. This can get a little frustrating give the time > differences (e.g. ~11 hours EST), but all in all has worked out ok. > > -------------------------- > 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 Tom Melendez > Sent: Wednesday, January 26, 2005 10:08 AM > To: NYPHP Talk > Subject: [nycphp-talk] Zend Studio and Server > > > Hey Folks, > > I know this comes up from time to time on this list, but I recall > someone on here being affiliated with Zend, and offering discounts for > their products. I've been playing around with Zend Studio lately, and > might be interested in purchasing a few licenses. Anyone have any info > about it? > > Also, any comments about their support? Are you "on your own" after you > buy the product, or is their support top notch? Any thoughts or opinions > are greatly appreciated! > > Thanks, > > Tom > www.liphp.org > > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org From rahmin at insite-out.com Wed Jan 26 11:36:10 2005 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Wed, 26 Jan 2005 11:36:10 -0500 Subject: [nycphp-talk] ftp: error messages? Message-ID: <200501261636.j0QGaAYP013614@webmail5.megamailservers.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From chsnyder at gmail.com Wed Jan 26 12:28:19 2005 From: chsnyder at gmail.com (csnyder) Date: Wed, 26 Jan 2005 12:28:19 -0500 Subject: [nycphp-talk] Redirect after post with "HTTP/1.1 303 See Other" Message-ID: To solve a casual bet I made with HansK after John Andrews' excellent SEO presentation last night... It turns out that there IS an HTTP Status Code for redirection after form processing. (Sir Tim thinks of everything, he's so dreamy...) "303 See Other ... This method exists primarily to allow the output of a POST-activated script to redirect the user agent to a selected resource. The new URI is not a substitute reference for the originally requested resource. The 303 response MUST NOT be cached..." -- http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.4 Bear in mind that browsers which only speak HTTP 1.0 won't know what to do with it, but there it is. continue.' ); ?> Clicking refresh resubmits the get request for result.html, not the original post request. (Same behavior as redirection with the default 302 status.) Anecdotal testing proves that it works in IE and Firefox. chris. From danielc at analysisandsolutions.com Wed Jan 26 12:40:53 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 26 Jan 2005 12:40:53 -0500 Subject: [nycphp-talk] Redirect after post with "HTTP/1.1 303 See Other" In-Reply-To: References: Message-ID: <20050126174053.GA19293@panix.com> Hey Chris: On Wed, Jan 26, 2005 at 12:28:19PM -0500, csnyder wrote: > > // process form > ... > // redirect to results page > header( 'HTTP/1.1 303 See Other' ); > header( 'Location: result.html' ); > exit( 'Form submitted, continue.' ); > ?> Good point. But some feedback here. The optimail syntax is: Here's why... Using "Status:" in the header is better because the resulting headers from Apache are more correct: HTTP/1.1 303 See Other instead of HTTP/1.1 303 Additionally, one doesn't really know which version of HTTP is being used, so why potentially cause problems by trying to guess. The specs say location headers must have a complete URI in them, not just the path. Lastly, you don't want any output after the location header. Later, --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 chsnyder at gmail.com Wed Jan 26 12:59:38 2005 From: chsnyder at gmail.com (csnyder) Date: Wed, 26 Jan 2005 12:59:38 -0500 Subject: [nycphp-talk] Redirect after post with "HTTP/1.1 303 See Other" In-Reply-To: <20050126174053.GA19293@panix.com> References: <20050126174053.GA19293@panix.com> Message-ID: Daniel Convissor wrote: > Lastly, you don't want any output after the location header. Actually I do -- it's not harmful to have an entity attached to the redirect response, and it covers the case of non-HTTP/1.1 browsers. But good points on all other counts -- using header( 'Status: XXX' ) instead of header( 'HTTP/1.x XXX' ) is a great idea. From Cbielanski at inta.org Wed Jan 26 13:03:19 2005 From: Cbielanski at inta.org (Chris Bielanski) Date: Wed, 26 Jan 2005 13:03:19 -0500 Subject: [nycphp-talk] Redirect after post with "HTTP/1.1 303 See Other " Message-ID: <4DBE3775D77C744E9D1B9D06082E75D60AAB1E@intamail1.com> You might want to make sure that your environment properly supports the whole 300 series of messages. A few years back on a ColdFusion/IIS4 project where we found that not all redirect messages are treated equally (or per the letter of the RFC), sometimes at the server, sometimes at the browser. Just FYI. 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 Beginning January 31, 2005, INTA's new address will be: 655 Third Avenue, 10th Floor New York, NY 10017-5617 USA Phone and Fax numbers and email addresses remain the same. From ajai at bitblit.net Wed Jan 26 13:14:38 2005 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 26 Jan 2005 13:14:38 -0500 Subject: [nycphp-talk] Choice of CMS? In-Reply-To: <330532b6050126071976c01c92@mail.gmail.com> References: <20050125115808.GF2921@leitz> <41F66C9E.1050004@bitblit.net> <20050126105524.GA2881@leitz> <330532b6050126071976c01c92@mail.gmail.com> Message-ID: <41F7DE0E.30203@bitblit.net> Mitch Pirtle wrote: > >-- Mitch, thinking bsd makes gentoo look like MacOS :-/ > What does that mean? ;-) -- Aj. Systems Administrator / Developer From rajlist at rajshekhar.net Wed Jan 26 13:15:59 2005 From: rajlist at rajshekhar.net (Raj Shekhar) Date: Wed, 26 Jan 2005 23:45:59 +0530 Subject: [nycphp-talk] ftp: error messages? In-Reply-To: <200501261636.j0QGaAYP013614@webmail5.megamailservers.com> References: <200501261636.j0QGaAYP013614@webmail5.megamailservers.com> Message-ID: <41F7DE5F.30307@rajshekhar.net> Rahmin Pavlovic wrote: > Halo, > > I have an ftp script that uploads a file to remote server once a day via cron. > The people who receive the file say it doesn't come through every now and then. > I send an email to our team if ftp_put() returns false, but I'm wondering if it's > possible to capture error messages that explain why. I can't seem to find anything. Since you are running the script via cron, you should have a look at /var/log/messages to see what might have caused the problem around that time. Cron usually logs its actions to the messages file. You can also put your error log in a file and then later inspect it. i.e. in your cron file, the command should be YOUR_FTP_SCRIPT 2&> ERR_LOG_FILE -- ,-.___,-. Raj Shekhar \_/_ _\_/ System Administrator, programmer and slacker )O_O( home : http://rajshekhar.net { (_) } blog : http://rajshekhar.net/blog/ `-^-' work : http://netphotograph.com From hans at cyberxdesigns.com Wed Jan 26 13:17:58 2005 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Wed, 26 Jan 2005 13:17:58 -0500 Subject: [nycphp-talk] Redirect after post with "HTTP/1.1 303 See Other" In-Reply-To: References: Message-ID: <41F7DED6.6010503@cyberxdesigns.com> +1 Chris! I owe you a cold adult beverage. John, do you have an opinion on this? Hans -- Hans C. Kaspersetz Cyber X Designs http://www.cyberxdesigns.com csnyder wrote: >To solve a casual bet I made with HansK after John Andrews' excellent >SEO presentation last night... > >It turns out that there IS an HTTP Status Code for redirection after >form processing. (Sir Tim thinks of everything, he's so dreamy...) > >"303 See Other ... This method exists primarily to allow the output of >a POST-activated script to redirect the user agent to a selected >resource. The new URI is not a substitute reference for the originally >requested resource. The 303 response MUST NOT be cached..." > -- http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.4 > >Bear in mind that browsers which only speak HTTP 1.0 won't know what >to do with it, but there it is. > > // process form > ... > // redirect to results page > header( 'HTTP/1.1 303 See Other' ); > header( 'Location: result.html' ); > exit( 'Form submitted, continue.' ); >?> > >Clicking refresh resubmits the get request for result.html, not the >original post request. (Same behavior as redirection with the default >302 status.) Anecdotal testing proves that it works in IE and Firefox. > > chris. > From mitch.pirtle at gmail.com Wed Jan 26 14:21:58 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Wed, 26 Jan 2005 14:21:58 -0500 Subject: [nycphp-talk] Choice of CMS? In-Reply-To: <41F7DE0E.30203@bitblit.net> References: <20050125115808.GF2921@leitz> <41F66C9E.1050004@bitblit.net> <20050126105524.GA2881@leitz> <330532b6050126071976c01c92@mail.gmail.com> <41F7DE0E.30203@bitblit.net> Message-ID: <330532b605012611214d9ca604@mail.gmail.com> On Wed, 26 Jan 2005 13:14:38 -0500, Ajai Khattri wrote: > Mitch Pirtle wrote: > > > >-- Mitch, thinking bsd makes gentoo look like MacOS :-/ > > > What does that mean? > ;-) Don't get me started! From 1j0lkq002 at sneakemail.com Wed Jan 26 14:52:53 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Wed, 26 Jan 2005 14:52:53 -0500 Subject: [nycphp-talk] Redirect after post with "HTTP/1.1 303 See Other" In-Reply-To: <41F7DED6.6010503@cyberxdesigns.com> References: <41F7DED6.6010503@cyberxdesigns.com> Message-ID: <3000-74006@sneakemail.com> Hans C. Kaspersetz hans-at-cyberxdesigns.com |nyphp dev/internal group use| wrote: > +1 Chris! I owe you a cold adult beverage. > John, do you have an opinion on this? > > Hans > My opinion is that Dan and Chris are both brilliant and diligent. I have no experience with the 303, but I can inquire of Google and Yahoo! and ask around. If it works practically, it might be an answer to the flash detection issue (?). Since any redirect has potential for abuse, however if there was a way to do it without any redirection, of course that is best. -=john andrews From mitch.pirtle at gmail.com Wed Jan 26 10:57:55 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Wed, 26 Jan 2005 10:57:55 -0500 Subject: [nycphp-talk] Choice of CMS? In-Reply-To: <330532b6050126071976c01c92@mail.gmail.com> References: <20050125115808.GF2921@leitz> <41F66C9E.1050004@bitblit.net> <20050126105524.GA2881@leitz> <330532b6050126071976c01c92@mail.gmail.com> Message-ID: <330532b60501260757288bd607@mail.gmail.com> Well, just got some help from the PostgreSQL guys for the FreeBSD issues, and think MamboForge.net is finally fixed. If any of you experience problems, please email me so I am aware - that way it is easier for me to diagnose the problems. Thanks for your patience, -- Mitch On Wed, 26 Jan 2005 10:19:12 -0500, Mitch Pirtle wrote: > On Wed, 26 Jan 2005 05:55:24 -0500, leam at reuel.net wrote: > > > > Hmm... server problems this morning. Took a wile to find the server, the test drive is down. Is that a regular thing for them? > > Nope. First we had a power supply fail, taking the hard drive with > it. Then the replacement power supply failed, again taking the power > supply with it. Now we are in the throes of getting FreeBSD to act > like all other server operating systems (which means allow more than > 28 people to connect to the database at once). > > * mitchy slaps forehead > > For now you can get it at my site: > > http://www.spacemonkeylabs.com/ > > And hopefully I can get the new bsd box cooperating today. > > -- Mitch, thinking bsd makes gentoo look like MacOS :-/ > From ajai at bitblit.net Wed Jan 26 15:05:18 2005 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 26 Jan 2005 15:05:18 -0500 Subject: [nycphp-talk] Choice of CMS? In-Reply-To: <330532b60501260757288bd607@mail.gmail.com> References: <20050125115808.GF2921@leitz> <41F66C9E.1050004@bitblit.net> <20050126105524.GA2881@leitz> <330532b6050126071976c01c92@mail.gmail.com> <330532b60501260757288bd607@mail.gmail.com> Message-ID: <41F7F7FE.7000202@bitblit.net> Mitch Pirtle wrote: >Well, just got some help from the PostgreSQL guys for the FreeBSD >issues, and think MamboForge.net is finally fixed. > >If any of you experience problems, please email me so I am aware - >that way it is easier for me to diagnose the problems. > Yeah, cvsweb is broken. On the docs wiki, you can't get to the Developer Manual. -- Aj. Systems Administrator / Developer From michael.southwell at nyphp.org Wed Jan 26 16:53:15 2005 From: michael.southwell at nyphp.org (Michael Southwell) Date: Wed, 26 Jan 2005 16:53:15 -0500 Subject: [nycphp-talk] OT: curious router - server interaction problem Message-ID: <6.1.2.0.2.20050126163805.02986ea0@mail.optonline.net> I know this is OT, but I also know that there are lots of smart people here, so..... I have a Linksys wireless-B router that works perfectly except that I can't even ping 67.15.70.19. If I bypass the router and go directly to the cable box, no problem; if I (ahem) borrow my neighbor's wireless-G, again no problem. DNS information is correct. Both Linksys and Optonline are baffled. I would appreciate it if others with a moment of spare time, curiosity about this odd problem, and the same router, Linksys wireless-B, specifically BEFW11S4 (which by the way has the latest firmware), could try pinging and report to me OFFLIST what happens. If you can connect, you might try http://www.carolynbross.com which is what I'm trying to work on. If anyone else with different equipment has any anomalous result (I am expecting everybody else to have no problem), I'd appreciate hearing about that also. Thanks in advance, and once again I apologize for this OT message. Michael Southwell VP, Education Department New York PHP michael.southwell at nyphp.org From kushner at gmail.com Wed Jan 26 17:18:53 2005 From: kushner at gmail.com (Daniel Kushner) Date: Wed, 26 Jan 2005 14:18:53 -0800 Subject: [nycphp-talk] Zend Studio and Server In-Reply-To: <20050126153328.73F2AA85F0@virtu.nyphp.org> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358D69F09@network.PLMresearch.com> <20050126153328.73F2AA85F0@virtu.nyphp.org> Message-ID: <7ac626ed05012614183489a2e1@mail.gmail.com> On Wed, 26 Jan 2005 10:33:26 -0500, Mark Armendariz wrote: > > I know this comes up from time to time on this list, but I recall > > someone on here being affiliated with Zend, and offering discounts for > > their products. I've been playing around with Zend Studio lately, and > > might be interested in purchasing a few licenses. Anyone have any info > > about it? That would be me :) > As a beta tester you get a pretty good amount off the price (20%?). they > just started a round of testing for ZDE 4, so you might be able to get in on > it. That's a good deal and the ZDE is really awesome. I'll send Hans a formal promotion code for New York PHP within a couple of days. There'll be a 25% discount for the ZDE and some other goodies. Best, Daniel Kushner ______________________________________ Director of Education Zend Technologies Ltd. Zend Certified Engineer http://zend.com/zce.php?c=ZEND001047&r=209122599 Tel: +1 (408) 253-8800 Fax: +1 (408) 253-8801 daniel at zend.com http://www.zend.com ================================================================== Learn PHP from the experts http://www.zend.com/training/courses ================================================================== From leam at reuel.net Wed Jan 26 18:27:51 2005 From: leam at reuel.net (leam at reuel.net) Date: Wed, 26 Jan 2005 18:27:51 -0500 Subject: [nycphp-talk] OT: curious router - server interaction problem In-Reply-To: <6.1.2.0.2.20050126163805.02986ea0@mail.optonline.net> References: <6.1.2.0.2.20050126163805.02986ea0@mail.optonline.net> Message-ID: <20050126232751.GD4397@leitz> Just as an aside, some small routers won't connect to their own WAN address. So if you are 67.15.70.19 that might be the issue. ciao! leam On Wed, Jan 26, 2005 at 04:53:15PM -0500, Michael Southwell wrote: > I know this is OT, but I also know that there are lots of smart people > here, so..... > > I have a Linksys wireless-B router that works perfectly except that I can't > even ping 67.15.70.19. If I bypass the router and go directly to the cable > box, no problem; if I (ahem) borrow my neighbor's wireless-G, again no > problem. DNS information is correct. Both Linksys and Optonline are > baffled. I would appreciate it if others with a moment of spare time, > curiosity about this odd problem, and the same router, Linksys wireless-B, > specifically BEFW11S4 (which by the way has the latest firmware), could try > pinging and report to me OFFLIST what happens. If you can connect, you > might try http://www.carolynbross.com which is what I'm trying to work > on. If anyone else with different equipment has any anomalous result (I am > expecting everybody else to have no problem), I'd appreciate hearing about > that also. > > Thanks in advance, and once again I apologize for this OT message. > > Michael Southwell > VP, Education Department > New York PHP > michael.southwell at nyphp.org From nestorflorez at earthlink.net Wed Jan 26 19:04:39 2005 From: nestorflorez at earthlink.net (Nestor Florez) Date: Wed, 26 Jan 2005 16:04:39 -0800 (GMT-08:00) Subject: [nycphp-talk] Zend Studio and Server Message-ID: <14084954.1106784279840.JavaMail.root@grover.psp.pas.earthlink.net> Darn! I talk my boss into buying ZDE and I did not get any goodies. :-( -----Original Message----- From: Daniel Kushner Sent: Jan 26, 2005 2:18 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Zend Studio and Server On Wed, 26 Jan 2005 10:33:26 -0500, Mark Armendariz wrote: > > I know this comes up from time to time on this list, but I recall > > someone on here being affiliated with Zend, and offering discounts for > > their products. I've been playing around with Zend Studio lately, and > > might be interested in purchasing a few licenses. Anyone have any info > > about it? That would be me :) > As a beta tester you get a pretty good amount off the price (20%?). they > just started a round of testing for ZDE 4, so you might be able to get in on > it. That's a good deal and the ZDE is really awesome. I'll send Hans a formal promotion code for New York PHP within a couple of days. There'll be a 25% discount for the ZDE and some other goodies. Best, Daniel Kushner ______________________________________ Director of Education Zend Technologies Ltd. Zend Certified Engineer http://zend.com/zce.php?c=ZEND001047&r=209122599 Tel: +1 (408) 253-8800 Fax: +1 (408) 253-8801 daniel at zend.com http://www.zend.com ================================================================== Learn PHP from the experts http://www.zend.com/training/courses ================================================================== _______________________________________________ New York PHP Talk Supporting AMP Technology (Apache/MySQL/PHP) http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From mitch.pirtle at gmail.com Wed Jan 26 19:50:15 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Wed, 26 Jan 2005 19:50:15 -0500 Subject: [nycphp-talk] Choice of CMS? In-Reply-To: <41F7F7FE.7000202@bitblit.net> References: <20050125115808.GF2921@leitz> <41F66C9E.1050004@bitblit.net> <20050126105524.GA2881@leitz> <330532b6050126071976c01c92@mail.gmail.com> <330532b60501260757288bd607@mail.gmail.com> <41F7F7FE.7000202@bitblit.net> Message-ID: <330532b6050126165058b3a292@mail.gmail.com> You are right, cvsweb is broken (as are the gforge forums) and the manual is referenced through cvsweb. This site (mamboforge.net) is being replaced, and hopefully the new site will be online within the next week or so. There is also a new help site in the works that is almost finished, that will be the new home for documentation and tutorials on Mambo. Sorry for the downtime, we had repeated hardware failures right as we were gearing up for the switch :-( -- Mitch On Wed, 26 Jan 2005 15:05:18 -0500, Ajai Khattri wrote: > Mitch Pirtle wrote: > > >Well, just got some help from the PostgreSQL guys for the FreeBSD > >issues, and think MamboForge.net is finally fixed. > > > >If any of you experience problems, please email me so I am aware - > >that way it is easier for me to diagnose the problems. > > > > Yeah, cvsweb is broken. > > On the docs wiki, you can't get to the Developer Manual. From 1j0lkq002 at sneakemail.com Wed Jan 26 21:29:11 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Wed, 26 Jan 2005 21:29:11 -0500 Subject: [nycphp-talk] Redirect after post with "HTTP/1.1 303 See Other" In-Reply-To: <3000-74006@sneakemail.com> References: <41F7DED6.6010503@cyberxdesigns.com> <3000-74006@sneakemail.com> Message-ID: <10650-47090@sneakemail.com> inforequest 1j0lkq002-at-sneakemail.com |nyphp dev/internal group use| wrote: > Hans C. Kaspersetz hans-at-cyberxdesigns.com |nyphp dev/internal group > use| wrote: > >> +1 Chris! I owe you a cold adult beverage. >> John, do you have an opinion on this? >> >> Hans >> > My opinion is that Dan and Chris are both brilliant and diligent. > > I have no experience with the 303, but I can inquire of Google and > Yahoo! and ask around. > > If it works practically, it might be an answer to the flash detection > issue (?). Since any redirect has potential for abuse, however if > there was a way to do it without any redirection, of course that is best. > > -=john andrews It appears from my read of past history that the 303 is treated like a temporary redirect (e.g. untrusted, like a 302 or meta refresh) This may be a case where using the 301 is "best" even though it may be technically incorrect (?) From john at cyber-ny.com Wed Jan 26 21:30:37 2005 From: john at cyber-ny.com (John Nunez) Date: Wed, 26 Jan 2005 21:30:37 -0500 Subject: [nycphp-talk] Zend Studio and Server In-Reply-To: <7ac626ed05012614183489a2e1@mail.gmail.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358D69F09@network.PLMresearch.com> <20050126153328.73F2AA85F0@virtu.nyphp.org> <7ac626ed05012614183489a2e1@mail.gmail.com> Message-ID: <6D9DF9EA-700B-11D9-9C48-000D93B7E95A@cyber-ny.com> When will the 4.0 Beta for Mac OS X come out? Just got an iBook for XMas and wanted to switch over. Thanks, John Nunez On Jan 26, 2005, at 5:18 PM, Daniel Kushner wrote: > On Wed, 26 Jan 2005 10:33:26 -0500, Mark Armendariz > wrote: >>> I know this comes up from time to time on this list, but I recall >>> someone on here being affiliated with Zend, and offering discounts >>> for >>> their products. I've been playing around with Zend Studio lately, and >>> might be interested in purchasing a few licenses. Anyone have any >>> info >>> about it? > > That would be me :) > >> As a beta tester you get a pretty good amount off the price (20%?). >> they >> just started a round of testing for ZDE 4, so you might be able to >> get in on >> it. > > That's a good deal and the ZDE is really awesome. > > I'll send Hans a formal promotion code for New York PHP within a > couple of days. There'll be a 25% discount for the ZDE and some other > goodies. > > Best, > Daniel Kushner > ______________________________________ > Director of Education > Zend Technologies Ltd. > > Zend Certified Engineer > http://zend.com/zce.php?c=ZEND001047&r=209122599 > > Tel: +1 (408) 253-8800 > Fax: +1 (408) 253-8801 > daniel at zend.com > http://www.zend.com > > ================================================================== > Learn PHP from the experts > http://www.zend.com/training/courses > ================================================================== > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From agfische at email.smith.edu Thu Jan 27 09:36:59 2005 From: agfische at email.smith.edu (Aaron Fischer) Date: Thu, 27 Jan 2005 09:36:59 -0500 Subject: [nycphp-talk] Zend Studio and Server In-Reply-To: <6D9DF9EA-700B-11D9-9C48-000D93B7E95A@cyber-ny.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358D69F09@network.PLMresearch.com> <20050126153328.73F2AA85F0@virtu.nyphp.org> <7ac626ed05012614183489a2e1@mail.gmail.com> <6D9DF9EA-700B-11D9-9C48-000D93B7E95A@cyber-ny.com> Message-ID: <7b65ded830927af35597745cdcbe368a@email.smith.edu> I'll be interested in checking it out as well when it is available on OS X. -Aaron On Jan 26, 2005, at 9:30 PM, John Nunez wrote: > When will the 4.0 Beta for Mac OS X come out? Just got an iBook for > XMas and wanted to switch over. > > Thanks, > John Nunez From faber at linuxnj.com Thu Jan 27 11:03:33 2005 From: faber at linuxnj.com (Faber Fedor) Date: Thu, 27 Jan 2005 11:03:33 -0500 Subject: [nycphp-talk] Simple search engine Message-ID: <20050127160333.GA20816@uranus.faber.nom> Can anyone suggest a simple search engine for a small website? I was going to use htdig but I can't get it installed on a RH8 box no way no how. -- Regards, Faber Linux New Jersey: Open Source Solutions for New Jersey http://www.linuxnj.com From chsnyder at gmail.com Thu Jan 27 11:06:38 2005 From: chsnyder at gmail.com (csnyder) Date: Thu, 27 Jan 2005 11:06:38 -0500 Subject: [nycphp-talk] Redirect after post with "HTTP/1.1 303 See Other" In-Reply-To: <10650-47090@sneakemail.com> References: <41F7DED6.6010503@cyberxdesigns.com> <3000-74006@sneakemail.com> <10650-47090@sneakemail.com> Message-ID: Since the purpose of 303 is to redirect after form submission, a crawler should never encounter it. Then again, how long will it be before gcrawler is registering for sites and submitting searches of its own? ;-) From ajai at bitblit.net Thu Jan 27 11:18:15 2005 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 27 Jan 2005 11:18:15 -0500 Subject: [nycphp-talk] Simple search engine In-Reply-To: <20050127160333.GA20816@uranus.faber.nom> References: <20050127160333.GA20816@uranus.faber.nom> Message-ID: <41F91447.1070905@bitblit.net> Faber Fedor wrote: > >I was going to use htdig but I can't get it installed on a RH8 box no >way no how. > Did you visit RPM dependency hell? ;-) -- Aj. Systems Administrator / Developer From andrew at plexpod.com Thu Jan 27 11:28:46 2005 From: andrew at plexpod.com (Andrew Yochum) Date: Thu, 27 Jan 2005 11:28:46 -0500 Subject: [nycphp-talk] Simple search engine In-Reply-To: <20050127160333.GA20816@uranus.faber.nom> References: <20050127160333.GA20816@uranus.faber.nom> Message-ID: <20050127162834.GC21270@zoidberg.digitalpulp.com> On Thu, Jan 27, 2005 at 11:03:33AM -0500, Faber Fedor wrote: > Can anyone suggest a simple search engine for a small website? > > I was going to use htdig but I can't get it installed on a RH8 box no > way no how. I've used iSearch in situations like that. The indexer can be a bit sluggish and resource intensive. Otherwise, its simple, has nice basic features and is easily customized - both presentation and logic. It definitely does the trick for small sites. See: http://www.isearchthenet.com/isearch/ HTH, Andrew From 1j0lkq002 at sneakemail.com Thu Jan 27 11:30:27 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Thu, 27 Jan 2005 11:30:27 -0500 Subject: [nycphp-talk] Redirect after post with "HTTP/1.1 303 See Other" In-Reply-To: References: <41F7DED6.6010503@cyberxdesigns.com> <3000-74006@sneakemail.com> <10650-47090@sneakemail.com> Message-ID: <1562-06899@sneakemail.com> csnyder chsnyder-at-gmail.com |nyphp dev/internal group use| wrote: >Since the purpose of 303 is to redirect after form submission, a >crawler should never encounter it. > >Then again, how long will it be before gcrawler is registering for >sites and submitting searches of its own? ;-) > > As far as I know crawlers skip forms completely. Do they even "know" they are there? From faber at linuxnj.com Thu Jan 27 11:39:13 2005 From: faber at linuxnj.com (Faber Fedor) Date: Thu, 27 Jan 2005 11:39:13 -0500 Subject: [nycphp-talk] Re: Simple search engine In-Reply-To: <41F91447.1070905@bitblit.net> References: <20050127160333.GA20816@uranus.faber.nom> <41F91447.1070905@bitblit.net> Message-ID: <20050127163913.GA21051@uranus.faber.nom> On 27/01/05 11:18 -0500, Ajai Khattri wrote: > Faber Fedor wrote: > > > > >I was going to use htdig but I can't get it installed on a RH8 box no > >way no how. > > > > Did you visit RPM dependency hell? ;-) Not quite. The source won't compile because it can't find libstdc++/c++ compiler even though it's installed (presumably in a place that the source can't find it). So I installed from the RPM which is a beta version of htdig. That aborts due to a NULL bug. So I find the patch, grab the source RPM and go about rebuilding the RPM. Turns out I don't have various include files, IOW I need an htdig-devel RPM which AKAICT doesn't exist for any distro other than Mandrake. At that point, I gave up. I'm currently trying PHPDig but I'm stuck trying to find out where to set the admin name/passwd in includes/config.php. -- Regards, Faber Linux New Jersey: Open Source Solutions for New Jersey http://www.linuxnj.com From chsnyder at gmail.com Thu Jan 27 11:40:35 2005 From: chsnyder at gmail.com (csnyder) Date: Thu, 27 Jan 2005 11:40:35 -0500 Subject: [nycphp-talk] Redirect after post with "HTTP/1.1 303 See Other" In-Reply-To: <1562-06899@sneakemail.com> References: <41F7DED6.6010503@cyberxdesigns.com> <3000-74006@sneakemail.com> <10650-47090@sneakemail.com> <1562-06899@sneakemail.com> Message-ID: On Thu, 27 Jan 2005 11:30:27 -0500, inforequest <1j0lkq002 at sneakemail.com> wrote: > As far as I know crawlers skip forms completely. Do they even "know" > they are there? The spambots sure do. From 1j0lkq002 at sneakemail.com Thu Jan 27 13:31:29 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Thu, 27 Jan 2005 13:31:29 -0500 Subject: [OT] Re: [nycphp-talk] Redirect after post with HTTP/1.1 303 See Other Message-ID: <5061-08895@sneakemail.com> wonderful. I would love to have the spambots ban me! Original Message: ----------------- From: csnyder chsnyder-at-gmail.com |nyphp dev/internal group use| ... Date: Thu, 27 Jan 2005 11:40:35 -0500 To: talk at lists.nyphp.org Subject: Re: [nycphp-talk] Redirect after post with "HTTP/1.1 303 See Other" On Thu, 27 Jan 2005 11:30:27 -0500, inforequest <1j0lkq002 at sneakemail.com> wrote: > As far as I know crawlers skip forms completely. Do they even "know" > they are there? The spambots sure do. _______________________________________________ New York PHP Talk Supporting AMP Technology (Apache/MySQL/PHP) http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From mitch.pirtle at gmail.com Thu Jan 27 18:05:31 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Thu, 27 Jan 2005 18:05:31 -0500 Subject: [nycphp-talk] [OT] any strongbad fans out there? Message-ID: <330532b6050127150545ac04e6@mail.gmail.com> I was pointed at this today, and literally needed a kleenex from laughing so hard for so long. http://www.homestarrunner.com/sbemail.html -- Mitch From rahmin at insite-out.com Thu Jan 27 18:12:44 2005 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Thu, 27 Jan 2005 18:12:44 -0500 Subject: [nycphp-talk] [OT] any strongbad fans out there? Message-ID: <200501272312.j0RNCiYP014974@webmail5.megamailservers.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From jsiegel1 at optonline.net Thu Jan 27 18:24:24 2005 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Thu, 27 Jan 2005 18:24:24 -0500 Subject: [nycphp-talk] [OT] any strongbad fans out there? In-Reply-To: <330532b6050127150545ac04e6@mail.gmail.com> References: <330532b6050127150545ac04e6@mail.gmail.com> Message-ID: <41F97828.7050102@optonline.net> My kids memorized this one - http://www.homestarrunner.com/fluffypuff2.html Jeff Mitch Pirtle wrote: > I was pointed at this today, and literally needed a kleenex from > laughing so hard for so long. > > http://www.homestarrunner.com/sbemail.html > > -- Mitch > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > From heli_travel at yahoo.com Fri Jan 28 10:23:55 2005 From: heli_travel at yahoo.com (haha) Date: Fri, 28 Jan 2005 07:23:55 -0800 (PST) Subject: [nycphp-talk] The speed of a program Message-ID: <20050128152356.63467.qmail@web12206.mail.yahoo.com> Hi All: Is there a program I can use to test the speed of the php program? I need it to get the profermence of my program. Thanks, LY __________________________________ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. http://info.mail.yahoo.com/mail_250 From danielc at analysisandsolutions.com Fri Jan 28 10:29:33 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 28 Jan 2005 10:29:33 -0500 Subject: [nycphp-talk] The speed of a program In-Reply-To: <20050128152356.63467.qmail@web12206.mail.yahoo.com> References: <20050128152356.63467.qmail@web12206.mail.yahoo.com> Message-ID: <20050128152933.GA18781@panix.com> Heya: On Fri, Jan 28, 2005 at 07:23:55AM -0800, haha wrote: > > Is there a program I can use to test the speed of the php > program? I need it to get the profermence of my program. http://pear.php.net/package/Benchmark --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 ajai at bitblit.net Fri Jan 28 12:04:13 2005 From: ajai at bitblit.net (Ajai Khattri) Date: Fri, 28 Jan 2005 12:04:13 -0500 Subject: [nycphp-talk] [OT] any strongbad fans out there? In-Reply-To: <330532b6050127150545ac04e6@mail.gmail.com> References: <330532b6050127150545ac04e6@mail.gmail.com> Message-ID: <41FA708D.7090401@bitblit.net> Mitch Pirtle wrote: >I was pointed at this today, and literally needed a kleenex from >laughing so hard for so long. > >http://www.homestarrunner.com/sbemail.html > Ja-we Ja-we Ja-wanna check me email... We have been fans for a long time here - I even have the toy figures sitting on top of my monitor. My favorites are the parody of Japanese anime and the one explaining how to deal with dullards: http://homestarrunner.com/sbemail57.html http://homestarrunner.com/sbemail37.html "Your computer has too much computer in it and not enough typewriter." ;-) http://homestarrunner.com/sbemail34.html -- Aj. Systems Administrator / Developer From 1j0lkq002 at sneakemail.com Fri Jan 28 13:39:45 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Fri, 28 Jan 2005 13:39:45 -0500 Subject: [nycphp-talk] [OT] mySql targeted by worm In-Reply-To: <20050128152933.GA18781@panix.com> References: <20050128152356.63467.qmail@web12206.mail.yahoo.com> <20050128152933.GA18781@panix.com> Message-ID: <27915-55598@sneakemail.com> In case it hasn't been mentioned: mysql on windows targeted by worm: http://isc.sans.org/diary.php?date=2005-01-27&isc=811c8d08470e11fdb8efdabfe5bee079 quoted: A "bot", exploiting vulnerable MySQL installs on Windows systems, has been spotted. It infected a few thousand systems so far. Like typical for bots, infected systems will connect to an IRC server. The IRC server will instruct them to scan various /8 networks for other vulnerable mysql servers. *Infection Method* The bot uses the "MySQL UDF Dynamic Library Exploit". In order to launch the exploit, the bot first has to authenticate to mysql as 'root' user. A long list of passwords is included with the bot, and the bot will brute force the password. Once connected, the bot will create a table called 'bla' using the database 'mysql'. The 'mysql' database is typically used to store administrative information like passwords, and is part of every mysql install. The only field in this database is a BLOB named 'line'. Once the table is created, the executable is written into the table using an insert statement. Then, the content of is written to a file called 'app_result.dll' using 'select * from bla into dumpfile "app_result.dll"'. The 'bla' table is dropped once the file is created. In order to execute the 'app_result.dll', the bot creates a mysql function called 'app_result' which uses the 'app_result.dll' file saved earlier. This function is executed, and as a result the bot is loaded and run. *Post Infection Behavior* The bot will now try to connect to one out of a number of IRC servers: dummylandingzone.hn.org -> 212.105.105.214 this have been disabled by respective dynamic dns providers(thanks!!): landingzone.ath.cx -> 212.105.105.214 dummylandingzone.dyndns.org -> no such name landingzone.dynamic-ip.us -> was: 212.105.105.214 dummylandingzone.dns2go.com -> 63.64.164.91 and 63.149.6.91 dummylandingzone.hn.org -> 212.105.105.214 dummylandingzone.dynu.com -> 212.105.105.214 zmoker.dns2go.com -> 63.64.164.91 landingzone.dynu.com -> was: 212.105.105.214 dummylandingzone.ipupdater.com -> 212.105.105.214 The bot will connect to the IRC server on port 5002 or 5003. At this point, the IRC servers appear busy and unable to accept new connections. Note that dynamic DNS services are used. The IP addresses will likely change. Last time we where able to connect, about 8,500 hosts where connected to the IRC server. The bot will connect to a channel called '#rampenstampen' using the key 'gratisporn'. The topic of the channel is set to '!adv.start mysql 80 10 0 132.x.x.x -a -r -s'. This will instruct the bot to scan random ips in '132.0.0.0/8' for mysql server. Throughout our observation, the topic was changed regularly. To be scanned networks included 10.0.0.0/8, likely an attempt to infect other mysql servers within a local network that is otherwise protected by a firewall. So far, the bot has been identified as a version of 'Wootbot'. It appears to include the usual set of bot features like a DDOS engine, various scanners, commands to solicit information from infected systems (e.g. system stats, software registration keys and such). The bot provides an FTP server, and a backdoors (details later. Appears to be listening on port 2301/tcp and 2304/tcp, maybe other ports). From chsnyder at gmail.com Fri Jan 28 16:06:48 2005 From: chsnyder at gmail.com (csnyder) Date: Fri, 28 Jan 2005 16:06:48 -0500 Subject: [nycphp-talk] [OT] mySql targeted by worm In-Reply-To: <27915-55598@sneakemail.com> References: <20050128152356.63467.qmail@web12206.mail.yahoo.com> <20050128152933.GA18781@panix.com> <27915-55598@sneakemail.com> Message-ID: In case you're using Apachefriends XAMPP on Windows, you can turn off the MySQL daemon's network listener by editing C:\apachefriends\xampp\mysql\bin\my.cnf Under [mysqld] add a "skip-networking" directive: # The MySQL server [mysqld] skip-networking socket = mysql ... Local programs can still connect to the DB via localhost socket, but internet worms are locked out. From dmintz at davidmintz.org Fri Jan 28 16:34:06 2005 From: dmintz at davidmintz.org (David Mintz) Date: Fri, 28 Jan 2005 16:34:06 -0500 (EST) Subject: [nycphp-talk] [OT] mySql targeted by worm In-Reply-To: References: <20050128152356.63467.qmail@web12206.mail.yahoo.com> <20050128152933.GA18781@panix.com> <27915-55598@sneakemail.com> Message-ID: Any reason why it wouldn't work on Windows/MySQL installations other than XAMPP? On Fri, 28 Jan 2005, csnyder wrote: > In case you're using Apachefriends XAMPP on Windows, you can turn off > the MySQL daemon's network listener by editing > C:\apachefriends\xampp\mysql\bin\my.cnf > > Under [mysqld] add a "skip-networking" directive: > > # The MySQL server > [mysqld] > skip-networking > socket = mysql > ... ___ David Mintz http://davidmintz.org/ "Don't let the liberal media tell you what to think and feel. If you have hatred in your heart, let it out." -- Clayton Bigsby, black white supremacist From chsnyder at gmail.com Fri Jan 28 16:57:38 2005 From: chsnyder at gmail.com (csnyder) Date: Fri, 28 Jan 2005 16:57:38 -0500 Subject: [nycphp-talk] [OT] mySql targeted by worm In-Reply-To: References: <20050128152356.63467.qmail@web12206.mail.yahoo.com> <20050128152933.GA18781@panix.com> <27915-55598@sneakemail.com> Message-ID: David Mintz asked: > Any reason why it wouldn't work on Windows/MySQL installations other than > XAMPP? Different path to my.cnf, that's all. BTW, on my workstation, the .cnf of my.cnf is hidden despite the fact that I ask windows explorer to show extensions. :-/ From 1j0lkq002 at sneakemail.com Fri Jan 28 17:07:23 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Fri, 28 Jan 2005 17:07:23 -0500 Subject: [OT] Re: [nycphp-talk] [OT] mySql targeted by worm Message-ID: <18179-74621@sneakemail.com> BTW, on my workstation, the .cnf of my.cnf is hidden despite the fact that I ask windows explorer to show extensions. :-/ _______________________________________________ New York PHP Talk yeah, isn't that helpful? Lucky for you, you don't trust Windows and are more than happy to ignore all that and open it anyway. -=john -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From dan at danhorning.com Fri Jan 28 17:55:42 2005 From: dan at danhorning.com (Dan Horning) Date: Fri, 28 Jan 2005 17:55:42 -0500 Subject: [OT] Re: [nycphp-talk] [OT] mySql targeted by worm In-Reply-To: <18179-74621@sneakemail.com> References: <18179-74621@sneakemail.com> Message-ID: <41FAC2EE.2000700@danhorning.com> quick fix..... are you in a domain controlled PC ... if so - your admin may have locked that setting out .... domain override - great feature... PITA......lol otherwise who knows... send me your system info (version ... etc...) i'll see if i can dig anything up from MS!!! -dan inforequest wrote: >BTW, on my workstation, the .cnf of my.cnf is hidden despite the fact >that I ask windows explorer to show extensions. :-/ >_______________________________________________ >New York PHP Talk > > > >yeah, isn't that helpful? Lucky for you, you don't trust Windows and are >more than happy to ignore all that and open it anyway. > >-=john > > > > >-------------------------------------------------------------------- >mail2web - Check your email from the web at >http://mail2web.com/ . > > >_______________________________________________ >New York PHP Talk >Supporting AMP Technology (Apache/MySQL/PHP) >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org > > -- Dan Horning http://www.danhorning.com/ Office - 1-800-863-3854 ext. 502 From faber at linuxnj.com Fri Jan 28 18:17:56 2005 From: faber at linuxnj.com (Faber Fedor) Date: Fri, 28 Jan 2005 18:17:56 -0500 Subject: [nycphp-talk] Re: Simple search engine In-Reply-To: <20050127162834.GC21270@zoidberg.digitalpulp.com> References: <20050127160333.GA20816@uranus.faber.nom> <20050127162834.GC21270@zoidberg.digitalpulp.com> Message-ID: <20050128231756.GA27769@uranus.faber.nom> On 27/01/05 11:28 -0500, Andrew Yochum wrote: > On Thu, Jan 27, 2005 at 11:03:33AM -0500, Faber Fedor wrote: > > Can anyone suggest a simple search engine for a small website? > > I've used iSearch in situations like that. The indexer can be a bit > sluggish and resource intensive. Otherwise, its simple, has nice basic > features and is easily customized - both presentation and logic. It > definitely does the trick for small sites. I'm currently using PHPDig which seems fine. I'm having two problems with it though; if I can't get those resolved, I'll try iSearch. Thanks. -- Regards, Faber Linux New Jersey: Open Source Solutions for New Jersey http://www.linuxnj.com From kigathi at gmail.com Fri Jan 28 19:44:05 2005 From: kigathi at gmail.com (Eric Kigathi) Date: Fri, 28 Jan 2005 19:44:05 -0500 Subject: [nycphp-talk] Re: Simple search engine In-Reply-To: <20050128231756.GA27769@uranus.faber.nom> References: <20050127160333.GA20816@uranus.faber.nom> <20050127162834.GC21270@zoidberg.digitalpulp.com> <20050128231756.GA27769@uranus.faber.nom> Message-ID: mNoGo: http://search.mnogo.ru/ MySQL.com uses mNoGo Search, it seems pretty effective, free/open source (their site is supported by "Russian Brides" ;) and scales fairly well From kigathi at gmail.com Fri Jan 28 21:46:59 2005 From: kigathi at gmail.com (Eric Kigathi) Date: Fri, 28 Jan 2005 21:46:59 -0500 Subject: [nycphp-talk] PHP-SEO Meeting Presentation Message-ID: The S.E.O. presentation this Tuesday was interesting, too bad it was a little rushed toward the end. Is the presentation up yet? From andrew at plexpod.com Fri Jan 28 23:03:37 2005 From: andrew at plexpod.com (Andrew Yochum) Date: Fri, 28 Jan 2005 23:03:37 -0500 Subject: [nycphp-talk] Re: Simple search engine In-Reply-To: References: <20050127160333.GA20816@uranus.faber.nom> <20050127162834.GC21270@zoidberg.digitalpulp.com> <20050128231756.GA27769@uranus.faber.nom> Message-ID: <20050129040336.GB18603@desario.homelinux.net> On Fri, Jan 28, 2005 at 07:44:05PM -0500, Eric Kigathi wrote: > mNoGo: > http://search.mnogo.ru/ > > MySQL.com uses mNoGo Search, it seems pretty effective, free/open > source (their site is supported by "Russian Brides" ;) and scales > fairly well I give mnoGoSearch a thumbs up. Its pretty customizable / configurable, the PHP API is decent to use and its all fast, partly due to it being in C and partly due to the DB structure. And yes, it scales pretty well. However, if you're looking to use the PHP API, you'll need to compile the PHP extension and get that installed by your sysadmin. Then you're left with the stock search.cgi and/or the C API to write your own version of search.c(gi). Not a search solution I'd recommend for small sites, unless your host has support for it in their PHP build *or* you're comfortable with writing/hacking C. Other solutions can be just as effective for a small sites reqs. HTH, Andrew From danielc at analysisandsolutions.com Sat Jan 29 16:59:47 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sat, 29 Jan 2005 16:59:47 -0500 Subject: [nycphp-talk] SecurityFocus Newsletter #285 Message-ID: <20050129215947.GA3314@panix.com> Hey Folks: Just because you haven't received one of these summaries from me in several months doesn't mean there haven't been vulnerabilities in PHP apps. :) The most recent newsletter is sure helping me making up for lost time. There are LOADS of problems! SecurityFocus Newsletter #285 ----------------------------- PHP STUFF --------- SparkleBlog Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/12272 Minis Remote Directory Traversal Vulnerability http://www.securityfocus.com/bid/12279 Gallery Multiple Unspecified Input Validation Vulnerabilitie... http://www.securityfocus.com/bid/12286 SafeHTML HTML Entity Bypass Vulnerability http://www.securityfocus.com/bid/12288 PHP Gift Registry Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/12289 ITA Forum Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/12290 Gallery Multiple Remote Vulnerabilities http://www.securityfocus.com/bid/12292 VBulletin Init.PHP Unspecified Remote Vulnerability http://www.securityfocus.com/bid/12299 CMSimple Multiple Remote Input Validation Vulnerabilities http://www.securityfocus.com/bid/12303 Siteman User Database Privilege Escalation Vulnerability http://www.securityfocus.com/bid/12304 MediaWiki Multiple Arbitrary PHP Code Execution Vulnerabilit... http://www.securityfocus.com/bid/12305 ExBB Nested BBcode Remote Script Injection Vulnerability http://www.securityfocus.com/bid/12306 JSBoard Local File Include File Disclosure Vulnerability http://www.securityfocus.com/bid/12319 TikiWiki Multiple Remote Unspecified PHP Script Code Executi... http://www.securityfocus.com/bid/12328 OTHER POTENTIALLY IMPORTANT STUFF --------------------------------- Oracle Database Multiple Vulnerabilities http://www.securityfocus.com/bid/12301 MySQL Database MySQLAccess Local Insecure Temporary File Cre... http://www.securityfocus.com/bid/12277 Apache Utilities Insecure Temporary File Creation Vulnerabil... http://www.securityfocus.com/bid/12308 Linux Kernel Audit Subsystem Local Denial Of Service Vulnera... http://www.securityfocus.com/bid/12309 Linux Kernel Unspecified Local NFS I/O Denial of Service Vul... http://www.securityfocus.com/bid/12330 Netscape Navigator Infinite Array Sort Denial of Service Vul... http://www.securityfocus.com/bid/12331 Microsoft Internet Explorer Remote Information Disclosure Vu... http://www.securityfocus.com/bid/12294 RealNetworks RealOne Player And RealPlayer ShowPreferences A... http://www.securityfocus.com/bid/12311 MySQL MaxDB WebAgent Remote Denial of Service Vulnerabilitie... http://www.securityfocus.com/bid/12313 Sun Java Plug-in [for IE] Multiple Applet Vulnerabilities http://www.securityfocus.com/bid/12317 Squid Proxy NTLM Fakeauth_Auth Memory Leak Remote Denial Of ... http://www.securityfocus.com/bid/12324 -- 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 lists at zaunere.com Sat Jan 29 22:30:54 2005 From: lists at zaunere.com (Hans Zaunere) Date: Sat, 29 Jan 2005 22:30:54 -0500 Subject: [nycphp-talk] Special Offer From Zend Message-ID: <20050130033059.1BE67A85E9@virtu.nyphp.org> **This commercial posting has been approved by the New York PHP Board** After some recent interest in some Zend products, New York PHP has been able to get some special discounts. The promo code NYPHP05 will give the following discounts (valid until end of Feb) $25 discount on Studio 10% off Certification 20% off PHP Essentials 10% off Single Session PHP Courses Enter the promo code during checkout. Thanks to Daniel Kushner and Zend for making this possible. --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org From dmintz at davidmintz.org Sun Jan 30 14:35:02 2005 From: dmintz at davidmintz.org (David Mintz) Date: Sun, 30 Jan 2005 14:35:02 -0500 (EST) Subject: [nycphp-talk] MAMP setup tips wanted Message-ID: Hi everybody. I am soon to start teaching an introductory PHP class. Week 1 assignment is get yourself up and running PHP 5.0.x w/ mysqli, MySQL 4.1.x and Apache 1.3.33 or 2.0.5x on your own development machine. I can talk about installation and configuration from (modest) experience on Windows and Linux, both with XAMPP and building from source, but not OS X because I got no OS X machine to play with. Generally speaking, can you try XAMPP for Linux on Mac OS X and get lucky? Or, suppose you use a package like MAMP (http://www.mamp.info/en/home/). It looks wonderful but I would like MySQL 4.1.x and mysqli, which it lacks -- how painful do you think it would be to upgrade its MySQL to 4.1.9, and possibly, if necessary, also update its PHP to include mysqli? Stated differently: is there a painless way for novices to get AMP going on their Mac __with the latest production-quality__ versions of everything? Last time I had students whose Macs already had AMP dating from their OS installation time -- and in some cases that was pretty old. Thanks and sorry for the verbosity, --- David Mintz http://davidmintz.org/ "Don't let the liberal media tell you what to think and feel. If you have hatred in your heart, let it out." -- Clayton Bigsby, black white supremacist From gatzby3jr at gmail.com Sun Jan 30 14:52:54 2005 From: gatzby3jr at gmail.com (Brian O'Connor) Date: Sun, 30 Jan 2005 14:52:54 -0500 Subject: [nycphp-talk] MySQL primary sort oddity Message-ID: <29da5d1505013011524b5d473e@mail.gmail.com> I have a users table on my website that primary field 'id', which is auto_incremental. This usually never happens, and really doesn't affect anything in anyway, but it's bugging me to why it's happening. When I'm looking at it through phpMyAdmin, with the query "SELECT * FROM users" the output is: 1 - 13 then 15 14 16 and on I'm not an expert on MySQL to any degree, but I though if no ORDER was input, it auto sorted by the primary key (if none provided, I figured index was then taken, then just the order it was input). If I left out any relevant information to the matter let me know and I'll post it. -- Brian O'Connor From lists at zaunere.com Sun Jan 30 18:05:26 2005 From: lists at zaunere.com (Hans Zaunere) Date: Sun, 30 Jan 2005 18:05:26 -0500 Subject: [nycphp-talk] MySQL primary sort oddity In-Reply-To: <29da5d1505013011524b5d473e@mail.gmail.com> Message-ID: <20050130230528.4212BA85E9@virtu.nyphp.org> Hi Brian, > I have a users table on my website that primary field 'id', which is > auto_incremental. This usually never happens, and really doesn't > affect anything in anyway, but it's bugging me to why it's happening. > When I'm looking at it through phpMyAdmin, with the query "SELECT * > FROM users" the output is: > > 1 - 13 > then 15 > 14 > 16 and on > > I'm not an expert on MySQL to any degree, but I though if no ORDER was > input, it auto sorted by the primary key (if none provided, I figured > index was then taken, then just the order it was input). If no ORDER BY is used, then there is no sorting, primary key or not. I don't know of any database that's any different. It'll be in the order in which the data lies in the file, which should always be assumed as random. --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org Hans Zaunere, Sales Engineer MySQL, Inc. www.mysql.com From gatzby3jr at gmail.com Sun Jan 30 18:12:59 2005 From: gatzby3jr at gmail.com (Brian O'Connor) Date: Sun, 30 Jan 2005 18:12:59 -0500 Subject: [nycphp-talk] MySQL primary sort oddity In-Reply-To: <20050130230528.4212BA85E9@virtu.nyphp.org> References: <29da5d1505013011524b5d473e@mail.gmail.com> <20050130230528.4212BA85E9@virtu.nyphp.org> Message-ID: <29da5d150501301512edc01a6@mail.gmail.com> Right, so how is it that an auto_increment wouldn't sort by the id number? Because if it's being sorted by the order it got entered, then it should still be in order. At least that clears up a few things for me. On a side note, anyway to have phpMyAdmin default sort by primary key? On Sun, 30 Jan 2005 18:05:26 -0500, Hans Zaunere wrote: > > Hi Brian, > > > I have a users table on my website that primary field 'id', which is > > auto_incremental. This usually never happens, and really doesn't > > affect anything in anyway, but it's bugging me to why it's happening. > > When I'm looking at it through phpMyAdmin, with the query "SELECT * > > FROM users" the output is: > > > > 1 - 13 > > then 15 > > 14 > > 16 and on > > > > I'm not an expert on MySQL to any degree, but I though if no ORDER was > > input, it auto sorted by the primary key (if none provided, I figured > > index was then taken, then just the order it was input). > > If no ORDER BY is used, then there is no sorting, primary key or not. I don't know of any database that's any different. It'll be in the order in which the data lies in the file, which should always be assumed as random. > > --- > Hans Zaunere > President, Founder > New York PHP > http://www.nyphp.org > > Hans Zaunere, Sales Engineer > MySQL, Inc. www.mysql.com > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -- Brian O'Connor From lists at zaunere.com Sun Jan 30 18:20:46 2005 From: lists at zaunere.com (Hans Zaunere) Date: Sun, 30 Jan 2005 18:20:46 -0500 Subject: [nycphp-talk] MySQL primary sort oddity In-Reply-To: <29da5d150501301512edc01a6@mail.gmail.com> Message-ID: <20050130232048.1E0DCA85E9@virtu.nyphp.org> > Right, so how is it that an auto_increment wouldn't sort by the id > number? Because if it's being sorted by the order it got entered, > then it should still be in order. At least that clears up a few > things for me. auto_increment isn't dependant on sorting. It's an internal counter that is maintained in the table structure. The order by which records appear when a SELECT is run without an ORDER BY is the order in which they lay in the on-disk datafile. An auto_increment column, on the other hand, is just a counter. > On a side note, anyway to have phpMyAdmin default sort by primary key? Not that I know of, but you should always specify an ORDER BY when you want something sorted anyway, and not depend on some automatic behavior. H From tgales at tgaconnect.com Sun Jan 30 18:41:29 2005 From: tgales at tgaconnect.com (Tim Gales) Date: Sun, 30 Jan 2005 18:41:29 -0500 Subject: [nycphp-talk] MySQL primary sort oddity In-Reply-To: <20050130232048.1E0DCA85E9@virtu.nyphp.org> Message-ID: <000801c50725$38c1da60$d0893818@oberon1> Hans Zaunere writes: >...The order > by which records appear when a SELECT is run without an ORDER > BY is the order in which they lay in the on-disk datafile. As a follow-up: If it is a MyISAM file, why don't you dump the contents of the .MYD file and look at it -- that way you could see for yourself. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From tom at supertom.com Mon Jan 31 10:07:48 2005 From: tom at supertom.com (Tom Melendez) Date: Mon, 31 Jan 2005 10:07:48 -0500 Subject: [nycphp-talk] Mambo Template Tutorial? In-Reply-To: References: <20050119041406.EC5B0A85F3@virtu.nyphp.org> Message-ID: <41FE49C4.2050204@supertom.com> Hey folks, Wondering if anyone has come across a tutorial on how to convert your HTML into a Mambo Template or Theme (not sure of the terminology). I've seen a bunch of similar things, but not exactly that. I'm starting with a PSD file, so I would hope to see something that described how it should be sliced up and where images/html should be placed. Any thoughts or info as to what to read up on or where to go would be greatly appreciated! Thanks, Tom www.liphp.org From yury at heavenspa.com Mon Jan 31 10:15:44 2005 From: yury at heavenspa.com (Yury Rush) Date: Mon, 31 Jan 2005 10:15:44 -0500 Subject: [nycphp-talk] Mambo Template Tutorial? In-Reply-To: <41FE49C4.2050204@supertom.com> Message-ID: Sinmplest way is to open someone elses mambo template and review where they used the tags.. ciao yury www.motionrush.com -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Tom Melendez Sent: Monday, January 31, 2005 10:08 AM To: NYPHP Talk Subject: [nycphp-talk] Mambo Template Tutorial? Hey folks, Wondering if anyone has come across a tutorial on how to convert your HTML into a Mambo Template or Theme (not sure of the terminology). I've seen a bunch of similar things, but not exactly that. I'm starting with a PSD file, so I would hope to see something that described how it should be sliced up and where images/html should be placed. Any thoughts or info as to what to read up on or where to go would be greatly appreciated! Thanks, Tom www.liphp.org _______________________________________________ New York PHP Talk Supporting AMP Technology (Apache/MySQL/PHP) http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From ajai at bitblit.net Mon Jan 31 10:20:18 2005 From: ajai at bitblit.net (Ajai Khattri) Date: Mon, 31 Jan 2005 10:20:18 -0500 (EST) Subject: [nycphp-talk] Mambo Template Tutorial? In-Reply-To: Message-ID: On Mon, 31 Jan 2005, Yury Rush wrote: > Sinmplest way is to open someone elses mambo template and review where they > used the tags.. Actually there are a bunch of "from Photoshop" or "from Dreamweaver" template tutorials for Mambo - most of them are listed on this Mambo forum thread: http://forum.mamboserver.com/showthread.php?t=26144 Also I've found the Mambo Developer's Manual fills in a lot of missing pieces too. -- Aj. (ajai at bitblit.net) Systems Administrator / Developer From mitch.pirtle at gmail.com Mon Jan 31 10:23:26 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Mon, 31 Jan 2005 10:23:26 -0500 Subject: [nycphp-talk] Mambo Template Tutorial? In-Reply-To: <41FE49C4.2050204@supertom.com> References: <20050119041406.EC5B0A85F3@virtu.nyphp.org> <41FE49C4.2050204@supertom.com> Message-ID: <330532b6050131072318aa7d80@mail.gmail.com> On Mon, 31 Jan 2005 10:07:48 -0500, Tom Melendez wrote: > Hey folks, > > Wondering if anyone has come across a tutorial on how to convert your > HTML into a Mambo Template or Theme (not sure of the terminology). I've > seen a bunch of similar things, but not exactly that. I'm starting with > a PSD file, so I would hope to see something that described how it > should be sliced up and where images/html should be placed. One good tutorial can be found here, including instructions on installing the Mambo Template plugin for Dreamweaver: http://www.mambosolutions.com/dw_tutorial/ I just wrote one for International PHP Magazine, but not sure if it made the next issue or not. I will be presenting this for the February NYPHP session however ;-) -- Mitch From thegeek at thecolorgeek.com Mon Jan 31 10:40:46 2005 From: thegeek at thecolorgeek.com (The Geek) Date: Mon, 31 Jan 2005 10:40:46 -0500 Subject: [nycphp-talk] MAMP setup tips wanted In-Reply-To: Message-ID: <799F7D10-739E-11D9-B7EB-003065C1CBE0@thecolorgeek.com> I cannot vouch for them since I have not really worked with their installs but they make it very easy and Mac friendly. www.serverlogistics.com it appears fairly painless. On Sunday, January 30, 2005, at 02:35 PM, David Mintz wrote: > > Hi everybody. > > I am soon to start teaching an introductory PHP class. Week 1 > assignment > is get yourself up and running PHP 5.0.x w/ mysqli, MySQL 4.1.x and > Apache > 1.3.33 or 2.0.5x on your own development machine. I can talk about > installation and configuration from (modest) experience on Windows and > Linux, both with XAMPP and building from source, but not OS X because I > got no OS X machine to play with. > > Generally speaking, can you try XAMPP for Linux on Mac OS X and get > lucky? > Or, suppose you use a package like MAMP > (http://www.mamp.info/en/home/). > It looks wonderful but I would like MySQL 4.1.x and mysqli, which it > lacks -- how painful do you think it would be to upgrade its MySQL to > 4.1.9, and possibly, if necessary, also update its PHP to include > mysqli? > > Stated differently: is there a painless way for novices to get AMP > going > on their Mac __with the latest production-quality__ versions of > everything? Last time I had students whose Macs already had AMP dating > from their OS installation time -- and in some cases that was pretty > old. > > Thanks and sorry for the verbosity, > > --- > David Mintz > http://davidmintz.org/ > > "Don't let the liberal media tell you what to think > and feel. If you have hatred in your heart, let it out." > > -- Clayton Bigsby, black white supremacist > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From mwithington at PLMresearch.com Mon Jan 31 10:57:51 2005 From: mwithington at PLMresearch.com (Mark Withington) Date: Mon, 31 Jan 2005 10:57:51 -0500 Subject: [nycphp-talk] pear package manager Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358DD2B18@network.PLMresearch.com> I'm new to pear and its package manager. Have successful installed pear on my windoz box and am trying to use install from the command line. Everything appears to work OK, however, the particular package that I'm trying to install is listed as beta. The pear install command appears to only support those packages listed as stable. Anyone know of a work-around? Is there a switch I can set that will install beta packages? -------------------------- 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 scott at crisscott.com Mon Jan 31 11:01:37 2005 From: scott at crisscott.com (Scott Mattocks) Date: Mon, 31 Jan 2005 11:01:37 -0500 Subject: [nycphp-talk] pear package manager In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358DD2B18@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358DD2B18@network.PLMresearch.com> Message-ID: <41FE5661.5040007@crisscott.com> Mark Withington wrote: > I'm new to pear and its package manager. Have successful installed pear on > my windoz box and am trying to use install from the command line. > Everything appears to work OK, however, the particular package that I'm > trying to install is listed as beta. The pear install command appears to > only support those packages listed as stable. Anyone know of a work-around? > Is there a switch I can set that will install beta packages? > You need to set your prefered package state. You can see your current settings by typing: $ pear config-show And then you can set up pear to allow you to install beta packages by typing: $ pear config-set preferred_state beta -- Scott Mattocks scott at crisscott.com http://www.crisscott.com http://pear.php.net/user/scottmattocks From mwithington at PLMresearch.com Mon Jan 31 11:06:36 2005 From: mwithington at PLMresearch.com (Mark Withington) Date: Mon, 31 Jan 2005 11:06:36 -0500 Subject: [nycphp-talk] pear package manager Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358DD2B19@network.PLMresearch.com> Thanks. That did the trick. On a related note. Anyone know of a good pear primer (in book form) that I can buy for reading on the train/etc? Mark -------------------------- Mark L. Withington PLMresearch "eBusiness for the Midsize Enterprise" PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 http://www.PLMresearch.com Netscape/AOL/MSN IM: PLMresearch mwithington at plmresearch.com Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmresearch.com/calendar.php -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Scott Mattocks Sent: Monday, January 31, 2005 11:02 AM To: NYPHP Talk Subject: Re: [nycphp-talk] pear package manager Mark Withington wrote: > I'm new to pear and its package manager. Have successful installed pear on > my windoz box and am trying to use install from the command line. > Everything appears to work OK, however, the particular package that I'm > trying to install is listed as beta. The pear install command appears to > only support those packages listed as stable. Anyone know of a work-around? > Is there a switch I can set that will install beta packages? > You need to set your prefered package state. You can see your current settings by typing: $ pear config-show And then you can set up pear to allow you to install beta packages by typing: $ pear config-set preferred_state beta -- Scott Mattocks scott at crisscott.com http://www.crisscott.com http://pear.php.net/user/scottmattocks _______________________________________________ New York PHP Talk Supporting AMP Technology (Apache/MySQL/PHP) http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From brent at landover.com Mon Jan 31 11:12:57 2005 From: brent at landover.com (Brent Baisley) Date: Mon, 31 Jan 2005 11:12:57 -0500 Subject: [nycphp-talk] MAMP setup tips wanted In-Reply-To: References: Message-ID: There were quite a few issues with building from source under OS X early on, but Apple has really come up to speed with the open source compilers that now come with OS X. So, the rules are fairly close to those of BSD. But, for a nice easy install that won't require a command line, Marc Liyanage maintains a Mac install of both PHP and MySQL at entropy.ch. He includes detailed instructions for multiple versions. He's done a really fine job and has been staying on top of things for a couple of years now. On Jan 30, 2005, at 2:35 PM, David Mintz wrote: > > Hi everybody. > > I am soon to start teaching an introductory PHP class. Week 1 > assignment > is get yourself up and running PHP 5.0.x w/ mysqli, MySQL 4.1.x and > Apache > 1.3.33 or 2.0.5x on your own development machine. I can talk about > installation and configuration from (modest) experience on Windows and > Linux, both with XAMPP and building from source, but not OS X because I > got no OS X machine to play with. > > Generally speaking, can you try XAMPP for Linux on Mac OS X and get > lucky? > Or, suppose you use a package like MAMP > (http://www.mamp.info/en/home/). > It looks wonderful but I would like MySQL 4.1.x and mysqli, which it > lacks -- how painful do you think it would be to upgrade its MySQL to > 4.1.9, and possibly, if necessary, also update its PHP to include > mysqli? > > Stated differently: is there a painless way for novices to get AMP > going > on their Mac __with the latest production-quality__ versions of > everything? Last time I had students whose Macs already had AMP dating > from their OS installation time -- and in some cases that was pretty > old. > > Thanks and sorry for the verbosity, > > --- > David Mintz > http://davidmintz.org/ > > "Don't let the liberal media tell you what to think > and feel. If you have hatred in your heart, let it out." > > -- Clayton Bigsby, black white supremacist > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > -- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577 From danielc at analysisandsolutions.com Mon Jan 31 11:18:12 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Mon, 31 Jan 2005 11:18:12 -0500 Subject: [nycphp-talk] pear package manager In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358DD2B18@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358DD2B18@network.PLMresearch.com> Message-ID: <20050131161812.GA9922@panix.com> On Mon, Jan 31, 2005 at 10:57:51AM -0500, Mark Withington wrote: > the particular package that I'm > trying to install is listed as beta. The pear install command appears to > only support those packages listed as stable. Anyone know of a work-around? pear install PackageName-beta This is nice because it's a temporary change, unlike the preferred state option in another message. --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 tom at supertom.com Mon Jan 31 11:38:58 2005 From: tom at supertom.com (Tom Melendez) Date: Mon, 31 Jan 2005 11:38:58 -0500 Subject: [nycphp-talk] Mambo Template Tutorial? In-Reply-To: <330532b6050131072318aa7d80@mail.gmail.com> References: <20050119041406.EC5B0A85F3@virtu.nyphp.org> <41FE49C4.2050204@supertom.com> <330532b6050131072318aa7d80@mail.gmail.com> Message-ID: <41FE5F22.10200@supertom.com> Wow, thanks everyone! There's definitely alot of info - time for me to get reading! Thanks, Tom www.liphp.org Mitch Pirtle wrote: >On Mon, 31 Jan 2005 10:07:48 -0500, Tom Melendez wrote: > > >>Hey folks, >> >>Wondering if anyone has come across a tutorial on how to convert your >>HTML into a Mambo Template or Theme (not sure of the terminology). I've >>seen a bunch of similar things, but not exactly that. I'm starting with >>a PSD file, so I would hope to see something that described how it >>should be sliced up and where images/html should be placed. >> >> > >One good tutorial can be found here, including instructions on >installing the Mambo Template plugin for Dreamweaver: > >http://www.mambosolutions.com/dw_tutorial/ > >I just wrote one for International PHP Magazine, but not sure if it >made the next issue or not. I will be presenting this for the February >NYPHP session however ;-) > >-- Mitch >_______________________________________________ >New York PHP Talk >Supporting AMP Technology (Apache/MySQL/PHP) >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org > > > From mwithington at PLMresearch.com Mon Jan 31 11:42:31 2005 From: mwithington at PLMresearch.com (Mark Withington) Date: Mon, 31 Jan 2005 11:42:31 -0500 Subject: [nycphp-talk] pear package manager Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358DD2B1B@network.PLMresearch.com> Thanks Dan. One more quick question. When I run pear config-get php_dir I get the following: c:\php10\pear and therefore all pear packages are loaded there via the package manager. I've got a feeling though, that I should be installing these in my web directory not my PHP directory - cause I'm getting errors when I try to reference these pear packages via an include or require statement. Is my pear configuration correct or should I point it to another spot? Thanks (again) in advance, Mark -------------------------- Mark L. Withington PLMresearch "eBusiness for the Midsize Enterprise" PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 http://www.PLMresearch.com Netscape/AOL/MSN IM: PLMresearch mwithington at plmresearch.com Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmresearch.com/calendar.php -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Daniel Convissor Sent: Monday, January 31, 2005 11:18 AM To: NYPHP Talk Subject: Re: [nycphp-talk] pear package manager On Mon, Jan 31, 2005 at 10:57:51AM -0500, Mark Withington wrote: > the particular package that I'm > trying to install is listed as beta. The pear install command appears to > only support those packages listed as stable. Anyone know of a work-around? pear install PackageName-beta This is nice because it's a temporary change, unlike the preferred state option in another message. --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.nyphp.org From scott at crisscott.com Mon Jan 31 11:49:18 2005 From: scott at crisscott.com (Scott Mattocks) Date: Mon, 31 Jan 2005 11:49:18 -0500 Subject: [nycphp-talk] pear package manager In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358DD2B1B@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358DD2B1B@network.PLMresearch.com> Message-ID: <41FE618E.8050404@crisscott.com> Mark Withington wrote: > Thanks Dan. One more quick question. When I run pear config-get php_dir I > get the following: > > c:\php10\pear > > and therefore all pear packages are loaded there via the package manager. > I've got a feeling though, that I should be installing these in my web > directory not my PHP directory - cause I'm getting errors when I try to > reference these pear packages via an include or require statement. Is my > pear configuration correct or should I point it to another spot? You shouldn't treat PEAR files any differently from other files that you would include in your script. Putting them in your web directory can be dangerous. I think there was a Phundamentals article about this. You should just make sure that your include path is set properly and you shouldn't have any problems. -- Scott Mattocks scott at crisscott.com http://www.crisscott.com http://pear.php.net/user/scottmattocks From mwithington at PLMresearch.com Mon Jan 31 12:00:49 2005 From: mwithington at PLMresearch.com (Mark Withington) Date: Mon, 31 Jan 2005 12:00:49 -0500 Subject: [nycphp-talk] pear package manager Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358DD2B1C@network.PLMresearch.com> Thanks Scott. Guess I'm stumped with setting my include path. In my php.ini I specify the following: include_path=.;c:/php10/PEAR in my test script I use: require_once 'Spreadsheet\Excel\Writer.php'; However, when I run the script I get the following: Warning: main(Spreadsheet\Excel\Writer.php): failed to open stream: No such file or directory in c:\program files\apache group\apache\htdocs\main_branch\program_files\excel.php on line 2 Fatal error: main(): Failed opening required 'Spreadsheet\Excel\Writer.php' (include_path='.') in c:\program files\apache group\apache\htdocs\main_branch\program_files\excel.php on line 2 I have verified that the Writer.php file is in the director and that the path I specify is correct. Thanks for any light you might shed. Mark -------------------------- Mark L. Withington PLMresearch "eBusiness for the Midsize Enterprise" PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 http://www.PLMresearch.com Netscape/AOL/MSN IM: PLMresearch mwithington at plmresearch.com Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmresearch.com/calendar.php -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Scott Mattocks Sent: Monday, January 31, 2005 11:49 AM To: NYPHP Talk Subject: Re: [nycphp-talk] pear package manager Mark Withington wrote: > Thanks Dan. One more quick question. When I run pear config-get php_dir I > get the following: > > c:\php10\pear > > and therefore all pear packages are loaded there via the package manager. > I've got a feeling though, that I should be installing these in my web > directory not my PHP directory - cause I'm getting errors when I try to > reference these pear packages via an include or require statement. Is my > pear configuration correct or should I point it to another spot? You shouldn't treat PEAR files any differently from other files that you would include in your script. Putting them in your web directory can be dangerous. I think there was a Phundamentals article about this. You should just make sure that your include path is set properly and you shouldn't have any problems. -- Scott Mattocks scott at crisscott.com http://www.crisscott.com http://pear.php.net/user/scottmattocks _______________________________________________ New York PHP Talk Supporting AMP Technology (Apache/MySQL/PHP) http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From ajai at bitblit.net Mon Jan 31 12:02:02 2005 From: ajai at bitblit.net (Ajai Khattri) Date: Mon, 31 Jan 2005 12:02:02 -0500 Subject: [nycphp-talk] MAMP setup tips wanted In-Reply-To: References: Message-ID: <41FE648A.3090901@bitblit.net> David Mintz wrote: >Generally speaking, can you try XAMPP for Linux on Mac OS X and get lucky? > Its generally accepted (amongst Mac users that is) that the AMP packages at entropy.ch are the best for Mac OS X. -- Aj. Systems Administrator / Developer From scott at crisscott.com Mon Jan 31 12:07:00 2005 From: scott at crisscott.com (Scott Mattocks) Date: Mon, 31 Jan 2005 12:07:00 -0500 Subject: [nycphp-talk] pear package manager In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358DD2B1C@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358DD2B1C@network.PLMresearch.com> Message-ID: <41FE65B4.3090800@crisscott.com> Mark Withington wrote: > > include_path=.;c:/php10/PEAR > > Fatal error: main(): Failed opening required 'Spreadsheet\Excel\Writer.php' > (include_path='.') in c:\program files\apache > group\apache\htdocs\main_branch\program_files\excel.php on line 2 It looks like you are setting the include path wrong. Take a look at this page in the manual: http://us2.php.net/manual/en/ini.sect.path-directory.php#ini.include-path You need to use back slashes instead of forward slashes when working on windows. -- Scott Mattocks scott at crisscott.com http://www.crisscott.com http://pear.php.net/user/scottmattocks From danielc at analysisandsolutions.com Mon Jan 31 12:12:44 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Mon, 31 Jan 2005 12:12:44 -0500 Subject: [nycphp-talk] pear package manager In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358DD2B1C@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358DD2B1C@network.PLMresearch.com> Message-ID: <20050131171244.GA25335@panix.com> On Mon, Jan 31, 2005 at 12:00:49PM -0500, Mark Withington wrote: > > include_path=.;c:/php10/PEAR include_path = ".;c:\php10\PEAR" ... snip ... --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From chsnyder at gmail.com Mon Jan 31 12:52:27 2005 From: chsnyder at gmail.com (csnyder) Date: Mon, 31 Jan 2005 12:52:27 -0500 Subject: [nycphp-talk] MAMP setup tips wanted In-Reply-To: <41FE648A.3090901@bitblit.net> References: <41FE648A.3090901@bitblit.net> Message-ID: It's worth pointing out that OSX already has native Apache and PHP installations. So whatever you do needs to account for that... From dmintz at davidmintz.org Mon Jan 31 12:57:23 2005 From: dmintz at davidmintz.org (David Mintz) Date: Mon, 31 Jan 2005 12:57:23 -0500 (EST) Subject: [nycphp-talk] MAMP setup tips wanted In-Reply-To: <41FE648A.3090901@bitblit.net> References: <41FE648A.3090901@bitblit.net> Message-ID: Thanks to everyone. Seems that entropy.ch is the best bet. One more thing and then I'll shut up (temporarily). Does anyone know whether the current the Entropy PHP package is built against the MySQL 4.0.x libraries, the 4.1.x, or both? Bottom line is, I want to coerce my PHP students into running MySQL 4.1.x and mysqli, and if it's unreasonably difficult for a novice to do that on OS X, I will have to reconsider. --Mintz From dmintz at davidmintz.org Mon Jan 31 13:00:21 2005 From: dmintz at davidmintz.org (David Mintz) Date: Mon, 31 Jan 2005 13:00:21 -0500 (EST) Subject: [nycphp-talk] MAMP setup tips wanted In-Reply-To: References: <41FE648A.3090901@bitblit.net> Message-ID: On Mon, 31 Jan 2005, csnyder wrote: > It's worth pointing out that OSX already has native Apache and PHP > installations. So whatever you do needs to account for that... Yes indeed -- in some cases, Apache/PHP that is older than dirt. Well, ok, I exaggerate... --- David Mintz http://davidmintz.org/ "Don't let the liberal media tell you what to think and feel. If you have hatred in your heart, let it out." -- Clayton Bigsby, black white supremacist From ajai at bitblit.net Mon Jan 31 13:19:50 2005 From: ajai at bitblit.net (Ajai Khattri) Date: Mon, 31 Jan 2005 13:19:50 -0500 Subject: [nycphp-talk] MAMP setup tips wanted In-Reply-To: References: <41FE648A.3090901@bitblit.net> Message-ID: <41FE76C6.7010909@bitblit.net> David Mintz wrote: >Seems that entropy.ch is the best bet. One more thing and then I'll shut >up (temporarily). Does anyone know whether the current the Entropy PHP >package is built against the MySQL 4.0.x libraries, the 4.1.x, or both? > >Bottom line is, I want to coerce my PHP students into running MySQL 4.1.x >and mysqli, and if it's unreasonably difficult for a novice to do that on >OS X, I will have to reconsider. > There are two other ways of getting the latest versions on OS X: 1. Install the Fink package system (this is bascially apt-get for OS X): http://fink.sourceforge.net 2. Or if you prefer the Gentoo approach, you can get Portage for OS X now too: http://www.metadistribution.org/macos/ -- Aj. Systems Administrator / Developer From chsnyder at gmail.com Mon Jan 31 13:38:58 2005 From: chsnyder at gmail.com (csnyder) Date: Mon, 31 Jan 2005 13:38:58 -0500 Subject: [nycphp-talk] MAMP setup tips wanted In-Reply-To: References: <41FE648A.3090901@bitblit.net> Message-ID: > Yes indeed -- in some cases, Apache/PHP that is older than dirt. Well, ok, > I exaggerate... No, you aren't exaggerating -- I think the default for 10.3 was PHP 4.3.6 The latest update from Apple ( 2005-001 ) finally bumped PHP to 4.3.10. Apache has been kept up to date, tho. From ajai at bitblit.net Mon Jan 31 14:06:07 2005 From: ajai at bitblit.net (Ajai Khattri) Date: Mon, 31 Jan 2005 14:06:07 -0500 Subject: [nycphp-talk] Mambo Template Tutorial? In-Reply-To: <330532b6050131072318aa7d80@mail.gmail.com> References: <20050119041406.EC5B0A85F3@virtu.nyphp.org> <41FE49C4.2050204@supertom.com> <330532b6050131072318aa7d80@mail.gmail.com> Message-ID: <41FE819F.5020905@bitblit.net> Mitch Pirtle wrote: >One good tutorial can be found here, including instructions on >installing the Mambo Template plugin for Dreamweaver: > >http://www.mambosolutions.com/dw_tutorial/ > >I just wrote one for International PHP Magazine, but not sure if it >made the next issue or not. I will be presenting this for the February >NYPHP session however ;-) > Bad timing that the API ref is down - Im working on a Mambo site and could do with the API docs! -- Aj. Systems Administrator / Developer From hans at cyberxdesigns.com Mon Jan 31 14:16:39 2005 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Mon, 31 Jan 2005 14:16:39 -0500 Subject: [nycphp-talk] pear package manager In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358DD2B19@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358DD2B19@network.PLMresearch.com> Message-ID: <41FE8417.2040805@cyberxdesigns.com> I like David Sklar's Essential PHP Tools. I use it fairly regularly. I am also working my way through PHP 5 Power Programming by Andi Gutmans, Stig Bakken and Derick Rethans. PHP 5 Power Programming is a good book. The first part deals with the differences between PHP 4 and 5. Then launches into some good information about OOP and Patterns and follows with information about PEAR and other extensions. Good luck! Hans -- Hans Kaspersetz Cyber X Designs http://www.cyberxdesigns.com Mark Withington wrote: >Thanks. That did the trick. On a related note. Anyone know of a good pear >primer (in book form) that I can buy for reading on the train/etc? > >Mark > > > --- snip --- From mwithington at PLMresearch.com Mon Jan 31 14:32:21 2005 From: mwithington at PLMresearch.com (Mark Withington) Date: Mon, 31 Jan 2005 14:32:21 -0500 Subject: [nycphp-talk] pear package manager Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358DD2B28@network.PLMresearch.com> Thanks Hans. Got David's book. It is good. Trying to use a package that's not in there, Spreadsheet_Excel_Writer. Anyone familiar with it? I've Got everything up-and-flying, however, can't seem to output anythign Excel like. Spews the output directly to the screen of my browser rather than firing up Excel. Maybe I need to adjust something local. 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 -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Hans C. Kaspersetz Sent: Monday, January 31, 2005 2:17 PM To: NYPHP Talk Subject: Re: [nycphp-talk] pear package manager I like David Sklar's Essential PHP Tools. I use it fairly regularly. I am also working my way through PHP 5 Power Programming by Andi Gutmans, Stig Bakken and Derick Rethans. PHP 5 Power Programming is a good book. The first part deals with the differences between PHP 4 and 5. Then launches into some good information about OOP and Patterns and follows with information about PEAR and other extensions. Good luck! Hans -- Hans Kaspersetz Cyber X Designs http://www.cyberxdesigns.com Mark Withington wrote: >Thanks. That did the trick. On a related note. Anyone know of a good pear >primer (in book form) that I can buy for reading on the train/etc? > >Mark > > > --- snip --- _______________________________________________ New York PHP Talk Supporting AMP Technology (Apache/MySQL/PHP) http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From mitch.pirtle at gmail.com Mon Jan 31 14:36:32 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Mon, 31 Jan 2005 14:36:32 -0500 Subject: [nycphp-talk] Mambo Template Tutorial? In-Reply-To: <41FE819F.5020905@bitblit.net> References: <20050119041406.EC5B0A85F3@virtu.nyphp.org> <41FE49C4.2050204@supertom.com> <330532b6050131072318aa7d80@mail.gmail.com> <41FE819F.5020905@bitblit.net> Message-ID: <330532b6050131113646fdfdb4@mail.gmail.com> On Mon, 31 Jan 2005 14:06:07 -0500, Ajai Khattri wrote: > > Bad timing that the API ref is down - Im working on a Mambo site and > could do with the API docs! What 'chew talkin' 'bout, Willis? http://mambo.mamboforge.net/docs/ -- Mitch From ajai at bitblit.net Mon Jan 31 15:01:50 2005 From: ajai at bitblit.net (Ajai Khattri) Date: Mon, 31 Jan 2005 15:01:50 -0500 Subject: [nycphp-talk] Mambo Template Tutorial? In-Reply-To: <330532b6050131113646fdfdb4@mail.gmail.com> References: <20050119041406.EC5B0A85F3@virtu.nyphp.org> <41FE49C4.2050204@supertom.com> <330532b6050131072318aa7d80@mail.gmail.com> <41FE819F.5020905@bitblit.net> <330532b6050131113646fdfdb4@mail.gmail.com> Message-ID: <41FE8EAE.60809@bitblit.net> Mitch Pirtle wrote: > > >What 'chew talkin' 'bout, Willis? > >http://mambo.mamboforge.net/docs/ > Ah cool beans. I was looking here: http://docs.mamboserver.com/HomePage :-) -- Aj. Systems Administrator / Developer From mitch.pirtle at gmail.com Mon Jan 31 15:16:33 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Mon, 31 Jan 2005 15:16:33 -0500 Subject: [nycphp-talk] Mambo Template Tutorial? In-Reply-To: <41FE8EAE.60809@bitblit.net> References: <20050119041406.EC5B0A85F3@virtu.nyphp.org> <41FE49C4.2050204@supertom.com> <330532b6050131072318aa7d80@mail.gmail.com> <41FE819F.5020905@bitblit.net> <330532b6050131113646fdfdb4@mail.gmail.com> <41FE8EAE.60809@bitblit.net> Message-ID: <330532b6050131121669c2156e@mail.gmail.com> On Mon, 31 Jan 2005 15:01:50 -0500, Ajai Khattri wrote: > Mitch Pirtle wrote: > > > >What 'chew talkin' 'bout, Willis? > > > >http://mambo.mamboforge.net/docs/ > > Ah cool beans. > > I was looking here: http://docs.mamboserver.com/HomePage That site is going to get replaced with a new portal, just for support and documentation. FYI we will be merging all of our websites into one portal family so everyone will have easy access to news, support, docs, and what is currently known as MamboForge. First we need to get 4.5.2 out, then prepare for Boston next month, and then will start rolling out the new sites. It will be a major upgrade, promise! :-) -- Mitch From hans at cyberxdesigns.com Mon Jan 31 15:45:35 2005 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Mon, 31 Jan 2005 15:45:35 -0500 Subject: [nycphp-talk] pear package manager In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358DD2B28@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358DD2B28@network.PLMresearch.com> Message-ID: <41FE98EF.4010301@cyberxdesigns.com> Mark, Sounds like your not setting the mime type correctly. Try one of these: application/vnd.ms-excel <-- I think this one is for xls files. I think this if the one you should use. application/x-msexcel application/ms-excel header ("Content-Type: application/vnd.ms-excel"); I think this is how you set mime-type correctly. Hans K Mark Withington wrote: >Thanks Hans. Got David's book. It is good. Trying to use a package that's >not in there, Spreadsheet_Excel_Writer. Anyone familiar with it? I've Got >everything up-and-flying, however, can't seem to output anythign Excel like. >Spews the output directly to the screen of my browser rather than firing up >Excel. Maybe I need to adjust something local. > >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 > > >-----Original Message----- >From: talk-bounces at lists.nyphp.org >[mailto:talk-bounces at lists.nyphp.org]On Behalf Of Hans C. Kaspersetz >Sent: Monday, January 31, 2005 2:17 PM >To: NYPHP Talk >Subject: Re: [nycphp-talk] pear package manager > > >I like David Sklar's Essential PHP Tools. I use it fairly regularly. I >am also working my way through PHP 5 Power Programming by Andi Gutmans, >Stig Bakken and Derick Rethans. PHP 5 Power Programming is a good >book. The first part deals with the differences between PHP 4 and 5. >Then launches into some good information about OOP and Patterns and >follows with information about PEAR and other extensions. > >Good luck! >Hans > > > -- Hans C. Kaspersetz Cyber X Designs http://www.cyberxdesigns.com From john at cyber-ny.com Mon Jan 31 21:59:43 2005 From: john at cyber-ny.com (John Nunez) Date: Mon, 31 Jan 2005 21:59:43 -0500 Subject: [nycphp-talk] MAMP setup tips wanted In-Reply-To: References: <41FE648A.3090901@bitblit.net> Message-ID: It's better than RedHat Enterprise 3 which uses 4.2 (might be 4.3.1) Anyway, I need to re-compile every time I install a RH ES box. Thanks, John Nunez On Jan 31, 2005, at 1:38 PM, csnyder wrote: >> Yes indeed -- in some cases, Apache/PHP that is older than dirt. >> Well, ok, >> I exaggerate... > > No, you aren't exaggerating -- I think the default for 10.3 was PHP > 4.3.6 > The latest update from Apple ( 2005-001 ) finally bumped PHP to 4.3.10. > > Apache has been kept up to date, tho. > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From john at cyber-ny.com Mon Jan 31 22:23:45 2005 From: john at cyber-ny.com (John Nunez) Date: Mon, 31 Jan 2005 22:23:45 -0500 Subject: [nycphp-talk] MySQL primary sort oddity In-Reply-To: <20050130232048.1E0DCA85E9@virtu.nyphp.org> References: <20050130232048.1E0DCA85E9@virtu.nyphp.org> Message-ID: I had this happen to me but not sure why. I think I might have changed the ID on a record or something like that. The easiest way to fix this is in phpMyAdmin goto the Operations tab, there is a drop down with the text "Alter table order by:" and select the ID field. Note: that if you do this for another type of field (i.e. Username) it will not keep a sorting it for you with each entry. It's a one-time disk sort. Thanks, John Nunez Cyber-NY Interactive 212-475-2721 www.cyber-ny.com john at cyber-ny.com On Jan 30, 2005, at 6:20 PM, Hans Zaunere wrote: > >> Right, so how is it that an auto_increment wouldn't sort by the id >> number? Because if it's being sorted by the order it got entered, >> then it should still be in order. At least that clears up a few >> things for me. > > auto_increment isn't dependant on sorting. It's an internal counter > that is maintained in the table structure. The order by which records > appear when a SELECT is run without an ORDER BY is the order in which > they lay in the on-disk datafile. An auto_increment column, on the > other hand, is just a counter. > >> On a side note, anyway to have phpMyAdmin default sort by primary key? > > Not that I know of, but you should always specify an ORDER BY when you > want something sorted anyway, and not depend on some automatic > behavior. > > > H > > > _______________________________________________ > New York PHP Talk > Supporting AMP Technology (Apache/MySQL/PHP) > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org >