From ewgra at rambler.ru Thu Mar 1 01:27:44 2007 From: ewgra at rambler.ru (=?windows-1251?B?0e7q7uvu4iDF4uPl7ejp?=) Date: Thu, 01 Mar 2007 09:27:44 +0300 Subject: [nycphp-talk] Hi from Russia In-Reply-To: <1275189657.20070301073451@list.ru> References: <487739115.1172669921.169933048.24333@mcgi29.rambler.ru> <1275189657.20070301073451@list.ru> Message-ID: <925272.1172730464.157466824.90748@mcgi23.rambler.ru> ??????! ? ???? ???? (22). ? ????????? PHP ???? ?????????? ?????, ?? ?? ???????? ???????????????? (???????? ?? ?????? ??? ?? ?????? ????? ??? ???? ????????), ? ????????? ??????????? ??????. ??? ICQ: 344899633 Skype Login: ewgra_ * sergey-ru at list.ru [Thu, 1 Mar 2007 07:34:51 +0300]: > ????????????, ???????. > > ?? ?????? 28 ??????? 2007 ?., 16:38:41: > > > Any body here from Russia? or speek on russian? (my English is not > good) > > > i want introduce with people from other country and talk with Instant > > Messenger client - ICQ or Skype > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > NYPHPCon 2006 Presentations Online > > http://www.nyphpcon.com > > > Show Your Participation in New York PHP > > http://www.nyphp.org/show_participation.php > > ?????????? ???????. > > ???? ????? ?????? (25). ? ????????? PHP ??? ?????, > ????????? ???????? ???????????????? ? ????? ?? ????? > ??????????? ???????????. > (? ? ???? ? 7:30 ?? 17:00 ????? ??????????) > -- > ? ?????????, > ?????? ?????? mailto:sergey-ru at list.ru > > _______________________________________________ -- ? ?????????, ??????? ??????? [ ewgra at rambler.ru ] -- ???????-?????????? - ?????? ?????? ? ???? ?????? ?? ??? ? ????! http://irr.rambler.ru/ From sergey-ru at list.ru Thu Mar 1 02:44:28 2007 From: sergey-ru at list.ru (sergey-ru at list.ru) Date: Thu, 1 Mar 2007 10:44:28 +0300 Subject: [nycphp-talk] Hi from Russia In-Reply-To: <925272.1172730464.157466824.90748@mcgi23.rambler.ru> References: <487739115.1172669921.169933048.24333@mcgi29.rambler.ru> <1275189657.20070301073451@list.ru> <925272.1172730464.157466824.90748@mcgi23.rambler.ru> Message-ID: <1376562443.20070301104428@list.ru> ????????????, ???????. ?? ?????? 1 ????? 2007 ?., 9:27:44: > ??????! ? ???? ???? (22). > ? ????????? PHP ???? ?????????? ?????, ?? ?? ???????? ???????????????? > (???????? ?? ?????? ??? ?? ?????? ????? ??? ???? ????????), ? ????????? > ??????????? ??????. > ??? ICQ: 344899633 > Skype Login: ewgra_ > * sergey-ru at list.ru [Thu, 1 Mar 2007 07:34:51 +0300]: >> ????????????, ???????. >> >> ?? ?????? 28 ??????? 2007 ?., 16:38:41: >> >> > Any body here from Russia? or speek on russian? (my English is not >> good) >> >> > i want introduce with people from other country and talk with > Instant >> > Messenger client - ICQ or Skype >> > _______________________________________________ >> > New York PHP Community Talk Mailing List >> > http://lists.nyphp.org/mailman/listinfo/talk >> >> > NYPHPCon 2006 Presentations Online >> > http://www.nyphpcon.com >> >> > Show Your Participation in New York PHP >> > http://www.nyphp.org/show_participation.php >> >> ?????????? ???????. >> >> ???? ????? ?????? (25). ? ????????? PHP ??? ?????, >> ????????? ???????? ???????????????? ? ????? ?? ????? >> ??????????? ???????????. >> (? ? ???? ? 7:30 ?? 17:00 ????? ??????????) >> -- >> ? ?????????, >> ?????? ?????? mailto:sergey-ru at list.ru >> >> _______________________________________________ > -- > ? ?????????, ??????? ??????? [ ewgra at rambler.ru ] > -- > ???????-?????????? - ?????? ?????? ? ???? ?????? ?? ??? ? ????! > http://irr.rambler.ru/ > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php ??????? ?????????????? ? ???? ????????????? ??? ??????? ????? ???????? ? ?????? ????????????? ?????????? ???????? ? ?????????. ???-?? ? ??????? ? MySQL, Apache, cron ? ??. ?? ??????????? ????????. ?? ? ????? ? ??????? ?????????? PHP ????????? ??????? ???????????????? ??????????. -- ? ?????????, sergey-ru mailto:sergey-ru at list.ru From danielc at analysisandsolutions.com Thu Mar 1 08:17:29 2007 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 1 Mar 2007 08:17:29 -0500 Subject: [nycphp-talk] [OT] MySQL Tuning. In-Reply-To: <45E5D2F6.7090200@cyberxdesigns.com> References: <45E5B03D.9040204@cyberxdesigns.com> <6431a0f40702280932s2c4d710ak937672263a7696a9@mail.gmail.com> <45E5D2F6.7090200@cyberxdesigns.com> Message-ID: <20070301131729.GA26321@panix.com> On Wed, Feb 28, 2007 at 02:07:34PM -0500, Hans C. Kaspersetz wrote: > > >ALTER TABLE DISABLE KEYS; > >before import and > >ALTER TABLE ENABLE KEYS; > >after import. > > > I am going to look at using DISABLE/ENABLE instead of dropping and adding. The manual indicates that's for MyISAM tables. You said you're using InnoDB. --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 ps at sun-code.com Thu Mar 1 10:49:10 2007 From: ps at sun-code.com (Peter Sawczynec) Date: Thu, 1 Mar 2007 10:49:10 -0500 Subject: [nycphp-talk] RegExp Assistance Message-ID: <002101c75c19$2da34100$6401a8c0@SUNCODE1> I am currently using this regexp noted below to validate client-side before the user submits so that at least their email is well-formed: var emailRegxp = /^([\w]+)(.[\w]+)*@([\w]+)(.[\w]{2,3}){1,2}$/; if( emailRegxp.test(strng) != true ){ return false; }else{ return true; } But, this regexp is not accepting emails of the form name at tom-cat.com It is rejecting the hyphen in the domain name. Does anyone have a real-life tested simple regexp that would plug into the snippet above and be more complete? Thanks to all. Warmest regards, Peter Sawczynec Technology Dir. Sun-code.com Web related services 646.316.3678 ps at sun-code.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From urb at e-government.com Thu Mar 1 10:53:13 2007 From: urb at e-government.com (Urb LeJeune) Date: Thu, 01 Mar 2007 10:53:13 -0500 Subject: [nycphp-talk] Off topic In-Reply-To: <002101c75c19$2da34100$6401a8c0@SUNCODE1> References: <002101c75c19$2da34100$6401a8c0@SUNCODE1> Message-ID: <7.0.1.0.0.20070301105243.0270d8f0@e-government.com> Could anyone recommend a CSS support list? Urb Urb Dr. Urban A. LeJeune, President E-Government.com 800-204-9545 From apg88zx at gmail.com Thu Mar 1 10:57:28 2007 From: apg88zx at gmail.com (Alvaro P.) Date: Thu, 01 Mar 2007 10:57:28 -0500 Subject: [nycphp-talk] RegExp Assistance In-Reply-To: <002101c75c19$2da34100$6401a8c0@SUNCODE1> References: <002101c75c19$2da34100$6401a8c0@SUNCODE1> Message-ID: <45E6F7E8.9010609@gmail.com> I use this function: function validateEmail(email) { var filter=/^(\w+(?:\.\w+)*)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i; if(filter.test(email)==true) { return true; } else{ return false; } } Alvaro Peter Sawczynec wrote: > I am currently using this regexp noted below to validate client-side > before the user submits so that > at least their email is well-formed: > > var emailRegxp = /^([\w]+)(.[\w]+)*@([\w]+)(.[\w]{2,3}){1,2}$/; > if( emailRegxp.test(strng) != true ){ > return false; > }else{ > return true; > } > > But, this regexp is not accepting emails of the form name at tom-cat.com > > It is rejecting the hyphen in the domain name. > > Does anyone have a real-life tested simple regexp that would plug into > the > snippet above and be more complete? > > Thanks to all. > > Warmest regards, > > Peter Sawczynec > Technology Dir. > Sun-code.com > Web related services > 646.316.3678 > ps at sun-code.com > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From support at dailytechnology.net Thu Mar 1 11:00:12 2007 From: support at dailytechnology.net (Brian Dailey) Date: Thu, 01 Mar 2007 11:00:12 -0500 Subject: [nycphp-talk] RegExp Assistance In-Reply-To: <002101c75c19$2da34100$6401a8c0@SUNCODE1> References: <002101c75c19$2da34100$6401a8c0@SUNCODE1> Message-ID: <45E6F88C.1010102@dailytechnology.net> The Daily WTF had a regular expression recently on their page that was supposed to be the be-all end-all for email validation. http://thedailywtf.com/Articles/Validating_Email_Addresses.aspx It's near the bottom of the page. The comments have a lot more examples and discussion about email validation in general. Peter Sawczynec wrote: > I am currently using this regexp noted below to validate client-side > before the user submits so that > at least their email is well-formed: > > var emailRegxp = /^([\w]+)(.[\w]+)*@([\w]+)(.[\w]{2,3}){1,2}$/; > if( emailRegxp.test(strng) != true ){ > return false; > }else{ > return true; > } > > But, this regexp is not accepting emails of the form name at tom-cat.com > > It is rejecting the hyphen in the domain name. > > Does anyone have a real-life tested simple regexp that would plug into the > snippet above and be more complete? > > Thanks to all. > > Warmest regards, > > Peter Sawczynec > Technology Dir. > Sun-code.com > Web related services > 646.316.3678 > ps at sun-code.com > > > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From kenrbnsn at rbnsn.com Thu Mar 1 11:00:32 2007 From: kenrbnsn at rbnsn.com (Ken Robinson) Date: Thu, 01 Mar 2007 11:00:32 -0500 Subject: [nycphp-talk] Off topic In-Reply-To: <7.0.1.0.0.20070301105243.0270d8f0@e-government.com> References: <002101c75c19$2da34100$6401a8c0@SUNCODE1> <7.0.1.0.0.20070301105243.0270d8f0@e-government.com> Message-ID: At 10:53 AM 3/1/2007, Urb LeJeune wrote: >Could anyone recommend a CSS support list? This is the list information for the CSS list I'm on: List-Id: Practical discussions of CSS and its use List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From agfische at email.smith.edu Thu Mar 1 11:03:12 2007 From: agfische at email.smith.edu (Aaron Fischer) Date: Thu, 1 Mar 2007 11:03:12 -0500 Subject: [nycphp-talk] RegExp Assistance In-Reply-To: <002101c75c19$2da34100$6401a8c0@SUNCODE1> References: <002101c75c19$2da34100$6401a8c0@SUNCODE1> Message-ID: <6CB8775C-1740-4273-8D09-10B6EB10F414@email.smith.edu> I use the regexp from Chris's Essential PHP Security book: http://phpsecurity.org/ $email_pattern = '/^[^@\s<&>]+@([ -a-z0-9]+\.)+[a-z]{2,}$/i'; if (preg_match($email_pattern, $yourEmailVar)) { echo 'It's good'; } else { echo 'There's a problem'; } Note, the echo's are thrown in for clarity, those aren't part of Chris's example code. =) Just ran it on your tom-cat example. Passes through ok. -Aaron On Mar 1, 2007, at 10:49 AM, Peter Sawczynec wrote: > I am currently using this regexp noted below to validate client- > side before the user submits so that > at least their email is well-formed: > > var emailRegxp = /^([\w]+)(.[\w]+)*@([\w]+)(.[\w]{2,3}){1,2}$/; > if( emailRegxp.test(strng) != true ){ > return false; > }else{ > return true; > } > > But, this regexp is not accepting emails of the form name at tom-cat.com > It is rejecting the hyphen in the domain name. > > Does anyone have a real-life tested simple regexp that would plug > into the > snippet above and be more complete? > From cderr at simons-rock.edu Thu Mar 1 11:05:42 2007 From: cderr at simons-rock.edu (charlie derr) Date: Thu, 01 Mar 2007 11:05:42 -0500 Subject: [nycphp-talk] RegExp Assistance In-Reply-To: <002101c75c19$2da34100$6401a8c0@SUNCODE1> References: <002101c75c19$2da34100$6401a8c0@SUNCODE1> Message-ID: <45E6F9D6.7050704@simons-rock.edu> I'm personally no good at all at regexes, but a colleague sent me a link to this story: http://worsethanfailure.com/Articles/Validating_Email_Addresses.aspx which does have what the author claims to be a pretty complete email validation regex at the bottom good luck, ~c Peter Sawczynec wrote: > > I am currently using this regexp noted below to validate client-side > before the user submits so that > at least their email is well-formed: > > var emailRegxp = /^([\w]+)(.[\w]+)*@([\w]+)(.[\w]{2,3}){1,2}$/; > if( emailRegxp.test(strng) != true ){ > return false; > }else{ > return true; > } > > But, this regexp is not accepting emails of the form name at tom-cat.com > > It is rejecting the hyphen in the domain name. > > Does anyone have a real-life tested simple regexp that would plug into the > snippet above and be more complete? > > Thanks to all. > > Warmest regards, > > Peter Sawczynec > Technology Dir. > Sun-code.com > Web related services > 646.316.3678 > ps at sun-code.com > > > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From shiflett at php.net Thu Mar 1 11:08:10 2007 From: shiflett at php.net (Chris Shiflett) Date: Thu, 01 Mar 2007 11:08:10 -0500 Subject: [nycphp-talk] RegExp Assistance In-Reply-To: <002101c75c19$2da34100$6401a8c0@SUNCODE1> References: <002101c75c19$2da34100$6401a8c0@SUNCODE1> Message-ID: <45E6FA6A.70503@php.net> Peter Sawczynec wrote: > Does anyone have a real-life tested simple regexp that would plug > into the snippet above and be more complete? There can be only one: http://iamcal.com/publish/articles/php/parsing_email Chris -- Chris Shiflett http://shiflett.org/ From tboyden at supercoups.com Thu Mar 1 11:11:18 2007 From: tboyden at supercoups.com (Timothy Boyden) Date: Thu, 1 Mar 2007 11:11:18 -0500 Subject: [nycphp-talk] RegExp Assistance In-Reply-To: <45E6F7E8.9010609@gmail.com> References: <002101c75c19$2da34100$6401a8c0@SUNCODE1> <45E6F7E8.9010609@gmail.com> Message-ID: Any RegExp gurus care to do an educational breakdown of the RegEx filter in that function? I just can't get my head around regular expressions, too much like algebra and Perl ;-p TIA, Tim -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Alvaro P. Sent: Thursday, March 01, 2007 10:57 AM To: NYPHP Talk Subject: Re: [nycphp-talk] RegExp Assistance I use this function: function validateEmail(email) { var filter=/^(\w+(?:\.\w+)*)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z ]{2})?)$/i; if(filter.test(email)==true) { return true; } else{ return false; } } Alvaro Peter Sawczynec wrote: > I am currently using this regexp noted below to validate client-side > before the user submits so that at least their email is well-formed: > > var emailRegxp = /^([\w]+)(.[\w]+)*@([\w]+)(.[\w]{2,3}){1,2}$/; > if( emailRegxp.test(strng) != true ){ > return false; > }else{ > return true; > } > > But, this regexp is not accepting emails of the form name at tom-cat.com > It is rejecting the hyphen in the domain > name. > > Does anyone have a real-life tested simple regexp that would plug into > the snippet above and be more complete? > > Thanks to all. > > Warmest regards, > > Peter Sawczynec > Technology Dir. > Sun-code.com > Web related services > 646.316.3678 > ps at sun-code.com > > ---------------------------------------------------------------------- > -- > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php From ps at sun-code.com Thu Mar 1 11:21:48 2007 From: ps at sun-code.com (Peter Sawczynec) Date: Thu, 1 Mar 2007 11:21:48 -0500 Subject: [nycphp-talk] RegExp Assistance In-Reply-To: <6CB8775C-1740-4273-8D09-10B6EB10F414@email.smith.edu> Message-ID: <002d01c75c1d$b9403bb0$6401a8c0@SUNCODE1> I went with this regexp from Chris. Thank you all. Peter -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Aaron Fischer Sent: Thursday, March 01, 2007 11:03 AM To: NYPHP Talk Subject: Re: [nycphp-talk] RegExp Assistance I use the regexp from Chris's Essential PHP Security book: http://phpsecurity.org/ $email_pattern = '/^[^@\s<&>]+@([ -a-z0-9]+\.)+[a-z]{2,}$/i'; if (preg_match($email_pattern, $yourEmailVar)) { echo 'It's good'; } else { echo 'There's a problem'; } Note, the echo's are thrown in for clarity, those aren't part of Chris's example code. =) Just ran it on your tom-cat example. Passes through ok. -Aaron On Mar 1, 2007, at 10:49 AM, Peter Sawczynec wrote: > I am currently using this regexp noted below to validate client- > side before the user submits so that > at least their email is well-formed: > > var emailRegxp = /^([\w]+)(.[\w]+)*@([\w]+)(.[\w]{2,3}){1,2}$/; > if( emailRegxp.test(strng) != true ){ > return false; > }else{ > return true; > } > > But, this regexp is not accepting emails of the form name at tom-cat.com > It is rejecting the hyphen in the domain name. > > Does anyone have a real-life tested simple regexp that would plug > into the > snippet above and be more complete? > _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php From ps at sun-code.com Thu Mar 1 11:24:25 2007 From: ps at sun-code.com (Peter Sawczynec) Date: Thu, 1 Mar 2007 11:24:25 -0500 Subject: [nycphp-talk] RegExp Assistance In-Reply-To: <45E6FA6A.70503@php.net> Message-ID: <002e01c75c1e$1ab21080$6401a8c0@SUNCODE1> This article presents the type of certainty we want in all aspects of our programming lives. Peter -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Chris Shiflett Sent: Thursday, March 01, 2007 11:08 AM To: NYPHP Talk Subject: Re: [nycphp-talk] RegExp Assistance Peter Sawczynec wrote: > Does anyone have a real-life tested simple regexp that would plug > into the snippet above and be more complete? There can be only one: http://iamcal.com/publish/articles/php/parsing_email Chris -- Chris Shiflett http://shiflett.org/ _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php From shiflett at php.net Thu Mar 1 11:25:14 2007 From: shiflett at php.net (Chris Shiflett) Date: Thu, 01 Mar 2007 11:25:14 -0500 Subject: [nycphp-talk] RegExp Assistance In-Reply-To: <6CB8775C-1740-4273-8D09-10B6EB10F414@email.smith.edu> References: <002101c75c19$2da34100$6401a8c0@SUNCODE1> <6CB8775C-1740-4273-8D09-10B6EB10F414@email.smith.edu> Message-ID: <45E6FE6A.5040207@php.net> Hi Aaron, > I use the regexp from Chris's Essential PHP Security book: > http://phpsecurity.org/ Cool. :-) I actually prefer Cal Henderson's pattern, because he meticulously crafted it from the RFC, and it's still reasonably short. The one in my book works well, but it's slightly more lenient than necessary. If/when I write a second edition, I'll likely point readers to Cal's pattern or perform the same exercise. Chris -- Chris Shiflett http://shiflett.org/ From agfische at email.smith.edu Thu Mar 1 11:38:06 2007 From: agfische at email.smith.edu (Aaron Fischer) Date: Thu, 1 Mar 2007 11:38:06 -0500 Subject: [nycphp-talk] Off topic - CSS support list In-Reply-To: <7.0.1.0.0.20070301105243.0270d8f0@e-government.com> References: <002101c75c19$2da34100$6401a8c0@SUNCODE1> <7.0.1.0.0.20070301105243.0270d8f0@e-government.com> Message-ID: <62DBDD8D-C14E-413E-A9C8-81CA1FDFA116@email.smith.edu> CSS resource page with links to a few lists: http://www.dezwozhere.com/links.html While not a list, I've heard good things about A List Apart: http://alistapart.com/topics/code/css/ Also CSS Zen Garden: http://www.csszengarden.com/ -Aaron On Mar 1, 2007, at 10:53 AM, Urb LeJeune wrote: > Could anyone recommend a CSS support list? > From agfische at email.smith.edu Thu Mar 1 11:49:00 2007 From: agfische at email.smith.edu (Aaron Fischer) Date: Thu, 1 Mar 2007 11:49:00 -0500 Subject: [nycphp-talk] RegExp Assistance In-Reply-To: <45E6FE6A.5040207@php.net> References: <002101c75c19$2da34100$6401a8c0@SUNCODE1> <6CB8775C-1740-4273-8D09-10B6EB10F414@email.smith.edu> <45E6FE6A.5040207@php.net> Message-ID: <435CF0A8-9F39-462A-8D61-C85CB0A8D960@email.smith.edu> Gotcha. Thanks Chris, I'll take a look at Cal's pattern. =) BTW, big props for your book. It's been extremely helpful. -Aaron On Mar 1, 2007, at 11:25 AM, Chris Shiflett wrote: > Hi Aaron, > >> I use the regexp from Chris's Essential PHP Security book: >> http://phpsecurity.org/ > > Cool. :-) > > I actually prefer Cal Henderson's pattern, because he meticulously > crafted it from the RFC, and it's still reasonably short. The one > in my > book works well, but it's slightly more lenient than necessary. > > If/when I write a second edition, I'll likely point readers to Cal's > pattern or perform the same exercise. From shiflett at php.net Thu Mar 1 12:02:12 2007 From: shiflett at php.net (Chris Shiflett) Date: Thu, 01 Mar 2007 12:02:12 -0500 Subject: [nycphp-talk] RegExp Assistance In-Reply-To: <435CF0A8-9F39-462A-8D61-C85CB0A8D960@email.smith.edu> References: <002101c75c19$2da34100$6401a8c0@SUNCODE1> <6CB8775C-1740-4273-8D09-10B6EB10F414@email.smith.edu> <45E6FE6A.5040207@php.net> <435CF0A8-9F39-462A-8D61-C85CB0A8D960@email.smith.edu> Message-ID: <45E70714.9020104@php.net> Aaron Fischer wrote: > BTW, big props for your book. It's been extremely > helpful. Thanks! I plan to bring some more free copies to a NYPHP meeting, but I keep missing them due to being out of town. Hopefully I'll catch the next one. Chris -- Chris Shiflett http://shiflett.org/ From 1j0lkq002 at sneakemail.com Thu Mar 1 13:03:45 2007 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Thu, 01 Mar 2007 10:03:45 -0800 Subject: [nycphp-talk] Off topic In-Reply-To: <20070301162514.10736.qmail@monkey.sneakemail.com> References: <002101c75c19$2da34100$6401a8c0@SUNCODE1> <7.0.1.0.0.20070301105243.0270d8f0@e-government.com> <20070301162514.10736.qmail@monkey.sneakemail.com> Message-ID: <27408-14433@sneakemail.com> Ken Robinson kenrbnsn-at-rbnsn.com |nyphp dev/internal group use| wrote: > At 10:53 AM 3/1/2007, Urb LeJeune wrote: > >> Could anyone recommend a CSS support list? > > > This is the list information for the CSS list I'm on: > > List-Id: Practical discussions of CSS and its use > > List-Unsubscribe: , > > List-Archive: > List-Post: > List-Help: > List-Subscribe: , > http://www.ericmeyeroncss.com/links/resources.html -- ------------------------------------------------------------- Your web server traffic log file is the most important source of web business information available. Do you know where your logs are right now? Do you know who else has access to your log files? When they were last archived? Where those archives are? --John Andrews Competitive Webmaster and SEO Blogging at http://www.johnon.com From vacanti at gmail.com Thu Mar 1 15:01:23 2007 From: vacanti at gmail.com (Vinicius Vacanti) Date: Thu, 1 Mar 2007 15:01:23 -0500 Subject: [nycphp-talk] PHP Training Recommendation Message-ID: Hi, I'm sort of new to PHP but not new to programming and am looking for some advanced PHP training / classes (offline, in NYC, or online). Does anyone have any recommendations? I'm thinking about the Zend online classes, does anyone have a point of view on those classes? Thanks in advance, Vinicius -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at zaunere.com Thu Mar 1 15:04:13 2007 From: lists at zaunere.com (Hans Zaunere) Date: Thu, 1 Mar 2007 15:04:13 -0500 Subject: [nycphp-talk] PHP Training Recommendation In-Reply-To: References: Message-ID: <01e801c75c3c$c8d3b7e0$690aa8c0@MobileZ> Of course there's http://www.nyphp.com/training/indepth.php#programmer --- Hans Zaunere / President / New York PHP www.nyphp.org / www.nyphp.com Vinicius Vacanti wrote on Thursday, March 01, 2007 3:01 PM: > Hi, > > I'm sort of new to PHP but not new to programming and am looking for > some advanced PHP training / classes (offline, in NYC, or online). > Does anyone have any recommendations? I'm thinking about the Zend > online classes, does anyone have a point of view on those classes? > > Thanks in advance, > Vinicius From cliff at pinestream.com Thu Mar 1 15:16:54 2007 From: cliff at pinestream.com (Cliff Hirsch) Date: Thu, 01 Mar 2007 15:16:54 -0500 Subject: [nycphp-talk] RegExp Assistance In-Reply-To: Message-ID: It's so simple! Seriously, I've said it before -- Regex Buddy is awesome. Here's the output: email explanation /^(\w+(?:\.\w+)*)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z ]{2})?)$/ Match the character "/" literally ?/? Assert position at the start of the string ?^? Match the regular expression below and capture its match into backreference number 1 ?(\w+(?:\.\w+)*)? Match a single character that is a "word character" (letters, digits, etc.) ?\w+? Between one and unlimited times, as many times as possible, giving back as needed (greedy) ?+? Match the regular expression below ?(?:\.\w+)*? Between zero and unlimited times, as many times as possible, giving back as needed (greedy) ?*? Match the character "." literally ?\.? Match a single character that is a "word character" (letters, digits, etc.) ?\w+? Between one and unlimited times, as many times as possible, giving back as needed (greedy) ?+? Match the character "@" literally ?@? Match the regular expression below and capture its match into backreference number 2 ?((?:\w+\.)*\w[\w-]{0,66})? Match the regular expression below ?(?:\w+\.)*? Between zero and unlimited times, as many times as possible, giving back as needed (greedy) ?*? Match a single character that is a "word character" (letters, digits, etc.) ?\w+? Between one and unlimited times, as many times as possible, giving back as needed (greedy) ?+? Match the character "." literally ?\.? Match a single character that is a "word character" (letters, digits, etc.) ?\w? Match a single character present in the list below ?[\w-]{0,66}? Between zero and 66 times, as many times as possible, giving back as needed (greedy) ?{0,66}? Match a single character that is a "word character" (letters, digits, etc.) ?\w? The character "-" ?-? Match the character "." literally ?\.? Match the regular expression below and capture its match into backreference number 3 ?([a-z]{2,6}(?:\.[a-z ]{2})?)? Match a single character in the range between "a" and "z" ?[a-z]{2,6}? Between 2 and 6 times, as many times as possible, giving back as needed (greedy) ?{2,6}? Match the regular expression below ?(?:\.[a-z ]{2})?? Between zero and one times, as many times as possible, giving back as needed (greedy) ??? Match the character "." literally ?\.? Match a single character present in the list below ?[a-z ]{2}? Exactly 2 times ?{2}? A character in the range between "a" and "z" ?a-z? One of the characters " " ? ? Assert position at the end of the string (or before the line break at the end of the string, if any) ?$? Match the character "/" literally ?/? Created with RegexBuddy On 3/1/07 11:11 AM, "Timothy Boyden" wrote: > Any RegExp gurus care to do an educational breakdown of the RegEx filter > in that function? > > I just can't get my head around regular expressions, too much like > algebra and Perl ;-p > > TIA, > > Tim > > > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > On Behalf Of Alvaro P. > Sent: Thursday, March 01, 2007 10:57 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] RegExp Assistance > > I use this function: > > function validateEmail(email) > { > var > filter=/^(\w+(?:\.\w+)*)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z > ]{2})?)$/i; > if(filter.test(email)==true) { > return true; > } else{ > return false; > } > > } > > From agfische at email.smith.edu Thu Mar 1 15:25:56 2007 From: agfische at email.smith.edu (Aaron Fischer) Date: Thu, 1 Mar 2007 15:25:56 -0500 Subject: [nycphp-talk] RegExp Assistance In-Reply-To: References: Message-ID: Looks interesting but it's only offered for Windows. http://www.regexbuddy.com/index.html Any good OS X equivalents out there? -Aaron On Mar 1, 2007, at 3:16 PM, Cliff Hirsch wrote: > It's so simple! Seriously, I've said it before -- Regex Buddy is > awesome. > From cliff at pinestream.com Thu Mar 1 15:27:08 2007 From: cliff at pinestream.com (Cliff Hirsch) Date: Thu, 01 Mar 2007 15:27:08 -0500 Subject: [nycphp-talk] RegExp Assistance In-Reply-To: Message-ID: True -- bites. I run it inside Parallels. On 3/1/07 3:25 PM, "Aaron Fischer" wrote: > Looks interesting but it's only offered for Windows. > http://www.regexbuddy.com/index.html > > Any good OS X equivalents out there? > > -Aaron > > On Mar 1, 2007, at 3:16 PM, Cliff Hirsch wrote: > >> It's so simple! Seriously, I've said it before -- Regex Buddy is >> awesome. From tboyden at supercoups.com Thu Mar 1 16:59:01 2007 From: tboyden at supercoups.com (Timothy Boyden) Date: Thu, 1 Mar 2007 16:59:01 -0500 Subject: [nycphp-talk] RegExp Assistance In-Reply-To: References: Message-ID: Thanks Cliff, I'll have to get Regex Buddy, that's a cool tool to have. -Tim -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Cliff Hirsch Sent: Thursday, March 01, 2007 3:17 PM To: NYPHP Talk Subject: Re: [nycphp-talk] RegExp Assistance It's so simple! Seriously, I've said it before -- Regex Buddy is awesome. Here's the output: email explanation /^(\w+(?:\.\w+)*)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z ]{2})?)$/ Match the character "/" literally Assert position at the start of the string <^> Match the regular expression below and capture its match into backreference number 1 <(\w+(?:\.\w+)*)> Match a single character that is a "word character" (letters, digits, etc.) <\w+> Between one and unlimited times, as many times as possible, giving back as needed (greedy) <+> Match the regular expression below <(?:\.\w+)*> Between zero and unlimited times, as many times as possible, giving back as needed (greedy) <*> Match the character "." literally <\.> Match a single character that is a "word character" (letters, digits, etc.) <\w+> Between one and unlimited times, as many times as possible, giving back as needed (greedy) <+> Match the character "@" literally <@> Match the regular expression below and capture its match into backreference number 2 <((?:\w+\.)*\w[\w-]{0,66})> Match the regular expression below <(?:\w+\.)*> Between zero and unlimited times, as many times as possible, giving back as needed (greedy) <*> Match a single character that is a "word character" (letters, digits, etc.) <\w+> Between one and unlimited times, as many times as possible, giving back as needed (greedy) <+> Match the character "." literally <\.> Match a single character that is a "word character" (letters, digits, etc.) <\w> Match a single character present in the list below <[\w-]{0,66}> Between zero and 66 times, as many times as possible, giving back as needed (greedy) <{0,66}> Match a single character that is a "word character" (letters, digits, etc.) <\w> The character "-" <-> Match the character "." literally <\.> Match the regular expression below and capture its match into backreference number 3 <([a-z]{2,6}(?:\.[a-z ]{2})?)> Match a single character in the range between "a" and "z" <[a-z]{2,6}> Between 2 and 6 times, as many times as possible, giving back as needed (greedy) <{2,6}> Match the regular expression below <(?:\.[a-z ]{2})?> Between zero and one times, as many times as possible, giving back as needed (greedy) Match the character "." literally <\.> Match a single character present in the list below <[a-z ]{2}> Exactly 2 times <{2}> A character in the range between "a" and "z" One of the characters " " < > Assert position at the end of the string (or before the line break at the end of the string, if any) <$> Match the character "/" literally Created with RegexBuddy On 3/1/07 11:11 AM, "Timothy Boyden" wrote: > Any RegExp gurus care to do an educational breakdown of the RegEx > filter in that function? > > I just can't get my head around regular expressions, too much like > algebra and Perl ;-p > > TIA, > > Tim > > > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] > On Behalf Of Alvaro P. > Sent: Thursday, March 01, 2007 10:57 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] RegExp Assistance > > I use this function: > > function validateEmail(email) > { > var > filter=/^(\w+(?:\.\w+)*)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a > -z > ]{2})?)$/i; > if(filter.test(email)==true) { > return true; > } else{ > return false; > } > > } > > _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php From 1j0lkq002 at sneakemail.com Thu Mar 1 17:58:37 2007 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Thu, 01 Mar 2007 14:58:37 -0800 Subject: [nycphp-talk] RegExp Assistance In-Reply-To: References: Message-ID: <12984-62217@sneakemail.com> Aaron Fischer agfische-at-email.smith.edu |nyphp dev/internal group use| wrote: > Looks interesting but it's only offered for Windows. > http://www.regexbuddy.com/index.html > > Any good OS X equivalents out there? > > -Aaron > > On Mar 1, 2007, at 3:16 PM, Cliff Hirsch wrote: > >> It's so simple! Seriously, I've said it before -- Regex Buddy is >> awesome. >> au contrare' and linux, too http://www.regexbuddy.com/linuxnow.html -- ------------------------------------------------------------- Your web server traffic log file is the most important source of web business information available. Do you know where your logs are right now? Do you know who else has access to your log files? When they were last archived? Where those archives are? --John Andrews Competitive Webmaster and SEO Blogging at http://www.johnon.com From chsnyder at gmail.com Thu Mar 1 18:10:43 2007 From: chsnyder at gmail.com (csnyder) Date: Thu, 1 Mar 2007 18:10:43 -0500 Subject: [nycphp-talk] Off topic - CSS support list In-Reply-To: <62DBDD8D-C14E-413E-A9C8-81CA1FDFA116@email.smith.edu> References: <002101c75c19$2da34100$6401a8c0@SUNCODE1> <7.0.1.0.0.20070301105243.0270d8f0@e-government.com> <62DBDD8D-C14E-413E-A9C8-81CA1FDFA116@email.smith.edu> Message-ID: On 3/1/07, Aaron Fischer wrote: > CSS resource page with links to a few lists: > http://www.dezwozhere.com/links.html > > While not a list, I've heard good things about A List Apart: > http://alistapart.com/topics/code/css/ > > Also CSS Zen Garden: > http://www.csszengarden.com/ > > -Aaron > > On Mar 1, 2007, at 10:53 AM, Urb LeJeune wrote: > > > Could anyone recommend a CSS support list? > > Also, NYPHP's own "Front-End" list (meaning, anything that happens on the client) is still active. We'd love to see more CSS / Javascript questions posted there. http://lists.nyphp.org/mailman/listinfo/front-end -- Chris Snyder http://chxo.com/ From jonbaer at jonbaer.com Thu Mar 1 22:02:39 2007 From: jonbaer at jonbaer.com (Jon Baer) Date: Thu, 1 Mar 2007 22:02:39 -0500 Subject: [nycphp-talk] RegExp Assistance In-Reply-To: References: Message-ID: <1F4685BE-8FD7-4D92-824B-E783D9DB9BA6@jonbaer.com> >> Any good OS X equivalents out there? >> What I use (or ~try~ not to ;-): http://www.apple.com/downloads/dashboard/developer/regexwidget.html - Jon From lists at silmail.com Thu Mar 1 23:53:57 2007 From: lists at silmail.com (Jiju Thomas Mathew) Date: Fri, 2 Mar 2007 10:23:57 +0530 Subject: [nycphp-talk] [OT] MySQL Tuning. In-Reply-To: <20070301131729.GA26321@panix.com> References: <45E5B03D.9040204@cyberxdesigns.com> <6431a0f40702280932s2c4d710ak937672263a7696a9@mail.gmail.com> <45E5D2F6.7090200@cyberxdesigns.com> <20070301131729.GA26321@panix.com> Message-ID: <6431a0f40703012053p2db23f72g6242e29093f11f4@mail.gmail.com> > > > >ALTER TABLE DISABLE KEYS; > > >before import and > > >ALTER TABLE ENABLE KEYS; > > >after import. > > > > > I am going to look at using DISABLE/ENABLE instead of dropping and > adding. > > The manual indicates that's for MyISAM tables. You said you're using > InnoDB. > > Oops.. yes Dan.. I overlooked it.. and was using that on most of my tables, when I needed bulk inserts.. I just checked it on my 4.12-max mysql> alter table personaldetails disable keys; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> show warnings; +---------+------+---------------------------------------------------------------------+ | Level | Code | Message | +---------+------+---------------------------------------------------------------------+ | Warning | 1031 | Table storage engine for 'personaldetails' doesn't have this option | +---------+------+---------------------------------------------------------------------+ 1 row in set (0.00 sec) So it seems that for InnoDB engine, dropping the indexes, and recreating it is the only way.. ? -- Jiju Thomas Mathew http://www.php-trivandrum.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From agfische at email.smith.edu Fri Mar 2 09:24:23 2007 From: agfische at email.smith.edu (Aaron Fischer) Date: Fri, 2 Mar 2007 09:24:23 -0500 Subject: [nycphp-talk] RegExp Assistance In-Reply-To: <12984-62217@sneakemail.com> References: <12984-62217@sneakemail.com> Message-ID: Ah yes, I see that. They just don't have their home page updated. The home page says only for Windows. It's only once you arrive at some of the lower tier pages that a Linux version is mentioned. Have to add this to the list of reasons to upgrade to a new Intel based Mac. RegEx Buddy looks nice. Hopefully their software is better than their web design. =) On Mar 1, 2007, at 5:58 PM, inforequest wrote: > Aaron Fischer agfische-at-email.smith.edu |nyphp dev/internal group > use| wrote: > >> Looks interesting but it's only offered for Windows. >> http://www.regexbuddy.com/index.html >>> > au contrare' and linux, too http://www.regexbuddy.com/ > linuxnow.html > > -- From ken at secdat.com Fri Mar 2 15:57:21 2007 From: ken at secdat.com (Kenneth Downs) Date: Fri, 02 Mar 2007 15:57:21 -0500 Subject: [nycphp-talk] [OT] Yet another CSS Question Message-ID: <45E88FB1.3040007@secdat.com> OK, so let's say I'm trying to make an honest go of it and resist the urge to use TABLEs for non-tabular data. So how do I handle this one? I'd like to have two links on a page. They should be on the same line together, one flush left, the other flush right. The TABLE method is just to have two cells, but of course we don't want to do that. What I tried was putting two divs, one after the other. The 2nd one was relative positioned with its height at -1em. This did not work on IE 6, and as I am using a downloaded template, as I twiddled I quickly realized I was going to make it a lot worse before it ever got better. So right now I am using a TABLE and wondering if anybody can teach a database guy yet another CSS trick. P.S., you know I wonder if there is something about programmers, especially db guys, preferring that TABLE element, some kind of subconscious thing... -- Kenneth Downs Secure Data Software, Inc. www.secdat.com / www.andromeda-project.org Office: 631-689-7200 Cell: 631-379-0010 ::Think you may have a problem with programming? Ask yourself this ::question: do you worry about how to throw away a garbage can? From support at dailytechnology.net Fri Mar 2 16:00:20 2007 From: support at dailytechnology.net (Brian Dailey) Date: Fri, 02 Mar 2007 16:00:20 -0500 Subject: [nycphp-talk] [OT] Yet another CSS Question In-Reply-To: <45E88FB1.3040007@secdat.com> References: <45E88FB1.3040007@secdat.com> Message-ID: <45E89064.9070706@dailytechnology.net> You have the option of floating them both. Add float: left; to the style or the CSS specs. Either that or you could float: left; one and float: right; the other. Kenneth Downs wrote: > OK, so let's say I'm trying to make an honest go of it and resist the > urge to use TABLEs for non-tabular data. > > So how do I handle this one? > > I'd like to have two links on a page. They should be on the same line > together, one flush left, the other flush right. The TABLE method is > just to have two cells, but of course we don't want to do that. > > What I tried was putting two divs, one after the other. The 2nd one was > relative positioned with its height at -1em. This did not work on IE 6, > and as I am using a downloaded template, as I twiddled I quickly > realized I was going to make it a lot worse before it ever got better. > > So right now I am using a TABLE and wondering if anybody can teach a > database guy yet another CSS trick. > > > P.S., you know I wonder if there is something about programmers, > especially db guys, preferring that TABLE element, some kind of > subconscious thing... > From agfische at email.smith.edu Fri Mar 2 16:03:44 2007 From: agfische at email.smith.edu (Aaron Fischer) Date: Fri, 2 Mar 2007 16:03:44 -0500 Subject: [nycphp-talk] [OT] Yet another CSS Question In-Reply-To: <45E88FB1.3040007@secdat.com> References: <45E88FB1.3040007@secdat.com> Message-ID: Kenneth, good timing, following up on the recent discussion about CSS. NYPHP front end list is the spot to ask this question: http://lists.nyphp.org/mailman/listinfo/front-end -Aaron -- resisting the urge to make a front-end, back-end reference. On Mar 2, 2007, at 3:57 PM, Kenneth Downs wrote: > OK, so let's say I'm trying to make an honest go of it and resist > the urge to use TABLEs for non-tabular data. > > So how do I handle this one? > > I'd like to have two links on a page. They should be on the same > line together, one flush left, the other flush right. The TABLE > method is just to have two cells, but of course we don't want to do > that. > > What I tried was putting two divs, one after the other. The 2nd > one was relative positioned with its height at -1em. This did not > work on IE 6, and as I am using a downloaded template, as I > twiddled I quickly realized I was going to make it a lot worse > before it ever got better. > > So right now I am using a TABLE and wondering if anybody can teach > a database guy yet another CSS trick. > > > P.S., you know I wonder if there is something about programmers, > especially db guys, preferring that TABLE element, some kind of > subconscious thing... > > -- > Kenneth Downs > Secure Data Software, Inc. > www.secdat.com / www.andromeda-project.org > Office: 631-689-7200 Cell: 631-379-0010 > > ::Think you may have a problem with programming? Ask yourself > this ::question: do you worry about how to throw away a garbage can? > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From dell at sala.ca Fri Mar 2 16:10:22 2007 From: dell at sala.ca (Dell Sala) Date: Fri, 2 Mar 2007 16:10:22 -0500 Subject: [nycphp-talk] [OT] Yet another CSS Question In-Reply-To: <45E88FB1.3040007@secdat.com> References: <45E88FB1.3040007@secdat.com> Message-ID: On Mar 2, 2007, at 3:57 PM, Kenneth Downs wrote: > I'd like to have two links on a page. They should be on the same > line together, one flush left, the other flush right. The TABLE > method is just to have two cells, but of course we don't want to do > that. You could use float: I'm sure there are lots of other ways too. -- Dell From tedd at sperling.com Fri Mar 2 16:12:11 2007 From: tedd at sperling.com (tedd) Date: Fri, 2 Mar 2007 16:12:11 -0500 Subject: [nycphp-talk] [OT] Yet another CSS Question In-Reply-To: <45E88FB1.3040007@secdat.com> References: <45E88FB1.3040007@secdat.com> Message-ID: At 3:57 PM -0500 3/2/07, Kenneth Downs wrote: >OK, so let's say I'm trying to make an honest go of it and resist >the urge to use TABLEs for non-tabular data. > >So how do I handle this one? > >I'd like to have two links on a page. They should be on the same >line together, one flush left, the other flush right. The TABLE >method is just to have two cells, but of course we don't want to do >that. Kenneth This should work for you: http://css.maxdesign.com.au/floatutorial/tutorial0501.htm Keep resisting the urge. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From tboyden at supercoups.com Fri Mar 2 16:52:50 2007 From: tboyden at supercoups.com (Timothy Boyden) Date: Fri, 2 Mar 2007 16:52:50 -0500 Subject: [nycphp-talk] [OT] Yet another CSS Question In-Reply-To: <45E88FB1.3040007@secdat.com> References: <45E88FB1.3040007@secdat.com> Message-ID: Ken, If you need another example, I just happened to be practicing my CSS layout skills today with a new project I'm starting. Below are links to the HTML page and the CSS for it. It's about as clean as I think I can get it: http://www.supercoups.com/fms/fms_template.shtml http://www.supercoups.com/fms/includes/fms.css I think you'll get the idea by looking at the source for each document. Compare that to this document created by a web design shop: http://www.supercoups.com/licensing/license.shtml -Tim --------------------------- Timothy Boyden Network Administrator tboyden at supercoups.com SuperCoups(r) | 350 Revolutionary Drive | E. Taunton, MA 02718 508-977-2034 | www.supercoups.com --------------------------- -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Kenneth Downs Sent: Friday, March 02, 2007 3:57 PM To: NYPHP Talk Subject: [nycphp-talk] [OT] Yet another CSS Question OK, so let's say I'm trying to make an honest go of it and resist the urge to use TABLEs for non-tabular data. So how do I handle this one? I'd like to have two links on a page. They should be on the same line together, one flush left, the other flush right. The TABLE method is just to have two cells, but of course we don't want to do that. What I tried was putting two divs, one after the other. The 2nd one was relative positioned with its height at -1em. This did not work on IE 6, and as I am using a downloaded template, as I twiddled I quickly realized I was going to make it a lot worse before it ever got better. So right now I am using a TABLE and wondering if anybody can teach a database guy yet another CSS trick. P.S., you know I wonder if there is something about programmers, especially db guys, preferring that TABLE element, some kind of subconscious thing... -- Kenneth Downs Secure Data Software, Inc. www.secdat.com / www.andromeda-project.org Office: 631-689-7200 Cell: 631-379-0010 ::Think you may have a problem with programming? Ask yourself this ::question: do you worry about how to throw away a garbage can? _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php From rolan at omnistep.com Fri Mar 2 17:20:36 2007 From: rolan at omnistep.com (Rolan Yang) Date: Fri, 02 Mar 2007 17:20:36 -0500 Subject: [nycphp-talk] [OT] Yet another CSS Question In-Reply-To: <45E88FB1.3040007@secdat.com> References: <45E88FB1.3040007@secdat.com> Message-ID: <45E8A334.9040309@omnistep.com> For the past 3 days, I have treaded through css hell converting a site from nested tables to non-table css. There were issues with background colors not showing through, columns not lining up, padding and margins on boxes are handled differently between IE and Firefox and various DTD types, quirks mode vs nonquirks??, phantom rows appearing from nested div's with multiple floats in IE, and a myriad number of other browser incompatibilities/bugs. All this was a result of some twisted desire to make table rows drag+drop resortable with dom/javascript magic. After all the CSS quirks were addressed, I discovered that the scriptaculous drag+drop functions would slow down or lock up the browser when there were too many elements to sortable. Ugh. Now, I'm working on writing my own leaner drag and drop script which will hopefully run more quickly. They say what doesn't kill you makes you stronger. I'm not sure if I am any stronger, but I did lose a few handfuls of hair in the process. ~Rolan Kenneth Downs wrote: > OK, so let's say I'm trying to make an honest go of it and resist the > urge to use TABLEs for non-tabular data. > > So how do I handle this one? > From ken at secdat.com Fri Mar 2 17:55:05 2007 From: ken at secdat.com (Kenneth Downs) Date: Fri, 02 Mar 2007 17:55:05 -0500 Subject: [nycphp-talk] [OT] Yet another CSS Question In-Reply-To: References: <45E88FB1.3040007@secdat.com> Message-ID: <45E8AB49.1010701@secdat.com> Dell Sala wrote: > On Mar 2, 2007, at 3:57 PM, Kenneth Downs wrote: > >> I'd like to have two links on a page. They should be on the same >> line together, one flush left, the other flush right. The TABLE >> method is just to have two cells, but of course we don't want to do >> that. > > > You could use float: > > Note to self: buy Dell a drink after next NYPHP meeting. > > I'm sure there are lots of other ways too. > > -- Dell > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php -- Kenneth Downs Secure Data Software, Inc. www.secdat.com / www.andromeda-project.org Office: 631-689-7200 Cell: 631-379-0010 ::Think you may have a problem with programming? Ask yourself this ::question: do you worry about how to throw away a garbage can? From 1j0lkq002 at sneakemail.com Fri Mar 2 20:15:49 2007 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Fri, 02 Mar 2007 17:15:49 -0800 Subject: [nycphp-talk] [OT] Yet another CSS Question In-Reply-To: <45E8A334.9040309@omnistep.com> References: <45E88FB1.3040007@secdat.com> <45E8A334.9040309@omnistep.com> Message-ID: <25335-42408@sneakemail.com> Rolan Yang rolan-at-omnistep.com |nyphp dev/internal group use| wrote: > For the past 3 days, I have treaded through css hell converting a site > from nested tables to non-table css. There were issues with background > colors not showing through, columns not lining up, padding and margins > on boxes are handled differently between IE and Firefox and various > DTD types, quirks mode vs nonquirks??, phantom rows appearing from > nested div's with multiple floats in IE, and a myriad number of other > browser incompatibilities/bugs. > > All this was a result of some twisted desire to make table rows > drag+drop resortable with dom/javascript magic. > > After all the CSS quirks were addressed, I discovered that the > scriptaculous drag+drop functions would slow down or lock up the > browser when there were too many elements to sortable. Ugh. Now, I'm > working on writing my own leaner drag and drop script which will > hopefully run more quickly. They say what doesn't kill you makes you > stronger. I'm not sure if I am any stronger, but I did lose a few > handfuls of hair in the process. > > ~Rolan That sounds a lot like what I call a "development project" -=john andrews -- ------------------------------------------------------------- Your web server traffic log file is the most important source of web business information available. Do you know where your logs are right now? Do you know who else has access to your log files? When they were last archived? Where those archives are? --John Andrews Competitive Webmaster and SEO Blogging at http://www.johnon.com From kenrbnsn at rbnsn.com Fri Mar 2 21:07:31 2007 From: kenrbnsn at rbnsn.com (Ken Robinson) Date: Fri, 02 Mar 2007 21:07:31 -0500 Subject: [nycphp-talk] [OT] Yet another CSS Question In-Reply-To: <45E8A334.9040309@omnistep.com> References: <45E88FB1.3040007@secdat.com> <45E8A334.9040309@omnistep.com> Message-ID: At 05:20 PM 3/2/2007, Rolan Yang wrote: >All this was a result of some twisted desire to make table rows >drag+drop resortable with dom/javascript magic. > >After all the CSS quirks were addressed, I discovered that the >scriptaculous drag+drop functions would slow down or lock up the >browser when there were too many elements to sortable. Ugh. Now, I'm >working on writing my own leaner drag and drop script which will >hopefully run more quickly. They say what doesn't kill you makes you >stronger. I'm not sure if I am any stronger, but I did lose a few >handfuls of hair in the process. You might want to look at the Drag & Drop module of the Yahoo User Interface libraries . I've never used this feature, so I can't tell you if you will run into the same problems, but it might be worth a look. Ken From ps at sun-code.com Sat Mar 3 10:37:30 2007 From: ps at sun-code.com (Peter Sawczynec) Date: Sat, 3 Mar 2007 10:37:30 -0500 Subject: [nycphp-talk] [OT] Yet another CSS Question In-Reply-To: <45E88FB1.3040007@secdat.com> Message-ID: <001801c75da9$e0ffb8a0$6401a8c0@SUNCODE1> I believe it could be appropriate to used nested divs, as in roughly:
Some benefit(s) are you can position the parent div absolutely or relatively, and set the width as a percentage (100%) or exact, such as 400px. Then the child divs when positioned can be positioned relative to the parent x,y position on the page, if needed. And then use whatever attributes work to position the child divs. Or you may find that you can apply align or alignment properties to the content itself that is in the child divs, such as text-align:right. And just while I'm here. For those who like to sip their CSS, and use it to help finely tweak the formatting of a page (especially text and images that are within parent table(s): don't neglect the font/text prosperities like text-decoration, text-align, line-height, letter-spacing, font-weight, and font-style. These properties which used to fail are actually nicely applied in modern browsers. E.g. this baseline class when applied to a
or tag will allow you to really tune your text till it is quite perfect within your layout: .pulloutcopy { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #091016; font-weight: 900; /* value 900 = bold, 100 = book */ font-style: normal; /* value oblique creates ital */ text-decoration: none; line-height: 21px; padding-top: 0px; padding-right: 8px; padding-bottom: 0px; padding-left: 15px; } Warmest regards, Peter Sawczynec Technology Dir. Sun-code.com Web related services 646.316.3678 ps at sun-code.com -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Kenneth Downs Sent: Friday, March 02, 2007 3:57 PM To: NYPHP Talk Subject: [nycphp-talk] [OT] Yet another CSS Question OK, so let's say I'm trying to make an honest go of it and resist the urge to use TABLEs for non-tabular data. So how do I handle this one? I'd like to have two links on a page. They should be on the same line together, one flush left, the other flush right. The TABLE method is just to have two cells, but of course we don't want to do that. What I tried was putting two divs, one after the other. The 2nd one was relative positioned with its height at -1em. This did not work on IE 6, and as I am using a downloaded template, as I twiddled I quickly realized I was going to make it a lot worse before it ever got better. So right now I am using a TABLE and wondering if anybody can teach a database guy yet another CSS trick. P.S., you know I wonder if there is something about programmers, especially db guys, preferring that TABLE element, some kind of subconscious thing... -- Kenneth Downs Secure Data Software, Inc. www.secdat.com / www.andromeda-project.org Office: 631-689-7200 Cell: 631-379-0010 ::Think you may have a problem with programming? Ask yourself this ::question: do you worry about how to throw away a garbage can? _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php From ken at secdat.com Sat Mar 3 11:17:16 2007 From: ken at secdat.com (Kenneth Downs) Date: Sat, 03 Mar 2007 11:17:16 -0500 Subject: [nycphp-talk] [OT] Yet another CSS Question In-Reply-To: <001801c75da9$e0ffb8a0$6401a8c0@SUNCODE1> References: <001801c75da9$e0ffb8a0$6401a8c0@SUNCODE1> Message-ID: <45E99F8C.4060708@secdat.com> Peter Sawczynec wrote: > I believe it could be appropriate to used nested divs, as in roughly: > >
style="position:absolute;top:100px;left:270px;width:400px;height:300px;b > ackground-color:#eheheh;color:#333333;"> >
>
> > This was my first approach. However, there is a ripple effect to take into consideration. In my case I was dealing with some custom content nested about 8 levels in on a template that I downloaded from somebody else. When you use the position: absolute, you must take into consideration the parent element, so then I'd go change that, messing up the template, and trying to fix it would just start breaking more stuff. That was my motivation for a construction that was free-standing, that would not require any settings in the containing element. -- Kenneth Downs Secure Data Software, Inc. www.secdat.com / www.andromeda-project.org Office: 631-689-7200 Cell: 631-379-0010 ::Think you may have a problem with programming? Ask yourself this ::question: do you worry about how to throw away a garbage can? From tedd at sperling.com Sat Mar 3 11:17:10 2007 From: tedd at sperling.com (tedd) Date: Sat, 3 Mar 2007 11:17:10 -0500 Subject: [nycphp-talk] [OT] Yet another CSS Question In-Reply-To: <45E8A334.9040309@omnistep.com> References: <45E88FB1.3040007@secdat.com> <45E8A334.9040309@omnistep.com> Message-ID: At 5:20 PM -0500 3/2/07, Rolan Yang wrote: >For the past 3 days, I have treaded through css hell converting a >site from nested tables to non-table css. There were issues with >background colors not showing through, columns not lining up, >padding and margins on boxes are handled differently between IE and >Firefox and various DTD types, quirks mode vs nonquirks??, phantom >rows appearing from nested div's with multiple floats in IE, and a >myriad number of other browser incompatibilities/bugs. > >All this was a result of some twisted desire to make table rows >drag+drop resortable with dom/javascript magic. > >After all the CSS quirks were addressed, I discovered that the >scriptaculous drag+drop functions would slow down or lock up the >browser when there were too many elements to sortable. Ugh. Now, I'm >working on writing my own leaner drag and drop script which will >hopefully run more quickly. They say what doesn't kill you makes you >stronger. I'm not sure if I am any stronger, but I did lose a few >handfuls of hair in the process. > >~Rolan ~Rolan: You want drag and drop stuff, look into Query. This is an example: http://xn--nvg.com/dragdrop tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From danielc at analysisandsolutions.com Sat Mar 3 11:31:53 2007 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sat, 3 Mar 2007 11:31:53 -0500 Subject: [nycphp-talk] MySQL Tuning. In-Reply-To: <45E5B03D.9040204@cyberxdesigns.com> References: <45E5B03D.9040204@cyberxdesigns.com> Message-ID: <20070303163152.GA20723@panix.com> Hey Hans: One possible thing could be the slow log. Do you have it turned on? If you do, large extended inserts will land in the slow query log, slowing down the whole insert process. My workaround is before making my dump, create the file with a query at the top that extends the setting for long queries. echo "SET @@session.long_query_time = 3600;" > ~/$name.sql --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 alshaeiq at gmail.com Sun Mar 4 03:34:32 2007 From: alshaeiq at gmail.com (Riyadh S. Alshaeiq) Date: Sun, 4 Mar 2007 11:34:32 +0300 Subject: [nycphp-talk] get remote filesize Message-ID: <001601c75e37$f0eaa430$0d00000a@RiyadhAlShaeiq> Hi everybody, This is my first posting and I am honored to join you. I am looking for an HTTP function for getting remote filesizes. Keeping in mind that I am interested in getting the "size on disk", I need the actual size of the files. Please let me know if there is any.. Best regards R at U@H -------------- next part -------------- An HTML attachment was scrubbed... URL: From alshaeiq at gmail.com Sun Mar 4 03:44:43 2007 From: alshaeiq at gmail.com (Riyadh S. Alshaeiq) Date: Sun, 4 Mar 2007 11:44:43 +0300 Subject: [nycphp-talk] get remote filesize - final Message-ID: <000501c75e39$5d586750$0d00000a@RiyadhAlShaeiq> "NOT" fell off accidentally from the previous post.. sorry _____ From: Riyadh S. Alshaeiq [mailto:alshaeiq at gmail.com] Sent: 4/Mar/2007 11:35 AM To: 'talk at lists.nyphp.org' Subject: get remote filesize Hi everybody, This is my first posting and I am honored to join you. I am looking for an HTTP function for getting remote filesizes. Keeping in mind that I am NOT interested in getting the "size on disk", I need the actual size of the files. Please let me know if there is any.. Best regards R at U@H -------------- next part -------------- An HTML attachment was scrubbed... URL: From anoland at indigente.net Sun Mar 4 09:46:01 2007 From: anoland at indigente.net (Adrian Noland) Date: Sun, 4 Mar 2007 09:46:01 -0500 Subject: [nycphp-talk] [OT] Yet another CSS Question In-Reply-To: <45E88FB1.3040007@secdat.com> References: <45E88FB1.3040007@secdat.com> Message-ID: <1d8a0e930703040646n1bc87667n1a9b90fc08707da2@mail.gmail.com> On 3/2/07, Kenneth Downs wrote: > I'd like to have two links on a page. They should be on the same line > together, one flush left, the other flush right. The TABLE method is > just to have two cells, but of course we don't want to do that. > > What I tried was putting two divs, one after the other. The 2nd one was > relative positioned with its height at -1em. This did not work on IE 6, > and as I am using a downloaded template, as I twiddled I quickly > realized I was going to make it a lot worse before it ever got better. DIVs are block elements, which have an implied
in them. Consider using SPANs, which are inline elements which don't have an implied BR, for things that are side by side. From apg88zx at gmail.com Sun Mar 4 19:23:59 2007 From: apg88zx at gmail.com (apg88) Date: Sun, 4 Mar 2007 19:23:59 -0500 Subject: [nycphp-talk] [OT] Yet another CSS Question In-Reply-To: <001801c75da9$e0ffb8a0$6401a8c0@SUNCODE1> References: <45E88FB1.3040007@secdat.com> <001801c75da9$e0ffb8a0$6401a8c0@SUNCODE1> Message-ID: <2bb6bec70703041623g4e35e162i3424d09cd74c266a@mail.gmail.com> Check out this presentation on pure css design, it is very helpful in understanding why things happen. http://video.google.com/videoplay?docid=-7403771606765531020 Alvaro On 3/3/07, Peter Sawczynec wrote: > > I believe it could be appropriate to used nested divs, as in roughly: > >
style="position:absolute;top:100px;left:270px;width:400px;height:300px;b > ackground-color:#eheheh;color:#333333;"> >
>
> > Some benefit(s) are you can position the parent div absolutely or > relatively, and set the width as a percentage (100%) or exact, such as > 400px. Then the child divs when positioned can be positioned relative to > the parent x,y position on the page, if needed. And then use whatever > attributes work to position the child divs. Or you may find that you can > apply align or alignment properties to the content itself that is in the > child divs, such as text-align:right. > > And just while I'm here. For those who like to sip their CSS, and use it > to help finely tweak the formatting of a page (especially text and > images that are within parent table(s): don't neglect the font/text > prosperities like text-decoration, text-align, line-height, > letter-spacing, font-weight, and font-style. These properties which used > to fail are actually nicely applied in modern browsers. E.g. this > baseline class when applied to a
or tag will allow you to > really tune your text till it is quite perfect within your layout: > > .pulloutcopy { > font-family: Arial, Helvetica, sans-serif; > font-size: 12px; > color: #091016; > font-weight: 900; /* value 900 = bold, 100 = book */ > font-style: normal; /* value oblique creates ital */ > text-decoration: none; > line-height: 21px; > > padding-top: 0px; > padding-right: 8px; > padding-bottom: 0px; > padding-left: 15px; > } > > Warmest regards, > > Peter Sawczynec > Technology Dir. > Sun-code.com > Web related services > 646.316.3678 > ps at sun-code.com > > > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > On Behalf Of Kenneth Downs > Sent: Friday, March 02, 2007 3:57 PM > To: NYPHP Talk > Subject: [nycphp-talk] [OT] Yet another CSS Question > > > OK, so let's say I'm trying to make an honest go of it and resist the > urge to use TABLEs for non-tabular data. > > So how do I handle this one? > > I'd like to have two links on a page. They should be on the same line > together, one flush left, the other flush right. The TABLE method is > just to have two cells, but of course we don't want to do that. > > What I tried was putting two divs, one after the other. The 2nd one was > > relative positioned with its height at -1em. This did not work on IE 6, > > and as I am using a downloaded template, as I twiddled I quickly > realized I was going to make it a lot worse before it ever got better. > > So right now I am using a TABLE and wondering if anybody can teach a > database guy yet another CSS trick. > > > P.S., you know I wonder if there is something about programmers, > especially db guys, preferring that TABLE element, some kind of > subconscious thing... > > -- > Kenneth Downs > Secure Data Software, Inc. > www.secdat.com / www.andromeda-project.org > Office: 631-689-7200 Cell: 631-379-0010 > > ::Think you may have a problem with programming? Ask yourself this > ::question: do you worry about how to throw away a garbage can? > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtbludgeon at gmail.com Mon Mar 5 14:04:22 2007 From: vtbludgeon at gmail.com (David Mintz) Date: Mon, 5 Mar 2007 14:04:22 -0500 Subject: [nycphp-talk] de-moronizing an Excel sheet Message-ID: <721f1cc50703051104h310ca56fsaeee0a42bcbfe107@mail.gmail.com> Hey everyone, Is anyone familiar with this Spreadsheet_Excel_Reader class? http://sourceforge.net/project/showfiles.php?group_id=99160 I need to import Excel to MySQL. This class seems promising -- I have started playing and can get the data into PHP, no problem. Except that the single quotes, double quotes, em dashes, et cetera are wreaking havoc. Does anyone know of any solution? I see there are setOutputEncoding() and setUTFEncoder() methods but I am not sure whether they are what I need and what values to pass them. Thanks. -- David Mintz http://davidmintz.org/ En Nueva York el tr?nsito de la belleza a la desolaci?n sucede siempre expeditivamente, como si el principio universal de m?xima eficiencia hubiera aconsejado la supresi?n de gradaciones intermedias. -- Antonio Mu?oz Molina, Ventanas de Manhattan -------------- next part -------------- An HTML attachment was scrubbed... URL: From susan_shemin at yahoo.com Mon Mar 5 14:28:11 2007 From: susan_shemin at yahoo.com (Susan Shemin) Date: Mon, 5 Mar 2007 11:28:11 -0800 (PST) Subject: [nycphp-talk] de-moronizing an Excel sheet Message-ID: <185112.47993.qm@web50206.mail.yahoo.com> I see there are fancy classes to handle this... But why not use the old-fashioned way and export your Excel data in a CSV format and import it into MySQL? I do it all the time with locally inserting Office data into a MySQL database and creating backups for my database. ----- Original Message ---- From: David Mintz To: talk at lists.nyphp.org Sent: Monday, March 5, 2007 2:04:22 PM Subject: [nycphp-talk] de-moronizing an Excel sheet Hey everyone, Is anyone familiar with this Spreadsheet_Excel_Reader class? http://sourceforge.net/project/showfiles.php?group_id=99160 I need to import Excel to MySQL. This class seems promising -- I have started playing and can get the data into PHP, no problem. Except that the single quotes, double quotes, em dashes, et cetera are wreaking havoc. Does anyone know of any solution? I see there are setOutputEncoding() and setUTFEncoder() methods but I am not sure whether they are what I need and what values to pass them. Thanks. -- David Mintz http://davidmintz.org/ En Nueva York el tr?nsito de la belleza a la desolaci?n sucede siempre expeditivamente, como si el principio universal de m?xima eficiencia hubiera aconsejado la supresi?n de gradaciones intermedias. -- Antonio Mu?oz Molina, Ventanas de Manhattan _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From rolan at omnistep.com Mon Mar 5 14:27:20 2007 From: rolan at omnistep.com (Rolan Yang) Date: Mon, 05 Mar 2007 14:27:20 -0500 Subject: [nycphp-talk] de-moronizing an Excel sheet In-Reply-To: <721f1cc50703051104h310ca56fsaeee0a42bcbfe107@mail.gmail.com> References: <721f1cc50703051104h310ca56fsaeee0a42bcbfe107@mail.gmail.com> Message-ID: <45EC6F18.2010607@omnistep.com> If this is a one shot deal, you might want to try saving as a csv and LOAD DATA INFILE in mysql ~Rolan David Mintz wrote: > Hey everyone, > > Is anyone familiar with this Spreadsheet_Excel_Reader class? > http://sourceforge.net/project/showfiles.php?group_id=99160 > > I need to import Excel to MySQL. This class seems promising -- I have > started playing and can get the data into PHP, no problem. Except that > the single quotes, double quotes, em dashes, et cetera are wreaking > havoc. Does anyone know of any solution? I see there are > setOutputEncoding() and setUTFEncoder() methods but I am not sure > whether they are what I need and what values to pass them. > > Thanks. > > -- > David Mintz > http://davidmintz.org/ > > En Nueva York el tr?nsito de la belleza a la desolaci?n sucede siempre > expeditivamente, como si el principio universal de m?xima eficiencia > hubiera aconsejado la supresi?n de gradaciones intermedias. > > -- Antonio Mu?oz Molina, Ventanas de Manhattan > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From apg88zx at gmail.com Mon Mar 5 14:56:48 2007 From: apg88zx at gmail.com (Alvaro P.) Date: Mon, 05 Mar 2007 14:56:48 -0500 Subject: [nycphp-talk] de-moronizing an Excel sheet In-Reply-To: <185112.47993.qm@web50206.mail.yahoo.com> References: <185112.47993.qm@web50206.mail.yahoo.com> Message-ID: <45EC7600.5040707@gmail.com> Just be careful if you're exporting CSV's in a mac and using fgetcsv(). You will need to set "auto_detect_line_endings = On" on the php.ini or the line breaks will be ignored. Alvaro Susan Shemin wrote: > I see there are fancy classes to handle this... > > But why not use the old-fashioned way and export your Excel data in a > CSV format and import it into MySQL? I do it all the time with > locally inserting Office data into a MySQL database and creating > backups for my database. > > ----- Original Message ---- > From: David Mintz > To: talk at lists.nyphp.org > Sent: Monday, March 5, 2007 2:04:22 PM > Subject: [nycphp-talk] de-moronizing an Excel sheet > > Hey everyone, > > Is anyone familiar with this Spreadsheet_Excel_Reader class? > http://sourceforge.net/project/showfiles.php?group_id=99160 > > I need to import Excel to MySQL. This class seems promising -- I have > started playing and can get the data into PHP, no problem. Except that > the single quotes, double quotes, em dashes, et cetera are wreaking > havoc. Does anyone know of any solution? I see there are > setOutputEncoding() and setUTFEncoder() methods but I am not sure > whether they are what I need and what values to pass them. > > Thanks. > > -- > David Mintz > http://davidmintz.org/ > > En Nueva York el tr?nsito de la belleza a la desolaci?n sucede siempre > expeditivamente, como si el principio universal de m?xima eficiencia > hubiera aconsejado la supresi?n de gradaciones intermedias. > > -- Antonio Mu?oz Molina, Ventanas de Manhattan > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From vtbludgeon at gmail.com Mon Mar 5 15:05:34 2007 From: vtbludgeon at gmail.com (David Mintz) Date: Mon, 5 Mar 2007 15:05:34 -0500 Subject: [nycphp-talk] de-moronizing an Excel sheet In-Reply-To: <45EC7600.5040707@gmail.com> References: <185112.47993.qm@web50206.mail.yahoo.com> <45EC7600.5040707@gmail.com> Message-ID: <721f1cc50703051205r38f0ea8ds9a7909a31cad8574@mail.gmail.com> I wanted to avoid the extra step of exporting to text, as in fact I've done in the past. And I expect to have to repeat the procedure in the future. But.... maybe that's the way to go after all. Thanks for the suggestions! On 3/5/07, Alvaro P. wrote: > > Just be careful if you're exporting CSV's in a mac and using fgetcsv(). > You will need to set "auto_detect_line_endings = On" on the php.ini or > the line breaks will be ignored. > > Alvaro > > Susan Shemin wrote: > > I see there are fancy classes to handle this... > > > > But why not use the old-fashioned way and export your Excel data in a > > CSV format and import it into MySQL? I do it all the time with > > locally inserting Office data into a MySQL database and creating > > backups for my database. > > > -- David Mintz http://davidmintz.org/ En Nueva York el tr?nsito de la belleza a la desolaci?n sucede siempre expeditivamente, como si el principio universal de m?xima eficiencia hubiera aconsejado la supresi?n de gradaciones intermedias. -- Antonio Mu?oz Molina, Ventanas de Manhattan -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtbludgeon at gmail.com Mon Mar 5 15:23:45 2007 From: vtbludgeon at gmail.com (David Mintz) Date: Mon, 5 Mar 2007 15:23:45 -0500 Subject: [nycphp-talk] de-moronizing an Excel sheet In-Reply-To: <721f1cc50703051205r38f0ea8ds9a7909a31cad8574@mail.gmail.com> References: <185112.47993.qm@web50206.mail.yahoo.com> <45EC7600.5040707@gmail.com> <721f1cc50703051205r38f0ea8ds9a7909a31cad8574@mail.gmail.com> Message-ID: <721f1cc50703051223vf3ea05bx62897e228cf0821@mail.gmail.com> Can't resist trying to pick your brains a little more instead of spending the next $x hours in trial and error. This is an Excel spreadsheet created on Mac. I am opening it with Open Office Calc on a Fedora Linux box. I can "Save as..." and choose text, and there are myriad choices for "Character set." Which is my best bet? Thanks again. On 3/5/07, David Mintz wrote: > > I wanted to avoid the extra step of exporting to text, as in fact I've > done in the past. And I expect to have to repeat the procedure in the > future. But.... maybe that's the way to go after all. > > Thanks for the suggestions! > > > -- David Mintz http://davidmintz.org/ En Nueva York el tr?nsito de la belleza a la desolaci?n sucede siempre expeditivamente, como si el principio universal de m?xima eficiencia hubiera aconsejado la supresi?n de gradaciones intermedias. -- Antonio Mu?oz Molina, Ventanas de Manhattan -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtbludgeon at gmail.com Mon Mar 5 15:57:45 2007 From: vtbludgeon at gmail.com (David Mintz) Date: Mon, 5 Mar 2007 15:57:45 -0500 Subject: [nycphp-talk] de-moronizing an Excel sheet In-Reply-To: <721f1cc50703051223vf3ea05bx62897e228cf0821@mail.gmail.com> References: <185112.47993.qm@web50206.mail.yahoo.com> <45EC7600.5040707@gmail.com> <721f1cc50703051205r38f0ea8ds9a7909a31cad8574@mail.gmail.com> <721f1cc50703051223vf3ea05bx62897e228cf0821@mail.gmail.com> Message-ID: <721f1cc50703051257g4d71fd68oea78f615134328e8@mail.gmail.com> Oh the embarrassment! The default UTF-8 works fine. Will shut up now. Thanks. On 3/5/07, David Mintz wrote: > > > > Can't resist trying to pick your brains a little more instead of spending > the next $x hours in trial and error. > > This is an Excel spreadsheet created on Mac. I am opening it with Open > Office Calc on a Fedora Linux box. I can "Save as..." and choose text, and > there are myriad choices for "Character set." Which is my best bet? > > -- David Mintz http://davidmintz.org/ En Nueva York el tr?nsito de la belleza a la desolaci?n sucede siempre expeditivamente, como si el principio universal de m?xima eficiencia hubiera aconsejado la supresi?n de gradaciones intermedias. -- Antonio Mu?oz Molina, Ventanas de Manhattan -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at devonianfarm.com Mon Mar 5 19:43:56 2007 From: paul at devonianfarm.com (Paul Houle) Date: Mon, 05 Mar 2007 19:43:56 -0500 Subject: [nycphp-talk] Thoughts on using JavaScript with no progressive fall-back In-Reply-To: References: Message-ID: <45ECB94C.4020402@devonianfarm.com> Cliff Hirsch wrote: > > Whatever happened to building a robust PHP application and only then > layering on the client-side enhancements? To me this lack of > progressive fall-back is just laziness, arrogance, or the victim of > the usual time pressures. This isn?t an opinionated group ? right?! So > I curious to here what others think. Well, I've certainly seen people use Javascript validation as a way to avoid using "MVC" thinking and complexity in the back end app. Back in 2000 I developed an application for a client who insisted on Javascript validation and told me that he didn't need server-side validation... Against my advice. Soon he called me up to complain about the junk data accumulating in the database because a certain fraction of people had Javascript turned off. As a maintainance programmer, Javascript terrifies me. Javascript is a powerful language, and I've seen beautiful code written in it, but it's got a number of problems: (i) Browser compatibility -- I've seen a lot of Javascript break in IE7. Not just the racy, AJAX style of Javascript, but the pre-2000 form helper kind of Javascript. (ii) Bad Smells -- Javascript often gets used as a band-aid to patch up problems in deficient web applications. (Is a bad smell in itself) As a result of this, Javascript is often applied in a disorderly way with no thought about organizing code into functions, how variables are named and scoped (which can really burn you in Javascript) and how event handlers get wired in. (iii) Small System Limitations -- one of the problems that torpedoed Java applets. The trouble here is that there is a gap between practices for writing good systems (good for the user, which means they don't an hour to download) vs. what most people think are good software engineering practices. (writing generalizable code;) In most cases, it makes a lot of sense to use libraries and frameworks. On the other hand, I was thinking about reworking my 3-d viewer Javascript: http://polyhedra.org/ to use Prototype. It turns out that Prototype is a 40kb download while my 3-d viewer is 8kb. That kind of ratio would be fine for a PHP framework, that the client doesn't need to download over a slow link, but it does make a difference in the Javascript user experience. --- As for how many people have Javascript turned off, I will share something. It always seems that it's the gatekeepers of life who run funky web browsers. It will be the people at your next job interview, the venture capitalists, the thesis advisor, the people on the grant committee, who have cookies or Javascript turned off in their web browser. From clorinthia.cade at gmail.com Mon Mar 5 21:44:24 2007 From: clorinthia.cade at gmail.com (Clorinthia Cade) Date: Mon, 5 Mar 2007 20:44:24 -0600 Subject: [nycphp-talk] talk@lists.nyphp.org Message-ID: <25c206610703051844t3f6f8a0cxd6ac7effae970cf6@mail.gmail.com> I want to not join this program because i thought this was a mail stuffing company. i don't want to change my pass code. Thank you clorinthia.cade at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From chsnyder at gmail.com Tue Mar 6 10:44:34 2007 From: chsnyder at gmail.com (csnyder) Date: Tue, 6 Mar 2007 10:44:34 -0500 Subject: [nycphp-talk] Thoughts on using JavaScript with no progressive fall-back In-Reply-To: <45ECB94C.4020402@devonianfarm.com> References: <45ECB94C.4020402@devonianfarm.com> Message-ID: On 3/5/07, Paul Houle wrote: > It always seems that it's the gatekeepers of life who run > funky web browsers. It will be the people at your next job interview, > the venture capitalists, the thesis advisor, the people on the grant > committee, who have cookies or Javascript turned off in their web browser. > +1 brilliant insight. I'll add that they typically have slower-than-normal internet connections, unusual screen resolutions, and strange font size defaults in their browsers. Or a projector that can't display certain colors. If anyone on this list is an executive, and you haven't set traps for unsuspecting techies, you're really missing out on some good fun. Just delete Verdana from your computer and watch what happens at the next application demo! -- Chris Snyder http://chxo.com/ From cliff at pinestream.com Tue Mar 6 10:48:17 2007 From: cliff at pinestream.com (Cliff Hirsch) Date: Tue, 6 Mar 2007 10:48:17 -0500 Subject: [nycphp-talk] Thoughts on using JavaScript with no progressive fall-back In-Reply-To: References: <45ECB94C.4020402@devonianfarm.com> Message-ID: <20070306154817.M26592@pinestream.com> On Tue, 6 Mar 2007 10:44:34 -0500, csnyder wrote > On 3/5/07, Paul Houle wrote: > > It always seems that it's the gatekeepers of life who run > > funky web browsers. It will be the people at your next job interview, > > the venture capitalists, the thesis advisor, the people on the grant > > committee, who have cookies or Javascript turned off in their web browser. > > > > +1 brilliant insight. > > I'll add that they typically have slower-than-normal internet > connections, unusual screen resolutions, and strange font size > defaults in their browsers. Or a projector that can't display certain > colors. > > If anyone on this list is an executive, and you haven't set traps for > unsuspecting techies, you're really missing out on some good fun. > Just delete Verdana from your computer and watch what happens at the > next application demo! > And they usually breath fire. From tedd at sperling.com Tue Mar 6 13:52:18 2007 From: tedd at sperling.com (tedd) Date: Tue, 6 Mar 2007 13:52:18 -0500 Subject: [nycphp-talk] Thoughts on using JavaScript with no progressive fall-back In-Reply-To: References: <45ECB94C.4020402@devonianfarm.com> Message-ID: At 10:44 AM -0500 3/6/07, csnyder wrote: >On 3/5/07, Paul Houle wrote: >>It always seems that it's the gatekeepers of life who run >>funky web browsers. It will be the people at your next job interview, >>the venture capitalists, the thesis advisor, the people on the grant >>committee, who have cookies or Javascript turned off in their web browser. >> > >+1 brilliant insight. > >I'll add that they typically have slower-than-normal internet >connections, unusual screen resolutions, and strange font size >defaults in their browsers. Or a projector that can't display certain >colors. > >If anyone on this list is an executive, and you haven't set traps for >unsuspecting techies, you're really missing out on some good fun. Just >delete Verdana from your computer and watch what happens at the next >application demo! > >-- >Chris Snyder And don't forget that the first time you show anyone anything you've programmed, it's going to fail regardless of how many times you have tested it. Or, at least that's been my experience -- but perhaps I'm the only SOB that this happens to. :-) tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From ashaw at polymerdb.org Tue Mar 6 14:00:16 2007 From: ashaw at polymerdb.org (Allen Shaw) Date: Tue, 06 Mar 2007 13:00:16 -0600 Subject: [nycphp-talk] Thoughts on using JavaScript with no progressive fall-back In-Reply-To: References: <45ECB94C.4020402@devonianfarm.com> Message-ID: <45EDBA40.4060409@polymerdb.org> tedd wrote: > And don't forget that the first time you show anyone anything you've > programmed, it's going to fail regardless of how many times you have > tested it. Or, at least that's been my experience -- but perhaps I'm the > only SOB that this happens to. :-) I wish you were... -- Allen Shaw Polymer (http://polymerdb.org) slidePresenter (http://slides.sourceforge.net) From sjmci at optonline.net Tue Mar 6 14:01:13 2007 From: sjmci at optonline.net (Steve Solomon) Date: Tue, 06 Mar 2007 14:01:13 -0500 Subject: [nycphp-talk] Thoughts on using JavaScript with no progressivefall-back In-Reply-To: Message-ID: <015e01c76021$d17b6260$6601a8c0@T1400> And don't forget that the first time you show anyone anything you've programmed, it's going to fail regardless of how many times you have tested it. Or, at least that's been my experience -- but perhaps I'm the only SOB that this happens to. :-) tedd For me it generally works the first time you show it then fails as soon as you go on on vacation. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.7/711 - Release Date: 3/5/2007 9:41 AM From apg88zx at gmail.com Tue Mar 6 14:55:08 2007 From: apg88zx at gmail.com (Alvaro P.) Date: Tue, 06 Mar 2007 14:55:08 -0500 Subject: [nycphp-talk] Thoughts on using JavaScript with no progressive fall-back In-Reply-To: References: <45ECB94C.4020402@devonianfarm.com> Message-ID: <45EDC71C.7030108@gmail.com> Same happens to me. It works and looks great until I show my boss or client. Alvaro tedd wrote: > At 10:44 AM -0500 3/6/07, csnyder wrote: >> On 3/5/07, Paul Houle wrote: >>> It always seems that it's the gatekeepers of life who run >>> funky web browsers. It will be the people at your next job interview, >>> the venture capitalists, the thesis advisor, the people on the grant >>> committee, who have cookies or Javascript turned off in their web >>> browser. >>> >> >> +1 brilliant insight. >> >> I'll add that they typically have slower-than-normal internet >> connections, unusual screen resolutions, and strange font size >> defaults in their browsers. Or a projector that can't display certain >> colors. >> >> If anyone on this list is an executive, and you haven't set traps for >> unsuspecting techies, you're really missing out on some good fun. Just >> delete Verdana from your computer and watch what happens at the next >> application demo! >> >> -- >> Chris Snyder > > And don't forget that the first time you show anyone anything you've > programmed, it's going to fail regardless of how many times you have > tested it. Or, at least that's been my experience -- but perhaps I'm > the only SOB that this happens to. :-) > > tedd > From hans at cyberxdesigns.com Wed Mar 7 23:44:06 2007 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Wed, 07 Mar 2007 23:44:06 -0500 Subject: [nycphp-talk] [ot] Managed Hosting for PHP App. Message-ID: <45EF9496.5050302@cyberxdesigns.com> Who is the Managed Dedicated Hosting provider of choice today? I have a quote from RackShack and would like to seek some competitive bids. Since Cyber X Designs typically provides the hosting services, I am not sure who to go to for quotes. So what does this have to do with PHP? We developed an airline reservation system for regional carrier in Alaska. The system is written with PHP/MySQL. It includes booking, ticketing, servicing, frequent flyers, corporate accounts, ect. It is pretty damn cool and the customer is out growing their current hosting solution and I am tasked with finding another hosting provider. I know this topic is covered every couple of months on the list. I am looking for timely recommendations from experience, I know you guys must be provisioning these services for your clients and employers. Thanks in advance, Hans Kaspersetz Cyber X Designs Denville, NJ Looking for a web design company in New Jersey? http://www.cyberxdesigns.com From jface at mercenarylabs.com Thu Mar 8 00:27:55 2007 From: jface at mercenarylabs.com (Jonathan Face) Date: Thu, 08 Mar 2007 00:27:55 -0500 Subject: [nycphp-talk] [ot] Managed Hosting for PHP App. In-Reply-To: <45EF9496.5050302@cyberxdesigns.com> References: <45EF9496.5050302@cyberxdesigns.com> Message-ID: <45EF9EDB.3040803@mercenarylabs.com> I've had good experiences with PAIR networks: http://www.pair.com/ My current employer has a dedicated machine with GoDaddy. So far it's been very stable, and the support is mostly competent, although if you get their support package, they deny you root access. And you're limited to RedHat and/or CentOS, I think. Hans C. Kaspersetz wrote: > Who is the Managed Dedicated Hosting provider of choice today? I have > a quote from RackShack and would like to seek some competitive bids. > Since Cyber X Designs typically provides the hosting services, I am > not sure who to go to for quotes. > > So what does this have to do with PHP? We developed an airline > reservation system for regional carrier in Alaska. The system is > written with PHP/MySQL. It includes booking, ticketing, servicing, > frequent flyers, corporate accounts, ect. It is pretty damn cool and > the customer is out growing their current hosting solution and I am > tasked with finding another hosting provider. > > I know this topic is covered every couple of months on the list. I am > looking for timely recommendations from experience, I know you guys > must be provisioning these services for your clients and employers. > > Thanks in advance, > Hans Kaspersetz > > Cyber X Designs > Denville, NJ > Looking for a web design company in New Jersey? > http://www.cyberxdesigns.com > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From anthony at adcl.biz Thu Mar 8 01:48:54 2007 From: anthony at adcl.biz (Anthony) Date: Thu, 8 Mar 2007 00:48:54 -0600 Subject: [nycphp-talk] [ot] Managed Hosting for PHP App. References: <45EF9496.5050302@cyberxdesigns.com> Message-ID: <001601c7614d$d7c9ef60$6c01a8c0@ADCL1> Hi Hans, If I were you, I'd stay away from RackShack. While they appear to be a fairly good company to provide managed hosting, I was told they also are blacklisted by many ISP's for allowing their customers to spam. Right now, we're looking for a hosting solution for a new webmail program we're deploying. We're looking seriously at RackSpace (www.rackspace.com). Amazon also seems to be about to change the hosting landscape with their EC2 service. Check it out too. Anthony ----- Original Message ----- From: "Hans C. Kaspersetz" To: "NYPHP Talk" Sent: Wednesday, March 07, 2007 10:44 PM Subject: [nycphp-talk] [ot] Managed Hosting for PHP App. > Who is the Managed Dedicated Hosting provider of choice today? I have a > quote from RackShack and would like to seek some competitive bids. Since > Cyber X Designs typically provides the hosting services, I am not sure who > to go to for quotes. > > So what does this have to do with PHP? We developed an airline > reservation system for regional carrier in Alaska. The system is written > with PHP/MySQL. It includes booking, ticketing, servicing, frequent > flyers, corporate accounts, ect. It is pretty damn cool and the customer > is out growing their current hosting solution and I am tasked with finding > another hosting provider. > > I know this topic is covered every couple of months on the list. I am > looking for timely recommendations from experience, I know you guys must > be provisioning these services for your clients and employers. > > Thanks in advance, > Hans Kaspersetz > > Cyber X Designs > Denville, NJ > Looking for a web design company in New Jersey? > http://www.cyberxdesigns.com > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From paul at devonianfarm.com Thu Mar 8 07:09:35 2007 From: paul at devonianfarm.com (Paul Houle) Date: Thu, 08 Mar 2007 07:09:35 -0500 Subject: [nycphp-talk] [ot] Managed Hosting for PHP App. In-Reply-To: <001601c7614d$d7c9ef60$6c01a8c0@ADCL1> References: <45EF9496.5050302@cyberxdesigns.com> <001601c7614d$d7c9ef60$6c01a8c0@ADCL1> Message-ID: <45EFFCFF.9030106@devonianfarm.com> Anthony wrote: > Hi Hans, > > If I were you, I'd stay away from RackShack. While they appear to be a > fairly good company to provide managed hosting, I was told they also > are blacklisted by many ISP's for allowing their customers to spam. > > Right now, we're looking for a hosting solution for a new webmail > program we're deploying. We're looking seriously at RackSpace > (www.rackspace.com). Amazon also seems to be about to change the > hosting landscape with their EC2 service. Check it out too. > Just about everybody who has multiple customers that send email to anybody is on AOL's blacklist. From mwithington at PLMresearch.com Thu Mar 8 07:17:26 2007 From: mwithington at PLMresearch.com (Mark Withington) Date: Thu, 8 Mar 2007 07:17:26 -0500 Subject: [nycphp-talk] [ot] Managed Hosting for PHP App. In-Reply-To: <45EF9496.5050302@cyberxdesigns.com> References: <45EF9496.5050302@cyberxdesigns.com> Message-ID: <491198290703080417t5c798150u774e0b79c6b38264@mail.gmail.com> I use pair networks and like them a lot. Not sure whether they are/not super competitive on price; very impressed with their service. If you're a FreeBSD guru (I'm not), then you probably don't want to pay for "service" you don't need. Here's a link to their pricing so you can compare apples-to-apples: http://www.pair.com/services/dedicated/ On 3/7/07, Hans C. Kaspersetz wrote: > > Who is the Managed Dedicated Hosting provider of choice today? I have a > quote from RackShack and would like to seek some competitive bids. > Since Cyber X Designs typically provides the hosting services, I am not > sure who to go to for quotes. > > So what does this have to do with PHP? We developed an airline > reservation system for regional carrier in Alaska. The system is > written with PHP/MySQL. It includes booking, ticketing, servicing, > frequent flyers, corporate accounts, ect. It is pretty damn cool and > the customer is out growing their current hosting solution and I am > tasked with finding another hosting provider. > > I know this topic is covered every couple of months on the list. I am > looking for timely recommendations from experience, I know you guys must > be provisioning these services for your clients and employers. > > Thanks in advance, > Hans Kaspersetz > > Cyber X Designs > Denville, NJ > Looking for a web design company in New Jersey? > http://www.cyberxdesigns.com > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -- Mark -------------------------- Mark L. Withington PLMresearch PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 ext. 704 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 Skype: 508-570-2285 http://www.PLMresearch.com AIM/MSN/Skype: PLMresearch mwithington at plmresearch.com Public Key: http://www.plmresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmresearch.com/calendar.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken at secdat.com Thu Mar 8 09:03:59 2007 From: ken at secdat.com (Kenneth Downs) Date: Thu, 08 Mar 2007 09:03:59 -0500 Subject: [nycphp-talk] Friendly URL, Ajax, and SEO Message-ID: <45F017CF.1080809@secdat.com> Lately I'm wondering about best designs when balancing things like a friendly URL, Ajax, and SEO. It seems there are some contradictory indications. First, friendly URLs are great if for no reason than log analysis. However, friendly URLs are supposedly better for SEO also (besides all the other stuff for SEO). The rub is that I'd like to start moving over to AJAX for CMS-related stuff, such as loading a news article when the user clicks on a headline. But this seems like it make the site very search engine un-friendly. Anybody care to comment on the problem as a whole? Is it an either/or choice? From enolists at gmail.com Thu Mar 8 09:46:20 2007 From: enolists at gmail.com (Mark Armendariz) Date: Thu, 8 Mar 2007 09:46:20 -0500 Subject: [nycphp-talk] Friendly URL, Ajax, and SEO In-Reply-To: <45F017CF.1080809@secdat.com> References: <45F017CF.1080809@secdat.com> Message-ID: <015f01c76190$89b8e810$6400a8c0@enobrev> I like to back-load all my ajax on top of already working pages, so for instance I might have: http://www.example.com/news/ And clicking on a headline on that page with js disabled would go to http://www.example.com/news/headline_with_underscores_or_whatever But clicking on it with js enabled would just load the story dynamically. Keeps everyone happy - including your visitors of the arachnid family. Mark Armendariz > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Kenneth Downs > Sent: Thursday, March 08, 2007 9:04 AM > To: NYPHP Talk > Subject: [nycphp-talk] Friendly URL, Ajax, and SEO > > Lately I'm wondering about best designs when balancing things > like a friendly URL, Ajax, and SEO. It seems there are some > contradictory indications. > > First, friendly URLs are great if for no reason than log analysis. > > However, friendly URLs are supposedly better for SEO also > (besides all the other stuff for SEO). > > The rub is that I'd like to start moving over to AJAX for > CMS-related stuff, such as loading a news article when the > user clicks on a headline. But this seems like it make the > site very search engine un-friendly. > > Anybody care to comment on the problem as a whole? Is it an > either/or choice? > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From ken at secdat.com Thu Mar 8 10:35:57 2007 From: ken at secdat.com (Kenneth Downs) Date: Thu, 08 Mar 2007 10:35:57 -0500 Subject: [nycphp-talk] Friendly URL, Ajax, and SEO In-Reply-To: <015f01c76190$89b8e810$6400a8c0@enobrev> References: <45F017CF.1080809@secdat.com> <015f01c76190$89b8e810$6400a8c0@enobrev> Message-ID: <45F02D5D.8000007@secdat.com> Mark, web searches on "js graceful degradation" and related terms are getting me a lot of blog entries about *whether* to do it, but not much about *how*, can you offer a link that gives the basic howto of putting both kinds of links on the page? Thanks. Mark Armendariz wrote: > I like to back-load all my ajax on top of already working pages, so for > instance I might have: > http://www.example.com/news/ > > And clicking on a headline on that page with js disabled would go to > http://www.example.com/news/headline_with_underscores_or_whatever > > But clicking on it with js enabled would just load the story dynamically. > Keeps everyone happy - including your visitors of the arachnid family. > > Mark Armendariz > > >> -----Original Message----- >> From: talk-bounces at lists.nyphp.org >> [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Kenneth Downs >> Sent: Thursday, March 08, 2007 9:04 AM >> To: NYPHP Talk >> Subject: [nycphp-talk] Friendly URL, Ajax, and SEO >> >> Lately I'm wondering about best designs when balancing things >> like a friendly URL, Ajax, and SEO. It seems there are some >> contradictory indications. >> >> First, friendly URLs are great if for no reason than log analysis. >> >> However, friendly URLs are supposedly better for SEO also >> (besides all the other stuff for SEO). >> >> The rub is that I'd like to start moving over to AJAX for >> CMS-related stuff, such as loading a news article when the >> user clicks on a headline. But this seems like it make the >> site very search engine un-friendly. >> >> Anybody care to comment on the problem as a whole? Is it an >> either/or choice? >> _______________________________________________ >> New York PHP Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> NYPHPCon 2006 Presentations Online >> http://www.nyphpcon.com >> >> Show Your Participation in New York PHP >> http://www.nyphp.org/show_participation.php >> >> > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmarscher at beaffinitive.com Thu Mar 8 10:42:50 2007 From: rmarscher at beaffinitive.com (Rob Marscher) Date: Thu, 8 Mar 2007 10:42:50 -0500 Subject: [nycphp-talk] Friendly URL, Ajax, and SEO In-Reply-To: <45F02D5D.8000007@secdat.com> References: <45F017CF.1080809@secdat.com> <015f01c76190$89b8e810$6400a8c0@enobrev> <45F02D5D.8000007@secdat.com> Message-ID: <85B5C1CC-E5A4-42E6-9121-1722EE323145@beaffinitive.com> Basically, you have a regular tag link that goes to the location you want, but you also have an onclick javascript event for that link that does the ajax stuff and returns false so that the browser doesn't request the href part of the tag. Ideally, you'll have an onload event to your page that attaches all these onclick events to your links so that you don't even have inline javascript. -Rob On Mar 8, 2007, at 10:35 AM, Kenneth Downs wrote: > Mark, web searches on "js graceful degradation" and related terms > are getting me a lot of blog entries about *whether* to do it, but > not much about *how*, can you offer a link that gives the basic > howto of putting both kinds of links on the page? Thanks. > > Mark Armendariz wrote: >> I like to back-load all my ajax on top of already working pages, >> so for >> instance I might have: >> http://www.example.com/news/ >> >> And clicking on a headline on that page with js disabled would go to >> http://www.example.com/news/headline_with_underscores_or_whatever >> >> But clicking on it with js enabled would just load the story >> dynamically. >> Keeps everyone happy - including your visitors of the arachnid >> family. >> >> Mark Armendariz >> >> >>> -----Original Message----- >>> From: talk-bounces at lists.nyphp.org >>> [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Kenneth Downs >>> Sent: Thursday, March 08, 2007 9:04 AM >>> To: NYPHP Talk >>> Subject: [nycphp-talk] Friendly URL, Ajax, and SEO >>> >>> Lately I'm wondering about best designs when balancing things >>> like a friendly URL, Ajax, and SEO. It seems there are some >>> contradictory indications. >>> >>> First, friendly URLs are great if for no reason than log analysis. >>> >>> However, friendly URLs are supposedly better for SEO also >>> (besides all the other stuff for SEO). >>> >>> The rub is that I'd like to start moving over to AJAX for >>> CMS-related stuff, such as loading a news article when the >>> user clicks on a headline. But this seems like it make the >>> site very search engine un-friendly. >>> >>> Anybody care to comment on the problem as a whole? Is it an >>> either/or choice? >>> _______________________________________________ >>> New York PHP Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> NYPHPCon 2006 Presentations Online >>> http://www.nyphpcon.com >>> >>> Show Your Participation in New York PHP >>> http://www.nyphp.org/show_participation.php >>> >>> >> _______________________________________________ >> New York PHP Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> NYPHPCon 2006 Presentations Online >> http://www.nyphpcon.com >> >> Show Your Participation in New York PHP >> http://www.nyphp.org/show_participation.php >> > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From cliff at pinestream.com Thu Mar 8 11:34:48 2007 From: cliff at pinestream.com (Cliff Hirsch) Date: Thu, 08 Mar 2007 11:34:48 -0500 Subject: [nycphp-talk] Open source forum suggestion Message-ID: I want to enter the 21st century and add a forum to my site. My ISP offers phpBB2 and Discuss, a CGI-based forums. Or I can add my own. Does anyone have suggestions regarding a great forum package for a business, not consumer, web site? What about vBulletin, although it looks like a commercial product. Is phpBB2 the way to go? I though it was known to have security issues. Suggestions? Cliff -------------- next part -------------- An HTML attachment was scrubbed... URL: From enolists at gmail.com Thu Mar 8 11:37:13 2007 From: enolists at gmail.com (Mark Armendariz) Date: Thu, 8 Mar 2007 11:37:13 -0500 Subject: [nycphp-talk] Friendly URL, Ajax, and SEO In-Reply-To: <85B5C1CC-E5A4-42E6-9121-1722EE323145@beaffinitive.com> References: <45F017CF.1080809@secdat.com> <015f01c76190$89b8e810$6400a8c0@enobrev> <45F02D5D.8000007@secdat.com> <85B5C1CC-E5A4-42E6-9121-1722EE323145@beaffinitive.com> Message-ID: On 3/8/07, Rob Marscher wrote: > > Basically, you have a regular tag link that goes to the location you > want, but you also have an onclick javascript event for that link that does > the ajax stuff and returns false so that the browser doesn't request the > href part of the tag. Ideally, you'll have an onload event to your page > that attaches all these onclick events to your links so that you don't even > have inline javascript. > -Rob > Exactly... To test, you can do without the onload, just put your scripts at the bottom of the page. The added benefit to backloading your ajaxification is that regardless of js enablement, the user could right click your link and open in new tab or window or even bookmark it and it's still a plain link that will open normally. I would usually have all this in some elaborate library built for the project with all kinds of fancy news specific 'stuff', but essentially here's how I would do it (tested example in ie and ff - so you can download prototype.js and test if you like)... Show This Article and some notes... When you set an onclick event it passes itself (or a 'click' element) to the function. What's actually passed differs between browsers, so getTarget ensures we get our anchor tag back every time. I use prototype for my projects as it's done very well by me. If you're not familiar... the $ function is nearly an equivalent to document.getElementById the Insertion class handles manipulating the innerHTML in and around the elements in your document. It has 4 methods Insertion.Before Insertion.After Insertion.Top Insertion.Bottom (I'll let you guess what they do) Always return false from your onclick functions. This tells the link not to redirect. Probably good to put some exception handling to make sure it returns false no matter what. And that's it. Properly ajaxified / backward compatible. Family Fun for everyone. Good luck, and thank you for the opportunity to procrastinate! Mark Armendariz -------------- next part -------------- An HTML attachment was scrubbed... URL: From support at dailytechnology.net Thu Mar 8 11:47:37 2007 From: support at dailytechnology.net (Brian Dailey) Date: Thu, 08 Mar 2007 11:47:37 -0500 Subject: [nycphp-talk] Open source forum suggestion In-Reply-To: References: Message-ID: <45F03E29.40301@dailytechnology.net> The best I've seen (thus far) is Vanilla. http://getvanilla.com Cliff Hirsch wrote: > I want to enter the 21st century and add a forum to my site. > > My ISP offers phpBB2 and Discuss, a CGI-based forums. Or I can add my own. > > Does anyone have suggestions regarding a great forum package for a > business, not consumer, web site? What about vBulletin, although it > looks like a commercial product. Is phpBB2 the way to go? I though it > was known to have security issues. Suggestions? > > Cliff > > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From apg88zx at gmail.com Thu Mar 8 12:05:41 2007 From: apg88zx at gmail.com (Alvaro P.) Date: Thu, 08 Mar 2007 12:05:41 -0500 Subject: [nycphp-talk] Open source forum suggestion In-Reply-To: References: Message-ID: <45F04265.50903@gmail.com> If you don't mind waiting a little, or don't mind it's not officially out, the first Release Candidate of phpBB3 will soon be released. Even the beta 5 version is very stable. You can see it in action here http://area51.phpbb.com/phpBB/ Alvaro Cliff Hirsch wrote: > I want to enter the 21st century and add a forum to my site. > > My ISP offers phpBB2 and Discuss, a CGI-based forums. Or I can add my own. > > Does anyone have suggestions regarding a great forum package for a > business, not consumer, web site? What about vBulletin, although it > looks like a commercial product. Is phpBB2 the way to go? I though it > was known to have security issues. Suggestions? > > Cliff > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From czech at npgroup.net Thu Mar 8 12:07:41 2007 From: czech at npgroup.net (Pete Czech - New Possibilities Group, LLC) Date: Thu, 08 Mar 2007 12:07:41 -0500 Subject: [nycphp-talk] Open source forum suggestion In-Reply-To: <45F04265.50903@gmail.com> References: <45F04265.50903@gmail.com> Message-ID: <45F042DD.9060106@npgroup.net> Hey all, long time lurker... I've had problems keeping bots out of phpbb (have tried all sorts of extensions). vBulletin, no issues. Have they gone after that in version 3? Other than the bots, I like that system much more than vb. Cheers, Pete Czech -- Pete Czech Lead Guru New Possibilities Group, LLC http://npgroup.net 973.931.8283 AIM: PJCzech Alvaro P. wrote: > If you don't mind waiting a little, or don't mind it's not officially > out, the first Release Candidate of phpBB3 will soon be released. Even > the beta 5 version is very stable. You can see it in action here > http://area51.phpbb.com/phpBB/ > > Alvaro > > Cliff Hirsch wrote: >> I want to enter the 21st century and add a forum to my site. >> >> My ISP offers phpBB2 and Discuss, a CGI-based forums. Or I can add my >> own. >> >> Does anyone have suggestions regarding a great forum package for a >> business, not consumer, web site? What about vBulletin, although it >> looks like a commercial product. Is phpBB2 the way to go? I though it >> was known to have security issues. Suggestions? >> >> Cliff >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> New York PHP Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> NYPHPCon 2006 Presentations Online >> http://www.nyphpcon.com >> >> Show Your Participation in New York PHP >> http://www.nyphp.org/show_participation.php > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From tboyden at supercoups.com Thu Mar 8 12:09:03 2007 From: tboyden at supercoups.com (Timothy Boyden) Date: Thu, 8 Mar 2007 12:09:03 -0500 Subject: [nycphp-talk] Open source forum suggestion In-Reply-To: References: Message-ID: I used Mercury Board http://www.mercuryboard.com/ for my site. I tried phpBB2 but had a lot of issues trying to theme it to match my website. Every time I'd go to edit a theme, even so much as to simply change a logo, the whole structure of the board would break down and I'd have to re-install phpBB2. It's possible I just don't understand the whole .tpl system but I didn't have the same issues with Mercury Board. My site is at: www.boyden.us, the board is at: www.boyden.us/discuss It's not a commercial site but there's no reason why you couldn't use Mercury Board for a commercial site. -Tim ________________________________ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Cliff Hirsch Sent: Thursday, March 08, 2007 11:35 AM To: NYPHP Talk Subject: [nycphp-talk] Open source forum suggestion I want to enter the 21st century and add a forum to my site. My ISP offers phpBB2 and Discuss, a CGI-based forums. Or I can add my own. Does anyone have suggestions regarding a great forum package for a business, not consumer, web site? What about vBulletin, although it looks like a commercial product. Is phpBB2 the way to go? I though it was known to have security issues. Suggestions? Cliff -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken at secdat.com Thu Mar 8 12:16:29 2007 From: ken at secdat.com (Kenneth Downs) Date: Thu, 08 Mar 2007 12:16:29 -0500 Subject: [nycphp-talk] One more question about Friendly URLS Message-ID: <45F044ED.9080401@secdat.com> Last question on friendly URLs. These are very easy to generate and parse, thanks to the tips I've gotten here on NYPHP, but I ran into one very strange detail and I'm sure I'm not the first human being to hit this problem. It seems that relative links to CSS and JS all suddenly break. So if you have: www.example.com/friendly/varname/varvalue/varname/varvalue and you have a link to "css/main.css", then it will not be able to find the style sheet anymore. So it seems natural enough to make the link dynamic, but then I stumbled over finding the "stem" as it were. Without friendly URLs I have code that does not need to know its own site name, it works from context to build links. But with this stuff going in it got really nasty trying to do that. Has anybody else run into this, or rather, what are the standard solutions? From lists at zaunere.com Thu Mar 8 12:19:24 2007 From: lists at zaunere.com (Hans Zaunere) Date: Thu, 8 Mar 2007 12:19:24 -0500 Subject: [nycphp-talk] =?iso-8859-1?q?FW=3A_Conf=E9rence_PHP_Qu=E9bec_2007?= =?iso-8859-1?q?_-_Free_PHP5_Certification!?= Message-ID: <00d401c761a5$eb59af90$6a0aa8c0@MobileZ> All, see note for the conference next week. I'll be speaking as well. If you plan on going, let me know and I'll get you in touch with Damien. Damien Seguy wrote on Thursday, March 08, 2007 12:16 PM: > Hi Hans, > > Just a last and late reminder of the upcoming PHP Qu?bec conference. > Regular pricing will still be up until friday 10th at night. It is > time for your > members to take the last interesting tickets. > > The conference will take place next week it s 5th edition, at the > hotel Sofitel > Montreal, Qu?bec, Canada. The conference will last from wednesday 14th > to friday 16th, with many opportunities to foster our ties as PHP > groups. > > The conference is proud to present 3 days of conferences, with the > participation > of international experts : Rasmus Lerdorf, Andrei Zmievski, Derick > Rethans, > Ilia Alshanetsky, John Coggeshall, Damien S?guy and many others. The > entrance to the conference include a free PHP certification. > > Link : > Conf?rence PHP Qu?bec http://conf.phpquebec.com/en/conf2007/ > Agenda : http://conf.phpquebec.com/fr/conf2007/horaire > PHP Qu?bec : http://www.phpquebec.com > > I'm looking forward to meeting you again. > Also, if members of your group are joing us, please tell me who they > are, > so we can get in touch. > > If you have any question, feel free to send them to me. > > Happy PHPing! > Damien Seguy. From rmarscher at beaffinitive.com Thu Mar 8 12:27:29 2007 From: rmarscher at beaffinitive.com (Rob Marscher) Date: Thu, 8 Mar 2007 12:27:29 -0500 Subject: [nycphp-talk] One more question about Friendly URLS In-Reply-To: <45F044ED.9080401@secdat.com> References: <45F044ED.9080401@secdat.com> Message-ID: <890314D9-5DAE-40E1-A942-BC9DD6C17537@beaffinitive.com> On Mar 8, 2007, at 12:16 PM, Kenneth Downs wrote: > So if you have: > > www.example.com/friendly/varname/varvalue/varname/varvalue > > and you have a link to "css/main.css", then it will not be able to > find the style sheet anymore. The most common way, I've seen is to keep all your css at www.example.com/css/*.css so that way your links in the page are "/ css/main.css" -------------- next part -------------- An HTML attachment was scrubbed... URL: From shiflett at php.net Thu Mar 8 12:35:36 2007 From: shiflett at php.net (Chris Shiflett) Date: Thu, 08 Mar 2007 12:35:36 -0500 Subject: [nycphp-talk] One more question about Friendly URLS In-Reply-To: <45F044ED.9080401@secdat.com> References: <45F044ED.9080401@secdat.com> Message-ID: <45F04968.8060203@php.net> Kenneth Downs wrote: > It seems that relative links to CSS and JS all suddenly break. > So if you have: > > www.example.com/friendly/varname/varvalue/varname/varvalue > > and you have a link to "css/main.css", then it will not be able > to find the style sheet anymore. You can still use relative URLs. Just use an absolute path: /css/main.css Hope that helps. Chris -- Chris Shiflett http://shiflett.org/ From ramons at gmx.net Thu Mar 8 12:45:11 2007 From: ramons at gmx.net (David Krings) Date: Thu, 08 Mar 2007 12:45:11 -0500 Subject: [nycphp-talk] Open source forum suggestion In-Reply-To: References: Message-ID: <45F04BA7.4030402@gmx.net> Cliff Hirsch wrote: > I want to enter the 21st century and add a forum to my site. > > My ISP offers phpBB2 and Discuss, a CGI-based forums. Or I can add my own. > > Does anyone have suggestions regarding a great forum package for a > business, not consumer, web site? What about vBulletin, although it > looks like a commercial product. Is phpBB2 the way to go? I though it > was known to have security issues. Suggestions? > > Cliff > > Without a doubt, phpBB is a nice forum and one of the most popular ones with tons of features. The only not so great thing about it is the search function. You cannot go to a post that has no subject, which is the default setting for replies. Nevertheless, I'd go with phpBB. David From apg88zx at gmail.com Thu Mar 8 12:51:23 2007 From: apg88zx at gmail.com (Alvaro P.) Date: Thu, 08 Mar 2007 12:51:23 -0500 Subject: [nycphp-talk] Open source forum suggestion In-Reply-To: <45F042DD.9060106@npgroup.net> References: <45F04265.50903@gmail.com> <45F042DD.9060106@npgroup.net> Message-ID: <45F04D1B.6060400@gmail.com> I did have that problem on my website, the CAPTCHA, or image verification, that comes by default doesn't do anything against bots. I use this extension: http://www.phpbb.com/phpBB/viewtopic.php?t=344831 for the image verification, I haven't had bots since I implemented it. (Yes, humans have registered since.) Alvaro Pete Czech - New Possibilities Group, LLC wrote: > Hey all, long time lurker... > > I've had problems keeping bots out of phpbb (have tried all sorts of > extensions). vBulletin, no issues. Have they gone after that in > version 3? Other than the bots, I like that system much more than vb. > > Cheers, > > Pete Czech > From jonbaer at jonbaer.com Thu Mar 8 12:54:30 2007 From: jonbaer at jonbaer.com (Jon Baer) Date: Thu, 8 Mar 2007 12:54:30 -0500 Subject: [nycphp-talk] [ot] Managed Hosting for PHP App. In-Reply-To: <45EF9496.5050302@cyberxdesigns.com> References: <45EF9496.5050302@cyberxdesigns.com> Message-ID: <7EB0A87D-7654-4DCF-9426-56281FF6B896@jonbaer.com> Id agree w/ someone else + say @ least look at EC2 from Amazon ... here is a good podcast on the subject ... http:// www.itconversations.com/shows/detail1728.html The main point of using the service is that when you hit that spot where you say "the customer is out growing the hosting solution" you fire up as many new EC2 instances (ie full virtualized servers) that you need, and when/if the load drops you kill the instances. Ive never really understood the need for a "queue" service in a web app until I listened carefully to the podcast and put the true automation aspect together, where you can say if there are x reservations in the queue I need y instances. When the job is done go to z instances. I think more and more will drop the whole idea of "managed hosting" (as in racks/co-lo/disk/memory) and look at what parts of their app need the scalability and use something like EC2. Just a thought. - Jon On Mar 7, 2007, at 11:44 PM, Hans C. Kaspersetz wrote: > Who is the Managed Dedicated Hosting provider of choice today? I > have a quote from RackShack and would like to seek some competitive > bids. Since Cyber X Designs typically provides the hosting > services, I am not sure who to go to for quotes. > > So what does this have to do with PHP? We developed an airline > reservation system for regional carrier in Alaska. The system is > written with PHP/MySQL. It includes booking, ticketing, servicing, > frequent flyers, corporate accounts, ect. It is pretty damn cool > and the customer is out growing their current hosting solution and > I am tasked with finding another hosting provider. > > I know this topic is covered every couple of months on the list. I > am looking for timely recommendations from experience, I know you > guys must be provisioning these services for your clients and > employers. > > Thanks in advance, > Hans Kaspersetz > > Cyber X Designs > Denville, NJ > Looking for a web design company in New Jersey? http:// > www.cyberxdesigns.com From ken at secdat.com Thu Mar 8 13:34:15 2007 From: ken at secdat.com (Kenneth Downs) Date: Thu, 08 Mar 2007 13:34:15 -0500 Subject: [nycphp-talk] One more question about Friendly URLS In-Reply-To: <45F04968.8060203@php.net> References: <45F044ED.9080401@secdat.com> <45F04968.8060203@php.net> Message-ID: <45F05727.5070703@secdat.com> Chris Shiflett wrote: > Kenneth Downs wrote: > >> It seems that relative links to CSS and JS all suddenly break. >> So if you have: >> >> www.example.com/friendly/varname/varvalue/varname/varvalue >> >> and you have a link to "css/main.css", then it will not be able >> to find the style sheet anymore. >> > > You can still use relative URLs. Just use an absolute path: > > /css/main.css > So both are actually relative, it is more a matter of relative from where? A "relative" path is relative from the complete path of the HTTP request, while an "absolute" path is relative only from the domain of the HTTP request? > Hope that helps. > > Chris > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shiflett at php.net Thu Mar 8 13:40:13 2007 From: shiflett at php.net (Chris Shiflett) Date: Thu, 08 Mar 2007 13:40:13 -0500 Subject: [nycphp-talk] One more question about Friendly URLS In-Reply-To: <45F05727.5070703@secdat.com> References: <45F044ED.9080401@secdat.com> <45F04968.8060203@php.net> <45F05727.5070703@secdat.com> Message-ID: <45F0588D.6070005@php.net> Kenneth Downs wrote: > Chris Shiflett wrote: > > You can still use relative URLs. Just use an absolute path: > > > > /css/main.css > > So both are actually relative, it is more a matter of relative > from where? No, an absolute path is different than a relative path. It represents the same path regardless of the location of the current resource. Hope that helps. Chris -- Chris Shiflett http://shiflett.org/ From rmarscher at beaffinitive.com Thu Mar 8 13:48:12 2007 From: rmarscher at beaffinitive.com (Rob Marscher) Date: Thu, 8 Mar 2007 13:48:12 -0500 Subject: [nycphp-talk] One more question about Friendly URLS In-Reply-To: <45F0588D.6070005@php.net> References: <45F044ED.9080401@secdat.com> <45F04968.8060203@php.net> <45F05727.5070703@secdat.com> <45F0588D.6070005@php.net> Message-ID: On Mar 8, 2007, at 1:40 PM, Chris Shiflett wrote: > No, an absolute path is different than a relative path. It represents > the same path regardless of the location of the current resource. Yeah... just to clarify further: Absolute path: http://www.example.org/css/main.css Relative path that will start at whatever comes after your domain (i.e. it's still relative to the domain): /css/main.css Relative path that starts after the request uri: css/main.css I'm not positive on this... but I think an addition advantage of relative urls (in addition to not needing to know the domain) is that the browser will reuse the same http connection. Can anyone verify that off the top of their head? -Rob From ashaw at polymerdb.org Thu Mar 8 13:51:44 2007 From: ashaw at polymerdb.org (Allen Shaw) Date: Thu, 08 Mar 2007 12:51:44 -0600 Subject: [nycphp-talk] One more question about Friendly URLS In-Reply-To: <45F05727.5070703@secdat.com> References: <45F044ED.9080401@secdat.com> <45F04968.8060203@php.net> <45F05727.5070703@secdat.com> Message-ID: <45F05B40.9090208@polymerdb.org> Kenneth Downs wrote: > Chris Shiflett wrote: >>You can still use relative URLs. Just use an absolute path: >>/css/main.css > > So both are actually relative, it is more a matter of relative from > where? A "relative" path is relative from the complete path of the HTTP > request, while an "absolute" path is relative only from the domain of > the HTTP request? > The difference is in the terms "relative/absolute URL" and "relative/absolute path". An absolute URL starts with "(ftp|http|etc.)://" and generally works against you when it comes to caching, etc. An absolute path starts with "/" and indicates that the given resource can be found by appending given path to the site's domain. Using an absolute path gets you none of the troubles you mentioned with relative path, and none of the caching problems you'd get with an absolute URL. - A. -- Allen Shaw Polymer (http://polymerdb.org) slidePresenter (http://slides.sourceforge.net) From shiflett at php.net Thu Mar 8 13:57:11 2007 From: shiflett at php.net (Chris Shiflett) Date: Thu, 08 Mar 2007 13:57:11 -0500 Subject: [nycphp-talk] One more question about Friendly URLS In-Reply-To: References: <45F044ED.9080401@secdat.com> <45F04968.8060203@php.net> <45F05727.5070703@secdat.com> <45F0588D.6070005@php.net> Message-ID: <45F05C87.9020503@php.net> Rob Marscher wrote: > Absolute path: > http://www.example.org/css/main.css This is more often described as an absolute URL, although it does use an absolute path. > Relative path that will start at whatever comes after your > domain (i.e. it's still relative to the domain): > /css/main.css This is an absolute path, not a relative one. > Relative path that starts after the request uri: > css/main.css Yes. :-) Allen Shaw's email describes this much better than I have: http://lists.nyphp.org/pipermail/talk/2007-March/021357.html Chris -- Chris Shiflett http://shiflett.org/ From cliff at pinestream.com Thu Mar 8 13:58:06 2007 From: cliff at pinestream.com (Cliff Hirsch) Date: Thu, 08 Mar 2007 13:58:06 -0500 Subject: [nycphp-talk] Open source forum suggestion In-Reply-To: <45F04D1B.6060400@gmail.com> Message-ID: Thanks for al the suggestions. Sounds like phpBB is an easy way to go. Vanilla looks interesting too. On 3/8/07 12:51 PM, "Alvaro P." wrote: > I did have that problem on my website, the CAPTCHA, or image > verification, that comes by default doesn't do anything against bots. > I use this extension: http://www.phpbb.com/phpBB/viewtopic.php?t=344831 > for the image verification, I haven't had bots since I implemented it. > (Yes, humans have registered since.) > > Alvaro From rmarscher at beaffinitive.com Thu Mar 8 14:16:55 2007 From: rmarscher at beaffinitive.com (Rob Marscher) Date: Thu, 8 Mar 2007 14:16:55 -0500 Subject: [nycphp-talk] One more question about Friendly URLS In-Reply-To: <45F05C87.9020503@php.net> References: <45F044ED.9080401@secdat.com> <45F04968.8060203@php.net> <45F05727.5070703@secdat.com> <45F0588D.6070005@php.net> <45F05C87.9020503@php.net> Message-ID: <211F47B7-0D90-4077-8B8B-233BE08F4DB0@beaffinitive.com> Thanks... I sent my response before I got Allen's. All clear now. :) -Rob From tom at supertom.com Thu Mar 8 15:04:00 2007 From: tom at supertom.com (Tom Melendez) Date: Thu, 8 Mar 2007 15:04:00 -0500 Subject: [nycphp-talk] One more question about Friendly URLS In-Reply-To: <45F05B40.9090208@polymerdb.org> References: <45F044ED.9080401@secdat.com> <45F04968.8060203@php.net> <45F05727.5070703@secdat.com> <45F05B40.9090208@polymerdb.org> Message-ID: <117286890703081204x4a18b7d5j4e3237169cc0f818@mail.gmail.com> > Using an absolute path gets you none of the troubles you mentioned with > relative path, and none of the caching problems you'd get with an > absolute URL. The only trouble I have found with absolute paths is that it makes the assumption of DocumentRoot and where your files are to it. If all of your environments (dev, staging, qa, production, running off media, whatever) are set up the same way, no problems. But, using absolute paths removes the ability to just copy a bunch of files in a directory and run them. Now, in today's day, our sites are now "applications" and you probably couldn't do that anyway. Still, if you did, I found the following to work in the past: Simply make the call to the css file a PHP script, which has the 'smarts' to figure out where the CSS file is based on the URL provided. The PHP script still has to live absolute to the Document Root, but it can act as a "traffic cop" to determine which CSS file should be loaded. So, something like: FWIW, I really don't do this anymore, and even when I did, it was only in development (because you'd want to be sure that files weren't getting served up that shouldn't be) on my laptop. But it gets around the problem. Tom http://www.liphp.org From ken at secdat.com Thu Mar 8 15:41:13 2007 From: ken at secdat.com (Kenneth Downs) Date: Thu, 08 Mar 2007 15:41:13 -0500 Subject: [nycphp-talk] One more question about Friendly URLS In-Reply-To: <117286890703081204x4a18b7d5j4e3237169cc0f818@mail.gmail.com> References: <45F044ED.9080401@secdat.com> <45F04968.8060203@php.net> <45F05727.5070703@secdat.com> <45F05B40.9090208@polymerdb.org> <117286890703081204x4a18b7d5j4e3237169cc0f818@mail.gmail.com> Message-ID: <45F074E9.20907@secdat.com> Tom Melendez wrote: >> Using an absolute path gets you none of the troubles you mentioned with >> relative path, and none of the caching problems you'd get with an >> absolute URL. > > The only trouble I have found with absolute paths is that it makes the > assumption of DocumentRoot and where your files are to it. If all of > your environments (dev, staging, qa, production, running off media, > whatever) are set up the same way, no problems. Yup, this is the only problem. I think however I might be ok. Andromeda tracks the directories that apps are in and can make that known to the app, so it can add the directory to the domain name itself. Now that I've got the theory down this should be easy enough to do. From ajai at bitblit.net Thu Mar 8 17:27:28 2007 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 8 Mar 2007 17:27:28 -0500 (EST) Subject: [nycphp-talk] Open source forum suggestion In-Reply-To: Message-ID: On Thu, 8 Mar 2007, Cliff Hirsch wrote: > Does anyone have suggestions regarding a great forum package for a business, > not consumer, web site? What about vBulletin, although it looks like a > commercial product. Is phpBB2 the way to go? I though it was known to have > security issues. Suggestions? getvanilla.com -- Aj. (ajai at bitblit.net) From lists at zaunere.com Thu Mar 8 17:40:56 2007 From: lists at zaunere.com (Hans Zaunere) Date: Thu, 8 Mar 2007 17:40:56 -0500 Subject: [nycphp-talk] FW: PHP statistics for February 2007 Message-ID: <003d01c761d2$d5f88950$0202fea9@MobileZ> All, some generally useful stats > PHP adoption statistics for February 2007 are released. > > Statistiques PHP de F??vrier 2007 > > * PHP 5 reached 15% of all market share : > its growth is steady. > * PHP 5.2. is now the most popular PHP 5 version > * PHP 5.2.1 was the most often installed version during February > > As usual, lots of other details : PHP versions, Apache, country > details, etc. > Feel free to ask any other details, stats or context about the study. > > PHP stats evolution for February 2007 > http://www.nexen.net/chiffres_cles/phpversion/16639-php_stats_evolution_for_ february_2007.php > > PHP statistics for February 2007 > http://www.nexen.net/chiffres_cles/phpversion/16636-php_statistics_for_febru ary_2007.php > > All nexen.net articles in English : > http://www.nexen.net/the_english_speaking_nexen.net.php From 1j0lkq002 at sneakemail.com Thu Mar 8 18:21:16 2007 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Thu, 08 Mar 2007 15:21:16 -0800 Subject: [nycphp-talk] One more question about Friendly URLS In-Reply-To: <45F074E9.20907@secdat.com> References: <45F044ED.9080401@secdat.com> <45F04968.8060203@php.net> <45F05727.5070703@secdat.com> <45F05B40.9090208@polymerdb.org> <117286890703081204x4a18b7d5j4e3237169cc0f818@mail.gmail.com> <45F074E9.20907@secdat.com> Message-ID: <3581-61056@sneakemail.com> Kenneth Downs ken-at-secdat.com |nyphp dev/internal group use| wrote: > Tom Melendez wrote: > >>> Using an absolute path gets you none of the troubles you mentioned with >>> relative path, and none of the caching problems you'd get with an >>> absolute URL. >> >> >> The only trouble I have found with absolute paths is that it makes the >> assumption of DocumentRoot and where your files are to it. If all of >> your environments (dev, staging, qa, production, running off media, >> whatever) are set up the same way, no problems. > > > Yup, this is the only problem. > > I think however I might be ok. Andromeda tracks the directories that > apps are in and can make that known to the app, so it can add the > directory to the domain name itself. Now that I've got the theory > down this should be easy enough to do. > ZF has a config as well. -- ------------------------------------------------------------- Your web server traffic log file is the most important source of web business information available. Do you know where your logs are right now? Do you know who else has access to your log files? When they were last archived? Where those archives are? --John Andrews Competitive Webmaster and SEO Blogging at http://www.johnon.com From blade at lansmash.com Thu Mar 8 21:11:19 2007 From: blade at lansmash.com (JB Hewitt - Blade) Date: Fri, 9 Mar 2007 12:11:19 +1000 Subject: [nycphp-talk] Open source forum suggestion In-Reply-To: References: Message-ID: <9d880b9e0703081811n4d46a612t3b70cee169d9b6f3@mail.gmail.com> I highly recommend Vanilla, it's a forum for the 21st century. On 3/9/07, Ajai Khattri wrote: > > On Thu, 8 Mar 2007, Cliff Hirsch wrote: > > > Does anyone have suggestions regarding a great forum package for a > business, > > not consumer, web site? What about vBulletin, although it looks like a > > commercial product. Is phpBB2 the way to go? I though it was known to > have > > security issues. Suggestions? > > > getvanilla.com > > > > -- > Aj. (ajai at bitblit.net) > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -- Regards, JB Hewitt Business: http://www.stcpl.com.au Blog: http://blade.lansmash.com Best LAN ever: http://www.lansmash.com How to ask a ?: http://www.catb.org/~esr/faqs/smart-questions.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at silmail.com Fri Mar 9 06:18:59 2007 From: lists at silmail.com (Jiju Thomas Mathew) Date: Fri, 9 Mar 2007 16:48:59 +0530 Subject: [nycphp-talk] One more question about Friendly URLS In-Reply-To: <45F044ED.9080401@secdat.com> References: <45F044ED.9080401@secdat.com> Message-ID: <6431a0f40703090318q82e3c15t1301029392e9e256@mail.gmail.com> > > It seems that relative links to CSS and JS all suddenly break. So if > you have: > > www.example.com/friendly/varname/varvalue/varname/varvalue > > and you have a link to "css/main.css", then it will not be able to find > the style sheet anymore. > > The method used by me to salvage this kind of coding (bad though, but get it working fast), is to use Apache mod_rewrite, with a top level htaccess containing the following RewriteCond %{REQUEST_FILENAME} ! -f RewriteRule (.*)/css/(.*) css/$2 [L] -- Jiju Thomas Mathew http://www.php-trivandrum.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at gubavision.com Fri Mar 9 11:55:45 2007 From: paul at gubavision.com (Paul) Date: Fri, 9 Mar 2007 11:55:45 -0500 Subject: [nycphp-talk] OT FCKeditor In-Reply-To: <9d880b9e0703081811n4d46a612t3b70cee169d9b6f3@mail.gmail.com> References: <9d880b9e0703081811n4d46a612t3b70cee169d9b6f3@mail.gmail.com> Message-ID: Have a website that a non profit uses for their organization. Have been trying to install FCKeditor so users would have a way of editing the pages. Documentation is spare and rather cryptic for use as a standalone editor on existing site. I can't for the life of me figure out the most basic function like opening a html document on the server. Does anyone have any experience with this as a standalone. Have been using it in a joomla site and like it. Forums not much help either. Paul Guba From darian at criticode.com Fri Mar 9 13:36:38 2007 From: darian at criticode.com (Darian Anthony Patrick) Date: Fri, 09 Mar 2007 13:36:38 -0500 Subject: [nycphp-talk] mysql_real_escape_string and setting of charset Message-ID: <45F1A936.1090808@criticode.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Good afternoon all, I have several questions regarding mysql_real_escape_string (and the like). When default_charset is not set in php.ini, it appears that PHP has no fallback default. Am I wrong in this thinking? Is UTF-8 the default? It seems best practice would dictate using the same charset from persistent storage (ie., tables defined as utf8_unicode_ci), through to HTML output (Content-type header, meta tag). But what about cases where the database needs to use UTF-8, but a front-end is being written that does not? What is the behavior of mysql_real_escape_string when default_charset is not defined? Also, how does one define charset (as it pertains to mysql_real_escape_string) at runtime? And could anyone direct me to (or incant) a working exploit that takes advantage of the default_charset not being defined, or being defined incorrectly? I've been doing my homework on this, but am coming up with insufficient information on this topic. Thanks very much everyone, Darian - -- Darian Anthony Patrick Principal, Application Development Criticode LLC (215) 240-6566 Office (866) 789-2992 Facsimile Web: http://criticode.com Email: darian at criticode.com JID: darian at jabber.criticode.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF8ak2KpzEXPWA4IcRAod5AJ4rbPBTfe8Iab0acgquiC5w5Z5dJQCfaHe1 rWkQ7klGR7XFp3CmG7QuoYc= =He9m -----END PGP SIGNATURE----- From darian at criticode.com Fri Mar 9 13:47:38 2007 From: darian at criticode.com (Darian Anthony Patrick) Date: Fri, 09 Mar 2007 13:47:38 -0500 Subject: [nycphp-talk] mysql_real_escape_string and setting of charset In-Reply-To: <45F1A936.1090808@criticode.com> References: <45F1A936.1090808@criticode.com> Message-ID: <45F1ABCA.80107@criticode.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 To clarify, I'm unclear as to what "connection" means in "Escapes special characters in the unescaped_string, taking into account the current character set of the connection so that it is safe to place it in a mysql_query()." - http://us3.php.net/manual/en/function.mysql-real-escape-string.php I'm guessing it's the charset of the MySQL client (http://us3.php.net/manual/en/function.mysql-client-encoding.php) connection. Darian Anthony Patrick wrote: > Good afternoon all, > > I have several questions regarding mysql_real_escape_string (and the like). > > When default_charset is not set in php.ini, it appears that PHP has no > fallback default. Am I wrong in this thinking? Is UTF-8 the default? > > It seems best practice would dictate using the same charset from > persistent storage (ie., tables defined as utf8_unicode_ci), through to > HTML output (Content-type header, meta tag). But what about cases where > the database needs to use UTF-8, but a front-end is being written that > does not? > > What is the behavior of mysql_real_escape_string when default_charset is > not defined? > > Also, how does one define charset (as it pertains to > mysql_real_escape_string) at runtime? > > And could anyone direct me to (or incant) a working exploit that takes > advantage of the default_charset not being defined, or being defined > incorrectly? > > I've been doing my homework on this, but am coming up with insufficient > information on this topic. > > Thanks very much everyone, > > Darian _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php - -- Darian Anthony Patrick Principal, Application Development Criticode LLC (215) 240-6566 Office (866) 789-2992 Facsimile Web: http://criticode.com Email: darian at criticode.com JID: darian at jabber.criticode.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF8avKKpzEXPWA4IcRAvnGAJ4l4kH3lfOQG8ITEVoe2/2APg6nqQCfWuk+ EMV5UELYGlA7ZFioUNplyO4= =S7bl -----END PGP SIGNATURE----- From shiflett at php.net Fri Mar 9 13:53:55 2007 From: shiflett at php.net (Chris Shiflett) Date: Fri, 09 Mar 2007 13:53:55 -0500 Subject: [nycphp-talk] mysql_real_escape_string and setting of charset In-Reply-To: <45F1A936.1090808@criticode.com> References: <45F1A936.1090808@criticode.com> Message-ID: <45F1AD43.7040906@php.net> Darian Anthony Patrick wrote: > And could anyone direct me to (or incant) a working exploit that > takes advantage of the default_charset not being defined, or > being defined incorrectly? I wrote this one a while ago: http://shiflett.org/archive/184 It doesn't answer all of your questions, but I think it might help. Chris -- Chris Shiflett http://shiflett.org/ From darian at criticode.com Fri Mar 9 14:36:08 2007 From: darian at criticode.com (Darian Anthony Patrick) Date: Fri, 09 Mar 2007 14:36:08 -0500 Subject: [nycphp-talk] mysql_real_escape_string and setting of charset In-Reply-To: <45F1AD43.7040906@php.net> References: <45F1A936.1090808@criticode.com> <45F1AD43.7040906@php.net> Message-ID: <45F1B728.2070301@criticode.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thanks Chris. That was helpful. Chris Shiflett wrote: > Darian Anthony Patrick wrote: >> And could anyone direct me to (or incant) a working exploit that >> takes advantage of the default_charset not being defined, or >> being defined incorrectly? > > I wrote this one a while ago: > > http://shiflett.org/archive/184 > > It doesn't answer all of your questions, but I think it might help. > > Chris > - -- Darian Anthony Patrick Principal, Application Development Criticode LLC (215) 240-6566 Office (866) 789-2992 Facsimile Web: http://criticode.com Email: darian at criticode.com JID: darian at jabber.criticode.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF8bcoKpzEXPWA4IcRAoEsAJ9RkMz/I5ipKlBM3sokZuSAWXcS/wCfYXnO hXYWyGjSrSDnpxkglfrYF8A= =KriU -----END PGP SIGNATURE----- From tboyden at supercoups.com Fri Mar 9 16:48:03 2007 From: tboyden at supercoups.com (Timothy Boyden) Date: Fri, 9 Mar 2007 16:48:03 -0500 Subject: [nycphp-talk] Microsoft Access application conversion recommendations Message-ID: Hi All, I will be starting on a project to convert a fairly extensive Microsoft Access based application to a web based version. This application was internally built to manage all manner of details regarding our franchisee operations (financials, reporting, CRM, etc..). It uses MS Access forms with a tabbed structure and various form elements. The application will be hosted on a Network Solutions shared hosting server that has an Apache 1.x, MySQL 4.1.x, and PHP 4.1.x back-end. The MS Access application uses an MS SQL 2000 Enterprise database for data storage. I could use some recommendations on tools that will help me convert this app as quickly as possible. Everything from IDEs to conversion utilities are on the table. Unfortunately changing the web infrastructure is not. Traditionally I code and manage my app files using Macromedia Dreamweaver. Any advice would be greatly appreciated. Regards, Tim Boyden --------------------------- Timothy Boyden Network Administrator tboyden at supercoups.com SuperCoups(r) 350 Revolutionary Drive | E. Taunton, MA 02718 508-977-2010 | www.supercoups.com We Support Alex's Lemonade Stand Foundation, "Fighting Childhood Cancer One Cup At A Time" Donations Accepted at: www.firstgiving.com/SuperCoups --------------------------- Local Coupons. Super Savings.(r) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken at secdat.com Fri Mar 9 17:24:16 2007 From: ken at secdat.com (Kenneth Downs) Date: Fri, 09 Mar 2007 17:24:16 -0500 Subject: [nycphp-talk] Microsoft Access application conversion recommendations In-Reply-To: References: Message-ID: <45F1DE90.9020908@secdat.com> Timothy Boyden wrote: > Hi All, > > I will be starting on a project to convert a fairly extensive > Microsoft Access based application to a web based version. This > application was internally built to manage all manner of details > regarding our franchisee operations (financials, reporting, CRM, > etc..). It uses MS Access forms with a tabbed structure and various > form elements. The application will be hosted on a Network Solutions > shared hosting server that has an Apache 1.x, MySQL 4.1.x, and PHP > 4.1.x back-end. The MS Access application uses an MS SQL 2000 > Enterprise database for data storage. > > I could use some recommendations on tools that will help me convert > this app as quickly as possible. Everything from IDEs to conversion > utilities are on the table. Unfortunately changing the web > infrastructure is not. > Hmm, why not just leave it as-is? Whatever you may think of MS Access (I'm not a big fan myself), its got to be simpler and easier than splitting it into 3 pieces and using older versions of all three. What is the motivation for doing this? Just to get web access? If so, use Terminal Services. Shared hosting? The project doesn't warrant its own server? Doesn't add up. If its that big and is contributing to the bottom line one would think it could justify a server and the admin's choice of tools, languages, etc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From spangia at redcent.net Fri Mar 9 17:34:46 2007 From: spangia at redcent.net (Sean Pangia) Date: Fri, 09 Mar 2007 17:34:46 -0500 Subject: [nycphp-talk] Microsoft Access application conversion recommendations In-Reply-To: <45F1DE90.9020908@secdat.com> References: <45F1DE90.9020908@secdat.com> Message-ID: <45F1E106.8040209@redcent.net> doesn't MS have tools to convert Access to ASP? Kenneth Downs wrote: > Timothy Boyden wrote: > >> Hi All, >> >> I will be starting on a project to convert a fairly extensive >> Microsoft Access based application to a web based version. This >> application was internally built to manage all manner of details >> regarding our franchisee operations (financials, reporting, CRM, >> etc..). It uses MS Access forms with a tabbed structure and various >> form elements. The application will be hosted on a Network Solutions >> shared hosting server that has an Apache 1.x, MySQL 4.1.x, and PHP >> 4.1.x back-end. The MS Access application uses an MS SQL 2000 >> Enterprise database for data storage. >> >> I could use some recommendations on tools that will help me convert >> this app as quickly as possible. Everything from IDEs to conversion >> utilities are on the table. Unfortunately changing the web >> infrastructure is not. >> > > > Hmm, why not just leave it as-is? Whatever you may think of MS Access > (I'm not a big fan myself), its got to be simpler and easier than > splitting it into 3 pieces and using older versions of all three. > > What is the motivation for doing this? Just to get web access? If so, > use Terminal Services. > > Shared hosting? The project doesn't warrant its own server? Doesn't > add up. If its that big and is contributing to the bottom line one > would think it could justify a server and the admin's choice of tools, > languages, etc. > > > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php -- _______________________________________ Sean Pangia Red Cent 54 West 21st Street, #607 NYC 10010 212.255.3800 ext. 201 www.redcent.net From dorgan at optonline.net Fri Mar 9 17:37:34 2007 From: dorgan at optonline.net (Donald J Organ IV) Date: Fri, 09 Mar 2007 17:37:34 -0500 Subject: [nycphp-talk] Microsoft Access application conversion recommendations In-Reply-To: <45F1E106.8040209@redcent.net> References: <45F1DE90.9020908@secdat.com> <45F1E106.8040209@redcent.net> Message-ID: <45F1E1AE.10809@optonline.net> why just make the form and routinexs to edit the access do, php can use the access db for the data soruce. Sean Pangia wrote:teachersfuc.org > doesn't MS have tools to convert Access to ASP? > > > Kenneth Downs wrote: > >> Timothy Boyden wrote: >> >>> Hi All, >>> >>> I will be starting on a project to convert a fairly extensive >>> Microsoft Access based application to a web based version. This >>> application was internally built to manage all manner of details >>> regarding our franchisee operations (financials, reporting, CRM, >>> etc..). It uses MS Access forms with a tabbed structure and various >>> form elements. The application will be hosted on a Network Solutions >>> shared hosting server that has an Apache 1.x, MySQL 4.1.x, and PHP >>> 4.1.x back-end. The MS Access application uses an MS SQL 2000 >>> Enterprise database for data storage. >>> >>> I could use some recommendations on tools that will help me convert >>> this app as quickly as possible. Everything from IDEs to conversion >>> utilities are on the table. Unfortunately changing the web >>> infrastructure is not. >>> >> >> >> Hmm, why not just leave it as-is? Whatever you may think of MS >> Access (I'm not a big fan myself), its got to be simpler and easier >> than splitting it into 3 pieces and using older versions of all three. >> What is the motivation for doing this? Just to get web access? If >> so, use Terminal Services. >> >> Shared hosting? The project doesn't warrant its own server? Doesn't >> add up. If its that big and is contributing to the bottom line one >> would think it could justify a server and the admin's choice of >> tools, languages, etc. >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> New York PHP Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> NYPHPCon 2006 Presentations Online >> http://www.nyphpcon.com >> >> Show Your Participation in New York PHP >> http://www.nyphp.org/show_participation.php > From tboyden at supercoups.com Fri Mar 9 18:35:02 2007 From: tboyden at supercoups.com (Timothy Boyden) Date: Fri, 09 Mar 2007 18:35:02 -0500 Subject: [nycphp-talk] Microsoft Access application conversion recommendations In-Reply-To: <45F1DE90.9020908@secdat.com> Message-ID: Perhaps I need to clarify some... The Access database is just a front-end to an MS SQL server. Some issues that this causes: it is not cross-platform; it is not accessible outside the corporate network; the presentation is intertwined with the logic making it difficult and time consuming to update features; the application has not been refreshed to keep up with current Microsoft technologies and as such parts of the code keep breaking as Microsoft obsoletes older parts of the VB and ASP languages. Budget constraints dictate that we make do with the resources that we have available to us. As such, adding Terminal Server infrastructure or purchasing a dedicated hosting service is not in the cards. From a security standpoint we?re not comfortable exposing the current MS SQL server on the web, and we don?t have a server we can dedicate at this time to put out in the DMZ for this project. Plus we?re not sure how well our internet connection would scale as this app grows, we?re not really setup for web hosting on our own. We already have the Network Solutions hosting in place and run other applications on there that this application would integrate with, as such it would be ideal for us to build it on this existing infrastructure. This application isn?t our entire business but it does serve to glue a few other main line apps together to automate some functions of our business. I?m not saying this app needs to be completed tomorrow, but anything that would help make the process go faster would be great. From: Kenneth Downs Reply-To: NYPHP Talk Date: Fri, 09 Mar 2007 17:24:16 -0500 To: NYPHP Talk Subject: Re: [nycphp-talk] Microsoft Access application conversion recommendations Timothy Boyden wrote: > > Hi All, > > > > I will be starting on a project to convert a fairly extensive Microsoft > Access based application to a web based version. This application was > internally built to manage all manner of details regarding our franchisee > operations (financials, reporting, CRM, etc..). It uses MS Access forms with a > tabbed structure and various form elements. The application will be hosted on > a Network Solutions shared hosting server that has an Apache 1.x, MySQL 4.1.x, > and PHP 4.1.x back-end. The MS Access application uses an MS SQL 2000 > Enterprise database for data storage. > > > > I could use some recommendations on tools that will help me convert this app > as quickly as possible. Everything from IDEs to conversion utilities are on > the table. Unfortunately changing the web infrastructure is not. > > Hmm, why not just leave it as-is? Whatever you may think of MS Access (I'm not a big fan myself), its got to be simpler and easier than splitting it into 3 pieces and using older versions of all three. What is the motivation for doing this? Just to get web access? If so, use Terminal Services. Shared hosting? The project doesn't warrant its own server? Doesn't add up. If its that big and is contributing to the bottom line one would think it could justify a server and the admin's choice of tools, languages, etc. _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramons at gmx.net Fri Mar 9 20:22:23 2007 From: ramons at gmx.net (David Krings) Date: Fri, 09 Mar 2007 20:22:23 -0500 Subject: [nycphp-talk] Microsoft Access application conversion recommendations In-Reply-To: References: Message-ID: <45F2084F.7070905@gmx.net> Timothy Boyden wrote: > Perhaps I need to clarify some... > > The Access database is just a front-end to an MS SQL server. > > Some issues that this causes: it is not cross-platform; it is not > accessible outside the corporate network; the presentation is > intertwined with the logic making it difficult and time consuming to > update features; the application has not been refreshed to keep up with > current Microsoft technologies and as such parts of the code keep > breaking as Microsoft obsoletes older parts of the VB and ASP languages. > > Budget constraints dictate that we make do with the resources that we > have available to us. As such, adding Terminal Server infrastructure or > purchasing a dedicated hosting service is not in the cards. From a > security standpoint we?re not comfortable exposing the current MS SQL > server on the web, and we don?t have a server we can dedicate at this > time to put out in the DMZ for this project. Plus we?re not sure how > well our internet connection would scale as this app grows, we?re not > really setup for web hosting on our own. We already have the Network > Solutions hosting in place and run other applications on there that this > application would integrate with, as such it would be ideal for us to > build it on this existing infrastructure. This application isn?t our > entire business but it does serve to glue a few other main line apps > together to automate some functions of our business. > > I?m not saying this app needs to be completed tomorrow, but anything > that would help make the process go faster would be great. > I'd just start from scratch and use the new web based system for new stuff and the old system for legacy stuff. There is a transition time while two systems are in use, which sucks big time, but it depends on how quickly records gets obsoleted overall. Starting from scratch allows you to do things differently that do not work that great in the current system (believe me, there are things like that in every system). Since CRM data is usually the most interesting, I'd see that you isolate that information and device a one time import plan, e.g. via csv and some one time use code that sucks that all into the MySQL database (if code is even needed). Doesn't SQL server export SQL directly? My point is to foremost forget about the old system and make a new shiny one. Then see on how to get old data ported over, ideally the least amount with which you can get away with. Just the 2? from someone who never did anything like this.... David From susan_shemin at yahoo.com Fri Mar 9 20:59:29 2007 From: susan_shemin at yahoo.com (Susan Shemin) Date: Fri, 9 Mar 2007 17:59:29 -0800 (PST) Subject: [nycphp-talk] Microsoft Access application conversion recommendations Message-ID: <20070310015929.26289.qmail@web50201.mail.re2.yahoo.com> Hey, Timothy, Do you only want to convert it to a MySQL database? If so, each access table is just an MS Office table (same as an Excel spreadsheet). You can export each table into a CSV file from Access and create each field name as a MySQL field and just import the data into MySQL as importing a CSV file in PHPMyAdmin. If you want to keep it as an Access database, I know it can be done. I googled PHP MSAcess and here's two links: http://www.configure-all.com/php_access.php http://www.web-max.ca/PHP/odbc_2.php ----- Original Message ---- From: Timothy Boyden To: talk at lists.nyphp.org Sent: Friday, March 9, 2007 4:48:03 PM Subject: [nycphp-talk] Microsoft Access application conversion recommendations Hi All, I will be starting on a project to convert a fairly extensive Microsoft Access based application to a web based version. This application was internally built to manage all manner of details regarding our franchisee operations (financials, reporting, CRM, etc..). It uses MS Access forms with a tabbed structure and various form elements. The application will be hosted on a Network Solutions shared hosting server that has an Apache 1.x, MySQL 4.1.x, and PHP 4.1.x back-end. The MS Access application uses an MS SQL 2000 Enterprise database for data storage. I could use some recommendations on tools that will help me convert this app as quickly as possible. Everything from IDEs to conversion utilities are on the table. Unfortunately changing the web infrastructure is not. Traditionally I code and manage my app files using Macromedia Dreamweaver. Any advice would be greatly appreciated. Regards, Tim Boyden --------------------------- Timothy Boyden Network Administrator tboyden at supercoups.com SuperCoups? 350 Revolutionary Drive | E. Taunton, MA 02718 508-977-2010 | www.supercoups.com We Support Alex's Lemonade Stand Foundation, ?Fighting Childhood Cancer One Cup At A Time? Donations Accepted at: www.firstgiving.com/SuperCoups --------------------------- Local Coupons. Super Savings.? _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From jv_nyphp at duikerbok.com Sun Mar 11 10:52:48 2007 From: jv_nyphp at duikerbok.com (Jose Villegas) Date: Sun, 11 Mar 2007 10:52:48 -0400 Subject: [nycphp-talk] OT FCKeditor In-Reply-To: References: <9d880b9e0703081811n4d46a612t3b70cee169d9b6f3@mail.gmail.com> Message-ID: <11CD0598-98A5-4281-B07C-6B7DEA1C816F@duikerbok.com> Hey Paul, Check out Wysiwyg Pro: http://www.wysiwygpro.com/ I've found it much easier to use than FCKEditor -Jose On Mar 9, 2007, at 11:55 AM, Paul wrote: > Have a website that a non profit uses for their organization. Have > been trying to install FCKeditor so users would have a way of > editing the pages. Documentation is spare and rather cryptic for > use as a standalone editor on existing site. I can't for the life > of me figure out the most basic function like opening a html > document on the server. Does anyone have any experience with this > as a standalone. Have been using it in a joomla site and like it. > Forums not much help either. > > Paul Guba > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From suzerain at suzerain.com Sun Mar 11 13:40:20 2007 From: suzerain at suzerain.com (Marc Antony Vose) Date: Mon, 12 Mar 2007 01:40:20 +0800 Subject: [nycphp-talk] OT FCKeditor In-Reply-To: <11CD0598-98A5-4281-B07C-6B7DEA1C816F@duikerbok.com> References: <9d880b9e0703081811n4d46a612t3b70cee169d9b6f3@mail.gmail.com> <11CD0598-98A5-4281-B07C-6B7DEA1C816F@duikerbok.com> Message-ID: <46E21202-CE3D-4D41-884B-FC8213453831@suzerain.com> Hi there: Another post not answering your question about FCKEditor, but because of your very problem, I ended up incorporating TinyMCE into my content management framework instead: http://tinymce.moxiecode.com/ Seems to be rather well written. I'm happy with it, and my clients are too. Cheers, Marc http://www.suzerain.com Le 11 mars 07 ? 22:52, Jose Villegas a ?crit : > Hey Paul, > > Check out Wysiwyg Pro: > http://www.wysiwygpro.com/ > > I've found it much easier to use than FCKEditor > > -Jose > > > On Mar 9, 2007, at 11:55 AM, Paul wrote: > >> Have a website that a non profit uses for their organization. >> Have been trying to install FCKeditor so users would have a way of >> editing the pages. Documentation is spare and rather cryptic for >> use as a standalone editor on existing site. I can't for the life >> of me figure out the most basic function like opening a html >> document on the server. Does anyone have any experience with this >> as a standalone. Have been using it in a joomla site and like >> it. Forums not much help either. >> >> Paul Guba >> _______________________________________________ >> New York PHP Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> NYPHPCon 2006 Presentations Online >> http://www.nyphpcon.com >> >> Show Your Participation in New York PHP >> http://www.nyphp.org/show_participation.php > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From adlermedrado at gmail.com Sun Mar 11 18:06:19 2007 From: adlermedrado at gmail.com (Adler Medrado) Date: Sun, 11 Mar 2007 19:06:19 -0300 Subject: [nycphp-talk] static analysis tool for PHP Message-ID: Hello all. Does anyone here know about some good tool for static analysis of PHP code? I know only the PHP-SAT tool ( http://www.program-transformation.org/PHP/WebHome ) and the Pixy tool ( http://www.seclab.tuwien.ac.at/projects/pixy/ ) Thank you. -- adler medrado Nesher Technologies Bras?lia, DF, Brasil. http://www.neshertech.net http://adler.neshertech.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at devonianfarm.com Sun Mar 11 21:31:19 2007 From: paul at devonianfarm.com (Paul Houle) Date: Sun, 11 Mar 2007 21:31:19 -0400 Subject: [nycphp-talk] One more question about Friendly URLS In-Reply-To: <117286890703081204x4a18b7d5j4e3237169cc0f818@mail.gmail.com> References: <45F044ED.9080401@secdat.com> <45F04968.8060203@php.net> <45F05727.5070703@secdat.com> <45F05B40.9090208@polymerdb.org> <117286890703081204x4a18b7d5j4e3237169cc0f818@mail.gmail.com> Message-ID: <45F4AD67.10406@devonianfarm.com> Tom Melendez wrote: >> Using an absolute path gets you none of the troubles you mentioned with >> relative path, and none of the caching problems you'd get with an >> absolute URL. > > The only trouble I have found with absolute paths is that it makes the > assumption of DocumentRoot and where your files are to it. If all of > your environments (dev, staging, qa, production, running off media, > whatever) are set up the same way, no problems. No matter who you are, you need to find an answer to these problems. One answer is to always use a new virtual host to deploy a new instance of a system. It's easy to do this with Apache. At my last job, I developed a system for packaging an entire virtual host in a single directory -- each directory would have a "conf", "htdocs" and "logs" directory. We'd add "lib", "var", "scripts" and similar directories if they were appropriate. The httpd.conf file would include a "vhosts.conf" file that simply includes the virtual host configuration files from the vhost directories. The vhost directories go in a structure like /usr/local/apache/sites/www.site.com In this scheme, most web sites have three "primary" configuration parameters. These are: (1) the virtual hostname, (2) the location of the "sites" directory, and (3) connection information for the database. A site built to this scheme can often be moved or cloned in under five minutes. If you work this way, a good practice with URLs is to base them all "relative to the virtual host", which means like /img/logo.gif /css/main.css this way you know that every resource on the site can reference every other access without recomputing URLs. Another good practice is to use the "root" directory sparingly. It's OK to have /robots.txt /favicon.ico and other filenames that are mandated by outside conventions, but install a CMS in it's own directory, say /a/ where you let your CMS do whatever it wants. The reason is that you might switch to another CMS in a few years, which you can install under /b/ When you decomission CMS A, you build something (URL rewriting rules, a script, whatever) that redirects /a/ -> /b/ as accurately as possible. ---- Unfortunately, not everybody can use the above scheme. It's not as easy to pull off with Microsoft IIS, and some people don't have good control of their DNS. Also, general-purpose software (say PHPBB or Wordpress) will be installed in subdirectories by people, so it needs to be able to live "whereever" (using can help, but opens it's own bunch of problem.) No matter what, software should configure the toplevel URL and the toplevel of the app in the filesystem in a single place, in a file that's unique to each instance of the app (often the one file ~NOT~ in the version control system) From paul at devonianfarm.com Sun Mar 11 22:09:13 2007 From: paul at devonianfarm.com (Paul Houle) Date: Sun, 11 Mar 2007 22:09:13 -0400 Subject: [nycphp-talk] Microsoft Access application conversion recommendations In-Reply-To: <45F2084F.7070905@gmx.net> References: <45F2084F.7070905@gmx.net> Message-ID: <45F4B649.2020204@devonianfarm.com> David Krings wrote: > > My point is to foremost forget about the old system and make a new > shiny one. Then see on how to get old data ported over, ideally the > least amount with which you can get away with. > > Just the 2? from someone who never did anything like this.... > It's hard to say. You really ought to consider this option, but it depends on how you feel about the quality of the existing database. I recently did some work on a project that was botched by another programmer -- the presenting problem was that a particular feature didn't work right. Looking deep inside, I saw that certain database structures were hopeless, making the feature impossible to implement in a reliable and maintainable way. It took about 100 hours to understand the requirements, change the database structure and rework the rest of the application to use the new database structure. After all that, it took 5 hours to implement the new feature. What's great about it is that the new design reflects the business reality so well that it reflects scenarios that the client and I never thought of -- and can sometimes be accomodated in 15 minutes to 2 hours worth of work. If the old database design is good, it makes sense to keep the database. If the old database makes you want to punch the wall, then you'd better consider switching. Even though desktop databases are often overgrown spreadsheets, I've seen Access databases that are as beautifully designed as any Oracle or MySQL database. If you keep the existing database, you can have the PHP and Access versions running in parallel. You might port the 20% of functions that 80% of people use to PHP first, and make a gradual transition towards eliminating the Access version. This approach takes a lot of risk out of the transition -- one problem with the "Build System B and migrate to it" approach is that you might build system B from scratch and think that it's really great, but discover that the migration isn't really possible once you try it. From hans at cyberxdesigns.com Sun Mar 11 22:49:23 2007 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Sun, 11 Mar 2007 22:49:23 -0400 Subject: [nycphp-talk] Microsoft Access application conversion recommendations In-Reply-To: <45F4B649.2020204@devonianfarm.com> References: <45F2084F.7070905@gmx.net> <45F4B649.2020204@devonianfarm.com> Message-ID: <45F4BFB3.8020607@cyberxdesigns.com> > - one problem with the "Build System B and migrate to it" approach is > that you might build system B from scratch and think that it's really > great, but discover that the migration isn't really possible once you > try it. > +1......... You never really know the gremlins that live deep in that database that make ETL or migration a complete fiasco until you run your migration scripts several hundred times trying to get all your data to look right to the end users. If it was a custom app, you never know when some programmer, or several personalities, a couple of years ago decided to change the date format and has included a patch in his code to deal with the two or more formats but didn't tell you. You go to key off that date and you find your scripts inexplicably failing. You look deeper and find 6 different date formats in the same column. Who would have guessed we store dates in 6 different ways? Hmm.... then you discover that not all accounts have all information because columns were added as time went on and requirements grew. It seems so easy to move data from flat files (access) to a relational database in concept. In a trivial system it might be easy, however the cost associated do not grow linearly. It seems to grow much faster then the perceived complexity of the problem, ask Airbus. They just had some wires that were the wrong length. Then you start to try to take advantage of RDMS and you find that incomplete data or data that is not keyed properly doesn't move gracefully. You find that the original design of the flat files falls short and needs to changed to support the new app. So you start to transform the data to fit the new schema and you find that keys you think would be no brainers don't exist or are incomplete. On top of that, you design all these new data structures and classes to do really neat things. Your very proud of yourself and the way the application behaves with test data. Then you shoe horn the old data in and your application looks more like a cubist painting then a crisp photo from a Canon 20D with an L lens. Then you spend some more time massaging the data. In the end it is beautiful, but it requires a high level of expertise and the constitution of Conan. I speak from direct personal experience working with data collected over the course of 20 years. It is not impossible, I know, we are successfully doing it here. I happen to be blessed with working with a very talented team of people. But you have to be very very aware that there are things that you don't know that you don't know. Ha ha ha.... It is a very painful lesson to stand in front of the CEO and CFO and explain that you just spent 160 man hours working on how to retrieve and correctly key broken data from the old system. Data everyone thought was locked down until someone in sales says they can't find some over looked piece of data when he is testing. Your story may not be the same, but your feelings will be. Hans Kaspersetz NJ Web Development by http://www.cyberxdesigns.com From rotsen at gmail.com Mon Mar 12 11:35:31 2007 From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=) Date: Mon, 12 Mar 2007 08:35:31 -0700 Subject: [nycphp-talk] DST & cron jobs running an hour late Message-ID: I update my time on my RHEL 3and when I type 'date' on my systems it is correct, but I noticed that my cron jobs are running an hour late and my PHP applications that are using the date command are displaying the time without the change I did not think that we needed to do anyhting on PHP to deal with the DST. This is my php command that causes the problem: My 00-logwatch cron has a perl command for 'localtime(time)' and that display as 1 hour later This is what I get now: ################### LogWatch 4.3.2 (02/18/03) #################### Processing Initiated: Sun Mar 11 05:02:04 2007 This is what I used to get: ################### LogWatch 4.3.2 (02/18/03) #################### Processing Initiated: Sat Mar 10 04:02:03 2007 Any ideas how to fix this problem. Thanks, N?stor :-) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ashaw at polymerdb.org Mon Mar 12 11:40:38 2007 From: ashaw at polymerdb.org (Allen Shaw) Date: Mon, 12 Mar 2007 10:40:38 -0500 Subject: [nycphp-talk] DST & cron jobs running an hour late In-Reply-To: References: Message-ID: <45F57476.3090004@polymerdb.org> N?stor wrote: > I update my time on my RHEL 3and when I type 'date' on my systems it > is correct, but I noticed that my cron jobs are running > an hour late and my PHP applications that are using ... > Any ideas how to fix this problem. Hi Nestor. I'm no expert, but does restarting crond help any? - A. -- Allen Shaw Polymer (http://polymerdb.org) slidePresenter (http://slides.sourceforge.net) From rotsen at gmail.com Mon Mar 12 11:49:59 2007 From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=) Date: Mon, 12 Mar 2007 08:49:59 -0700 Subject: [nycphp-talk] DST & cron jobs running an hour late In-Reply-To: <45F57476.3090004@polymerdb.org> References: <45F57476.3090004@polymerdb.org> Message-ID: Maybe, but how would that fix the date in my PHP applications? The cronjob is perl file and when I type the command the following command the output is correct: # zdump -v /etc/localtime | grep 2007 /etc/localtime Sun Mar 11 09:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 PST isdst=0 gmtoff=-28800 /etc/localtime Sun Mar 11 10:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 PDT isdst=1 gmtoff=-25200 /etc/localtime Sun Nov 4 08:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 PDT isdst=1 gmtoff=-25200 /etc/localtime Sun Nov 4 09:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 PST isdst=0 gmtoff=-28800 Thanks, N?stor :-) On 3/12/07, Allen Shaw wrote: > > N?stor wrote: > > I update my time on my RHEL 3and when I type 'date' on my systems it > > is correct, but I noticed that my cron jobs are running > > an hour late and my PHP applications that are using > ... > > > Any ideas how to fix this problem. > > Hi Nestor. I'm no expert, but does restarting crond help any? > > - A. > > -- > Allen Shaw > Polymer (http://polymerdb.org) > slidePresenter (http://slides.sourceforge.net) > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at silmail.com Mon Mar 12 12:38:59 2007 From: lists at silmail.com (Jiju Thomas Mathew) Date: Mon, 12 Mar 2007 22:08:59 +0530 Subject: [nycphp-talk] FOSS Event in Technopark Trivandrum -- Suggest a Event Management System Message-ID: <6431a0f40703120938h3782e2c4ndd8e04af57545d25@mail.gmail.com> Hi all Introduction: It has been a long time since we were having the idea of organising a FOSS event in Trivandrum. Most of you would not need an introduction about what Technopark ( http://www.technopark.org) is. Any way the use or adoption of FOSS in the Technopark is not quite that deep, and we AFAIK dont have any meetings or UGs. Still some of us are really enthusiastic to plan for an event in may be mid of June 2007. The event is planned to be a two day event, with free admission, first come first served. The event will be sponsored by some companies inside the Technopark. Our plans are to highlight 1. Benefits and general methods of FOSS adoption 2. Benefits and general methods of FOSS contribution 3. Technical sessions covering PHP, MySQL, Mono with mostly giving emphasis towards financial benefits, while adopting as well as contributing. The portion where I am stuck is with contributing delegates, or speakers. And I am at a loss on how to go around asking for people to come and present the above matter in a two day workshop. Now that the above is said, I would appreciate if some one could point me to an event management system which would help me setup a website for the specific event, preferably SugarCRM, Drupal or Nuke Module would be the best, or even a standalone one which should ofcourse be PHP / MySQL. -- Jiju Thomas Mathew http://www.php-trivandrum.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From darian at criticode.com Mon Mar 12 13:21:32 2007 From: darian at criticode.com (Darian Anthony Patrick) Date: Mon, 12 Mar 2007 13:21:32 -0400 Subject: [nycphp-talk] DST & cron jobs running an hour late In-Reply-To: References: Message-ID: <45F58C1C.7060203@criticode.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 N?stor, There is an ini setting for timezone. You may need to set that. See this thread: http://lists.nyphp.org/pipermail/talk/2007-February/021239.html Darian - -- Darian Anthony Patrick Principal, Application Development Criticode LLC (215) 240-6566 Office (866) 789-2992 Facsimile Web: http://criticode.com Email: darian at criticode.com JID: darian at jabber.criticode.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF9YwcKpzEXPWA4IcRAplBAKCOd2Rmx7bCVbYIiqzSs8RakGKhiACfYGjn 74SNReMKlKoJvp+7psOzJoc= =TZYa -----END PGP SIGNATURE----- From rotsen at gmail.com Mon Mar 12 14:47:49 2007 From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=) Date: Mon, 12 Mar 2007 11:47:49 -0700 Subject: [nycphp-talk] DST & cron jobs running an hour late In-Reply-To: <45F58C1C.7060203@criticode.com> References: <45F58C1C.7060203@criticode.com> Message-ID: I am using php 4.3.2 I had to do the following to have my date show up correct but I have to remember to change it bac on NOv 4th 2007 (yack!!!) // echo date("F j, Y, g:i a"); //this line does what the next 3 line of code do //except that the date is wron gby 1hour $today = getdate(); $mydate = $today['month'] . " " . $today['mday'] . ", " . $today['year'] . ", " . ($today['hours'] + 1) . ":" . $today['minutes'] ; echo $mydate . "
\n"; I tried setting the time.zone but it did nothing and it complaint when I tried to use date_default_timezone_set() because that is a php 5 function I need to find a better solution!!! Thanks, N?stor :-)* * On 3/12/07, Darian Anthony Patrick wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > N?stor, > > There is an ini setting for timezone. You may need to set that. > > See this thread: > http://lists.nyphp.org/pipermail/talk/2007-February/021239.html > > Darian > > - -- > Darian Anthony Patrick > Principal, Application Development > Criticode LLC > (215) 240-6566 Office > (866) 789-2992 Facsimile > Web: http://criticode.com > Email: darian at criticode.com > JID: darian at jabber.criticode.net > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2.2 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFF9YwcKpzEXPWA4IcRAplBAKCOd2Rmx7bCVbYIiqzSs8RakGKhiACfYGjn > 74SNReMKlKoJvp+7psOzJoc= > =TZYa > -----END PGP SIGNATURE----- > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at zaunere.com Mon Mar 12 16:16:57 2007 From: lists at zaunere.com (Hans Zaunere) Date: Mon, 12 Mar 2007 16:16:57 -0400 Subject: [nycphp-talk] Ajax World Expo Passes Message-ID: <000f01c764e3$65fde3c0$6401a8c0@MobileZ> All, Mike from Adobe is kind enough to offer us three free full conference passes to: http://www.ajaxworldexpo.com/ It's on a first come first serve basis so email me and I'll get you connected. --- Hans Zaunere / President / New York PHP www.nyphp.org / www.nyphp.com From lists at zaunere.com Mon Mar 12 16:39:27 2007 From: lists at zaunere.com (Hans Zaunere) Date: Mon, 12 Mar 2007 16:39:27 -0400 Subject: [nycphp-talk] Ajax World Expo Passes In-Reply-To: <000f01c764e3$65fde3c0$6401a8c0@MobileZ> References: <000f01c764e3$65fde3c0$6401a8c0@MobileZ> Message-ID: <001201c764e6$8941e040$6401a8c0@MobileZ> Well that went quick - all gone. H Hans Zaunere wrote on Monday, March 12, 2007 4:17 PM: > All, > > Mike from Adobe is kind enough to offer us three free full conference > passes to: > > http://www.ajaxworldexpo.com/ > > It's on a first come first serve basis so email me and I'll get you > connected. > > --- > Hans Zaunere / President / New York PHP > www.nyphp.org / www.nyphp.com > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From rotsen at gmail.com Mon Mar 12 16:49:43 2007 From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=) Date: Mon, 12 Mar 2007 13:49:43 -0700 Subject: [nycphp-talk] DST & cron jobs running an hour late In-Reply-To: References: <45F58C1C.7060203@criticode.com> Message-ID: I have decided to use javascript which uses the system date and that way I do not have to worry about it. N?stor :-) On 3/12/07, N?stor wrote: > > I am using php 4.3.2 > I had to do the following to have my date show up correct > but I have to remember to change it bac on NOv 4th 2007 (yack!!!) > > // echo date("F j, Y, g:i a"); //this line does what the next 3 line of > code do > //except that the date is wron gby > 1hour > $today = getdate(); > $mydate = $today['month'] . " " . $today['mday'] . ", " . > $today['year'] . ", " . ($today['hours'] + 1) . ":" . $today['minutes'] ; > echo $mydate . "
\n"; > > I tried setting the time.zone but it did nothing and it complaint when I > tried > to use date_default_timezone_set() because that is a php 5 function > > I need to find a better solution!!! > > Thanks, > > N?stor :-)* > * > > On 3/12/07, Darian Anthony Patrick wrote: > > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > N?stor, > > > > There is an ini setting for timezone. You may need to set that. > > > > See this thread: > > http://lists.nyphp.org/pipermail/talk/2007-February/021239.html > > > > Darian > > > > - -- > > Darian Anthony Patrick > > Principal, Application Development > > Criticode LLC > > (215) 240-6566 Office > > (866) 789-2992 Facsimile > > Web: http://criticode.com > > Email: darian at criticode.com > > JID: darian at jabber.criticode.net > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.2.2 (GNU/Linux) > > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > > > iD8DBQFF9YwcKpzEXPWA4IcRAplBAKCOd2Rmx7bCVbYIiqzSs8RakGKhiACfYGjn > > 74SNReMKlKoJvp+7psOzJoc= > > =TZYa > > -----END PGP SIGNATURE----- > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > NYPHPCon 2006 Presentations Online > > http://www.nyphpcon.com > > > > Show Your Participation in New York PHP > > http://www.nyphp.org/show_participation.php > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From clorinthia.cade at gmail.com Tue Mar 13 18:35:06 2007 From: clorinthia.cade at gmail.com (Clorinthia Cade) Date: Tue, 13 Mar 2007 15:35:06 -0700 Subject: [nycphp-talk] Clorinthia Cade wants to chat Message-ID: <25c206610703131535h31d3954ep@mail.gmail.com> ----------------------------------------------------------------------- Clorinthia Cade wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-8659a734dc-b2a345094d-99ec9d53223f52cf You'll need to click this link to be able to chat with Clorinthia Cade. To get Gmail - a free email account from Google with over 2,600 megabytes of storage - and chat with Clorinthia Cade, visit: http://mail.google.com/mail/a-8659a734dc-b2a345094d-3e32bda017 Gmail offers: - Powerful spam protection - Built-in search for finding your messages and a helpful way of organizing emails into "conversations" - No pop-up ads or untargeted banners - just text ads and related information that are relevant to the content of your messages - Instant messaging capabilities right inside Gmail All this, and its yours for free. But wait, there's more! You can also get Google Talk: http://www.google.com/talk/ Its a small Windows* download that lets you make free calls to your friends through your computer. It's simple and clutter-free, and it works with any computer speaker and microphone. Gmail and Google Talk are still in beta. We're working hard to add new features and make improvements, so we might also ask for your comments and suggestions periodically. We appreciate your help in making our products even better! Thanks, The Google Team To learn more about Gmail and Google Talk, visit: http://mail.google.com/mail/help/about.html http://www.google.com/talk/about.html (If clicking the URLs in this message does not work, copy and paste them into the address bar of your browser). * Not a Windows user? No problem. You can also connect to the Google Talk service from any platform using third-party clients (http://www.google.com/talk/otherclients.html). From ajai at bitblit.net Tue Mar 13 18:36:25 2007 From: ajai at bitblit.net (Ajai Khattri) Date: Tue, 13 Mar 2007 18:36:25 -0400 (EDT) Subject: [nycphp-talk] Clorinthia Cade wants to chat In-Reply-To: <25c206610703131535h31d3954ep@mail.gmail.com> Message-ID: On Tue, 13 Mar 2007, Clorinthia Cade wrote: > ----------------------------------------------------------------------- > > Clorinthia Cade wants to stay in better touch using some of Google's coolest new > products. Spam from Google? -- Aj. From anieshjoseph at gmail.com Wed Mar 14 08:07:32 2007 From: anieshjoseph at gmail.com (Aniesh joseph) Date: Wed, 14 Mar 2007 17:37:32 +0530 Subject: [nycphp-talk] How can I include a hyperlink to swf file ? Message-ID: <1b3d2fde0703140507wbded3edlfd4ebd4a0c4c58f9@mail.gmail.com> Hello I have uploaded many swf (flash file) and stored their names to tables . >From table, I can retrieve the swf file name. These swf files are banners. When someone clicks on the swf banner, it will directs to its destination url. How can I add hyperlink to swf files. I found code from net to include swf files to html. The code is below: ## $image_name, $width, $height. will come from table. Using this code I can show swf files. But it doesn ot give any idea about , including a hyper link. Can someone help me ? Regards Aniesh Joseph -------------- next part -------------- An HTML attachment was scrubbed... URL: From support at dailytechnology.net Wed Mar 14 08:25:45 2007 From: support at dailytechnology.net (Brian Dailey) Date: Wed, 14 Mar 2007 08:25:45 -0400 Subject: [nycphp-talk] Clorinthia Cade wants to chat In-Reply-To: References: Message-ID: <45F7E9C9.4020708@dailytechnology.net> > On Tue, 13 Mar 2007, Clorinthia Cade wrote: > >> ----------------------------------------------------------------------- >> >> Clorinthia Cade wants to stay in better touch using some of Google's coolest new >> products. > > Spam from Google? > > The apocalypse must be here. I'll be in my cellar. From pyurt at yahoo.com Wed Mar 14 10:28:07 2007 From: pyurt at yahoo.com (P Yurt) Date: Wed, 14 Mar 2007 07:28:07 -0700 (PDT) Subject: [nycphp-talk] How can I include a hyperlink to swf file ? Message-ID: <668567.74583.qm@web52201.mail.yahoo.com> v\:* {behavior:url(#default#VML);}o\:* {behavior:url(#default#VML);}w\:* {behavior:url(#default#VML);}..shape {behavior:url(#default#VML);}st1\:*{behavior:url(#default#ieooui) } This is code to get and use the flashplayer plug-in. The code includes 3 variables for the videoor image content: 1) $image_name, 2) $width, 3) $height The call to the player is this: The 3 vars are there-in: $image_name, $width &$height You need to place your content details into these variables. Explore the Evolving Web www.2.0websites.com Paul Yurt, Publisher paul(@)2.0websites.com 480-585-0007 --------------------------------- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Aniesh joseph Sent: Wednesday, March 14, 2007 5:08 AM To: talk at lists.nyphp.org Subject: [nycphp-talk] How can Iinclude a hyperlink to swf file ? Hello I have uploaded many swf (flash file) and stored their names to tables . Fromtable, I can retrieve the swf file name. These swf files are banners. Whensomeone clicks on the swf banner, it will directs to its destination url. How can I add hyperlink to swf files. I found code from net to include swffiles to html. The code is below: ## $image_name, $width, $height. will come from table. Using this code I can show swf files. But it doesn ot give any idea about, including a hyper link. Can someone help me ? Regards Aniesh Joseph -------------- next part -------------- An HTML attachment was scrubbed... URL: From darian at criticode.com Wed Mar 14 10:34:25 2007 From: darian at criticode.com (Darian Anthony Patrick) Date: Wed, 14 Mar 2007 10:34:25 -0400 Subject: [nycphp-talk] How can I include a hyperlink to swf file ? In-Reply-To: <1b3d2fde0703140507wbded3edlfd4ebd4a0c4c58f9@mail.gmail.com> References: <1b3d2fde0703140507wbded3edlfd4ebd4a0c4c58f9@mail.gmail.com> Message-ID: <45F807F1.1070601@criticode.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Aniesh joseph wrote: > Hello > > I have uploaded many swf (flash file) and stored their names to tables . > From table, I can retrieve the swf file name. These swf files are > banners. When someone clicks on the swf banner, it will directs to its > destination url. > > How can I add hyperlink to swf files. I think you need to modify the actual SWF to handle the hyperlink behavior on click. I don't believe it's something that can be done outside of the SWF. Actually, maybe you could do it with JavaScript event handlers, but I very seriously doubt it. HTH, Darian - -- Darian Anthony Patrick Principal, Application Development Criticode LLC (215) 240-6566 Office (866) 789-2992 Facsimile Web: http://criticode.com Email: darian at criticode.com JID: darian at jabber.criticode.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF+AfxKpzEXPWA4IcRAoe/AJ9gsmULp8R1F14W3gCXu5j0t7VonACggtT9 aOfcCX3yxCXRMmLALloa0Y0= =FgnK -----END PGP SIGNATURE----- From lists at danhorning.com Wed Mar 14 12:32:46 2007 From: lists at danhorning.com (Dan Horning) Date: Wed, 14 Mar 2007 12:32:46 -0400 Subject: [nycphp-talk] Webinars: anyone want to present and promote.... Message-ID: <45F823AE.7090608@danhorning.com> I'd like to sponsor a few Technical & not so technical Webinars and would like to see if any of you would like to not only promote it - but possibly be a part of it - we can have up to 1000 +1 (me) on the event including a conference call and multiple panelists (where you guys might come in) For those who dont know me - i've been a nyphper since almost the beginning and have been so busy with clients lately that i've found it hard to keep up on the list - we all know what the feels like on occasion. and now that my company has grown thanks to advice and help from many nyphpers and wwwacies (ask me if you dont know them)i think it's time to give back. I personally would like to do some webinars on using CMS effectively, working with ecommerce, php 5 common errors, using php 5 efficiently and many more ideas. the key here is getting us to all promote them - (I'd be sponsoring the events myself) since the 1000 person mark is the limit i think we might be able to even find ways to make that limit need to go higher. the backside idea is that panelists present and would also leave with a list of attendees and their interests - I think this would be a great way for our influence in new york city to expand to areas all over. (and since i'm up in the albany area - I'd really like to be more involved... any ideas you might have would be appreciated (wwwac members may notice this to be a similar email) -Dan Horning PS -= the goal is to have a webinar a week - following a plan of techie, non-techie, nyphp members special, and a free for all webinar (where the panelists would answer questions on the fly to the best of their ability). thus making it easy to promote these events to your clients - since you know ahead of time the topics PPS -= once i get some feedback I'll start creating a schedule of events which will be posted to this list and to my website http://www.americandigitalservices.com/ talk to you soon -- Dan Horning - danhorning.com American Digital Services - americandigitalservices.com Where you are only limited by imagination. 1-866-493-4218 (direct) / 1-800-863-3854 (main number) From lists at zaunere.com Wed Mar 14 13:38:34 2007 From: lists at zaunere.com (Hans Zaunere) Date: Wed, 14 Mar 2007 13:38:34 -0400 Subject: [nycphp-talk] Clorinthia Cade wants to chat In-Reply-To: References: <25c206610703131535h31d3954ep@mail.gmail.com> Message-ID: <011001c7665f$973c5bb0$7202a8c0@MobileZ> Ajai Khattri wrote on Tuesday, March 13, 2007 6:36 PM: > On Tue, 13 Mar 2007, Clorinthia Cade wrote: > > > ----------------------------------------------------------------------- > > > > Clorinthia Cade wants to stay in better touch using some of > > Google's coolest new products. > > Spam from Google? Probably - they'll need some extra income these days... Bye Clorinthia, H From rmarscher at beaffinitive.com Wed Mar 14 16:16:14 2007 From: rmarscher at beaffinitive.com (Rob Marscher) Date: Wed, 14 Mar 2007 16:16:14 -0400 Subject: [nycphp-talk] How can I include a hyperlink to swf file ? In-Reply-To: <668567.74583.qm@web52201.mail.yahoo.com> References: <668567.74583.qm@web52201.mail.yahoo.com> Message-ID: This is the best way to add Flash to HTML: http://blog.deconcept.com/ swfobject/ So in your case it would be like this: To add click urls, you need to modify the source for the swf. It is possible to do this programmatically. The OpenAds (formerly phpAdsNew/MaxMediaManager) project does it: http://www.openads.org/ Take a look at the www/admin/lib-swf.inc.php file. You want to make your swf accept an actionscript argument that contains the link where it should go when clicked. The standard name for this argument is clickTAG. So with you swf modified, here's your embed code: Good luck! From rick at napalmriot.com Wed Mar 14 17:21:15 2007 From: rick at napalmriot.com (Rick) Date: Wed, 14 Mar 2007 14:21:15 -0700 Subject: [nycphp-talk] Clorinthia Cade wants to chat In-Reply-To: <011001c7665f$973c5bb0$7202a8c0@MobileZ> References: <25c206610703131535h31d3954ep@mail.gmail.com> <011001c7665f$973c5bb0$7202a8c0@MobileZ> Message-ID: <45F8674B.7050605@napalmriot.com> Hans Zaunere wrote: > Ajai Khattri wrote on Tuesday, March 13, 2007 6:36 PM: > >> On Tue, 13 Mar 2007, Clorinthia Cade wrote: >> >> >>> ----------------------------------------------------------------------- >>> >>> Clorinthia Cade wants to stay in better touch using some of >>> Google's coolest new products. >>> >> Spam from Google? >> > > Probably - they'll need some extra income these days... > > Bye Clorinthia, > > H > It could be that Clorinthia just blasted that to their whole address book, inadvertently spamming the talk list. That or Google is trying to figure out how to pay for that tiny $1 billion Viacom glitch... http://news.com.com/Viacom+sues+Google+over+YouTube+clips/2100-1030_3-6166668.html -- Rick http://blog.sensual.jp From 1j0lkq002 at sneakemail.com Wed Mar 14 19:31:25 2007 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Wed, 14 Mar 2007 16:31:25 -0700 Subject: [nycphp-talk] How can I include a hyperlink to swf file ? In-Reply-To: References: <668567.74583.qm@web52201.mail.yahoo.com> Message-ID: <11020-50280@sneakemail.com> Rob Marscher rmarscher-at-beaffinitive.com |nyphp dev/internal group use| wrote: > This is the best way to add Flash to HTML: http://blog.deconcept.com/ > swfobject/ > > So in your case it would be like this: > > > > To add click urls, you need to modify the source for the swf. It is > possible to do this programmatically. The OpenAds (formerly > phpAdsNew/MaxMediaManager) project does it: http://www.openads.org/ > Take a look at the www/admin/lib-swf.inc.php file. You want to make > your swf accept an actionscript argument that contains the link where > it should go when clicked. The standard name for this argument is > clickTAG. So with you swf modified, here's your embed code: > > > > > Good luck! and THAT post is an exampleof what makes NYPHP talk list great! From codebowl at gmail.com Thu Mar 15 13:40:26 2007 From: codebowl at gmail.com (Joseph Crawford) Date: Thu, 15 Mar 2007 13:40:26 -0400 Subject: [nycphp-talk] Recursive Help? Message-ID: <8d9a42800703151040t420149efu6dae4ee7d8968fbc@mail.gmail.com> As some of you may have seen I have been working on a google maps mash up for work. We have it working great however we have several people from the same company who register. This caused issues with the map a little so what we determined we would do is check to see if we have already used that coordinate, if we did we would add 0.0005 (or something) to the coordinate so that it wouldplot it close but not on top of the other markers. I created this function that takes 2 arrays as arguments function nextCoord($coords, $usedCoords) { list($lat, $lng) = each($coords); $lat = (float)$lat; $lng = (float)$lng; if(in_array($lat.':'.$lng, $usedCoords)) { $lat += 0.0005; $lng += 0.0005; return nextCoord(array($lat, $lng), $usedCoords ); } $array = array($lat, $lng); echo '
'; print_r($array); echo '
'; return $array; } The issue here is that the print_r that i have there outputs odd results like the following Array ( [0] => 0 [1] => 32.766592 ) I am not sure what is going on there. Pretty much this function takes the coords in this format lat:lng and checks them against the $usedCoords array that is passed into the function. If a match is found it will call the nextCoord function again until it get's to one that is not already used. Can anyone shed any light on the reason why it is returning the odd results you see above? Here is the code that consumes the function above list($attendee['lng'], $attendee['lat'], $attendee['alt']) = (isset($googleData['kml']['Response'][0]['Placemark'][0]['Point'][0]['coordinates'])) ? explode(",", $googleData['kml']['Response'][0]['Placemark'][0]['Point'][0]['coordinates']) : array(0,0,0); $coords = nextCoord(array($attendee['lat'], $attendee['lng']), $usedCoords); list($attendee['lat'], $attendee['lng']) = each($coords); array_push($usedCoords, $attendee['lat'].':'.$attendee['lng']); -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ Blog: http://www.josephcrawford.com/ 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dirn at dirnonline.com Thu Mar 15 13:56:11 2007 From: dirn at dirnonline.com (Andy Dirnberger) Date: Thu, 15 Mar 2007 13:56:11 -0400 Subject: [nycphp-talk] Recursive Help? In-Reply-To: <8d9a42800703151040t420149efu6dae4ee7d8968fbc@mail.gmail.com> References: <8d9a42800703151040t420149efu6dae4ee7d8968fbc@mail.gmail.com> Message-ID: <002101c7672b$3871df70$a9559e50$@com> Take out each (), e.g., list ($lat, $lng) = $coords; As a side note, you can do echo '
' . print_r ($array, true) . '
'; to save yourself a few key strokes. DiRN From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Joseph Crawford Sent: Thursday, March 15, 2007 1:40 PM To: NYPHP Talk Subject: [nycphp-talk] Recursive Help? As some of you may have seen I have been working on a google maps mash up for work. We have it working great however we have several people from the same company who register. This caused issues with the map a little so what we determined we would do is check to see if we have already used that coordinate, if we did we would add 0.0005 (or something) to the coordinate so that it wouldplot it close but not on top of the other markers. I created this function that takes 2 arrays as arguments function nextCoord($coords, $usedCoords) { list($lat, $lng) = each($coords); $lat = (float)$lat; $lng = (float)$lng; if(in_array($lat.':'.$lng, $usedCoords)) { $lat += 0.0005; $lng += 0.0005; return nextCoord(array($lat, $lng), $usedCoords ); } $array = array($lat, $lng); echo '
'; print_r($array); echo '
'; return $array; } The issue here is that the print_r that i have there outputs odd results like the following Array ( [0] => 0 [1] => 32.766592 ) I am not sure what is going on there. Pretty much this function takes the coords in this format lat:lng and checks them against the $usedCoords array that is passed into the function. If a match is found it will call the nextCoord function again until it get's to one that is not already used. Can anyone shed any light on the reason why it is returning the odd results you see above? Here is the code that consumes the function above list($attendee['lng'], $attendee['lat'], $attendee['alt']) = (isset($googleData['kml']['Response'][0]['Placemark'][0]['Point'][0]['coordi nates'])) ? explode(",", $googleData['kml']['Response'][0]['Placemark'][0]['Point'][0]['coordinates'] ) : array(0,0,0); $coords = nextCoord(array($attendee['lat'], $attendee['lng']), $usedCoords); list($attendee['lat'], $attendee['lng']) = each($coords); array_push($usedCoords, $attendee['lat'].':'.$attendee['lng']); -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ Blog: http://www.josephcrawford.com/ 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Thu Mar 15 14:10:38 2007 From: codebowl at gmail.com (Joseph Crawford) Date: Thu, 15 Mar 2007 14:10:38 -0400 Subject: [nycphp-talk] Recursive Help? In-Reply-To: <002101c7672b$3871df70$a9559e50$@com> References: <8d9a42800703151040t420149efu6dae4ee7d8968fbc@mail.gmail.com> <002101c7672b$3871df70$a9559e50$@com> Message-ID: <8d9a42800703151110g10a55878k4f3f3f49a52a07ab@mail.gmail.com> Andy, Thanks that was the issue duh.... I am not worried about keystrokes i use Zend Stduio and created a template ;) i type prde and it pushes out the code for that ;D Thanks Again, -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ Blog: http://www.josephcrawford.com/ 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From anieshjoseph at gmail.com Fri Mar 16 02:44:28 2007 From: anieshjoseph at gmail.com (Aniesh joseph) Date: Fri, 16 Mar 2007 12:14:28 +0530 Subject: [nycphp-talk] RE:; Include destination url to SWF using SWObject Message-ID: <1b3d2fde0703152344n6cb4af3cg603523ef5b16dfd4@mail.gmail.com> Hello I download the zip file from http://blog.deconcept.com. But it do not work. Flash
This text is replaced by the Flash movie.
Regards Aniesh Joseph -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at enobrev.com Fri Mar 16 04:00:36 2007 From: lists at enobrev.com (Mark Armendariz) Date: Fri, 16 Mar 2007 04:00:36 -0400 Subject: [nycphp-talk] RE:; Include destination url to SWF using SWObject In-Reply-To: <1b3d2fde0703152344n6cb4af3cg603523ef5b16dfd4@mail.gmail.com> References: <1b3d2fde0703152344n6cb4af3cg603523ef5b16dfd4@mail.gmail.com> Message-ID: <58f08dcf0703160100k7ced80lca9ec6928b153328@mail.gmail.com> On 3/16/07, Aniesh joseph wrote: > Hello > > I download the zip file from http://blog.deconcept.com. But it do not work. > > > so.write("flashcontent"); > > > >
> This text is replaced by the Flash movie. >
> > > Regards > Aniesh Joseph > haven't used swfobject in quite some time, so I'm not sure of the internals or usage, but you may have to put the so.write call _after_ the flashcontent div is defined. You can probably put it right after, at the bottom of the page or use an onload event of some sorts to run it after the page has loaded. Try this: Flash
This text is replaced by the Flash movie.
Mark Armendariz From anieshjoseph at gmail.com Fri Mar 16 06:01:56 2007 From: anieshjoseph at gmail.com (Aniesh joseph) Date: Fri, 16 Mar 2007 15:31:56 +0530 Subject: [nycphp-talk] RE:; Include destination url to SWF using SWObject => Error in the js include file Message-ID: <1b3d2fde0703160301m39c7ab44t12eee821b0e222bb@mail.gmail.com> Hello I tried to include the flash file using SWFObject. ( *http://blog.deconcept.com.) Occured the following javascript error => 'n ' has no properties on swfobject.js Can someone help me to solve this ? The html I used is given below: * Flash
This text is replaced by the Flash movie.
Regards Aniesh Joseph -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhy2104 at columbia.edu Fri Mar 16 08:35:01 2007 From: jhy2104 at columbia.edu (Dave Youn) Date: Fri, 16 Mar 2007 08:35:01 -0400 Subject: [nycphp-talk] MySQL Clustering & HA Message-ID: This might be a little off topic, but I'm wondering if anyone has experience with MySQL clustering? I'm working with a System Administrator to architect a failover solution and he's under the impression that we need MySQL HA, but I don't see that product offered on mysql.com, all I see are MySQL Cluster, and MySQL Cluster Carrier Grade. Also, what are the limitations/requirements for deploying a cluster into production? Is this something easy to setup, or worth hiring a consultant for? Thanks in advance, Dave ***************************************** David Youn - Webmaster Columbia University Medical Center ph: 212.305.8891 212.305.1668 fax: 212.342.8499 http://www.cubhis.org/wds/ From rothmail at comcast.net Fri Mar 16 10:31:10 2007 From: rothmail at comcast.net (David A. Roth) Date: Fri, 16 Mar 2007 10:31:10 -0400 Subject: [nycphp-talk] OT: Web Testing open source tools Message-ID: <32bec0b668ee372240fc90c5bb49f9a4@comcast.net> I'm looking for recommendations of excellent web testing open source tools that run on Linux and cover testing areas that include functional testing and performance testing. Capture and creation of test messages that easily handle the web interface is important. My intention is to create a test regression package of test scripts to verify a web sites functions. For performance I'm mainly concerned with areas of how well a given web site performs under heavy traffic conditions and measuring its capacity. Thanks in advance, David Roth rothmail at comcast.net From jonbaer at jonbaer.com Fri Mar 16 11:30:13 2007 From: jonbaer at jonbaer.com (Jon Baer) Date: Fri, 16 Mar 2007 11:30:13 -0400 Subject: [nycphp-talk] OT: Web Testing open source tools In-Reply-To: <32bec0b668ee372240fc90c5bb49f9a4@comcast.net> References: <32bec0b668ee372240fc90c5bb49f9a4@comcast.net> Message-ID: Im also after such an all in one click package. One of the better things I have seen lately was a really good analysis w/ httperf (but the tool is so old!), yet always highly recommended ... http://www.peepcode.com/products/benchmarking-with-httperf I think ab (Apache Benchmark) and httperf are the norms (for free tools) but there are other interesting packages like webstress ... http://www.paessler.com/webstress/sample_performance_tests - Jon On Mar 16, 2007, at 10:31 AM, David A. Roth wrote: > I'm looking for recommendations of excellent web testing open > source tools that run on Linux and cover testing areas that include > functional testing and performance testing. Capture and creation of > test messages that easily handle the web interface is important. My > intention is to create a test regression package of test scripts to > verify a web sites functions. For performance I'm mainly concerned > with areas of how well a given web site performs under heavy > traffic conditions and measuring its capacity. > > Thanks in advance, > > David Roth > rothmail at comcast.net > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From nate at cakephp.org Fri Mar 16 12:08:48 2007 From: nate at cakephp.org (Nate Abele) Date: Fri, 16 Mar 2007 12:08:48 -0400 Subject: [nycphp-talk] OT: Web Testing open source tools In-Reply-To: <20070316155703.4F21A10A806D@cakephp.org> References: <20070316155703.4F21A10A806D@cakephp.org> Message-ID: <6ACF026D-41F3-496E-9B07-FEC523D63C57@cakephp.org> > Date: Fri, 16 Mar 2007 10:31:10 -0400 > From: David A. Roth > Subject: [nycphp-talk] OT: Web Testing open source tools > > I'm looking for recommendations of excellent web testing open source > tools that run on Linux and cover testing areas that include > functional > testing and performance testing. Capture and creation of test messages > that easily handle the web interface is important. My intention is to > create a test regression package of test scripts to verify a web sites > functions. For performance I'm mainly concerned with areas of how well > a given web site performs under heavy traffic conditions and measuring > its capacity. > > Thanks in advance, > > David Roth > rothmail at comcast.net Check out SimpleTest. it doesn't do any benching, but the web tester stuff should handle everything else you're going for. http://www.simpletest.org/en/web_tester_documentation.html From ajai at bitblit.net Fri Mar 16 12:24:41 2007 From: ajai at bitblit.net (Ajai Khattri) Date: Fri, 16 Mar 2007 12:24:41 -0400 (EDT) Subject: [nycphp-talk] OT: Web Testing open source tools In-Reply-To: <32bec0b668ee372240fc90c5bb49f9a4@comcast.net> Message-ID: On Fri, 16 Mar 2007, David A. Roth wrote: > I'm looking for recommendations of excellent web testing open source > tools that run on Linux and cover testing areas that include functional > testing and performance testing. Capture and creation of test messages > that easily handle the web interface is important. My intention is to > create a test regression package of test scripts to verify a web sites > functions. For performance I'm mainly concerned with areas of how well > a given web site performs under heavy traffic conditions and measuring > its capacity. The mother load: http://opensourcetesting.org/ -- Aj. From rmarscher at beaffinitive.com Fri Mar 16 14:08:52 2007 From: rmarscher at beaffinitive.com (Rob Marscher) Date: Fri, 16 Mar 2007 14:08:52 -0400 Subject: [nycphp-talk] RE:; Include destination url to SWF using SWObject => Error in the js include file In-Reply-To: <1b3d2fde0703160301m39c7ab44t12eee821b0e222bb@mail.gmail.com> References: <1b3d2fde0703160301m39c7ab44t12eee821b0e222bb@mail.gmail.com> Message-ID: On Mar 16, 2007, at 6:01 AM, Aniesh joseph wrote: > Occured the following javascript error => > > 'n ' has no properties on swfobject.js I have no idea. I tried your code and it works fine for me. Maybe you should post it publicly and we can use Firebug to try to track down the problem. -Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: From elizabeth at linuxbox.com Fri Mar 16 17:10:27 2007 From: elizabeth at linuxbox.com (elizabeth) Date: Fri, 16 Mar 2007 17:10:27 -0400 Subject: [nycphp-talk] OT: Web Testing open source tools In-Reply-To: <32bec0b668ee372240fc90c5bb49f9a4@comcast.net> References: <32bec0b668ee372240fc90c5bb49f9a4@comcast.net> Message-ID: <45FB07C3.3050904@linuxbox.com> Dear All, To help you with testing, * how well a given web site performs under heavy traffic conditions and * measuring its capacity check out our Sing-Tsung, The Linux Box enhanced version of Tsung. It is available for download here: http://linuxbox.com/tiki/tiki-index.php?page=Sing-Tsung Let us know how it's working for you. elizabeth ziph /THE LINUX BOX CORPORATION/ http://www.linuxbox.com David A. Roth wrote: > I'm looking for recommendations of excellent web testing open source > tools that run on Linux and cover testing areas that include > functional testing and performance testing. Capture and creation of > test messages that easily handle the web interface is important. My > intention is to create a test regression package of test scripts to > verify a web sites functions. For performance I'm mainly concerned > with areas of how well a given web site performs under heavy traffic > conditions and measuring its capacity. > > Thanks in advance, > > David Roth > rothmail at comcast.net > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at zaunere.com Fri Mar 16 22:10:09 2007 From: lists at zaunere.com (Hans Zaunere) Date: Fri, 16 Mar 2007 22:10:09 -0400 Subject: [nycphp-talk] MySQL Clustering & HA In-Reply-To: References: Message-ID: <025a01c76839$641bb330$0202fea9@MobileZ> Dave, Dave Youn wrote on Friday, March 16, 2007 8:35 AM: > This might be a little off topic, but I'm wondering if anyone has > experience with MySQL clustering? I do... > I'm working with a System Administrator to architect a failover > solution and he's under the impression that we need MySQL HA, but I > don't see that product offered on mysql.com, all I see are MySQL > Cluster, and MySQL Cluster Carrier Grade. > > Also, what are the limitations/requirements for deploying a cluster > into production? Is this something easy to setup, or worth hiring a > consultant for? Clustering can be a little tricky. For one thing, it's a RAM based database, so capacity planning is important. It's fairly straightforward to set up, but not as simple as MySQL itself. I think I'm actually speaking with someone from Columbia about cluster next week. --- Hans Zaunere / President / New York PHP www.nyphp.org / www.nyphp.com From arzala at gmail.com Fri Mar 16 23:34:18 2007 From: arzala at gmail.com (Anirudh Zala) Date: Sat, 17 Mar 2007 09:04:18 +0530 Subject: [nycphp-talk] OT: Web Testing open source tools In-Reply-To: <32bec0b668ee372240fc90c5bb49f9a4@comcast.net> References: <32bec0b668ee372240fc90c5bb49f9a4@comcast.net> Message-ID: <200703170904.18236.arzala@gmail.com> On Friday 16 March 2007 20:01, David A. Roth wrote: > I'm looking for recommendations of excellent web testing open source > tools that run on Linux and cover testing areas that include functional > testing and performance testing. Capture and creation of test messages > that easily handle the web interface is important. My intention is to > create a test regression package of test scripts to verify a web sites > functions. For performance I'm mainly concerned with areas of how well > a given web site performs under heavy traffic conditions and measuring > its capacity. > > Thanks in advance, > > David Roth > rothmail at comcast.net > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php Hi David, I am just providing list of certain softwares that can be useful for various types of testing. Unit testing at code level: PHPUnit2 and SimpleTest (PHPUnit2 is purely for PHP code while SimpleTest can be used for code + web page functionality testing) System testing: Selenium Usability testing: ab, httperf, OpenSTA These all are open source and very popular. Anirudh Zala (30% of Internet resources is wasted by unnecessary tabs and spaces.) From danielc at analysisandsolutions.com Sat Mar 17 10:35:21 2007 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sat, 17 Mar 2007 10:35:21 -0400 Subject: [nycphp-talk] OT: Web Testing open source tools In-Reply-To: <200703170904.18236.arzala@gmail.com> References: <32bec0b668ee372240fc90c5bb49f9a4@comcast.net> <200703170904.18236.arzala@gmail.com> Message-ID: <20070317143521.GA25647@panix.com> On Sat, Mar 17, 2007 at 09:04:18AM +0530, Anirudh Zala wrote: > (30% of Internet resources > is wasted by unnecessary > tabs and spaces.) Oh. And here I was thinking it was wasted by people not editing out irrelevant parts of prior emails when replying. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From jonbaer at jonbaer.com Sat Mar 17 19:06:37 2007 From: jonbaer at jonbaer.com (Jon Baer) Date: Sat, 17 Mar 2007 19:06:37 -0400 Subject: [nycphp-talk] MySQL Clustering & HA In-Reply-To: <025a01c76839$641bb330$0202fea9@MobileZ> References: <025a01c76839$641bb330$0202fea9@MobileZ> Message-ID: I think they are trying to get out of having all of the data in memory ... http://dev.mysql.com/doc/refman/5.1/en/mysql-cluster-disk-data.html The one slick part of ~newer~ versions is autodiscovery ... -snip- Autodiscovery of databases is now supported for multiple MySQL servers accessing the same MySQL Cluster, provided that a given mysqld is already running and is connected to the cluster at the time that the database is created on a different mysqld. -snip- - Jon On Mar 16, 2007, at 10:10 PM, Hans Zaunere wrote: > > Dave, > > Dave Youn wrote on Friday, March 16, 2007 8:35 AM: >> This might be a little off topic, but I'm wondering if anyone has >> experience with MySQL clustering? > > I do... > >> I'm working with a System Administrator to architect a failover >> solution and he's under the impression that we need MySQL HA, but I >> don't see that product offered on mysql.com, all I see are MySQL >> Cluster, and MySQL Cluster Carrier Grade. >> >> Also, what are the limitations/requirements for deploying a cluster >> into production? Is this something easy to setup, or worth hiring a >> consultant for? > > Clustering can be a little tricky. For one thing, it's a RAM based > database, so capacity planning is important. It's fairly > straightforward to > set up, but not as simple as MySQL itself. > > I think I'm actually speaking with someone from Columbia about > cluster next > week. > > --- > Hans Zaunere / President / New York PHP > www.nyphp.org / www.nyphp.com > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From arzala at gmail.com Mon Mar 19 00:21:50 2007 From: arzala at gmail.com (Anirudh Zala) Date: Mon, 19 Mar 2007 09:51:50 +0530 Subject: [nycphp-talk] OT: Web Testing open source tools In-Reply-To: <20070317143521.GA25647@panix.com> References: <32bec0b668ee372240fc90c5bb49f9a4@comcast.net> <200703170904.18236.arzala@gmail.com> <20070317143521.GA25647@panix.com> Message-ID: <200703190951.50317.arzala@gmail.com> On Saturday 17 March 2007 20:05, Daniel Convissor wrote: > On Sat, Mar 17, 2007 at 09:04:18AM +0530, Anirudh Zala wrote: > > (30% of Internet resources > > is wasted by unnecessary > > tabs and spaces.) > > Oh. And here I was thinking it was wasted by people not editing out > irrelevant parts of prior emails when replying. > > --Dan I was mainly concerned towards "programming" so looks like I need change my signature a bit. However you are correct also :). Anirudh Zala (30% of Internet resources, used to deliver web-pages, are wasted by unnecessary tabs and spaces.) From ben at projectskyline.com Mon Mar 19 10:44:08 2007 From: ben at projectskyline.com (Ben Sgro (ProjectSkyline)) Date: Mon, 19 Mar 2007 10:44:08 -0400 Subject: [nycphp-talk] Howto create custom URLs Message-ID: <00b201c76a35$0ce47c20$6a01a8c0@gamebox> Hello All, Currently I have a software package that creates URLS in this manner: myhost.com/index.php?act=700&eventid=4e732ced3463d06de0ca9a15b6153677 Which is the action to take and event id (md5 hash). Now, I want to make this a bit more user friendly and create URLs like: myhost.com/MayEvent07 Is this done via an apache mod? or can I do this in PHP ... The app is developed on my company server, so special configurations are not a problem. However, its a software product, that will be deployed on hosting company servers, so I'm not sure if I will have the ability to run apache mods (if that's the answer). Thanks! - Ben ProjectSkyline.com Ben Sgro - Chief Engineer ben at projectskyline.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dorgan at optonline.net Mon Mar 19 10:45:22 2007 From: dorgan at optonline.net (Donald J Organ IV) Date: Mon, 19 Mar 2007 10:45:22 -0400 Subject: [nycphp-talk] Howto create custom URLs In-Reply-To: <00b201c76a35$0ce47c20$6a01a8c0@gamebox> References: <00b201c76a35$0ce47c20$6a01a8c0@gamebox> Message-ID: <45FEA202.2030900@optonline.net> An HTML attachment was scrubbed... URL: From dorgan at optonline.net Mon Mar 19 10:46:58 2007 From: dorgan at optonline.net (Donald J Organ IV) Date: Mon, 19 Mar 2007 10:46:58 -0400 Subject: [nycphp-talk] Howto create custom URLs In-Reply-To: <45FEA202.2030900@optonline.net> References: <00b201c76a35$0ce47c20$6a01a8c0@gamebox> <45FEA202.2030900@optonline.net> Message-ID: <45FEA262.9080502@optonline.net> An HTML attachment was scrubbed... URL: From apg88zx at gmail.com Mon Mar 19 10:49:35 2007 From: apg88zx at gmail.com (Alvaro P.) Date: Mon, 19 Mar 2007 10:49:35 -0400 Subject: [nycphp-talk] Howto create custom URLs In-Reply-To: <45FEA262.9080502@optonline.net> References: <00b201c76a35$0ce47c20$6a01a8c0@gamebox> <45FEA202.2030900@optonline.net> <45FEA262.9080502@optonline.net> Message-ID: <45FEA2FF.3040000@gmail.com> Has anyone used mod_rewrite with lighttpd? I tried to use it but can't get it to work. Alvaro Donald J Organ IV wrote: > P.S. mod_rewrite is usually enabled or can be enabled on any simple > hosting plan that is using apache, if you encounter a host that uses > apache and wont turn it on, i would suggest finding another host. > > Donald J Organ IV wrote: >> This is done via mod_rewrite: >> >> apache 1.x >> http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html >> >> apache 2.x >> http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html >> >> >> The PHP script still see the page as >> myhost.com/index.php?act=700&eventid=4e732ced3463d06de0ca9a15b6153677 >> you just tell apache how to process myhost.com/MayEvent07 >> >> >> >> Ben Sgro (ProjectSkyline) wrote: >>> Hello All, >>> >>> Currently I have a software package that creates URLS in this manner: >>> myhost.com/index.php?act=700&eventid=4e732ced3463d06de0ca9a15b6153677 >>> >>> Which is the action to take and event id (md5 hash). >>> >>> Now, I want to make this a bit more user friendly and create URLs like: >>> myhost.com/MayEvent07 >>> >>> Is this done via an apache mod? or can I do this in PHP ... The app >>> is developed on my company server, >>> so special configurations are not a problem. However, its a software >>> product, that will be deployed on hosting >>> company servers, so I'm not sure if I will have the ability to run >>> apache mods (if that's the answer). >>> >>> Thanks! >>> >>> - Ben >>> >>> ProjectSkyline.com >>> Ben Sgro - Chief Engineer >>> ben at projectskyline.com >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> New York PHP Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> NYPHPCon 2006 Presentations Online >>> http://www.nyphpcon.com >>> >>> Show Your Participation in New York PHP >>> http://www.nyphp.org/show_participation.php >>> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> New York PHP Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> NYPHPCon 2006 Presentations Online >> http://www.nyphpcon.com >> >> Show Your Participation in New York PHP >> http://www.nyphp.org/show_participation.php >> > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From rmarscher at beaffinitive.com Mon Mar 19 11:06:36 2007 From: rmarscher at beaffinitive.com (Rob Marscher) Date: Mon, 19 Mar 2007 11:06:36 -0400 Subject: [nycphp-talk] Howto create custom URLs In-Reply-To: <45FEA262.9080502@optonline.net> References: <00b201c76a35$0ce47c20$6a01a8c0@gamebox> <45FEA202.2030900@optonline.net> <45FEA262.9080502@optonline.net> Message-ID: On Mar 19, 2007, at 10:46 AM, Donald J Organ IV wrote: > P.S. mod_rewrite is usually enabled or can be enabled on any > simple hosting plan that is using apache, if you encounter a host > that uses apache and wont turn it on, i would suggest finding > another host. Also, you can usually put mod_rewrite rules in a .htaccess file -- so it doesn't require httpd.conf access. Even without mod_rewrite, you could still do myhost.com/index.php/ MayEvent07 -- you then look at $_SERVER['REQUEST_URI'], remove index.php/ from it, and then explode on / to get your args. Even if you are able to use mod_rewrite, you probably need to do a database lookup to find MayEvent07 so your mod_rewrite rule would be something like this: RewriteEngine on RewriteRule !\.(js|ico|gif|jpg|png|css|html|htm|xml|php)$ index.php Then you still process it by exploding $_SERVER['REQUEST_URI'] but you won't have index.php in that string. The rewrite rule forwards everything to index.php except for files with the extensions listed. From tedd at sperling.com Mon Mar 19 12:28:33 2007 From: tedd at sperling.com (tedd) Date: Mon, 19 Mar 2007 12:28:33 -0400 Subject: [nycphp-talk] Related to "How to create custom URLs" Message-ID: Hi gang: I got the idea of how to change things so that if the user types in a url to a part of your site, then you can redirect the user to where you want. For example, long ago I had my site setup with folders and indexes. For example, one folder was named "contact" with my contact page residing inside named as index.php. For SEO considerations I changed everything to root level. For example, the "contact folder index page" combination was changed to just contact.php. However, that left legacy link problems where people/SE's/etc had previously linked to my site using the old links. To solve that problem, I simply used htaccess like so: RewriteEngine on RewriteRule ^contact$ contact.php That meant that anyone who had a link to my previous contact, would be redirected to my new contact.php. Everything is cool. However, I liked the way the url looked before. I liked: [1] http://sperling.com/contact instead of the new: [2] http://sperling.com/contact.php How can I get the url displayed to look like number [1] regardless if the user adds ".php" or not? In other words, I know how to redirect the user to where I want, I just don't know how to change the url the user see's -- how do you do that? Thanks, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From ben at projectskyline.com Mon Mar 19 14:11:44 2007 From: ben at projectskyline.com (Ben Sgro (ProjectSkyline)) Date: Mon, 19 Mar 2007 14:11:44 -0400 Subject: [nycphp-talk] Howto create custom URLs References: <00b201c76a35$0ce47c20$6a01a8c0@gamebox><45FEA202.2030900@optonline.net> <45FEA262.9080502@optonline.net> Message-ID: <012d01c76a52$0d335940$6a01a8c0@gamebox> Hey Rob, So I decided to do what you mentioned: $eventNameStr = strrchr($_SERVER['REQUEST_URI'], "/"); $eventNameStr = substr($eventNameStr, 1, strlen($eventNameStr)); error_log($eventNameStr); <-- this is the other line of the error log snip below However, I'm getting some wierd script action.. Here's a snippet from my error_log( ) calls when loading: http://192.168.1.102/pc_release/index.php/26657d5ff9020d2abefe558796b99584 [19-Mar-2007 13:53:08] 26657d5ff9020d2abefe558796b99584 [19-Mar-2007 13:53:08] DBAS: 192.168.1.106 connected to mysql server db 'hhc' [19-Mar-2007 13:53:08] style.css [19-Mar-2007 13:53:08] DBAS: 192.168.1.106 connected to mysql server db 'hhc' [19-Mar-2007 13:53:08] favicon.ico [19-Mar-2007 13:53:08] DBAS: 192.168.1.106 connected to mysql server db 'hhc' [19-Mar-2007 13:53:08] pc_app_logo.png [19-Mar-2007 13:53:08] DBAS: 192.168.1.106 connected to mysql server db 'hhc' [19-Mar-2007 13:53:08] favicon.ico [19-Mar-2007 13:53:08] DBAS: 192.168.1.106 connected to mysql server db 'hhc' As you can see, its loading the file (index.php) 5 times for a single request. (the hash, style, favion, png and favicon).. Now, when loading: http://192.168.1.102/pc_release/index.php?act=700&eventid=26657d5ff9020d2abefe558796b99584 [19-Mar-2007 13:54:09] index.php?act=700&eventid=26657d5ff9020d2abefe558796b99584 [19-Mar-2007 13:54:09] DBAS: 192.168.1.106 connected to mysql server db 'hhc' So, any ideas as to why its working like this? - Ben ----- Original Message ----- From: "Rob Marscher" To: "NYPHP Talk" Sent: Monday, March 19, 2007 11:06 AM Subject: Re: [nycphp-talk] Howto create custom URLs > On Mar 19, 2007, at 10:46 AM, Donald J Organ IV wrote: > >> P.S. mod_rewrite is usually enabled or can be enabled on any simple >> hosting plan that is using apache, if you encounter a host that uses >> apache and wont turn it on, i would suggest finding another host. > > Also, you can usually put mod_rewrite rules in a .htaccess file -- so it > doesn't require httpd.conf access. > > Even without mod_rewrite, you could still do myhost.com/index.php/ > MayEvent07 -- you then look at $_SERVER['REQUEST_URI'], remove index.php/ > from it, and then explode on / to get your args. > > Even if you are able to use mod_rewrite, you probably need to do a > database lookup to find MayEvent07 so your mod_rewrite rule would be > something like this: > > RewriteEngine on > RewriteRule !\.(js|ico|gif|jpg|png|css|html|htm|xml|php)$ index.php > > Then you still process it by exploding $_SERVER['REQUEST_URI'] but you > won't have index.php in that string. The rewrite rule forwards > everything to index.php except for files with the extensions listed. > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From 1j0lkq002 at sneakemail.com Mon Mar 19 15:49:50 2007 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Mon, 19 Mar 2007 12:49:50 -0700 Subject: [nycphp-talk] Related to "How to create custom URLs" In-Reply-To: References: Message-ID: <26894-18751@sneakemail.com> tedd tedd-at-sperling.com |nyphp dev/internal group use| wrote: > Hi gang: > > I got the idea of how to change things so that if the user types in a > url to a part of your site, then you can redirect the user to where > you want. > > For example, long ago I had my site setup with folders and indexes. > For example, one folder was named "contact" with my contact page > residing inside named as index.php. > > For SEO considerations I changed everything to root level. For > example, the "contact folder index page" combination was changed to > just contact.php. > > However, that left legacy link problems where people/SE's/etc had > previously linked to my site using the old links. > > To solve that problem, I simply used htaccess like so: > > RewriteEngine on > RewriteRule ^contact$ contact.php > > That meant that anyone who had a link to my previous contact, would be > redirected to my new contact.php. Everything is cool. > > However, I liked the way the url looked before. I liked: > > [1] http://sperling.com/contact > > instead of the new: > > [2] http://sperling.com/contact.php > > How can I get the url displayed to look like number [1] regardless if > the user adds ".php" or not? > > In other words, I know how to redirect the user to where I want, I > just don't know how to change the url the user see's -- how do you do > that? > > Thanks, > > tedd Tedd, You say you are motivated by "SEO" concerns. SEO is a dynamic field, with "rules" changing frequently but more importantly the rules are applied differently in different situations. Certain markets (certain search keywords and phrases) are handled by search engines differently than others. So when one thing seems "better for SEO" it might only be better for that particular situation... not in general. Often the rules follow competitiveness, with more competitive search markets getting the most restrictions. To my knowledge and in my experience is is not better to have /contact than to have /contact/index.php. Google considers those two forms of URL the same and has published that their algo is careful with /file and /file.ext and /file/index.ext, so that they can be sure they have the right "canonicalization" or root paths to the resource. They have a strong desire to eliminate duplicate routes to the same data in the search index because they don't want to index /contact as a resource, and also an identical /contact/index.php as a second resource showing the same content. . And of course, thinking competitively, that is precisely why I think it's best to have /contact/index.html. By presenting a clean, no-monkey-business URL structure, you may avoid the extra scrutiny (and all possible consequences of caution that may ensue if flags are triggered). Of course I would and use important and relevant keywords in the URL path, and usually I use a Front Controller and/or mod rewrite solution to actually deliver the URLs and web pages. But I keep the URLs as "standard" as possible. It is commonly observed that if you leave duplicate paths to the same resources, and Google doesn't properly detect it, you may suffer filtering such that one path gets included and others get filtered out. You may not exercise clean control over which one they keep, so if they keep "A" and you have tons of quality incoming back links to"B" which Google chose to filter out, you suffer. Certain very competitive SEOs may notice that you have left a duplicate path to a popular resource in place on your site, and link to it from a high page rank page in hope of getting the "other way in" indexed and ranked ahead of the more popular route. I'm not saying it works, but if you also have a mistake that causes a blip in the indexing and inclusion of your site, it can work as a competitive tactic to get your resource removed or demoted. This idea of maintaining unique routes within your site is known as "strict URLs" -- no two URLs go to the same exact content. When you use a front controller, it becomes important (difficult?) to ensure strict URLs because of the default behavior of Apache and all the possible incoming URLs. So if you want to deploy a PHP front controller for example, then plan your URL structure so that you properly redirect or 404 all routes except the one you intend to use as the strict URL to the resource. If you have a controller called "contact" and a method called "contact_us" then your URL is /contact/contact_us/ but you need to be sure that you also trap /contact/contact_us and 301 redirect it to /contact/contact_us/ if apache doesn't do it (and Apache won't do it if there is no actual folder in place on the web server). You also need to make sure your controller is "strict" so it doesn't accept /contact/whatever without throwing a 404 error (which apache wouldn't have done, because it passed everything to the front controller as a valid resource locator). With frameworks, I think it's the same old rules applied to a new, more complex yet elegant solution for web app development. Before it was really hard to manage everything. Now we have some great tools (like frameworks) for managing everything, but out of the box they seem to default to the same old behaviors and so, need optimizing. Of course your situation may be different than my experience. -=john andrews http://www.johnon.com/php-seo/ From rmarscher at beaffinitive.com Mon Mar 19 18:27:40 2007 From: rmarscher at beaffinitive.com (Rob Marscher) Date: Mon, 19 Mar 2007 18:27:40 -0400 Subject: [nycphp-talk] Howto create custom URLs In-Reply-To: <012d01c76a52$0d335940$6a01a8c0@gamebox> References: <00b201c76a35$0ce47c20$6a01a8c0@gamebox><45FEA202.2030900@optonline.net> <45FEA262.9080502@optonline.net> <012d01c76a52$0d335940$6a01a8c0@gamebox> Message-ID: <1991564D-D733-438A-8071-960D8A1A1506@beaffinitive.com> On Mar 19, 2007, at 2:11 PM, Ben Sgro ((ProjectSkyline)) wrote: > As you can see, its loading the file (index.php) 5 times for a > single request. (the hash, style, favion, png and favicon).. Seems like you are probably using relative paths to link to those resources... like url(pc_app_logo.png) vs an absolute path (/pc_release/ pc_app_logo.png) So those requests are going to http://192.168.1.102/pc_release/ index.php/style.css, http://192.168.1.102/pc_release/index.php/ favicon.ico, etc... That's the one minor inconvenience with using these types of 'friendly' urls. From rmarscher at beaffinitive.com Mon Mar 19 19:09:05 2007 From: rmarscher at beaffinitive.com (Rob Marscher) Date: Mon, 19 Mar 2007 19:09:05 -0400 Subject: [nycphp-talk] Related to "How to create custom URLs" In-Reply-To: References: Message-ID: <5F3F77A3-AA41-48BB-B41D-10E6C5215324@beaffinitive.com> On Mar 19, 2007, at 12:28 PM, tedd wrote: > [1] http://sperling.com/contact > instead of the new: > [2] http://sperling.com/contact.php > How can I get the url displayed to look like number [1] regardless > if the user adds ".php" or not? I was messing around with it and it seems the only way to get it to work without causing a circular redirect is to put your php code in a file named contact (without the .php) and get apache to process that with php -- I forget how to do this but seem to remember someone posting it on the list last summer. Then you can have almost the opposite rule of what you currently have: RewriteRule ^contact.php$ /contact [R] From lists at enobrev.com Mon Mar 19 19:27:12 2007 From: lists at enobrev.com (Mark Armendariz) Date: Mon, 19 Mar 2007 19:27:12 -0400 Subject: [nycphp-talk] Related to "How to create custom URLs" In-Reply-To: <5F3F77A3-AA41-48BB-B41D-10E6C5215324@beaffinitive.com> References: <5F3F77A3-AA41-48BB-B41D-10E6C5215324@beaffinitive.com> Message-ID: <58f08dcf0703191627t3ec154cco7bea50b1b859ef1b@mail.gmail.com> On 3/19/07, Rob Marscher wrote: > On Mar 19, 2007, at 12:28 PM, tedd wrote: > > [1] http://sperling.com/contact > > instead of the new: > > [2] http://sperling.com/contact.php > > How can I get the url displayed to look like number [1] regardless > > if the user adds ".php" or not? > > I was messing around with it and it seems the only way to get it to > work without causing a circular redirect is to put your php code in a > file named contact (without the .php) and get apache to process that > with php -- i suppose a simpler answer, though possibly not the one you want, might be to rename contact.php to something like contacts.php or contactpage.php so your redirect will point contact.php -> /contact/ and your rewrite will point /contact/ -> contactpage.php Mark From ben at projectskyline.com Mon Mar 19 21:56:28 2007 From: ben at projectskyline.com (Ben Sgro (ProjectSkyline)) Date: Mon, 19 Mar 2007 21:56:28 -0400 Subject: [nycphp-talk] Howto create custom URLs References: <00b201c76a35$0ce47c20$6a01a8c0@gamebox><45FEA202.2030900@optonline.net><45FEA262.9080502@optonline.net><012d01c76a52$0d335940$6a01a8c0@gamebox> <1991564D-D733-438A-8071-960D8A1A1506@beaffinitive.com> Message-ID: <02c201c76a92$f99a31b0$6a01a8c0@gamebox> Hello All, Good fact. Thanks Rob, guess I need to update that going forward. I'll let y'all know how it turns out. - Ben ----- Original Message ----- From: "Rob Marscher" To: "NYPHP Talk" Sent: Monday, March 19, 2007 6:27 PM Subject: Re: [nycphp-talk] Howto create custom URLs > On Mar 19, 2007, at 2:11 PM, Ben Sgro ((ProjectSkyline)) wrote: > >> As you can see, its loading the file (index.php) 5 times for a >> single request. (the hash, style, favion, png and favicon).. > > Seems like you are probably using relative paths to link to those > resources... > > like url(pc_app_logo.png) vs an absolute path (/pc_release/ > pc_app_logo.png) > > So those requests are going to http://192.168.1.102/pc_release/ > index.php/style.css, http://192.168.1.102/pc_release/index.php/ > favicon.ico, etc... > > That's the one minor inconvenience with using these types of > 'friendly' urls. > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From ken at secdat.com Tue Mar 20 08:22:33 2007 From: ken at secdat.com (Kenneth Downs) Date: Tue, 20 Mar 2007 08:22:33 -0400 Subject: [nycphp-talk] friendly urls (furls) and the gaps Message-ID: <45FFD209.9060700@secdat.com> Let's say you use a friendly url (furl) system so that a url looks like this: www.example.com/furl/parm/value/parm/value Because we are faking a nesting of folders and files here, will a search bot expect to be able to find: www.example.com/furl/parm/index.html? and www.example.com/furl/parm/value/index.html? From 1j0lkq002 at sneakemail.com Tue Mar 20 12:51:16 2007 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Tue, 20 Mar 2007 09:51:16 -0700 Subject: [nycphp-talk] friendly urls (furls) and the gaps In-Reply-To: <45FFD209.9060700@secdat.com> References: <45FFD209.9060700@secdat.com> Message-ID: <30532-13397@sneakemail.com> Kenneth Downs ken-at-secdat.com |nyphp dev/internal group use| wrote: > Let's say you use a friendly url (furl) system so that a url looks > like this: > > www.example.com/furl/parm/value/parm/value > > Because we are faking a nesting of folders and files here, will a > search bot expect to be able to find: > > www.example.com/furl/parm/index.html? > > and > > www.example.com/furl/parm/value/index.html? > I have not seen any mention of this by search engines (or their human representatives). I don't think you are "faking" anything, though. It's a valid web resource, right? Who said it had to represent files and folders? Lately it seems that they do some poking around when you do this: www.example.com/furl/parm/value/parm/value to try and determine the best way to grab that resource (slash or no slash) but the name is just "value". Google has said it uses your own internal linking styles as clue for your site, and also how others link to you. A quick check of Google shows this page ranking well: http://www.phpwact.org/pattern/model_view_controller with this snippet: Model View *Controller* [Web Application Component Toolkit] Application *Controller* Controls the flow of logic of a single application. Because the popular MVC framework Java Struts from a *PHP* Perspective implements a *...* www.*php*wact.org/pattern/model_view_*controller* - 40k - Cached - Similar pages A hit to a trailing-slash-added version gives a 200ok but emptyish template page, BUT it is in the Google index with this snippet: Model View Controller [Web Application Component Toolkit] You are here: Web Application Component Toolkit ? pattern ? Model View Controller. Table of Contents. Model View Controller. Model. Passive Model *...* www.phpwact.org/pattern/model_view_controller - 40k - Cached - Similar pages Notice that Google lists that trailing slash page with a URL that has no trailing slash. That looks like a double listing of the no-trailing-slash URL, with two snippets. The contrived resource (with index.html) does the same (200ok but empty template page): http://www.phpwact.org/pattern/model_view_controller/index.php A search of Google for that contrived page http://www.phpwact.org/pattern/model_view_controller/index.php shows "no such page". So? Google says slash and no trailing slash are the same resource as no trailing slash, but represents the two as different content in the index (which they are). That suggests that Google is confused about that resource. A scan of the rest of that results set shows some URLs have trailing slashes, some do not : http://www.google.com/search?q=php+controller&hl=en&start=10&sa=N What happens if I put a page on my site and 302 redirect to those pages? Will Google take their content and index it as belonging to my site? What if I put content at that empty template page, which is diferent content than the no-trailing-slash URL. Will Google still list both pages as going to the no-trailing-slash URL? If one page is on red widgets and the other on reen baboons, will it effect relevance ranking of either page? That's for SEO homework. -=john -- ------------------------------------------------------------- Your web server traffic log file is the most important source of web business information available. Do you know where your logs are right now? Do you know who else has access to your log files? When they were last archived? Where those archives are? --John Andrews Competitive Webmaster and SEO Blogging at http://www.johnon.com From mba2000 at ioplex.com Tue Mar 20 18:32:46 2007 From: mba2000 at ioplex.com (Michael B Allen) Date: Tue, 20 Mar 2007 18:32:46 -0400 Subject: [nycphp-talk] PHP on a Corporate IntrAnet w/ AD Message-ID: <20070320183246.43a89a94.mba2000@ioplex.com> Hi All, I have just released a PHP extension that should interest people using Linux in a corporate environment. I hope you don't mind the proprietary plug here but it is Free (as in beer) for up to 25 users. If you remember me from the PHP conference this release is MUCH more advanced over what we were pitching last year. Basically the extension adds everything one would need to integrate Linux IntrAnet sites into Windows-centric networks (i.e. large corporate networks). The following is a high level outline and description of Plexcel's features. * Active Directory Single Sign-On (SSO) * Explicit Logon with a Username and Password * Full Delegation Support * Authentication from Web Tier to other Servers * Add, modify and delete users, groups and group members * Advanced LDAP API o Access accounts with wide variety of names o Easy binding strings w/o hostnames or base DNs o RFC 2255 style LDAP URLs o Create, modify and delete objects o Attribute intelligence o Automatic attribute conversions * Fast Script-Level Access Control and ACLs * Password Setting * Directory Location Services * Easy Installation - No setup on Windows side required * I18N - All functions are fully internationalized * Generate service keytab files * Highly compatible with Microsoft products Some of these features you can piece together using existing products like mod_auth_kerb and PHP's LDAP API but this is trivial to use by comparison and it has a number of things that you can't do like setting passwords, script level access control, looking up accounts with names like 'NYC\Managers' instead of long DNs and much more. It's easier to use Plexcel than it is VBScript. Anyway, if you're interested, we're trying to get people to try the beta. This was just released last night so I have no feedback yet but you can grab it here (no registration required): http://www.ioplex.com/ Also, I'm 50 minutes from WTC Station or Penn so locals will get four star support for peanuts. I'm pretty sure I'll be at the LUG meeting tomorrow too if you have any questions. Thanks, Mike -- Michael B Allen PHP Active Directory Kerberos SSO http://www.ioplex.com/ From codebowl at gmail.com Tue Mar 20 18:39:24 2007 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 20 Mar 2007 18:39:24 -0400 Subject: [nycphp-talk] PHP on a Corporate IntrAnet w/ AD In-Reply-To: <20070320183246.43a89a94.mba2000@ioplex.com> References: <20070320183246.43a89a94.mba2000@ioplex.com> Message-ID: <8d9a42800703201539k758fa3b9h810de20c9f2d6255@mail.gmail.com> hmm wonder if there is anything like this for *nix Good work on this btw looks like it will be of use to people who run windows active directory. -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ Blog: http://www.josephcrawford.com/ 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mba2000 at ioplex.com Tue Mar 20 21:25:32 2007 From: mba2000 at ioplex.com (Michael B Allen) Date: Tue, 20 Mar 2007 21:25:32 -0400 Subject: [nycphp-talk] PHP on a Corporate IntrAnet w/ AD In-Reply-To: <8d9a42800703201539k758fa3b9h810de20c9f2d6255@mail.gmail.com> References: <20070320183246.43a89a94.mba2000@ioplex.com> <8d9a42800703201539k758fa3b9h810de20c9f2d6255@mail.gmail.com> Message-ID: <20070320212532.69b03829.mba2000@ioplex.com> On Tue, 20 Mar 2007 18:39:24 -0400 "Joseph Crawford" wrote: > hmm wonder if there is anything like this for *nix It is for *nix although at the moment we only have binaries for 32 bit / x86 / Linux. We could do AIX or x64 or Solaris or whatever but currently there's some confusion as to how best to compile and test libs for other systems. > Good work on this btw looks like it will be of use to people who run windows > active directory. Well currently it *only* works in an AD environment. At some point we may sit down and try to figure out how to parameterize all of the possible differences in LDAP schemas, how to query for groups, how to abstract the concept of a Windows SID, etc but right now we are focused on AD since that is almost exclusively what the Megacorps are using. Mike -- Michael B Allen PHP Active Directory Kerberos SSO http://www.ioplex.com/ From arzala at gmail.com Wed Mar 21 01:20:26 2007 From: arzala at gmail.com (Anirudh Zala) Date: Wed, 21 Mar 2007 10:50:26 +0530 Subject: [nycphp-talk] PHP + UTF-8 + mb_string issue. Message-ID: <200703211050.26510.arzala@gmail.com> Hello Everybody, While building a truly multilingual project, I am running into an interesting problem with php5 + utf-8 + mb_string. Please study below table carefully. I have taken 1 word in 3 different languages English, Finnish (of Finland country) and Gujarati (of India country) to test PHP's Unicode character set handling with single and multibyte strings using mb_string extension. Word appearing on left of "=" sign is actual string whose length is to be counted. What I have tried here is to count length of word in each language. For English and Finnish I have got correct results but for Gujarati language it seems that mb_string(?) is not working properly. ======================================================= zala = 1 word; 4 bytes; 4 characters (z, a, l, a); 4 key-strokes (z, a, l, a); "strlen" should be 4 and is 4 also. z?l? = 1 word; 4 bytes; 4 characters (z, ?, l, ?); 4 key-strokes (z, ?, l, ?); "strlen" should be 4 and is 4 also. ???? = 1 word; 4 bytes; 2 characters (??, ??); 4 key-strokes (?, ?, ?, ?); "strlen" should be 2 but is 4. ======================================================= Question is why PHP is not able to count length of given string in practical way. I am aware that current PHP versions are not aware of string, instead they just deal with bytes. In that case output is correct but this is not practical solution as length of word in Gujarati language is only "2" (In Indic languages, we have primary characters like "?" and secondary characters like "?", but there is not value of secondary characters without primary characters) and not "4" even if it requires 4 bytes to store data. I am sure that I am not missing any settings to be done at server, php or at client level to work this correctly. English and Finnish languages are different languages but they are part of same character set (i.e Latin) and their glyph is also same, while Gujarati language has different character set and it's glyph is also different. But this should not create this problem if "mb_string" is capable to handle strings in proper way. Thanks, Anirudh Zala From mba2000 at ioplex.com Wed Mar 21 02:06:41 2007 From: mba2000 at ioplex.com (Michael B Allen) Date: Wed, 21 Mar 2007 02:06:41 -0400 Subject: [nycphp-talk] PHP + UTF-8 + mb_string issue. In-Reply-To: <200703211050.26510.arzala@gmail.com> References: <200703211050.26510.arzala@gmail.com> Message-ID: <20070321020641.6a98ed04.mba2000@ioplex.com> On Wed, 21 Mar 2007 10:50:26 +0530 Anirudh Zala wrote: > Hello Everybody, > > While building a truly multilingual project, I am running into an interesting > problem with php5 + utf-8 + mb_string. > ____________ = 1 word; 4 bytes; 2 characters (______, ______); 4 key-strokes (___, ___, ___, ___); > "strlen" should be 2 but is 4. Generally the libc-like functions exhibit libc behavior so 4 is the correct answer. Is mb_strlen not suitable for some reason? You have to use mb_* functions whenever you perform character-wise operations as opposed to byte-wise (and that assumes you're running in the UTF-8 locale). Mike -- Michael B Allen PHP Active Directory Kerberos SSO http://www.ioplex.com/ From arzala at gmail.com Wed Mar 21 02:39:45 2007 From: arzala at gmail.com (Anirudh Zala) Date: Wed, 21 Mar 2007 12:09:45 +0530 Subject: [nycphp-talk] PHP + UTF-8 + mb_string issue. Message-ID: <200703211209.45961.arzala@gmail.com> Subject: Re: [nycphp-talk] PHP + UTF-8 + mb_string issue. Date: Wednesday 21 March 2007 11:48 From: Anirudh Zala To: Michael B Allen On Wednesday 21 March 2007 11:36, you wrote: > On Wed, 21 Mar 2007 10:50:26 +0530 > > Anirudh Zala wrote: > > Hello Everybody, > > > > While building a truly multilingual project, I am running into an > > interesting problem with php5 + utf-8 + mb_string. > > > > > ____________ = 1 word; 4 bytes; 2 characters (______, ______); 4 > > key-strokes (___, ___, ___, ___); "strlen" should be 2 but is 4. > > Generally the libc-like functions exhibit libc behavior so 4 is the > correct answer. > > Is mb_strlen not suitable for some reason? You have to use mb_* functions > whenever you perform character-wise operations as opposed to byte-wise > (and that assumes you're running in the UTF-8 locale). > > Mike I am using mb_* functions and UTF-8 as locale. Everything is transparently processed in UTF-8 format only. I have tested same thing using "iconv" extension but same results. Looks like it is the behavior of php + mb_*. Thanks Anirudh Zala (30% of Internet resources, used to deliver web-pages, are wasted by unnecessary tabs and spaces.) From arzala at gmail.com Wed Mar 21 02:40:24 2007 From: arzala at gmail.com (Anirudh Zala) Date: Wed, 21 Mar 2007 12:10:24 +0530 Subject: [nycphp-talk] PHP + UTF-8 + mb_string issue. Message-ID: <200703211210.24558.arzala@gmail.com> Subject: Re: [nycphp-talk] PHP + UTF-8 + mb_string issue. Date: Wednesday 21 March 2007 12:07 From: Anirudh Zala To: Michael B Allen On Wednesday 21 March 2007 11:49, you wrote: > On Wed, 21 Mar 2007 11:48:20 +0530 > > Anirudh Zala wrote: > > On Wednesday 21 March 2007 11:36, you wrote: > > > On Wed, 21 Mar 2007 10:50:26 +0530 > > > > > > Anirudh Zala wrote: > > > > Hello Everybody, > > > > > > > > While building a truly multilingual project, I am running into an > > > > interesting problem with php5 + utf-8 + mb_string. > > > > > > > > > > > > > ____________ = 1 word; 4 bytes; 2 characters (______, ______); 4 > > > > key-strokes (___, ___, ___, ___); "strlen" should be 2 but is 4. > > > > > > Generally the libc-like functions exhibit libc behavior so 4 is the > > > correct answer. > > > > > > Is mb_strlen not suitable for some reason? You have to use mb_* > > > functions whenever you perform character-wise operations as opposed to > > > byte-wise (and that assumes you're running in the UTF-8 locale). > > > > > > Mike > > > > I am using mb_* functions and UTF-8 as locale. Everything is > > transparently processed in UTF-8 format only. I have tested same thing > > using "iconv" extension but same results. Looks like it is the behavior > > of php + mb_*. > > I don't understand. You used mb_strlen and got 4? If so, what are the > 4 bytes that make up the 2 characters exactly? > > Mike It is because length of string should "2" in actual way when it is used in communication, writing, speaking etc. But PHP needs 4 bytes to store it hence giving length as "4". As I told in original mail that Indic languages have primary (like ?, ?) and secondary characters (like ?) to create different meaning but secondary characters should not be counted while calculating length of word (even if it requires additional byte to store). This is the issue. -- Anirudh Zala (30% of Internet resources, used to deliver web-pages, are wasted by unnecessary tabs and spaces.) From arzala at gmail.com Wed Mar 21 04:18:06 2007 From: arzala at gmail.com (Anirudh Zala) Date: Wed, 21 Mar 2007 13:48:06 +0530 Subject: [nycphp-talk] Re: PHP + UTF-8 + mb_string issue. Message-ID: <200703211348.06083.arzala@gmail.com> Here "mb_string" means using mbstring extension's functions instead of traditional PHP string functions. ---------- Forwarded Message ---------- Subject: PHP + UTF-8 + mb_string issue. Date: Wednesday 21 March 2007 10:50 From: Anirudh Zala To: "Talk, NYPHP" Hello Everybody, While building a truly multilingual project, I am running into an interesting problem with php5 + utf-8 + mb_string. Please study below table carefully. I have taken 1 word in 3 different languages English, Finnish (of Finland country) and Gujarati (of India country) to test PHP's Unicode character set handling with single and multibyte strings using mb_string extension. Word appearing on left of "=" sign is actual string whose length is to be counted. What I have tried here is to count length of word in each language. For English and Finnish I have got correct results but for Gujarati language it seems that mb_string(?) is not working properly. ======================================================= zala = 1 word; 4 bytes; 4 characters (z, a, l, a); 4 key-strokes (z, a, l, a); "strlen" should be 4 and is 4 also. z?l? = 1 word; 4 bytes; 4 characters (z, ?, l, ?); 4 key-strokes (z, ?, l, ?); "strlen" should be 4 and is 4 also. ???? = 1 word; 4 bytes; 2 characters (??, ??); 4 key-strokes (?, ?, ?, ?); "strlen" should be 2 but is 4. ======================================================= Question is why PHP is not able to count length of given string in practical way. I am aware that current PHP versions are not aware of string, instead they just deal with bytes. In that case output is correct but this is not practical solution as length of word in Gujarati language is only "2" (In Indic languages, we have primary characters like "?" and secondary characters like "?", but there is not value of secondary characters without primary characters) and not "4" even if it requires 4 bytes to store data. I am sure that I am not missing any settings to be done at server, php or at client level to work this correctly. English and Finnish languages are different languages but they are part of same character set (i.e Latin) and their glyph is also same, while Gujarati language has different character set and it's glyph is also different. But this should not create this problem if "mb_string" is capable to handle strings in proper way. Thanks, Anirudh Zala ------------------------------------------------------- -- Anirudh Zala (30% of Internet resources, used to deliver web-pages, are wasted by unnecessary tabs and spaces.) From lists at enobrev.com Wed Mar 21 06:35:37 2007 From: lists at enobrev.com (Mark Armendariz) Date: Wed, 21 Mar 2007 06:35:37 -0400 Subject: [nycphp-talk] PHP + UTF-8 + mb_string issue. In-Reply-To: <200703211050.26510.arzala@gmail.com> References: <200703211050.26510.arzala@gmail.com> Message-ID: <000301c76ba4$aac27df0$6400a8c0@enobrev> > -----Original Message----- > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Anirudh Zala > > Question is why PHP is not able to count length of given > string in practical way. I am aware that current PHP versions > are not aware of string, instead they just deal with bytes. > In that case output is correct but this is not practical > solution as length of word in Gujarati language is only "2" > (In Indic languages, we have primary characters like "?" and > secondary characters like "?", but there is not value of > secondary characters without primary > characters) and not "4" even if it requires 4 bytes to store data. It's my understanding that the mbstring extension doesn't actually replace php functions. If you're using the extension, you'll have to use the mb_string functions, (mb_strlen in this case). On another note, something to use if you don't / can't use the extensions: http://dev.splitbrain.org/view/darcs/dokuwiki/inc/utf8.php I grabbed this while doing research for a project I haven't started yet - so I haven't had the chance to try it out, but it comes well recommended. Specific to your cause (from the link): /** * Unicode aware replacement for strlen() * * utf8_decode() converts characters that are not in ISO-8859-1 * to '?', which, for the purpose of counting, is alright - It's * even faster than mb_strlen. * * @author * @see strlen() * @see utf8_decode() */ function utf8_strlen($string){ return strlen(utf8_decode($string)); } I hope that works for you. Mark Armendariz From arzala at gmail.com Wed Mar 21 09:19:20 2007 From: arzala at gmail.com (Anirudh Zala) Date: Wed, 21 Mar 2007 18:49:20 +0530 Subject: [nycphp-talk] PHP + UTF-8 + mb_string issue. In-Reply-To: <000301c76ba4$aac27df0$6400a8c0@enobrev> References: <200703211050.26510.arzala@gmail.com> <000301c76ba4$aac27df0$6400a8c0@enobrev> Message-ID: <200703211849.20842.arzala@gmail.com> On Wednesday 21 March 2007 16:05, Mark Armendariz wrote: > > -----Original Message----- > > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Anirudh Zala > > > > Question is why PHP is not able to count length of given > > string in practical way. I am aware that current PHP versions > > are not aware of string, instead they just deal with bytes. > > In that case output is correct but this is not practical > > solution as length of word in Gujarati language is only "2" > > (In Indic languages, we have primary characters like "?" and > > secondary characters like "?", but there is not value of > > secondary characters without primary > > characters) and not "4" even if it requires 4 bytes to store data. > > It's my understanding that the mbstring extension doesn't actually replace > php functions. If you're using the extension, you'll have to use the > mb_string functions, (mb_strlen in this case). It does if you set directive "mbstring.func_overload=7" in php.ini or in server configuration file. > > On another note, something to use if you don't / can't use the extensions: > http://dev.splitbrain.org/view/darcs/dokuwiki/inc/utf8.php > > I grabbed this while doing research for a project I haven't started yet - > so I haven't had the chance to try it out, but it comes well recommended. > > Specific to your cause (from the link): > > /** > * Unicode aware replacement for strlen() > * > * utf8_decode() converts characters that are not in ISO-8859-1 > * to '?', which, for the purpose of counting, is alright - It's > * even faster than mb_strlen. > * > * @author > * @see strlen() > * @see utf8_decode() > */ > function utf8_strlen($string){ > return strlen(utf8_decode($string)); > } > I throughout use UTF-8 encoding in input, processing, storing, output data hence data is already in UTF-8 format. I have found that it is UTF-8 encoding that it is not properly supporting Indic languages as it has been designed so. My tested word requires 4 bytes to store in UTF-8 encoding hence in that way php + mbstring works properly. So I have concluded that it is not anymore php and/or mbstring issue as it happens same when I try to calculate length using SQL or using any other scripting language. In Indic languages, there are separate alphabats for vowels and consonants. There is grammatical rule that when any vowel is used alone then count it's length as 1 but when it is used along with any consonant then count only consonant. That is how languages are used in communication, writing, reading etc. But while accommodating characters in UTF-8 encoding, developers either thought in different way or they have been told to do so. > > > I hope that works for you. > > Mark Armendariz > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php Thanks for suggestions. Anirudh Zala (30% of Internet resources, used to deliver web-pages, are wasted by unnecessary tabs and spaces.) From ps at sun-code.com Thu Mar 22 10:41:33 2007 From: ps at sun-code.com (Peter Sawczynec) Date: Thu, 22 Mar 2007 10:41:33 -0400 Subject: [nycphp-talk] [WAY OT] Windoze to Windows Vista Ultimate Message-ID: <002301c76c90$333748a0$99a5d9e0$@com> I thought this could be helpful for busy people who could use this little mojo that includes some info for those of you that may need to do Vista at some point probably for business purposes. This may save you some time and reduce your googling and reading around. This covers an Windows Ultimate Upgrade from Win XP SP2. Older Win will not upgrade to Ultimate. Why Vista Ultimate? Because this is the only Vista version that has Remote Connections, Networking, Hard Drive encryption, and the Media Center with CD/DVD rip and burn capability and new Aero look built in and you will likely need all these features. 1) Download and Use the Win Vista Upgrade Advisor It does a valid job of isolating your hardware and software incompatibilities. 2) Issues to Address in Advance While you are still in Win XP a) Update your BIOS, some drivers, and maybe patch some software. (Other software you will update after Vista upgrade.) b) Norton and Windows Firewall Incompatibility Issue is solved. Norton now has 2007 Vista-ready versions for download on their web site. Upgrade Norton before Windows. 3) Backup Data as Needed 4) Run the Vista Upgrade. Takes several hours. Total time, steps 1 - 4 above. Approx. 12 hours spread over two weekend days. Potential Vista Pitfalls to Note 1) Outlook Legacy Passwords Issue Outlook versions older than the most recent Outlook 2007, lose all email account passwords every time you close Outlook. New Vista security schema pre empts the old Outlook saving method and breaks it. You will likely need, at least, to upgrade to Outlook 2007. 2) Outlook 2007 Install Issue On original install, Outlook 2007 from store bought DVD failed with dll not found error. Rerun Outlook install in Repair mode to get to success. All your Contacts, Calendar, Emails, Accounts and even Rules are preserved. New interface, one box search and Email/Calendar/Task unification are snazzy enough and actually helpful. 3) Radeon Display Drivers Radeon has new Catalyst 7.2 driver set and Control Panel only on their web site for download. All other older version will likely muck up strangely. Even the new Catalyst 7,2 for Vista forgets position of dual monitor configuration with every reboot. This will be corrected in Catalyst 7.3 4) Some Notable Remarks The entire interface is very DHTML and AJAX-like. So many tool tips, popups, rollovers, pulldowns, right-clicks, sort options, layers swapping, shadows and semi-transparency effects that are meant to assist in navigation and menu selection. It could bother you. There are a lot of new naming conventions, new locations of familiar tools and so many new ideas that you will need at least 3 hours (and probably at least one ref book) to get it all in and be situated. A new visual menu interface called the Ribbons toolbars system replaces all regular File Save/Print menu systems that you used to know and this may also jolt you at first. The new Windows Explorer file management, navigation/sorting and the one-box universal Search features are tasty. All a little weird at first, but genuinely more flexible. If you move around a lot, all day, working on a lot of separate items, in the long run Vista will help you. You can apply your own Meta data to anything (files, images, folders, emails) and then do single Search to find all in one result set. And sort results in Windows Explorer by meta, author, date, recent usage and save these views/searches. New Picture Gallery tool, grabs your incoming digital media, allows you to do custom renaming and apply custom meta (singularly, in bulk or you can standardize your transfer style). Images and all media can be infinitely sorted, categorized and viewed especially by meta. All my major apps came over with no issues: Photoshop, Dreamweaver, and older Office apps except Outlook. Pretty much every registry change performed by any app must be approved by you. This is actually cool. A lot of stuff that you used to not be able to adjust, turn off, change, move or regulate, you now can. Warmest regards, Peter Sawczynec Technology Dir. Sun-code.com Web related services 646.316.3678 ps at sun-code.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenzolist at counterfolk.com Thu Mar 22 11:04:42 2007 From: kenzolist at counterfolk.com (Ken) Date: Thu, 22 Mar 2007 11:04:42 -0400 Subject: [nycphp-talk] [WAY OT] Windoze to Windows Vista Ultimate Message-ID: <4.33247339725494.154.675586223602@1.00012572623815> At 10:41 AM 3/22/2007 -0400, Peter Sawczynec wrote: >I thought this could be helpful for busy people who could use this little mojo that includes >some info for those of you that may need to do Vista at some point probably for business purposes. But make sure to know what pit you're leaping into should you decide to install Vista: Vista - Arrogance & Stupidity: http://aaxnet.com/editor/edit043.html Windows Vista - Broken by Design: http://aaxnet.com/editor/edit042.html A Cost Analysis of Windows Vista Content Protection: http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.html - Ken From vtbludgeon at gmail.com Thu Mar 22 11:56:58 2007 From: vtbludgeon at gmail.com (David Mintz) Date: Thu, 22 Mar 2007 11:56:58 -0400 Subject: [nycphp-talk] PEAR DB vs successors Message-ID: <721f1cc50703220856h1e1a27cl2692672e798d395b@mail.gmail.com> A couple of naive questions here. I hear PEAR::DB is deprecated in favor of MDB2. If that's so, * does that mean we should definitely use MDB2 instead of DB in new projects that we undertake? * what is MDB there for? * DB had a nice autoExecute(), but its counterpart in MDB2 requires you to tell it the datatype of each parameter. If I intend to use MySQL and not planning to support other backends (except maybe something like SQLite), is there any reason not to lie to it and say that everything is 'text'? My motivation is Laziness, shorter code, less hard-coded SQL, e.g.: $db->autoExecute($this->table, $this->data, DB_AUTOQUERY_UPDATE, $where ); * Suppose you like the PEAR::Auth module. It supports DB but not its successors. Write your own storage container that wraps MDB2? Is it worth it? Thanks, -- David Mintz http://davidmintz.org/ En Nueva York el tr?nsito de la belleza a la desolaci?n sucede siempre expeditivamente, como si el principio universal de m?xima eficiencia hubiera aconsejado la supresi?n de gradaciones intermedias. -- Antonio Mu?oz Molina, Ventanas de Manhattan -------------- next part -------------- An HTML attachment was scrubbed... URL: From rick at napalmriot.com Thu Mar 22 16:10:13 2007 From: rick at napalmriot.com (Rick) Date: Thu, 22 Mar 2007 13:10:13 -0700 Subject: [nycphp-talk] friendly urls (furls) and the gaps In-Reply-To: <30532-13397@sneakemail.com> References: <45FFD209.9060700@secdat.com> <30532-13397@sneakemail.com> Message-ID: <4602E2A5.4080901@napalmriot.com> It's the webserver that is configured to look for default-index files, such as index.html, and not search engines. Search engines only attempt to access valid resources, such as the "fake" resource you mentioned (which is quite valid and not fake at all). -- Rick http://www.sensual.jp inforequest wrote: > Kenneth Downs ken-at-secdat.com |nyphp dev/internal group use| wrote: > >> Let's say you use a friendly url (furl) system so that a url looks >> like this: >> >> www.example.com/furl/parm/value/parm/value >> >> Because we are faking a nesting of folders and files here, will a >> search bot expect to be able to find: >> >> www.example.com/furl/parm/index.html? >> >> and >> >> www.example.com/furl/parm/value/index.html? >> > I have not seen any mention of this by search engines (or their human > representatives). > > I don't think you are "faking" anything, though. It's a valid web > resource, right? Who said it had to represent files and folders? > > Lately it seems that they do some poking around when you do this: > > www.example.com/furl/parm/value/parm/value > > to try and determine the best way to grab that resource (slash or no > slash) but the name is just "value". Google has said it uses your > own internal linking styles as clue for your site, and also how others > link to you. > > A quick check of Google shows this page ranking well: > http://www.phpwact.org/pattern/model_view_controller > with this snippet: > > > Model View *Controller* [Web Application Component Toolkit] > > > Application *Controller* Controls the flow of logic of a single > application. Because the popular MVC framework Java Struts from a > *PHP* Perspective implements a *...* > www.*php*wact.org/pattern/model_view_*controller* - 40k - Cached > > - Similar pages > > > > A hit to a trailing-slash-added version gives a 200ok but emptyish > template page, BUT it is in the Google index with this snippet: > > > Model View Controller [Web Application Component Toolkit] > > > You are here: Web Application Component Toolkit ? pattern ? Model View > Controller. Table of Contents. Model View Controller. Model. Passive > Model *...* > www.phpwact.org/pattern/model_view_controller - 40k - Cached > > - Similar pages > > > > Notice that Google lists that trailing slash page with a URL that has > no trailing slash. That looks like a double listing of the > no-trailing-slash URL, with two snippets. > > The contrived resource (with index.html) does the same (200ok but > empty template page): > http://www.phpwact.org/pattern/model_view_controller/index.php > > A search of Google for that contrived page > http://www.phpwact.org/pattern/model_view_controller/index.php shows > "no such page". > > So? Google says slash and no trailing slash are the same resource as > no trailing slash, but represents the two as different content in the > index (which they are). That suggests that Google is confused about > that resource. A scan of the rest of that results set shows some URLs > have trailing slashes, some do not : > http://www.google.com/search?q=php+controller&hl=en&start=10&sa=N > > What happens if I put a page on my site and 302 redirect to those > pages? Will Google take their content and index it as belonging to my > site? What if I put content at that empty template page, which is > diferent content than the no-trailing-slash URL. Will Google still > list both pages as going to the no-trailing-slash URL? If one page is > on red widgets and the other on reen baboons, will it effect relevance > ranking of either page? That's for SEO homework. > > -=john > From rick at napalmriot.com Thu Mar 22 16:24:34 2007 From: rick at napalmriot.com (Rick) Date: Thu, 22 Mar 2007 13:24:34 -0700 Subject: [nycphp-talk] PEAR DB vs successors In-Reply-To: <721f1cc50703220856h1e1a27cl2692672e798d395b@mail.gmail.com> References: <721f1cc50703220856h1e1a27cl2692672e798d395b@mail.gmail.com> Message-ID: <4602E602.1050105@napalmriot.com> David Mintz wrote: > A couple of naive questions here. I hear PEAR::DB is deprecated in > favor of MDB2. If that's so, > > * does that mean we should definitely use MDB2 instead of DB in new > projects that we undertake? I would use MDB2 over DB personally, or switch to PDO. > * what is MDB there for? It was the version before MDB2, and is obsolete. > > * DB had a nice autoExecute(), but its counterpart in MDB2 requires > you to tell it the datatype of each parameter. If I intend to use > MySQL and not planning to support other backends (except maybe > something like SQLite), is there any reason not to lie to it and say > that everything is 'text'? My motivation is Laziness, shorter code, > less hard-coded SQL, e.g.: Laziness is a great motivator in many cases; this is quite possibly the worst though. If you are trying to "work around" prepared queries, then don't use them. Otherwise, use them right. :p So yes, there's plenty of reasons not to lie to it and say everything is 'text,' especially if everything _isn't_ text. > > $db->autoExecute($this->table, $this->data, DB_AUTOQUERY_UPDATE, > $where ); > > * Suppose you like the PEAR::Auth module. It supports DB but not its > successors. Write your own storage container that wraps MDB2? Is it > worth it? Well if you like PEAR::Auth and plan to switch to MDB2, then it would likely be worth it I suppose. > > Thanks, > > -- > David Mintz > http://davidmintz.org/ From rick at napalmriot.com Thu Mar 22 16:35:35 2007 From: rick at napalmriot.com (Rick) Date: Thu, 22 Mar 2007 13:35:35 -0700 Subject: [nycphp-talk] PEAR DB vs successors In-Reply-To: <4602E602.1050105@napalmriot.com> References: <721f1cc50703220856h1e1a27cl2692672e798d395b@mail.gmail.com> <4602E602.1050105@napalmriot.com> Message-ID: <4602E897.6040009@napalmriot.com> Rick wrote: > David Mintz wrote: >> >> >> * Suppose you like the PEAR::Auth module. It supports DB but not its >> successors. Write your own storage container that wraps MDB2? Is it >> worth it? > Well if you like PEAR::Auth and plan to switch to MDB2, then it would > likely be worth it I suppose. I just took a look at http://pear.php.net/package/Auth and it looks to be claiming functionality with MDB2, are you sure you are looking at the latest version of the Auth package? From vtbludgeon at gmail.com Thu Mar 22 16:45:23 2007 From: vtbludgeon at gmail.com (David Mintz) Date: Thu, 22 Mar 2007 16:45:23 -0400 Subject: [nycphp-talk] PEAR DB vs successors In-Reply-To: <4602E602.1050105@napalmriot.com> References: <721f1cc50703220856h1e1a27cl2692672e798d395b@mail.gmail.com> <4602E602.1050105@napalmriot.com> Message-ID: <721f1cc50703221345l544454acj77326bae4deb599@mail.gmail.com> On 3/22/07, Rick wrote: > > > > > > * DB had a nice autoExecute(), but its counterpart in MDB2 requires > > you to tell it the datatype of each parameter. If I intend to use > > MySQL and not planning to support other backends (except maybe > > something like SQLite), is there any reason not to lie to it and say > > that everything is 'text'? My motivation is Laziness, shorter code, > > less hard-coded SQL, e.g.: > Laziness is a great motivator in many cases; this is quite possibly the > worst though. If you are trying to "work around" prepared queries, then > don't use them. Otherwise, use them right. :p So yes, there's plenty > of reasons not to lie to it and say everything is 'text,' especially if > everything _isn't_ text. > > Thanks for the input. I got nothing against prepared queries at all. I was simply thinking it's nice not to have to examine every key=>value pair in the $this->data of my example, and figure out the data type of each value. And since MySQL lets you quote numeric data types.... I got spoiled by my old friend DB's autoExecute() -- David Mintz http://davidmintz.org/ En Nueva York el tr?nsito de la belleza a la desolaci?n sucede siempre expeditivamente, como si el principio universal de m?xima eficiencia hubiera aconsejado la supresi?n de gradaciones intermedias. -- Antonio Mu?oz Molina, Ventanas de Manhattan -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtbludgeon at gmail.com Thu Mar 22 17:00:14 2007 From: vtbludgeon at gmail.com (David Mintz) Date: Thu, 22 Mar 2007 17:00:14 -0400 Subject: [nycphp-talk] PEAR DB vs successors In-Reply-To: <4602E897.6040009@napalmriot.com> References: <721f1cc50703220856h1e1a27cl2692672e798d395b@mail.gmail.com> <4602E602.1050105@napalmriot.com> <4602E897.6040009@napalmriot.com> Message-ID: <721f1cc50703221400i57bd494fj9616fd0a35109c17@mail.gmail.com> On 3/22/07, Rick wrote: > > > > Rick wrote: > > David Mintz wrote: > >> > >> > >> * Suppose you like the PEAR::Auth module. It supports DB but not its > >> successors. Write your own storage container that wraps MDB2? Is it > >> worth it? > > Well if you like PEAR::Auth and plan to switch to MDB2, then it would > > likely be worth it I suppose. > > I just took a look at http://pear.php.net/package/Auth and it looks to > be claiming functionality with MDB2, are you sure you are looking at the > latest version of the Auth package? Arg, shame on me! I should have read the docs (AGAIN) before speaking up. Meanwhile, I *think* I have discovered that the mysqli driver does not really support unbuffered queries, which I need sometimes. I tried it and my script just quit without a word of explanation; I disabled it and it ran fine. Maybe I oughta write those parts with the mysqli_XXX API -- David Mintz http://davidmintz.org/ En Nueva York el tr?nsito de la belleza a la desolaci?n sucede siempre expeditivamente, como si el principio universal de m?xima eficiencia hubiera aconsejado la supresi?n de gradaciones intermedias. -- Antonio Mu?oz Molina, Ventanas de Manhattan -------------- next part -------------- An HTML attachment was scrubbed... URL: From 1j0lkq002 at sneakemail.com Thu Mar 22 20:44:02 2007 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Thu, 22 Mar 2007 17:44:02 -0700 Subject: [nycphp-talk] friendly urls (furls) and the gaps In-Reply-To: <4602E2A5.4080901@napalmriot.com> References: <45FFD209.9060700@secdat.com> <30532-13397@sneakemail.com> <4602E2A5.4080901@napalmriot.com> Message-ID: <29033-74364@sneakemail.com> Rick rick-at-napalmriot.com |nyphp dev/internal group use| wrote: > It's the webserver that is configured to look for default-index files, > such as index.html, and not search engines. Search engines only > attempt to access valid resources, such as the "fake" resource you > mentioned (which is quite valid and not fake at all). > > -- > Rick > http://www.sensual.jp (Top-posting requires top-posting... sorry Michael.) Yes, technically correct -- it is the webserver. BUT, to the traditional search engine, the URL defines the resource. Every unique URL is potentially a unique resource, and ideally they are all tested and included in the index if unique. As webmaster, in the eyes of the indexing search spider, you have defined your "site" by the URL structure you used to define the resources, and not by the content (regardless of how that content is served... by the web server or your PHP scripts). So it becomes important to control the URL even more carefully than the content in many cases. This is now changing, as we move away from URL as defining name/label (ajax, etc). If semantic web were more advanced, it might work, but for now, it's a good thing we only have one search engine because its behavior is slowly becoming less standardized and more customized over time (that was sarcasm.... a little). -=john andrews > > inforequest wrote: > >> Kenneth Downs ken-at-secdat.com |nyphp dev/internal group use| wrote: >> >>> Let's say you use a friendly url (furl) system so that a url looks >>> like this: >>> >>> www.example.com/furl/parm/value/parm/value >>> >>> Because we are faking a nesting of folders and files here, will a >>> search bot expect to be able to find: >>> >>> www.example.com/furl/parm/index.html? >>> >>> and >>> >>> www.example.com/furl/parm/value/index.html? >>> >> I have not seen any mention of this by search engines (or their human >> representatives). >> >> I don't think you are "faking" anything, though. It's a valid web >> resource, right? Who said it had to represent files and folders? >> >> Lately it seems that they do some poking around when you do this: >> >> www.example.com/furl/parm/value/parm/value >> >> to try and determine the best way to grab that resource (slash or no >> slash) but the name is just "value". Google has said it uses your >> own internal linking styles as clue for your site, and also how >> others link to you. >> >> A quick check of Google shows this page ranking well: >> http://www.phpwact.org/pattern/model_view_controller >> with this snippet: >> >> >> Model View *Controller* [Web Application Component Toolkit] >> >> >> Application *Controller* Controls the flow of logic of a single >> application. Because the popular MVC framework Java Struts from a >> *PHP* Perspective implements a *...* >> www.*php*wact.org/pattern/model_view_*controller* - 40k - Cached >> >> - Similar pages >> >> >> >> A hit to a trailing-slash-added version gives a 200ok but emptyish >> template page, BUT it is in the Google index with this snippet: >> >> >> Model View Controller [Web Application Component Toolkit] >> >> >> You are here: Web Application Component Toolkit ? pattern ? Model >> View Controller. Table of Contents. Model View Controller. Model. >> Passive Model *...* >> www.phpwact.org/pattern/model_view_controller - 40k - Cached >> >> - Similar pages >> >> >> >> Notice that Google lists that trailing slash page with a URL that has >> no trailing slash. That looks like a double listing of the >> no-trailing-slash URL, with two snippets. >> >> The contrived resource (with index.html) does the same (200ok but >> empty template page): >> http://www.phpwact.org/pattern/model_view_controller/index.php >> >> A search of Google for that contrived page >> http://www.phpwact.org/pattern/model_view_controller/index.php shows >> "no such page". >> >> So? Google says slash and no trailing slash are the same resource as >> no trailing slash, but represents the two as different content in the >> index (which they are). That suggests that Google is confused about >> that resource. A scan of the rest of that results set shows some URLs >> have trailing slashes, some do not : >> http://www.google.com/search?q=php+controller&hl=en&start=10&sa=N >> >> What happens if I put a page on my site and 302 redirect to those >> pages? Will Google take their content and index it as belonging to my >> site? What if I put content at that empty template page, which is >> diferent content than the no-trailing-slash URL. Will Google still >> list both pages as going to the no-trailing-slash URL? If one page is >> on red widgets and the other on reen baboons, will it effect >> relevance ranking of either page? That's for SEO homework. >> >> -=john >> From apg88zx at gmail.com Thu Mar 22 22:06:25 2007 From: apg88zx at gmail.com (Alvaro P.) Date: Thu, 22 Mar 2007 22:06:25 -0400 Subject: [nycphp-talk] [WAY OT] Windoze to Windows Vista Ultimate In-Reply-To: <4.33247339725494.154.675586223602@1.00012572623815> References: <4.33247339725494.154.675586223602@1.00012572623815> Message-ID: <46033621.1080306@gmail.com> Here are some positive links about Vista. Surprise, Microsoft Listed as Most Secure OS http://www.internetnews.com/security/article.php/3667201 90-day report card: Windows Vista fared better than competitors http://blogs.zdnet.com/security/?p=135 Alvaro Ken wrote: > At 10:41 AM 3/22/2007 -0400, Peter Sawczynec wrote: > >> I thought this could be helpful for busy people who could use this little mojo that includes >> some info for those of you that may need to do Vista at some point probably for business purposes. >> > > But make sure to know what pit you're leaping into should you decide to install Vista: > > Vista - Arrogance & Stupidity: > http://aaxnet.com/editor/edit043.html > > Windows Vista - Broken by Design: > http://aaxnet.com/editor/edit042.html > > A Cost Analysis of Windows Vista Content Protection: > http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.html > > - Ken > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > From rick at napalmriot.com Fri Mar 23 01:02:35 2007 From: rick at napalmriot.com (Rick) Date: Thu, 22 Mar 2007 22:02:35 -0700 Subject: [nycphp-talk] friendly urls (furls) and the gaps In-Reply-To: <29033-74364@sneakemail.com> References: <45FFD209.9060700@secdat.com> <30532-13397@sneakemail.com> <4602E2A5.4080901@napalmriot.com> <29033-74364@sneakemail.com> Message-ID: <46035F6B.4020804@napalmriot.com> inforequest wrote: > > > Rick rick-at-napalmriot.com |nyphp dev/internal group use| wrote: > >> It's the webserver that is configured to look for default-index >> files, such as index.html, and not search engines. Search engines >> only attempt to access valid resources, such as the "fake" resource >> you mentioned (which is quite valid and not fake at all). >> >> -- >> Rick >> http://www.sensual.jp > > > (Top-posting requires top-posting... sorry Michael.) > > Yes, technically correct -- it is the webserver. BUT, to the > traditional search engine, the URL defines the resource. Every unique > URL is potentially a unique resource, and ideally they are all tested > and included in the index if unique. > > As webmaster, in the eyes of the indexing search spider, you have > defined your "site" by the URL structure you used to define the > resources, and not by the content (regardless of how that content is > served... by the web server or your PHP scripts). So it becomes > important to control the URL even more carefully than the content in > many cases. > > This is now changing, as we move away from URL as defining name/label > (ajax, etc). If semantic web were more advanced, it might work, but > for now, it's a good thing we only have one search engine because its > behavior is slowly becoming less standardized and more customized over > time (that was sarcasm.... a little). > > -=john andrews John: You are correct in saying that the URL defines the resource, and the "permanence" (I use that loosely) is quite important really. The way I translated the question was more or less along the lines of, "say I have this resource, which looks like a folder, is it going to look for an index.html file?" In the case of my answer, no. The search engines are not going to try to guess the default resource to go to in the event of something that appears to be a folder. They merely go where they're told, and they follow (usually) a number of rules along the way. Now then, as I understand it (please correct me if I'm wrong, John... as I'm actually curious), if you move a resource to a new location, you should provide the proper headers to do so (I believe 302 for permanently moved, but I don't use it enough to know off the top of my head), than most intelligent search engines are aware of the change. Moving resources should be fairly painless, in that regard. As far as AJAX is concerned, that's a touchy subject with me. I try to make sure that anything I'm serving via AJAX is more-or-less personal to the person requesting it, say a message list or friends list or something, directly related to the person. There's always elegant fallbacks, and what I tend to use AJAX for (I am using AJAX as a synonym of a XMLHttpRequest object, as opposed to anything else which would be correct) is personal data related to the user currently logged in that isn't important to be indexed. I intended to write a bit more, I have to deal with some other issues I wasn't expecting so I'll leave it at that :( From 1j0lkq002 at sneakemail.com Fri Mar 23 03:36:39 2007 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Fri, 23 Mar 2007 00:36:39 -0700 Subject: [nycphp-talk] friendly urls (furls) and the gaps In-Reply-To: <46035F6B.4020804@napalmriot.com> References: <45FFD209.9060700@secdat.com> <30532-13397@sneakemail.com> <4602E2A5.4080901@napalmriot.com> <29033-74364@sneakemail.com> <46035F6B.4020804@napalmriot.com> Message-ID: <20434-60272@sneakemail.com> Rick rick-at-napalmriot.com |nyphp dev/internal group use| wrote: > inforequest wrote: > >> >> >> Rick rick-at-napalmriot.com |nyphp dev/internal group use| wrote: >> >>> It's the webserver that is configured to look for default-index >>> files, such as index.html, and not search engines. Search engines >>> only attempt to access valid resources, such as the "fake" resource >>> you mentioned (which is quite valid and not fake at all). >>> >>> -- >>> Rick >>> http://www.sensual.jp >> >> >> >> (Top-posting requires top-posting... sorry Michael.) >> >> Yes, technically correct -- it is the webserver. BUT, to the >> traditional search engine, the URL defines the resource. Every unique >> URL is potentially a unique resource, and ideally they are all tested >> and included in the index if unique. >> >> As webmaster, in the eyes of the indexing search spider, you have >> defined your "site" by the URL structure you used to define the >> resources, and not by the content (regardless of how that content is >> served... by the web server or your PHP scripts). So it becomes >> important to control the URL even more carefully than the content in >> many cases. >> >> This is now changing, as we move away from URL as defining name/label >> (ajax, etc). If semantic web were more advanced, it might work, but >> for now, it's a good thing we only have one search engine because its >> behavior is slowly becoming less standardized and more customized >> over time (that was sarcasm.... a little). >> >> -=john andrews > > John: > > You are correct in saying that the URL defines the resource, and the > "permanence" (I use that loosely) is quite important really. The way > I translated the question was more or less along the lines of, "say I > have this resource, which looks like a folder, is it going to look for > an index.html file?" > > In the case of my answer, no. The search engines are not going to try > to guess the default resource to go to in the event of something that > appears to be a folder. They merely go where they're told, and they > follow (usually) a number of rules along the way. Recent comments suggest that Google does some figuring for "canonical" urls, although it's not clear if they do it on a regular basis or only when they have reasons to look closely. They have said they use clues to help guide them, including how you set up internal links and how others link to your resources. > Now then, as I understand it (please correct me if I'm wrong, John... > as I'm actually curious), if you move a resource to a new location, > you should provide the proper headers to do so (I believe 302 for > permanently moved, but I don't use it enough to know off the top of my > head), than most intelligent search engines are aware of the change. > Moving resources should be fairly painless, in that regard. A 301 is used for a permanent redirect, and a 302 is supposed to be OK for an internal redirect now although I still think Google screws up interpretation of 302s too often. A 302 is a bad choice for a cross-domain redirect, as it has been so widely abused in the past search engines hesitate to trust them. From ken at secdat.com Fri Mar 23 07:43:21 2007 From: ken at secdat.com (Kenneth Downs) Date: Fri, 23 Mar 2007 07:43:21 -0400 Subject: [nycphp-talk] friendly urls (furls) and the gaps In-Reply-To: <46035F6B.4020804@napalmriot.com> References: <45FFD209.9060700@secdat.com> <30532-13397@sneakemail.com> <4602E2A5.4080901@napalmriot.com> <29033-74364@sneakemail.com> <46035F6B.4020804@napalmriot.com> Message-ID: <4603BD59.7030706@secdat.com> Rick wrote: > You are correct in saying that the URL defines the resource, and the > "permanence" (I use that loosely) is quite important really. The way > I translated the question was more or less along the lines of, "say I > have this resource, which looks like a folder, is it going to look for > an index.html file?" Yes, that was my meaning. > As far as AJAX is concerned, that's a touchy subject with me. I try > to make sure that anything I'm serving via AJAX is more-or-less > personal to the person requesting it, say a message list or friends > list or something, directly related to the person. There's always > elegant fallbacks, and what I tend to use AJAX for (I am using AJAX as > a synonym of a XMLHttpRequest object, as opposed to anything else > which would be correct) is personal data related to the user currently > logged in that isn't important to be indexed. This has suggested itself to me as well -- AJAX after you're logged in, or at very least elegant fallback for the public links. From dcech at phpwerx.net Fri Mar 23 10:09:25 2007 From: dcech at phpwerx.net (Dan Cech) Date: Fri, 23 Mar 2007 10:09:25 -0400 Subject: [nycphp-talk] [WAY OT] Windoze to Windows Vista Ultimate In-Reply-To: <46033621.1080306@gmail.com> References: <4.33247339725494.154.675586223602@1.00012572623815> <46033621.1080306@gmail.com> Message-ID: <4603DF95.1000000@phpwerx.net> Alvaro P. wrote: > Here are some positive links about Vista. > > Surprise, Microsoft Listed as Most Secure OS > http://www.internetnews.com/security/article.php/3667201 I may be missing it, but I don't see anything there that makes me feel warm and fuzzy about Vista. Sure there were fewer overall vulnerabilities found over the reported period, but look at the number of high priority vulnerabilities found, 12 for windows vs 2 for redhat and 1 for osx... > 90-day report card: Windows Vista fared better than competitors > http://blogs.zdnet.com/security/?p=135 The source for this 'report'? "Jeff Jones, security strategy director in Microsoft's Trustworthy Computing group" > Alvaro From ps at sun-code.com Fri Mar 23 11:25:17 2007 From: ps at sun-code.com (Peter Sawczynec) Date: Fri, 23 Mar 2007 11:25:17 -0400 Subject: [nycphp-talk] [WAY OT] Windoze to Windows Vista Ultimate In-Reply-To: <4603DF95.1000000@phpwerx.net> References: <4.33247339725494.154.675586223602@1.00012572623815> <46033621.1080306@gmail.com> <4603DF95.1000000@phpwerx.net> Message-ID: <002a01c76d5f$79beb310$6d3c1930$@com> I just wanted to clarify that this topic I introduced to this list was not to act as a poli/techno endorsement of MSFT or their products. Me, I know I will come across Vista with clients in the near term future. I like to be ahead of the curve on every tech topic I can when I sit at the conference table with clients. And having hands on usability experience with Vista ahead of my clients was strategically important to me. So since I had already gone and set part of my own house on fire, I figured I'd just throw a little breadcrumb trail out there from behind the curtain of flames for the other few who just might have to do as I did. I did not want to introduce tech evaluations of one product vs another product. What do they say: Know thy enemy. Keep your enemies closer than your friends. Know the con to avoid the con. Peter -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Dan Cech Sent: Friday, March 23, 2007 10:09 AM To: NYPHP Talk Subject: Re: [nycphp-talk] [WAY OT] Windoze to Windows Vista Ultimate Alvaro P. wrote: > Here are some positive links about Vista. > > Surprise, Microsoft Listed as Most Secure OS > http://www.internetnews.com/security/article.php/3667201 I may be missing it, but I don't see anything there that makes me feel warm and fuzzy about Vista. Sure there were fewer overall vulnerabilities found over the reported period, but look at the number of high priority vulnerabilities found, 12 for windows vs 2 for redhat and 1 for osx... > 90-day report card: Windows Vista fared better than competitors > http://blogs.zdnet.com/security/?p=135 The source for this 'report'? "Jeff Jones, security strategy director in Microsoft's Trustworthy Computing group" > Alvaro _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php From alexchan.1976 at gmail.com Fri Mar 23 12:19:15 2007 From: alexchan.1976 at gmail.com (Alex C) Date: Fri, 23 Mar 2007 12:19:15 -0400 Subject: [nycphp-talk] testing web apps with flood or tools Message-ID: <8f494f760703230919j3bfbdff7oeab98d5ee8f4203a@mail.gmail.com> Hi everybody, I need some advice on performance and benchmarking tools for my web application running on freebsd. I see that flood might be a good option to use. Are there other web application testing tool i can use? i know of WAST by microsoft but it is rather stale. the last update was in 2000. thanks everybody, alex From joshmccormack at travelersdiary.com Sun Mar 25 09:50:02 2007 From: joshmccormack at travelersdiary.com (Josh McCormack) Date: Sun, 25 Mar 2007 08:50:02 -0500 Subject: [nycphp-talk] testing web apps with flood or tools In-Reply-To: <8f494f760703230919j3bfbdff7oeab98d5ee8f4203a@mail.gmail.com> References: <8f494f760703230919j3bfbdff7oeab98d5ee8f4203a@mail.gmail.com> Message-ID: You might want to check out the recent discussion on testing tools from the list. Here's the first message in the archive: http://lists.nyphp.org/pipermail/talk/2007-March/021413.html Josh McCormack InteractiveQA.com Web testing and development 917.620.4902 On 3/23/07, Alex C wrote: > > Hi everybody, > I need some advice on performance and benchmarking tools for my web > application running on freebsd. I see that flood might be a good > option to use. Are there other web application testing tool i can use? > i know of WAST by microsoft but it is rather stale. the last update > was in 2000. > thanks everybody, > > alex > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at silmail.com Sun Mar 25 22:57:03 2007 From: lists at silmail.com (Jiju Thomas Mathew) Date: Mon, 26 Mar 2007 08:27:03 +0530 Subject: [nycphp-talk] Recursive Help? In-Reply-To: <6431a0f40703251955h25e9f8a2r7873324a9e52834@mail.gmail.com> References: <8d9a42800703151040t420149efu6dae4ee7d8968fbc@mail.gmail.com> <002101c7672b$3871df70$a9559e50$@com> <8d9a42800703151110g10a55878k4f3f3f49a52a07ab@mail.gmail.com> <6431a0f40703251955h25e9f8a2r7873324a9e52834@mail.gmail.com> Message-ID: <6431a0f40703251957k2966fe6cxe7009766186a49f0@mail.gmail.com> Hi Joseph, it is the problem of using list(..) = each Each - Return the current key and value pair from an array and advance the array cursor So your list($lat,$lng) = each($coords) will assign $lat = 0 and $lng = ($lat you passed), creating the weird output. Changing the function to as shown below should clear your woes. function nextCoord($coords, $usedCoords) { $lat = (float)$coords[0]; $lng = (float)$coords[1]; if(in_array($lat.':'.$lng, $usedCoords)) { $lat += 0.0005; $lng += 0.0005; return nextCoord(array($lat, $lng), $usedCoords ); } $array = array($lat, $lng); print_r($array); // disable this after debug // return $array; // enable this after debug } -- Jiju Thomas Mathew http://www.php-trivandrum.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at silmail.com Mon Mar 26 07:00:49 2007 From: lists at silmail.com (Jiju Thomas Mathew) Date: Mon, 26 Mar 2007 16:30:49 +0530 Subject: [nycphp-talk] Howto create custom URLs In-Reply-To: References: <00b201c76a35$0ce47c20$6a01a8c0@gamebox> <45FEA202.2030900@optonline.net> <45FEA262.9080502@optonline.net> Message-ID: <6431a0f40703260400m2d13dd96s6c3f43d6c157a338@mail.gmail.com> > > > Even if you are able to use mod_rewrite, you probably need to do a > database lookup to find MayEvent07 so your mod_rewrite rule would be > something like this: > > RewriteEngine on > RewriteRule !\.(js|ico|gif|jpg|png|css|html|htm|xml|php)$ index.php > > I would go for RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php -- Jiju Thomas Mathew http://www.php-trivandrum.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From rangarajan.vidya at gmail.com Mon Mar 26 08:31:56 2007 From: rangarajan.vidya at gmail.com (Vidya Ranga Rajan) Date: Mon, 26 Mar 2007 18:01:56 +0530 Subject: [nycphp-talk] doubt on html entities Message-ID: <3af4b58b0703260531k111fe7c4x642d9c6cce5d7ba@mail.gmail.com> hi all, i am using tinymce as RTE. now when i submit this form with some right aligned text i am getting some html entities added. now i want to remove these html entities preserving the html tags. only " must be removed. how can i acieve this. Thanks in advance, vidya -------------- next part -------------- An HTML attachment was scrubbed... URL: From chsnyder at gmail.com Mon Mar 26 08:46:31 2007 From: chsnyder at gmail.com (csnyder) Date: Mon, 26 Mar 2007 08:46:31 -0400 Subject: [nycphp-talk] Howto create custom URLs In-Reply-To: <00b201c76a35$0ce47c20$6a01a8c0@gamebox> References: <00b201c76a35$0ce47c20$6a01a8c0@gamebox> Message-ID: On 3/19/07, Ben Sgro (ProjectSkyline) wrote: > Currently I have a software package that creates URLS in this manner: > myhost.com/index.php?act=700&eventid=4e732ced3463d06de0ca9a15b6153677 > > Now, I want to make this a bit more user friendly and create URLs like: > myhost.com/MayEvent07 > > I'm not sure if I will have the ability to run apache > mods (if that's the answer). The correct approach to this, in my opinion, is to create an application proxy -- a script that will parse incoming request for uri MayEvent07, convert it into $_GET['eventid'] = 4e...7 using a db lookup, and then include() the software package's index.php, using an output buffer so that the urls in the software package's response can all be converted back to your friendly format. In other words, build a php wrapper around your software package. Done right, it won't know the difference, and you don't have to muck around with httpd.conf. -- Chris Snyder http://chxo.com/ From chsnyder at gmail.com Mon Mar 26 08:52:55 2007 From: chsnyder at gmail.com (csnyder) Date: Mon, 26 Mar 2007 08:52:55 -0400 Subject: [nycphp-talk] doubt on html entities In-Reply-To: <3af4b58b0703260531k111fe7c4x642d9c6cce5d7ba@mail.gmail.com> References: <3af4b58b0703260531k111fe7c4x642d9c6cce5d7ba@mail.gmail.com> Message-ID: On 3/26/07, Vidya Ranga Rajan wrote: > hi all, > i am using tinymce as RTE. now when i submit this form with some right > aligned text i am getting some html entities added. now i want to remove > these html entities preserving the html tags. only " must be removed. > how can i acieve this. > Would this work? $html = str_replace( '"', '"', $html ); If not, please restate the question, as it sounds like all you want to do is decode ", which is a little strange. An example would be a good idea. -- Chris Snyder http://chxo.com/ From ben at projectskyline.com Mon Mar 26 08:54:45 2007 From: ben at projectskyline.com (Ben Sgro (ProjectSkyline)) Date: Mon, 26 Mar 2007 08:54:45 -0400 Subject: [nycphp-talk] Howto create custom URLs References: <00b201c76a35$0ce47c20$6a01a8c0@gamebox> Message-ID: <007801c76fa5$ee6a7670$6a01a8c0@gamebox> Hello again, This is a pretty good idea ... Once they click the link that brings them to the page, they only stay for one action (to RSVP to an event) so I don't care what the URL looks like once they are on the page ... its getting to the page I want to make easier ... as in /eventMay VS /eventid=sweet_md5hash ... hopefully this will be less prone to error and users will notice when something is spelled wrong in the URL .. vs's the hash ... To be honest .. I dont see how users keep messing this up ... all they have to do is a click a link to bring them to the page... but they manage to fudge it at least once a day (error logs mailed to myself) Well, I'll think about it all a bit more before I implement anything .. but I like the proxy idea, i can leave my current db as is for the RSVP page (minus the lookup for eventMay and the new table to map eventid to names). Thanks, - Ben ----- Original Message ----- From: "csnyder" To: "NYPHP Talk" Sent: Monday, March 26, 2007 8:46 AM Subject: Re: [nycphp-talk] Howto create custom URLs > On 3/19/07, Ben Sgro (ProjectSkyline) wrote: > >> Currently I have a software package that creates URLS in this manner: >> myhost.com/index.php?act=700&eventid=4e732ced3463d06de0ca9a15b6153677 >> >> Now, I want to make this a bit more user friendly and create URLs like: >> myhost.com/MayEvent07 >> >> I'm not sure if I will have the ability to run apache >> mods (if that's the answer). > > The correct approach to this, in my opinion, is to create an > application proxy -- a script that will parse incoming request for uri > MayEvent07, convert it into $_GET['eventid'] = 4e...7 using a db > lookup, and then include() the software package's index.php, using an > output buffer so that the urls in the software package's response can > all be converted back to your friendly format. > > In other words, build a php wrapper around your software package. Done > right, it won't know the difference, and you don't have to muck around > with httpd.conf. > > -- > Chris Snyder > http://chxo.com/ > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From anieshjoseph at gmail.com Mon Mar 26 10:28:50 2007 From: anieshjoseph at gmail.com (Aniesh joseph) Date: Mon, 26 Mar 2007 19:58:50 +0530 Subject: [nycphp-talk] CSV file Reading Message-ID: <1b3d2fde0703260728k4c99bf42i31ac94346b544367@mail.gmail.com> Hello I have to read large CSV file upto 10 MB size. I tried to read each line by using getcsv() method, but cannot worthy. I have to make some checking the contents of the CSV files such as any duplicate row, or any row missing contents etc. Can anybody suggests a method to read large file of CSV files ? Regards Aniesh Joseph -------------- next part -------------- An HTML attachment was scrubbed... URL: From apg88zx at gmail.com Mon Mar 26 10:32:22 2007 From: apg88zx at gmail.com (Alvaro P.) Date: Mon, 26 Mar 2007 10:32:22 -0400 Subject: [nycphp-talk] CSV file Reading In-Reply-To: <1b3d2fde0703260728k4c99bf42i31ac94346b544367@mail.gmail.com> References: <1b3d2fde0703260728k4c99bf42i31ac94346b544367@mail.gmail.com> Message-ID: <4607D976.2060302@gmail.com> You could always put the csv contents on a multi-dimensional array as you are reading each line. When you read the line, you check to see if all the data is complete, then you check against the array for duplicates, if it passes both tests, then you enter the new line into the array. I don't know how efficient this is with a 10MB file, but I'd say it's worth a try. Alvaro Aniesh joseph wrote: > Hello > > > I have to read large CSV file upto 10 MB size. I tried to read each > line by using getcsv() method, but cannot worthy. I have to make some > checking the contents of the CSV files such as any duplicate row, or > any row missing contents etc. > > Can anybody suggests a method to read large file of CSV files ? > > Regards > Aniesh Joseph > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From ben at projectskyline.com Mon Mar 26 10:40:48 2007 From: ben at projectskyline.com (Ben Sgro (ProjectSkyline)) Date: Mon, 26 Mar 2007 10:40:48 -0400 Subject: [nycphp-talk] Creating database tables when deploying products Message-ID: <01b001c76fb4$bef4f730$6a01a8c0@gamebox> Hello, When creating software, I inherited a method from my previous company of creating a file, 'createdb.php' that includes the instructions to create all the database tables and populate them w/default values. When deploying, I run the script first and all is setup. I've included two different segments from files that I've used to create tables: The first is an older procedural method, the second is newer OOP code. ... ... ... /* create admin table if it does not exist */ if ( @ !$tableSet[constAdminStr] ) { error_log("createdb.php: creating 'hhc.admin' table"); $sqlStr = "CREATE TABLE admin " . " (id int(11) NOT NULL auto_increment," . " username varchar(64) default ''," . " password varchar(64) default ''," . " last_login int(12) default 0," . " primary key(id, username)" . ')'; DBAS_MySQLQuery($sqlStr, $db); /* password: test */ $userStr = constUserName; $md5Pass = md5(constUserPass); error_log("createdb: creating admin account '$userStr'"); $sqlStr = "INSERT INTO admin " . " SET " . " username='$userStr'," . " password='$md5Pass'"; DBAS_MySQLQuery($sqlStr, $db); } ... ... ... function PRNK_CreateDatabaseTables($dbObject) { $debug = 1; $defE = constDatabaseDefaultEmpty; $dbObject->DatabaseCreateTable(constDatabaseTableAdmin); $dbObject->DatabaseCreateField("id", "int(11)", "NOT NULL", "auto_increment"); $dbObject->DatabaseCreateField("username", "varchar(64)", $defE); $dbObject->DatabaseCreateField("password", "varchar(64)", $defE); $dbObject->DatabaseCreateField("primary", "key(id, username)"); $dbObject->DatabaseCreateCommit($debug); $dbObject->DatabaseCreateTable(constDatabaseTableIdea); $dbObject->DatabaseCreateField("idea_id", "int(11)", "NOT NULL", "auto_increment"); $dbObject->DatabaseCreateField("email", "varchar(64)", $defE); $dbObject->DatabaseCreateField("phone", "varchar(64)", $defE); $dbObject->DatabaseCreateField("content", "varchar(2048)", $defE); $dbObject->DatabaseCreateField("votes", "int(11)", "default 0"); $dbObject->DatabaseCreateField("time", "int(11)", "default 0"); $dbObject->DatabaseCreateField("primary", "key(idea_id)"); $dbObject->DatabaseCreateCommit($debug); $dbObject->DatabaseCreateTable(constDatabaseTableVote); $dbObject->DatabaseCreateField("vote_id", "int(11)", "NOT NULL", "auto_increment"); $dbObject->DatabaseCreateField("idea_id", "int(11)", "default 0"); $dbObject->DatabaseCreateField("email", "varchar(64)", $defE); $dbObject->DatabaseCreateField("primary", "key(vote_id)"); $dbObject->DatabaseCreateCommit($debug); } ... ... ... So my question is ... is what I'm doing ok? .. there must be a better way to do it ... How are you all doing database table creation for products that need to be deployed on multiple systems.? Thanks! - Ben ProjectSkyline.com ben at projectskyline.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From anieshjoseph at gmail.com Mon Mar 26 10:56:42 2007 From: anieshjoseph at gmail.com (Aniesh joseph) Date: Mon, 26 Mar 2007 20:26:42 +0530 Subject: [nycphp-talk] RE CSV file Reading Message-ID: <1b3d2fde0703260756u34bbea31o71ac1e5dedc691a3@mail.gmail.com> Hello I tried this method. When we read large file, CGI timeout will occur. So cannot read large files of length 10 MB or more. Can someone suggest any other method? You could always put the csv contents on a multi-dimensional array as you are reading each line. When you read the line, you check to see if all the data is complete, then you check against the array for duplicates, if it passes both tests, then you enter the new line into the array. I don't know how efficient this is with a 10MB file, but I'd say it's worth a try. Alvaro Aniesh joseph wrote: >* Hello *>* *>* *>* I have to read large CSV file upto 10 MB size. I tried to read each *>* line by using getcsv() method, but cannot worthy. I have to make some *>* checking the contents of the CSV files such as any duplicate row, or *>* any row missing contents etc. *>* *>* Can anybody suggests a method to read large file of CSV files ? *>* *>* Regards *>* Aniesh Joseph Regards Aniesh Joseph * -------------- next part -------------- An HTML attachment was scrubbed... URL: From dirn at dirnonline.com Mon Mar 26 11:13:02 2007 From: dirn at dirnonline.com (Andy Dirnberger) Date: Mon, 26 Mar 2007 11:13:02 -0400 Subject: [nycphp-talk] RE CSV file Reading In-Reply-To: <1b3d2fde0703260756u34bbea31o71ac1e5dedc691a3@mail.gmail.com> References: <1b3d2fde0703260756u34bbea31o71ac1e5dedc691a3@mail.gmail.com> Message-ID: <003e01c76fb9$413a6f50$c3af4df0$@com> > When we read large file, CGI timeout will occur. So cannot read large files of length 10 MB or more. Can someone suggest any other method? What about extending the time limit for the script? I have a script that processes a 7 MB file and make a call to set_time_limit () at the beginning. From mba2000 at ioplex.com Mon Mar 26 11:41:06 2007 From: mba2000 at ioplex.com (Michael B Allen) Date: Mon, 26 Mar 2007 11:41:06 -0400 Subject: [nycphp-talk] CSV file Reading In-Reply-To: <1b3d2fde0703260728k4c99bf42i31ac94346b544367@mail.gmail.com> References: <1b3d2fde0703260728k4c99bf42i31ac94346b544367@mail.gmail.com> Message-ID: <20070326114106.7729be42.mba2000@ioplex.com> On Mon, 26 Mar 2007 19:58:50 +0530 "Aniesh joseph" wrote: > Hello > > > I have to read large CSV file upto 10 MB size. I tried to read each line by > using getcsv() method, but cannot worthy. I have to make some checking the > contents of the CSV files such as any duplicate row, or any row missing > contents etc. > > Can anybody suggests a method to read large file of CSV files ? The trick to parsing large files is to completely process and then discard each line one at a time. Hopefully the memory for strings that have been processed will be collected although I'm not technically sure that will be true. You might want to run a simple test to read and discard lines from a file that is much bigger than the memory limit. If the CSV interface you're using right now doesn't support that model then you'll have to write your own CSV parser. The below code is one that I wrote in C but fortunately PHP is very much like C, it shouldn't be too hard to translate it. It's used in production environments by major software products, free and otherwise. If you do translate to PHP, perhaps you can post it back on the list. Note that this code looks complicated but it's actually one of the smallest CSV parsers you'll find and it's a lot more correct than just about anything you'll find. Parsing quotes and quotes within quotes is non-trivial. Obviously you'll need to change the sinput parameter to a file or some kind of stream source and return an array instead of the user providing a buffer. Mike int csv_parse_str(struct sinput *in, unsigned char *buf, size_t bn, unsigned char *row[], int rn, int sep, int flags) { int trim, quotes, ch, state, r, j, t, inquotes; trim = flags & CSV_TRIM; quotes = flags & CSV_QUOTES; state = ST_START; inquotes = 0; ch = r = j = t = 0; memset(row, 0, sizeof(unsigned char *) * rn); while (rn && bn && (ch = snextch(in)) > 0) { switch (state) { case ST_START: if (ch != '\n' && ch != sep && isspace(ch)) { if (!trim) { buf[j++] = ch; bn--; t = j; } break; } else if (quotes && ch == '"') { j = t = 0; state = ST_COLLECT; inquotes = 1; break; } state = ST_COLLECT; case ST_COLLECT: if (inquotes) { if (ch == '"') { state = ST_END_QUOTE; break; } } else if (ch == sep || ch == '\n') { row[r++] = buf; rn--; if (ch == '\n' && t && buf[t - 1] == '\r') { t--; bn++; /* crlf -> lf */ } buf[t] = '\0'; bn--; buf += t + 1; j = t = 0; state = ST_START; inquotes = 0; if (ch == '\n') { rn = 0; } break; } else if (quotes && ch == '"') { PMNF(errno = EILSEQ, ": unexpected quote in element %d", (r + 1)); return -1; } buf[j++] = ch; bn--; if (!trim || isspace(ch) == 0) { t = j; } break; case ST_TAILSPACE: case ST_END_QUOTE: if (ch == sep || ch == '\n') { row[r++] = buf; rn--; buf[j] = '\0'; bn--; buf += j + 1; j = t = 0; state = ST_START; inquotes = 0; if (ch == '\n') { rn = 0; } break; } else if (quotes && ch == '"' && state != ST_TAILSPACE) { buf[j++] = '"'; bn--; /* nope, just an escaped quote */ t = j; state = ST_COLLECT; break; } else if (isspace(ch)) { state = ST_TAILSPACE; break; } errno = EILSEQ; PMNF(errno, ": bad end quote in element %d", (r + 1)); return -1; } } if (ch == -1) { AMSG(""); return -1; } if (bn == 0) { PMNO(errno = E2BIG); return -1; } if (rn) { if (inquotes && state != ST_END_QUOTE) { PMNO(errno = EILSEQ); return -1; } row[r] = buf; buf[t] = '\0'; } return in->count; } Note: This code comes from "libmba" and is MIT Licensed (like BSD no advert). -- Michael B Allen PHP Active Directory Kerberos SSO http://www.ioplex.com/ From shadab_w at yahoo.co.in Mon Mar 26 12:17:47 2007 From: shadab_w at yahoo.co.in (Shadab Wadiwala) Date: Mon, 26 Mar 2007 21:47:47 +0530 (IST) Subject: [nycphp-talk] AGLOCO Message-ID: <789781.66105.qm@web8709.mail.in.yahoo.com> I am sending you an email about a new Internet company that is in its pre-launch right now. I do not know if you have had a chance to join yet, but if not here is link to do so www.agloco.com/r/BBCT0109 - about two minutes is all it takes. The pre-launch phase of the company is going well. If you search ?agloco? on Google, you get 800,000 pages talking about the company. Lots of people are starting to get in and from my point of few ? this is what - MYSPACE, YOUTUBE, FACEBOOK, HOTMAIL and even EBAY ? looked like when they were small. The users/members were excited about the company. AND that is what is now happening with AGLOCO. Established blogger John Chow has over 3,000 referrals. http://www.johnchow.com/category/agloco/ The are serious discussion about the value of an economic network http://haroldbbbg1619.wordpress.com/ There is even an AGLOCO Top Gun page http://agloco-top-gun.spaces.live.com/ There is no guarantee this will make you any money. BUT it is completely FREE so you will not go backwards. Now is time for you to join. Use this for direct access to sign up. www.agloco.com/r/BBCT0109 Fondly, Shadab .I. Wadiwala My homepage:-- http://shadabworld.110mb.com __________________________________________________________ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From dcech at phpwerx.net Mon Mar 26 12:21:58 2007 From: dcech at phpwerx.net (Dan Cech) Date: Mon, 26 Mar 2007 12:21:58 -0400 Subject: [nycphp-talk] AGLOCO In-Reply-To: <789781.66105.qm@web8709.mail.in.yahoo.com> References: <789781.66105.qm@web8709.mail.in.yahoo.com> Message-ID: <4607F326.5070607@phpwerx.net> Shadab, Kindly refrain from spamming the list. Dan From lists at zaunere.com Mon Mar 26 12:23:54 2007 From: lists at zaunere.com (Hans Zaunere) Date: Mon, 26 Mar 2007 12:23:54 -0400 Subject: [nycphp-talk] AGLOCO In-Reply-To: <789781.66105.qm@web8709.mail.in.yahoo.com> References: <789781.66105.qm@web8709.mail.in.yahoo.com> Message-ID: <025601c76fc3$25cd5cf0$670aa8c0@MobileZ> This is an inappropriate post, Shadab. Good bye. H Shadab Wadiwala wrote on Monday, March 26, 2007 12:18 PM: > I am sending you an email about a new Internet company > that is in its pre-launch right now. I do not know if you have had > a chance to join yet, but if not here is link to do so > www.agloco.com/r/BBCT0109 - > about two minutes is all it takes. > > The pre-launch phase of the company is going well. If you search > "agloco" on Google, you get 800,000 pages talking about the company. > > Lots of people are starting to get in and from my point of few - this > is what - MYSPACE, YOUTUBE, FACEBOOK, HOTMAIL and even EBAY - looked > like when they were small. The users/members were excited about the > company. AND that is what is now happening with AGLOCO. > > Established blogger John Chow has over 3,000 referrals. > http://www.johnchow.com/category/agloco/ > > The are serious discussion about the value of an economic network > http://haroldbbbg1619.wordpress.com/ > > There is even an AGLOCO Top Gun page > http://agloco-top-gun.spaces.live.com/ > > There is no guarantee this will make you any money. BUT it is > completely FREE so you will not go backwards. Now is time for you to > join. Use this for direct access to sign up. > www.agloco.com/r/BBCT0109 > > > > Fondly, > > Shadab .I. Wadiwala > My homepage:-- http://shadabworld.110mb.com > > > ________________________________ > > Here's a new way to find what you're looking for - Yahoo! Answers > From dell at sala.ca Mon Mar 26 12:28:22 2007 From: dell at sala.ca (Dell Sala) Date: Mon, 26 Mar 2007 12:28:22 -0400 Subject: [nycphp-talk] Howto create custom URLs In-Reply-To: References: <00b201c76a35$0ce47c20$6a01a8c0@gamebox> Message-ID: <3E98BE00-7A5D-42EA-900F-9617620E4CA5@sala.ca> On Mar 26, 2007, at 8:46 AM, csnyder wrote: > The correct approach to this, in my opinion, is to create an > application proxy -- a script that will parse incoming request for uri > MayEvent07, convert it into $_GET['eventid'] = 4e...7 using a db > lookup, and then include() the software package's index.php, using an > output buffer so that the urls in the software package's response can > all be converted back to your friendly format. > > In other words, build a php wrapper around your software package. Done > right, it won't know the difference, and you don't have to muck around > with httpd.conf. This is an interesting technique. I like the fact that it could easily be wrapped around an existing site without messing around with mod_rewrite. But the idea of modifying URLs in the buffered output has always seemed a little sketchy to me. I'm imaging some sort of regex replace, right? What about urls that are constructed dynamically in javascript? And I feel there must be other holes. Is there a way this can be done reliably, or am I just being paranoid? -- Dell From lists at silmail.com Mon Mar 26 13:49:41 2007 From: lists at silmail.com (Jiju Thomas Mathew) Date: Mon, 26 Mar 2007 23:19:41 +0530 Subject: [nycphp-talk] Howto create custom URLs In-Reply-To: <3E98BE00-7A5D-42EA-900F-9617620E4CA5@sala.ca> References: <00b201c76a35$0ce47c20$6a01a8c0@gamebox> <3E98BE00-7A5D-42EA-900F-9617620E4CA5@sala.ca> Message-ID: <6431a0f40703261049r348c9570i3c84718ad854851b@mail.gmail.com> > > regex replace, right? What about urls that are constructed > dynamically in javascript? And I feel there must be other holes. Is > there a way this can be done reliably, or am I just being paranoid? > > Actually you would either redesign the package, such that you wont mess up with htaccess, mod_rewrite or any such sort of plugs, or use some kind of internal plugs which will always be a headache. I was involved in a project where the web server was really a modest one with 256MB ram and a pIII 800 processor yet, had a very huge database, but the basic thing is that the data seldom changes, ie, there may be additions, but modifications are not that frequent. We had the folowing htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^projects/(.*)\.html projects.php?g=$1 [L] we also had a projects folder which was writable by the webserver process. now the php script would get the $_GET['g'], which could be parsed to identify which section of the projects was being referred to, and the database content would be merged with the static and layout template, and finally the whole html page is built into one single varaible, which is written to 'projects/' . $_GET['g'] . '.html', as well as echoed. So in a second request, the file will be fetched from the file system. Whenever the content in a particular section is modified, we just unlink the related html file, which will get generated in the first subsequent request. The point which I wanted to emphasise is that you should consider redoing the whole package with the furl in mind, and you will start seeing that you will no longer require any plugs. -- Jiju Thomas Mathew http://www.php-trivandrum.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From 1j0lkq002 at sneakemail.com Mon Mar 26 16:50:40 2007 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Mon, 26 Mar 2007 13:50:40 -0700 Subject: [OT] Re: [nycphp-talk] AGLOCO In-Reply-To: <025601c76fc3$25cd5cf0$670aa8c0@MobileZ> References: <789781.66105.qm@web8709.mail.in.yahoo.com> <025601c76fc3$25cd5cf0$670aa8c0@MobileZ> Message-ID: <28507-11243@sneakemail.com> Hans Zaunere lists-at-zaunere.com |nyphp dev/internal group use| wrote: >This is an inappropriate post, Shadab. Good bye. > >H > > >Shadab Wadiwala wrote on Monday, March 26, 2007 12:18 PM: > >>Established blogger John Chow has over 3,000 referrals. >>http://www.johnchow.com/category/agloco/ >> >> You gota love the world we live in. From John Chow's own blog about this reborne AllAdvantage pyramid MLM : Comment by James 2006-11-23 19:09:54 John how can you promote this bullshit, seriously? Comment by John Chow 2006-11-23 19:26:26 James - I can promote it very well. -=john andrews Professional SEO and so NOT an Internet Mogul -- ------------------------------------------------------------- Your web server traffic log file is the most important source of web business information available. Do you know where your logs are right now? Do you know who else has access to your log files? When they were last archived? Where those archives are? --John Andrews Competitive Webmaster and SEO Blogging at http://www.johnon.com From codebowl at gmail.com Mon Mar 26 18:10:21 2007 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 26 Mar 2007 18:10:21 -0400 Subject: [nycphp-talk] Single Signon Multiple Domains Message-ID: <8d9a42800703261510l2c84f5daiafbfd94547eccbe0@mail.gmail.com> Guys, The company I am working for wants to have a single signon for multiple sites that will be on different domains. I know that you cannot use a cookie accross domains. Is there a way to do this aside from passing a hash via querystring or POST form? The reason I ask is because we cannot always rely on the hash being present. What if the user is at one domain then types in the other domain. We would want them to remain logged into the system because it is a network. I know it is possible just look at Google.com and Gmail.com. Any Ideas? Everything i read seems really insecure and ends with passing a querystring in your links. Thanks, -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ Blog: http://www.josephcrawford.com/ 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From support at dailytechnology.net Mon Mar 26 18:18:36 2007 From: support at dailytechnology.net (Brian Dailey) Date: Mon, 26 Mar 2007 18:18:36 -0400 Subject: [nycphp-talk] AGLOCO In-Reply-To: <789781.66105.qm@web8709.mail.in.yahoo.com> References: <789781.66105.qm@web8709.mail.in.yahoo.com> Message-ID: <460846BC.1080109@dailytechnology.net> Dear Shadab, When I do a google search for "+agloco +scam" I get 159,000 results, which is approximately 1/5th of the results you are getting. No thanks. (All fun aside what's with the spam lately guys?) Shadab Wadiwala wrote: > I am sending you an email about a new Internet company that > is in its pre-launch right now. I do not know if you have had a chance > to join yet, but if not here is link to do so _www.agloco.com/r/BBCT0109 > _ - about two minutes is all it takes. > > The pre-launch phase of the company is going well. If you search > ?agloco? on Google, you get 800,000 pages talking about the company. > > Lots of people are starting to get in and from my point of few ? this is > what - MYSPACE, YOUTUBE, FACEBOOK, HOTMAIL and even EBAY ? looked like > when they were small. The users/members were excited about the company. > AND that is what is now happening with AGLOCO. > > Established blogger John Chow has over 3,000 referrals. > http://www.johnchow.com/category/agloco/ > > The are serious discussion about the value of an economic network > http://haroldbbbg1619.wordpress.com/ > > There is even an AGLOCO Top Gun page http://agloco-top-gun.spaces.live.com/ > > There is no guarantee this will make you any money. BUT it is completely > FREE so you will not go backwards. Now is time for you to join. Use this > for direct access to sign up. _www.agloco.com/r/BBCT0109 > _ > > > > Fondly, > > */_Shadab .I. Wadiwala_/* > *_My homepage:--_ http://shadabworld.110mb.com > * > > ------------------------------------------------------------------------ > Here?s a new way to find what you're looking for - Yahoo! Answers > > > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From Consult at CovenantEDesign.com Mon Mar 26 19:27:40 2007 From: Consult at CovenantEDesign.com (CED) Date: Mon, 26 Mar 2007 18:27:40 -0500 Subject: [nycphp-talk] Single Signon Multiple Domains References: <8d9a42800703261510l2c84f5daiafbfd94547eccbe0@mail.gmail.com> Message-ID: <00f101c76ffe$591a4a60$07d6f4a7@ced> Have a DB or filestructure(write a temp file) that stores the login info with particular authenticating information. Then whenever they move from one domain to another the Database is accessed and the login persisted. ----- Original Message ----- From: Joseph Crawford To: NYPHP Talk Sent: Monday, March 26, 2007 5:10 PM Subject: [nycphp-talk] Single Signon Multiple Domains Guys, The company I am working for wants to have a single signon for multiple sites that will be on different domains. I know that you cannot use a cookie accross domains. Is there a way to do this aside from passing a hash via querystring or POST form? The reason I ask is because we cannot always rely on the hash being present. What if the user is at one domain then types in the other domain. We would want them to remain logged into the system because it is a network. I know it is possible just look at Google.com and Gmail.com. Any Ideas? Everything i read seems really insecure and ends with passing a querystring in your links. Thanks, -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ Blog: http://www.josephcrawford.com/ 1-802-671-2021 codebowl at gmail.com ------------------------------------------------------------------------------ _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Mon Mar 26 18:31:07 2007 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 26 Mar 2007 18:31:07 -0400 Subject: [nycphp-talk] Single Signon Multiple Domains In-Reply-To: <00f101c76ffe$591a4a60$07d6f4a7@ced> References: <8d9a42800703261510l2c84f5daiafbfd94547eccbe0@mail.gmail.com> <00f101c76ffe$591a4a60$07d6f4a7@ced> Message-ID: <8d9a42800703261531l7c684b9bw4024d46d3406d8d1@mail.gmail.com> right but how will i know that it is the same user without being able to store a hash in a cookie etc. I know i can store the data for the user but associating the user with that data again could be tough -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ Blog: http://www.josephcrawford.com/ 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From support at dailytechnology.net Mon Mar 26 18:37:17 2007 From: support at dailytechnology.net (Brian Dailey) Date: Mon, 26 Mar 2007 18:37:17 -0400 Subject: [nycphp-talk] Single Signon Multiple Domains In-Reply-To: <00f101c76ffe$591a4a60$07d6f4a7@ced> References: <8d9a42800703261510l2c84f5daiafbfd94547eccbe0@mail.gmail.com> <00f101c76ffe$591a4a60$07d6f4a7@ced> Message-ID: <46084B1D.2040409@dailytechnology.net> How do you know the session that moved from one domain to the other is the same session? IP address? CED wrote: > Have a DB or filestructure(write a temp file) that stores the login info > with particular authenticating information. Then whenever they move from > one domain to another the Database is accessed and the login persisted. > > > > ----- Original Message ----- > *From:* Joseph Crawford > *To:* NYPHP Talk > *Sent:* Monday, March 26, 2007 5:10 PM > *Subject:* [nycphp-talk] Single Signon Multiple Domains > > Guys, > > The company I am working for wants to have a single signon for > multiple sites that will be on different domains. I know that you > cannot use a cookie accross domains. Is there a way to do this > aside from passing a hash via querystring or POST form? > > The reason I ask is because we cannot always rely on the hash being > present. What if the user is at one domain then types in the other > domain. We would want them to remain logged into the system because > it is a network. > I know it is possible just look at Google.com > and Gmail.com . > > Any Ideas? Everything i read seems really insecure and ends with > passing a querystring in your links. > > Thanks, > -- > Joseph Crawford Jr. > Zend Certified Engineer > Codebowl Solutions, Inc. > http://www.codebowl.com/ > Blog: http://www.josephcrawford.com/ > 1-802-671-2021 > codebowl at gmail.com > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From support at dailytechnology.net Mon Mar 26 18:38:12 2007 From: support at dailytechnology.net (Brian Dailey) Date: Mon, 26 Mar 2007 18:38:12 -0400 Subject: [nycphp-talk] Single Signon Multiple Domains In-Reply-To: <8d9a42800703261531l7c684b9bw4024d46d3406d8d1@mail.gmail.com> References: <8d9a42800703261510l2c84f5daiafbfd94547eccbe0@mail.gmail.com> <00f101c76ffe$591a4a60$07d6f4a7@ced> <8d9a42800703261531l7c684b9bw4024d46d3406d8d1@mail.gmail.com> Message-ID: <46084B54.8030705@dailytechnology.net> (By the way, I know an IP address *won't* work, it was a theoretical question.) I've had this same problem before and I'm curious to see how others have solved it. Joseph Crawford wrote: > right but how will i know that it is the same user without being able to > store a hash in a cookie etc. > > I know i can store the data for the user but associating the user with > that data again could be tough > > > -- > Joseph Crawford Jr. > Zend Certified Engineer > Codebowl Solutions, Inc. > http://www.codebowl.com/ > Blog: http://www.josephcrawford.com/ > 1-802-671-2021 > codebowl at gmail.com > > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From codebowl at gmail.com Mon Mar 26 18:39:57 2007 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 26 Mar 2007 18:39:57 -0400 Subject: [nycphp-talk] Single Signon Multiple Domains In-Reply-To: <46084B1D.2040409@dailytechnology.net> References: <8d9a42800703261510l2c84f5daiafbfd94547eccbe0@mail.gmail.com> <00f101c76ffe$591a4a60$07d6f4a7@ced> <46084B1D.2040409@dailytechnology.net> Message-ID: <8d9a42800703261539y61e3615aw966718a3036179a1@mail.gmail.com> You cannot rely on the IP Address. Think about AOL, they use a proxy server and the users IP can change without a reboot of the modem. Also think about a computer lab that is on 1 IP address. -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ Blog: http://www.josephcrawford.com/ 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at projectskyline.com Mon Mar 26 18:58:58 2007 From: ben at projectskyline.com (Ben Sgro (ProjectSkyline)) Date: Mon, 26 Mar 2007 18:58:58 -0400 Subject: [nycphp-talk] Howto create custom URLs References: <00b201c76a35$0ce47c20$6a01a8c0@gamebox><3E98BE00-7A5D-42EA-900F-9617620E4CA5@sala.ca> <6431a0f40703261049r348c9570i3c84718ad854851b@mail.gmail.com> Message-ID: <02da01c76ffa$568d5ac0$6a01a8c0@gamebox> Hello yall, I decided to just do the wrapper because it was quick and painless... Here's a snippet from the new event.php file. ------------------------------------------------ /* This is our wannabe mod_rewrite hack The REQUEST_URI comes in as /pc_release/event.php/myEvent we only want the myEvent value. */ $eventNameStr = strrchr($_SERVER['REQUEST_URI'], "/"); $eventNameStr = substr($eventNameStr, 1, strlen($eventNameStr)); DBAS_InitDBHandle(HHCE_SQLInfo( ), 'HHCE.php', $db); $tName = constEventLookupStr; $sqlStr = "SELECT event_id FROM $tName WHERE event_name = '$eventNameStr'"; DBAS_MySQLReturnOne($eventSet, $sqlStr, $db); $eventId = $eventSet['event_id']; $host = $_SERVER['HTTP_HOST'] . "/pc_release/index.php?act=700&eventid=" . $eventId; /* REDIRECT */ header("Location: http://$host"); ------------------------------------------------ /event.php/MyEvent =(redirects to)> /index.php?act=.... Works fine and I only had to make minimal changes to my existing code. Thanks for all the great ideas everyone! - Ben ----- Original Message ----- From: Jiju Thomas Mathew To: NYPHP Talk Sent: Monday, March 26, 2007 1:49 PM Subject: Re: [nycphp-talk] Howto create custom URLs regex replace, right? What about urls that are constructed dynamically in javascript? And I feel there must be other holes. Is there a way this can be done reliably, or am I just being paranoid? Actually you would either redesign the package, such that you wont mess up with htaccess, mod_rewrite or any such sort of plugs, or use some kind of internal plugs which will always be a headache. I was involved in a project where the web server was really a modest one with 256MB ram and a pIII 800 processor yet, had a very huge database, but the basic thing is that the data seldom changes, ie, there may be additions, but modifications are not that frequent. We had the folowing htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^projects/(.*)\.html projects.php?g=$1 [L] we also had a projects folder which was writable by the webserver process. now the php script would get the $_GET['g'], which could be parsed to identify which section of the projects was being referred to, and the database content would be merged with the static and layout template, and finally the whole html page is built into one single varaible, which is written to 'projects/' . $_GET['g'] . '.html', as well as echoed. So in a second request, the file will be fetched from the file system. Whenever the content in a particular section is modified, we just unlink the related html file, which will get generated in the first subsequent request. The point which I wanted to emphasise is that you should consider redoing the whole package with the furl in mind, and you will start seeing that you will no longer require any plugs. -- Jiju Thomas Mathew http://www.php-trivandrum.org ------------------------------------------------------------------------------ _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From danielc at analysisandsolutions.com Mon Mar 26 19:41:24 2007 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Mon, 26 Mar 2007 19:41:24 -0400 Subject: [nycphp-talk] CSV file Reading In-Reply-To: <1b3d2fde0703260728k4c99bf42i31ac94346b544367@mail.gmail.com> References: <1b3d2fde0703260728k4c99bf42i31ac94346b544367@mail.gmail.com> Message-ID: <20070326234124.GA26353@panix.com> On Mon, Mar 26, 2007 at 07:58:50PM +0530, Aniesh joseph wrote: > > I have to read large CSV file upto 10 MB size. I tried to read each line by > using getcsv() method, but cannot worthy. I have to make some checking the > contents of the CSV files such as any duplicate row, or any row missing > contents etc. getcsv() is the way to go. As you read each line, check it for sanity then run an insert or update query. The query can be designed to gracefully handle duplicates. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From danielc at analysisandsolutions.com Mon Mar 26 19:45:22 2007 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Mon, 26 Mar 2007 19:45:22 -0400 Subject: [nycphp-talk] Single Signon Multiple Domains In-Reply-To: <8d9a42800703261510l2c84f5daiafbfd94547eccbe0@mail.gmail.com> References: <8d9a42800703261510l2c84f5daiafbfd94547eccbe0@mail.gmail.com> Message-ID: <20070326234522.GB26353@panix.com> On Mon, Mar 26, 2007 at 06:10:21PM -0400, Joseph Crawford wrote: > > The company I am working for wants to have a single signon for multiple > sites that will be on different domains. The code in the Single Sign-On module I made for Drupal may provide some direction for you. http://drupal.org/project/singlesignon --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 chris at theyellowbox.com Mon Mar 26 19:45:48 2007 From: chris at theyellowbox.com (Chris Merlo) Date: Mon, 26 Mar 2007 19:45:48 -0400 Subject: [nycphp-talk] Single Signon Multiple Domains In-Reply-To: <8d9a42800703261510l2c84f5daiafbfd94547eccbe0@mail.gmail.com> References: <8d9a42800703261510l2c84f5daiafbfd94547eccbe0@mail.gmail.com> Message-ID: <946586480703261645s68366fbcg7a0644430d89f5c7@mail.gmail.com> On 3/26/07, Joseph Crawford wrote: I know it is possible just look at Google.com and Gmail.com. Yeah, but my address bar says "https://mail.google.com/mail/..." right now. I guess that's how they worked that out. :) -c -------------- next part -------------- An HTML attachment was scrubbed... URL: From corey at bmfenterprises.com Mon Mar 26 19:50:58 2007 From: corey at bmfenterprises.com (Corey Fogarty) Date: Mon, 26 Mar 2007 19:50:58 -0400 Subject: [nycphp-talk] Re: Single Signon Multiple Domains In-Reply-To: <200703262258.SAA25230@mail.bmfenterprises.com> Message-ID: Can you flag the user?s database record when they log in. Then add a database query to each restricted page on each domain to look at your new ?logged in? field for true. If you don?t want to trust the user to click a log out button to unflag the record, you could set a cron to clear the flag every hour. There are also quite a few results for ?php sessions over multiple domains? on Google! > Message: 5 > Date: Mon, 26 Mar 2007 18:39:57 -0400 > From: "Joseph Crawford" > Subject: Re: [nycphp-talk] Single Signon Multiple Domains > To: "NYPHP Talk" > Message-ID: > <8d9a42800703261539y61e3615aw966718a3036179a1 at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > You cannot rely on the IP Address. Think about AOL, they use a proxy server > and the users IP can change without a reboot of the modem. > Also think about a computer lab that is on 1 IP address. > > > -- > Joseph Crawford Jr. > Zend Certified Engineer > Codebowl Solutions, Inc. > http://www.codebowl.com/ > Blog: http://www.josephcrawford.com/ > 1-802-671-2021 > codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mba2000 at ioplex.com Mon Mar 26 20:23:49 2007 From: mba2000 at ioplex.com (Michael B Allen) Date: Mon, 26 Mar 2007 20:23:49 -0400 Subject: [nycphp-talk] Single Signon Multiple Domains In-Reply-To: <8d9a42800703261510l2c84f5daiafbfd94547eccbe0@mail.gmail.com> References: <8d9a42800703261510l2c84f5daiafbfd94547eccbe0@mail.gmail.com> Message-ID: <20070326202349.1f50e3f6.mba2000@ioplex.com> On Mon, 26 Mar 2007 18:10:21 -0400 "Joseph Crawford" wrote: > Guys, > > The company I am working for wants to have a single signon for multiple > sites that will be on different domains. I know that you cannot use a > cookie accross domains. Is there a way to do this > aside from passing a hash via querystring or POST form? > > The reason I ask is because we cannot always rely on the hash being > present. What if the user is at one domain then types in the other domain. > We would want them to remain logged into the system because it is a network. > I know it is possible just look at Google.com and Gmail.com. > > Any Ideas? Everything i read seems really insecure and ends with passing a > querystring in your links. The way I see it you can divide this into two problems: 1. You need somewhere to store the login state that all participants have access to. 2. You need some way to determine the client's identity to lookup the login state. For example, you could use a central server to store the state and a cookie to determine the identity. When the user logs into domain A their logon state is updated in the central server and their username is stored in a cookie. Then when they go to domain B the username is retrieved from the cookie (assuming they have previously visited the site) and used to lookup their state in the central server. Note that to make this method secure you would need to mcrypt the cookie and traffic with the central server with a secret shared by all participating servers. There are no doubt other permutations of this but I think all would need to satisfy the two problems regarding where to store the state and how to determine the identity. Mike -- Michael B Allen PHP Active Directory Kerberos SSO http://www.ioplex.com/ From Consult at CovenantEDesign.com Mon Mar 26 22:23:20 2007 From: Consult at CovenantEDesign.com (CED) Date: Mon, 26 Mar 2007 21:23:20 -0500 Subject: [nycphp-talk] Single Signon Multiple Domains References: <8d9a42800703261510l2c84f5daiafbfd94547eccbe0@mail.gmail.com><00f101c76ffe$591a4a60$07d6f4a7@ced> <8d9a42800703261531l7c684b9bw4024d46d3406d8d1@mail.gmail.com> Message-ID: <002a01c77016$e34faeb0$07d6f4a7@ced> http://www.melbournechapter.net/wordpress/programming-languages/php/cman/2006/06/15/sharing-a-session-across-multiple-domainsservers-with-php/ ----- Original Message ----- From: Joseph Crawford To: NYPHP Talk Sent: Monday, March 26, 2007 5:31 PM Subject: Re: [nycphp-talk] Single Signon Multiple Domains right but how will i know that it is the same user without being able to store a hash in a cookie etc. I know i can store the data for the user but associating the user with that data again could be tough -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ Blog: http://www.josephcrawford.com/ 1-802-671-2021 codebowl at gmail.com ------------------------------------------------------------------------------ _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at zaunere.com Mon Mar 26 22:32:42 2007 From: lists at zaunere.com (Hans Zaunere) Date: Mon, 26 Mar 2007 22:32:42 -0400 Subject: Spam Treatment WAS: RE: [nycphp-talk] AGsomething In-Reply-To: <460846BC.1080109@dailytechnology.net> References: <789781.66105.qm@web8709.mail.in.yahoo.com> <460846BC.1080109@dailytechnology.net> Message-ID: <006a01c77018$3210db40$670aa8c0@MobileZ> > (All fun aside what's with the spam lately guys?) I guess we're getting popular... All, when responding to a spam post like we just had (if absolutely needed), please trim the message completely. Otherwise we're just helping them out. H From codebowl at gmail.com Mon Mar 26 23:12:35 2007 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 26 Mar 2007 23:12:35 -0400 Subject: [nycphp-talk] Single Signon Multiple Domains In-Reply-To: <20070326230648.07f1b9f9.mba2000@ioplex.com> References: <8d9a42800703261510l2c84f5daiafbfd94547eccbe0@mail.gmail.com> <20070326202349.1f50e3f6.mba2000@ioplex.com> <8d9a42800703261903g5057bcbfy7d151e1566a7c237@mail.gmail.com> <20070326230648.07f1b9f9.mba2000@ioplex.com> Message-ID: <8d9a42800703262012m17a83776i74c0809b8cebf588@mail.gmail.com> I am guessing this talk of a central server is a central domain like erenetwork.com which would hold all the session data in the database. Whenever someone accesse say domainA.com it would redirect to erenetwork.com, get the session data then redirect to domainA. with the session id in the header or something is that correct? On 3/26/07, Michael B Allen wrote: > > On Mon, 26 Mar 2007 22:03:07 -0400 > "Joseph Crawford" wrote: > > > Mike, > > > > If i cam correct you cannot use cookies in this manner because > > domainB.comcould not read a cookie set by > > domainA.com > > Right but I'm not suggesting that you put a logon session key in the > cookie, just something to represent their identity. So the first time > someone visited a site they would have to login regardless. But that's > only the first time. Once the cookie saved their identity (which is > fixed in time) the server would know who who the client is and could > consult the "central server" to retrieve the user's session state. > > Mike > > -- > Michael B Allen > PHP Active Directory Kerberos SSO > http://www.ioplex.com/ > -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ Blog: http://www.josephcrawford.com/ 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mba2000 at ioplex.com Tue Mar 27 02:11:30 2007 From: mba2000 at ioplex.com (Michael B Allen) Date: Tue, 27 Mar 2007 02:11:30 -0400 Subject: [nycphp-talk] Single Signon Multiple Domains In-Reply-To: <8d9a42800703262012m17a83776i74c0809b8cebf588@mail.gmail.com> References: <8d9a42800703261510l2c84f5daiafbfd94547eccbe0@mail.gmail.com> <20070326202349.1f50e3f6.mba2000@ioplex.com> <8d9a42800703261903g5057bcbfy7d151e1566a7c237@mail.gmail.com> <20070326230648.07f1b9f9.mba2000@ioplex.com> <8d9a42800703262012m17a83776i74c0809b8cebf588@mail.gmail.com> Message-ID: <20070327021130.4e35d522.mba2000@ioplex.com> On Mon, 26 Mar 2007 23:12:35 -0400 "Joseph Crawford" wrote: > I am guessing this talk of a central server is a central domain like > erenetwork.com > which would hold all the session data in the database. Whenever someone > accesse say domainA.com it would redirect to erenetwork.com, get the session > data then redirect to domainA. with the session id in the header or > something is that correct? Basically yes. If you don't want to (or can't) have the client carry some state with it, then you're pretty much locked into using a central database to store cross site session data. There's just no other way for site B to know that the user authenticated successfully with site A without site A and site B sharing data. As for the redirects, that's up to you. Personally I think I would rather have the server issue a secondary HTTP request to erenetwork.com. The only problem with that is that you don't know who's session data to ask for. That's why I was thinking you could use a cookie to store the client's identity. The first time they visit each site they will have to logon separately. That's ugly but they would only do that once until the cookie got deleted or expired. Once their identity is set in the cookie you have the means to ask erenetwork.com for the session state for that user every time they visit that particular site. Of course you can't just store a username in the cookie since a cookie can easily be forged. You would have to encrypt something that uniquely identified the user. When they a site you decrypt the cookie and use the unique identifier to query erenetwork.com for the session state. If the state is not present or indicates the user is not logged in, then you reauthenticate them and submit the updated state to erenetwork.com. Then when the client goes to another site, the same thing happends but this time the session state indicates they are already logged in and thus they do not have to log in again. Mike > On 3/26/07, Michael B Allen wrote: > > > > On Mon, 26 Mar 2007 22:03:07 -0400 > > "Joseph Crawford" wrote: > > > > > Mike, > > > > > > If i cam correct you cannot use cookies in this manner because > > > domainB.comcould not read a cookie set by > > > domainA.com > > > > Right but I'm not suggesting that you put a logon session key in the > > cookie, just something to represent their identity. So the first time > > someone visited a site they would have to login regardless. But that's > > only the first time. Once the cookie saved their identity (which is > > fixed in time) the server would know who who the client is and could > > consult the "central server" to retrieve the user's session state. -- Michael B Allen PHP Active Directory Kerberos SSO http://www.ioplex.com/ From nyphp at n0p.net Tue Mar 27 04:22:17 2007 From: nyphp at n0p.net (Flavio daCosta) Date: Tue, 27 Mar 2007 04:22:17 -0400 Subject: [nycphp-talk] Single Signon Multiple Domains In-Reply-To: <8d9a42800703261510l2c84f5daiafbfd94547eccbe0@mail.gmail.com> References: <8d9a42800703261510l2c84f5daiafbfd94547eccbe0@mail.gmail.com> Message-ID: <4608D439.4010209@n0p.net> On 03/26/2007 06:10 PM, Joseph Crawford wrote: > The company I am working for wants to have a single signon for multiple > sites that will be on different domains. George Schlossnagle has a complete explanation and implementation in his excellent book: "Advanced PHP Programming" flav Hmmm looks like a Second Edition on the horizon: From lists at silmail.com Tue Mar 27 06:29:35 2007 From: lists at silmail.com (Jiju Thomas Mathew) Date: Tue, 27 Mar 2007 15:59:35 +0530 Subject: [nycphp-talk] Single Signon Multiple Domains In-Reply-To: <20070327021130.4e35d522.mba2000@ioplex.com> References: <8d9a42800703261510l2c84f5daiafbfd94547eccbe0@mail.gmail.com> <20070326202349.1f50e3f6.mba2000@ioplex.com> <8d9a42800703261903g5057bcbfy7d151e1566a7c237@mail.gmail.com> <20070326230648.07f1b9f9.mba2000@ioplex.com> <8d9a42800703262012m17a83776i74c0809b8cebf588@mail.gmail.com> <20070327021130.4e35d522.mba2000@ioplex.com> Message-ID: <6431a0f40703270329l171c4ff2j147c0471221597d3@mail.gmail.com> > > > Basically yes. If you don't want to (or can't) have the client carry > some state with it, then you're pretty much locked into using a central > database to store cross site session data. There's just no other way > for site B to know that the user authenticated successfully with site > A without site A and site B sharing data. > > I had once explored this method, client wanted something like passport login, used by hotmail. There were about 30 tlds, and the client needed a single signon, what we did was to maintain one single authentication table, and update that with the userdata and a cookie hash. Each domain also had a session validator, that just fetched the data from the central table and stored into the php sessions, using php http client class. The user data would be fetched only if the data is not existing in the session, and the cookie hash is received. -- Jiju Thomas Mathew http://www.php-trivandrum.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at silmail.com Tue Mar 27 06:34:04 2007 From: lists at silmail.com (Jiju Thomas Mathew) Date: Tue, 27 Mar 2007 16:04:04 +0530 Subject: [nycphp-talk] CSV file Reading In-Reply-To: <20070326234124.GA26353@panix.com> References: <1b3d2fde0703260728k4c99bf42i31ac94346b544367@mail.gmail.com> <20070326234124.GA26353@panix.com> Message-ID: <6431a0f40703270334n2a64a64fq523e831426725de4@mail.gmail.com> > > > I have to read large CSV file upto 10 MB size. I tried to read each line > by > > using getcsv() method, but cannot worthy. I have to make some checking > the > > contents of the CSV files such as any duplicate row, or any row missing > > contents etc. > I would consider using a temporary table, provided we have to finally address an sql database. If we could pass LOAD INFILE.. statement to a temp table, and then use sql queries, that would be less painful for us, as well as our server, it is my assumption. -- Jiju Thomas Mathew http://www.php-trivandrum.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at silmail.com Tue Mar 27 06:45:13 2007 From: lists at silmail.com (Jiju Thomas Mathew) Date: Tue, 27 Mar 2007 16:15:13 +0530 Subject: [nycphp-talk] Creating database tables when deploying products In-Reply-To: <01b001c76fb4$bef4f730$6a01a8c0@gamebox> References: <01b001c76fb4$bef4f730$6a01a8c0@gamebox> Message-ID: <6431a0f40703270345m244fef32k717a996e85acf5b9@mail.gmail.com> > So my question is ... is what I'm doing ok? .. there must be a better way > to do it ... How are you all > doing database table creation for products that need to be deployed on > multiple systems.? > > We use a more or less the same method, with one difference, that is the sql query instead of being embedded, is a seperate setup.sql file with comments and whitespace stripped off. Means, each complete statement is in one line. The script issues a source setup.sql to the mysql after connecting to the database. -- Jiju Thomas Mathew http://www.php-trivandrum.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From support at dailytechnology.net Tue Mar 27 08:05:05 2007 From: support at dailytechnology.net (Brian Dailey) Date: Tue, 27 Mar 2007 08:05:05 -0400 Subject: [nycphp-talk] Creating database tables when deploying products In-Reply-To: <6431a0f40703270345m244fef32k717a996e85acf5b9@mail.gmail.com> References: <01b001c76fb4$bef4f730$6a01a8c0@gamebox> <6431a0f40703270345m244fef32k717a996e85acf5b9@mail.gmail.com> Message-ID: <46090871.6070305@dailytechnology.net> If you are deploying databases across multiple systems on a regular basis (ie: planning on doing it more than once or twice) I recommend you look into the PHP version of Ant called Phing. http://phing.info/trac/ Jiju Thomas Mathew wrote: > > > > So my question is ... is what I'm doing ok? .. there must be a > better way to do it ... How are you all > doing database table creation for products that need to be deployed > on multiple systems.? > > > > We use a more or less the same method, with one difference, that is the > sql query instead of being embedded, is a seperate setup.sql file with > comments and whitespace stripped off. Means, each complete statement is > in one line. The script issues a source setup.sql to the mysql after > connecting to the database. > > -- > Jiju Thomas Mathew > http://www.php-trivandrum.org > > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From Consult at CovenantEDesign.com Tue Mar 27 09:59:13 2007 From: Consult at CovenantEDesign.com (CED) Date: Tue, 27 Mar 2007 08:59:13 -0500 Subject: [nycphp-talk] Single Signon Multiple Domains References: <8d9a42800703261510l2c84f5daiafbfd94547eccbe0@mail.gmail.com> <4608D439.4010209@n0p.net> Message-ID: <007401c77078$1a15c810$07d6f4a7@ced> Good recommendation Flavio! ----- Original Message ----- From: "Flavio daCosta" To: "NYPHP Talk" Sent: Tuesday, March 27, 2007 3:22 AM Subject: Re: [nycphp-talk] Single Signon Multiple Domains > On 03/26/2007 06:10 PM, Joseph Crawford wrote: > > The company I am working for wants to have a single signon for multiple > > sites that will be on different domains. > > George Schlossnagle has a complete explanation and implementation in his > excellent book: "Advanced PHP Programming" > > > flav > > > > Hmmm looks like a Second Edition on the horizon: > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From codebowl at gmail.com Tue Mar 27 09:10:51 2007 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 27 Mar 2007 09:10:51 -0400 Subject: [nycphp-talk] Single Signon Multiple Domains In-Reply-To: <007401c77078$1a15c810$07d6f4a7@ced> References: <8d9a42800703261510l2c84f5daiafbfd94547eccbe0@mail.gmail.com> <4608D439.4010209@n0p.net> <007401c77078$1a15c810$07d6f4a7@ced> Message-ID: <8d9a42800703270610t6d4edfd8y1fed081b06963148@mail.gmail.com> I actually have George's book beu never had time to flip through it, guess this is as good a time as any. Thanks for the tip that it is between the covers :) -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ Blog: http://www.josephcrawford.com/ 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at projectskyline.com Tue Mar 27 10:10:38 2007 From: ben at projectskyline.com (Ben Sgro (ProjectSkyline)) Date: Tue, 27 Mar 2007 10:10:38 -0400 Subject: [nycphp-talk] Creating database tables when deploying products References: <01b001c76fb4$bef4f730$6a01a8c0@gamebox><6431a0f40703270345m244fef32k717a996e85acf5b9@mail.gmail.com> <46090871.6070305@dailytechnology.net> Message-ID: <00a601c77079$b224d320$6a01a8c0@gamebox> Hello all, Brian - Looks cool, but seems like I need CL access to the host ..which I often do not have. I'll look into it more. Jiju - So you use an .sql file w/the instructions to build the table. Do you execute from CL, PHP or phpMyAdmin. As stated above, I often do not have CL access to a host. Thanks for your suggestions. - Ben ----- Original Message ----- From: "Brian Dailey" To: "NYPHP Talk" Sent: Tuesday, March 27, 2007 8:05 AM Subject: Re: [nycphp-talk] Creating database tables when deploying products > If you are deploying databases across multiple systems on a regular basis > (ie: planning on doing it more than once or twice) I recommend you look > into the PHP version of Ant called Phing. > > http://phing.info/trac/ > > Jiju Thomas Mathew wrote: >> >> >> So my question is ... is what I'm doing ok? .. there must be a >> better way to do it ... How are you all >> doing database table creation for products that need to be deployed >> on multiple systems.? >> We use a more or less the same method, with one difference, that is >> the sql query instead of being embedded, is a seperate setup.sql file >> with comments and whitespace stripped off. Means, each complete >> statement is in one line. The script issues a source setup.sql to the >> mysql after connecting to the database. >> >> -- >> Jiju Thomas Mathew >> http://www.php-trivandrum.org >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> New York PHP Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> NYPHPCon 2006 Presentations Online >> http://www.nyphpcon.com >> >> Show Your Participation in New York PHP >> http://www.nyphp.org/show_participation.php > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From lists at silmail.com Tue Mar 27 14:05:33 2007 From: lists at silmail.com (Jiju Thomas Mathew) Date: Tue, 27 Mar 2007 23:35:33 +0530 Subject: [nycphp-talk] Creating database tables when deploying products In-Reply-To: <00a601c77079$b224d320$6a01a8c0@gamebox> References: <01b001c76fb4$bef4f730$6a01a8c0@gamebox> <6431a0f40703270345m244fef32k717a996e85acf5b9@mail.gmail.com> <46090871.6070305@dailytechnology.net> <00a601c77079$b224d320$6a01a8c0@gamebox> Message-ID: <6431a0f40703271105u4a5bbc94g75441923d3d68b62@mail.gmail.com> > > > Jiju - So you use an .sql file w/the instructions to build the table. Do > you > execute from CL, PHP or > phpMyAdmin. As stated above, I often do not have CL access to a host. > > >> statement is in one line. The script issues a source setup.sql to the > >> mysql after connecting to the database. > We use it from php, with a "source setup.sql" statement thrown in from the script. -- Jiju Thomas Mathew http://www.php-trivandrum.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.southwell at nyphp.com Tue Mar 27 18:16:37 2007 From: michael.southwell at nyphp.com (Michael Southwell) Date: Tue, 27 Mar 2007 17:16:37 -0500 Subject: [nycphp-talk] sorry, just testing - IGNORE Message-ID: <6.2.3.4.2.20070327171545.02895310@mail.optonline.net> Sorry, I got unsubscribed by accident and I'm checking that I'm back to life..... Michael Southwell, Vice President for Education New York PHP http://www.nyphp.com/training - In-depth PHP Training Courses From michael.southwell at nyphp.com Tue Mar 27 18:35:04 2007 From: michael.southwell at nyphp.com (Michael Southwell) Date: Tue, 27 Mar 2007 17:35:04 -0500 Subject: [nycphp-talk] mail problems Message-ID: <6.2.3.4.2.20070327173311.028c5ab0@mail.optonline.net> I am having a baffling problem with a script that sends an html email. It seems to work sometimes and not at other times. My (unhappy) client is seeing headers when she gets anything. Multiple recipients seem to handled randomly. What can you see here that's wrong? I have tested $addresses and it is the properly comma-delimited string. ============================ ...... $addresses = $_POST['addresses']; $addresses = str_replace( ' ', '', $addresses ); $addresses = str_replace( "\r\n", '', $addresses ); $addresses = str_replace( "\n", '', $addresses ); $to = 'Undisclosed Recipients '; $subject = 'Spring Arrives'; $headers = "From: ronnie at ronnieschultz.com\n"; $headers .= "Bcc: $addresses\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\n\n"; $headers .= '

[If you are not seeing graphics in this message, please click here.]

'; if ( ! mail( $to, $subject, '', $headers ) ) { exit( 'There has been an error sending your mail. Please report this.' ); } else { $addresses = str_replace( ',', '
', $addresses ); echo '

The card has been sent to:
' . $addresses . '

'; } // no error sending ==================== You can try this for yourselves at http://lauratheodore.com/test/xms.php. Michael Southwell, Vice President for Education New York PHP http://www.nyphp.com/training - In-depth PHP Training Courses From kenneth at ylayali.net Tue Mar 27 19:28:17 2007 From: kenneth at ylayali.net (Kenneth Dombrowski) Date: Tue, 27 Mar 2007 19:28:17 -0400 Subject: [nycphp-talk] mail problems In-Reply-To: <6.2.3.4.2.20070327173311.028c5ab0@mail.optonline.net> References: <6.2.3.4.2.20070327173311.028c5ab0@mail.optonline.net> Message-ID: <20070327232816.GJ17212@ylayali.net> Hi Michael, On 07-03-27 17:35 -0500, Michael Southwell wrote: > It seems to work sometimes and not at other times. My (unhappy) client > is seeing headers when she gets anything. Multiple recipients seem to > handled randomly. What can you see here that's wrong? I have tested > $addresses and it is the properly comma-delimited string. Have you tried sending the headers and body separately? mail($to, $subject, $body, $headers); I've never seen anyone do it your way before > $headers .= "MIME-Version: 1.0\n"; > $headers .= "Content-Type: text/html; charset=ISO-8859-1\n\n"; > $headers .= ' > Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> I always send html as part of a multipart message : $mime_bound_1 = '__=MIME_BOUND_1=' . md5($_SERVER['HTTP_HOST'] . time()); $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-type: multipart/alternative; boundary=\"$mime_bound_1\"\n"; and then within your message body each type is delimited by your $mime_bound_1 ("simpler" content types before more complicated ones): $body .= $mime_bound_1 . "\n"; $body .= "Content-type: text/plain; charset=\"iso-8859-1\"\n"; $body .= "\n"; $body .= $your_text_part; $body .= "\n"; $body .= $mime_bound_1 . "\n"; $body .= "Content-type: text/html; charset=\"iso-8859-1\"\n"; $body .= "\n"; $body .= $your_html_part_including_doctype_and_head; $body .= "\n"; $body .= $mime_bound_1 . "\n"; to generate a text part quickly, I do something like this in my mail class (if only an html part is set) : $tmp = tmpfile(); fwrite($tmp, $html_part); $elinks = (defined('ELINKS_PATH')) ? ELINKS_PATH : 'elinks'; $text_part = `$elinks --dump $tmp`; fclose($tmp); hth, Kenneth From lists at silmail.com Tue Mar 27 23:07:32 2007 From: lists at silmail.com (Jiju Thomas Mathew) Date: Wed, 28 Mar 2007 08:37:32 +0530 Subject: [nycphp-talk] mail problems In-Reply-To: <20070327232816.GJ17212@ylayali.net> References: <6.2.3.4.2.20070327173311.028c5ab0@mail.optonline.net> <20070327232816.GJ17212@ylayali.net> Message-ID: <6431a0f40703272007g40dbeddmeb9f8181285d4ca0@mail.gmail.com> I would recommend http://phpmailer.sourceforge.net >> http://www.php-trivandrum.org/code-snippets/php-mime-mail-class.html -- Jiju Thomas Mathew http://www.php-trivandrum.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From cliff at pinestream.com Wed Mar 28 12:57:24 2007 From: cliff at pinestream.com (Cliff Hirsch) Date: Wed, 28 Mar 2007 12:57:24 -0400 Subject: [nycphp-talk] Single sign-on -- one more gotcha Message-ID: I have been going through the two-application ? two sessions ? single sign-on issue as well, and just want to point out one more potential gotcha that hasn?t been covered yet. If you are integrating multiple applications on one site, any form of authentication/single sign-in does not address the session duration/expiry issue. Unless you have one session store or update all relevant sessions, parts of your application will expire/garbage cleanup at different times, which could be very confusing to the end user. ?Why am I still logged in here, but not there...?? As I see it, there only two ways to deal with this: 1. Integrate the sessions 2. A register shutdown function that ?refreshes? the expiry value in all related sessions. Cliff -------------- next part -------------- An HTML attachment was scrubbed... URL: From danielc at analysisandsolutions.com Wed Mar 28 14:35:45 2007 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 28 Mar 2007 14:35:45 -0400 Subject: [nycphp-talk] Creating database tables when deploying products In-Reply-To: <01b001c76fb4$bef4f730$6a01a8c0@gamebox> References: <01b001c76fb4$bef4f730$6a01a8c0@gamebox> Message-ID: <20070328183545.GA20644@panix.com> Hi Ben: Your oo approach looks nice. If you want to do something really cross platform, check out PEAR's MDB2 package. Can reverse engineer an existing table into an XML syntax. The XML syntax can then be used to create tables in any DMBS. --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 ben at projectskyline.com Thu Mar 29 09:48:49 2007 From: ben at projectskyline.com (Ben Sgro (ProjectSkyline)) Date: Thu, 29 Mar 2007 09:48:49 -0400 Subject: [nycphp-talk] Creating database tables when deploying products References: <01b001c76fb4$bef4f730$6a01a8c0@gamebox> <20070328183545.GA20644@panix.com> Message-ID: <003c01c77208$fab095d0$6a01a8c0@gamebox> Hello Dan, I will give it a look. I'm at the point of having to write the same code to handle MSSQL for an upcomming project. My OOP code is good w/only mySQL. Thanks. - Ben ----- Original Message ----- From: "Daniel Convissor" To: "NYPHP Talk" Sent: Wednesday, March 28, 2007 2:35 PM Subject: Re: [nycphp-talk] Creating database tables when deploying products > Hi Ben: > > Your oo approach looks nice. If you want to do something really cross > platform, check out PEAR's MDB2 package. Can reverse engineer an existing > table into an XML syntax. The XML syntax can then be used to create > tables in any DMBS. > > --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 Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From rotsen at gmail.com Thu Mar 29 20:09:33 2007 From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=) Date: Thu, 29 Mar 2007 17:09:33 -0700 Subject: [nycphp-talk] Passing values with '&' Message-ID: Guys, I have QUERYSTRING that I am passing to another web page and it contains 'Consideration 534 & 535". When I GET the variable I only get 'Consideration 534' How do I pass the '&' so that I can read the rest of the variable???? I tried using the following with no luck: 1) htmlentities and html_entity_decode 2) addslashes I am using php 4.3 Thanks, N?stor :-) -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at cyberxdesigns.com Thu Mar 29 20:16:53 2007 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Thu, 29 Mar 2007 20:16:53 -0400 Subject: [nycphp-talk] Passing values with '&' In-Reply-To: References: Message-ID: <460C56F5.6080204@cyberxdesigns.com> $string = urlencode("Hans & Allie"); echo $string; Hans C. Kaspersetz Cyber X Designs http://www.cyberxdesigns.com N?stor wrote: > Guys, > > I have QUERYSTRING that I am passing to another web page > and it contains 'Consideration 534 & 535". When I GET the variable > I only get 'Consideration 534' > > How do I pass the '&' so that I can read the rest of the variable???? > > I tried using the following with no luck: > 1) htmlentities and html_entity_decode > 2) addslashes > > I am using php 4.3 > > Thanks, > > N?stor :-) > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From sergey-ru at list.ru Thu Mar 29 23:35:50 2007 From: sergey-ru at list.ru (sergey-ru at list.ru) Date: Fri, 30 Mar 2007 07:35:50 +0400 Subject: [nycphp-talk] Passing values with '&' In-Reply-To: <460C56F5.6080204@cyberxdesigns.com> References: <460C56F5.6080204@cyberxdesigns.com> Message-ID: <179917786.20070330073550@list.ru> Hi N?stor. Or simple: echo urlencode("Hans & Allie"); -- Sergey Kozlov mailto:sergey-ru at list.ru > $string = urlencode("Hans & Allie"); > echo $string; > Hans C. Kaspersetz > Cyber X Designs > http://www.cyberxdesigns.com > N?stor wrote: >> Guys, >> >> I have QUERYSTRING that I am passing to another web page >> and it contains 'Consideration 534 & 535". When I GET the variable >> I only get 'Consideration 534' >> >> How do I pass the '&' so that I can read the rest of the variable???? >> >> I tried using the following with no luck: >> 1) htmlentities and html_entity_decode >> 2) addslashes >> >> I am using php 4.3 >> >> Thanks, >> >> N?stor :-) >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> New York PHP Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> NYPHPCon 2006 Presentations Online >> http://www.nyphpcon.com >> >> Show Your Participation in New York PHP >> http://www.nyphp.org/show_participation.php > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From hans at cyberxdesigns.com Fri Mar 30 09:39:34 2007 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Fri, 30 Mar 2007 09:39:34 -0400 Subject: [nycphp-talk] Passing values with '&' In-Reply-To: <179917786.20070330073550@list.ru> References: <460C56F5.6080204@cyberxdesigns.com> <179917786.20070330073550@list.ru> Message-ID: <460D1316.8050900@cyberxdesigns.com> sergey-ru at list.ru wrote: > Hi N?stor. > Or simple: > > echo urlencode("Hans & Allie"); > > Always got to be a joker in the crowd. As I watched my email go out I thought to myself, "Someone is gonna nail me on this. Ug..." Hans From rotsen at gmail.com Fri Mar 30 15:17:20 2007 From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=) Date: Fri, 30 Mar 2007 12:17:20 -0700 Subject: [nycphp-talk] Passing values with '&' In-Reply-To: <460D1316.8050900@cyberxdesigns.com> References: <460C56F5.6080204@cyberxdesigns.com> <179917786.20070330073550@list.ru> <460D1316.8050900@cyberxdesigns.com> Message-ID: Thanks guys, :-) On 3/30/07, Hans C. Kaspersetz wrote: > > sergey-ru at list.ru wrote: > > Hi N?stor. > > Or simple: > > > > echo urlencode("Hans & Allie"); > > > > > Always got to be a joker in the crowd. As I watched my email go out I > thought to myself, "Someone is gonna nail me on this. Ug..." > > Hans > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenzolist at counterfolk.com Fri Mar 30 16:53:47 2007 From: kenzolist at counterfolk.com (Ken) Date: Fri, 30 Mar 2007 16:53:47 -0400 Subject: [nycphp-talk] Source code escrow: Any experience? Message-ID: <5.6148636341095.16.7732670307159@1.00003074514532> Have any of you dealt with any source code escrow firms? A couple of organizations I work with are interested in this subject. The various interests include putting source code into escrow to be released if: - Development company fails to finish delivering on agreement; - Development company stops maintaining software in the future; - Development company goes bankrupt; - Developer dies. I've found the subject interesting myself. Does anyone have any suggested companies who do source code escrow, or other suggested approaches to handle these concerns? I've found various companies listed online, but I'm curious to hear about personal experiences (with escrow companies or with other approaches). Thanks! - Ken From paul at devonianfarm.com Sat Mar 31 22:05:59 2007 From: paul at devonianfarm.com (Paul Houle) Date: Sat, 31 Mar 2007 22:05:59 -0400 Subject: [nycphp-talk] Creating database tables when deploying products In-Reply-To: <01b001c76fb4$bef4f730$6a01a8c0@gamebox> References: <01b001c76fb4$bef4f730$6a01a8c0@gamebox> Message-ID: <460F1387.2070105@devonianfarm.com> Ben Sgro (ProjectSkyline) wrote: > > $sqlStr = "CREATE TABLE admin " > . " (id int(11) NOT NULL auto_increment," > . " username varchar(64) default ''," > . " password varchar(64) default ''," > . " last_login int(12) default 0," > . " primary key(id, username)" > . ')'; > DBAS_MySQLQuery($sqlStr, $db); Not too bad, but PHP isn't Java. you can write multi-line string literals. $sqlStr = " CREATE TABLE admin (id int(11) NOT NULL auto_increment, username varchar(64) default, password varchar(64) default ',' last_login int(12) default 0, primary key(id, username) )"; More readable, less painful. I'm thinking about this stuff too. There are lots of people who are addicted to visual tools like the "Enterprise Manager" that comes with Microsoft SQL Server. These have their place, but you really should be writing DDL (CREATE TABLE, etc.) if you want consistent results. Historically, I've written schema files into *.sql files that can be * cut and pasted into the MS-SQL "Query Analyser", or * mysql -uuser -p db_name < load_schema.sql The cross database thing is making me think about a different answer. Also lately I've been creating large numbers of repetitive tables, or groups of tables that all have certain columns (timestamps, for instance) When it comes to cross database, however, you ought to think about the business goal you're after. It's pretty silly to support all 20 or so relational databases that PHP can connect to. Most organizations, however, will have a few databases that are reasonable targets: * Mysql and MS-SQL: the kind of shop that likes to have it both ways with Microsoft and Open Source. You can ship apps that will keep most people happy. * Mysql and Oracle: good for the Unix shop which has both entrepreneurial projects (install Linux, start coding) and 'enterprise' systems (ask your boss to ask her boss to ask his boss to ask the DBA to make you a table) * Postgresql and MySQL: if you want to please all the open source people you meet From paul at devonianfarm.com Sat Mar 31 22:40:31 2007 From: paul at devonianfarm.com (Paul Houle) Date: Sat, 31 Mar 2007 22:40:31 -0400 Subject: [nycphp-talk] Howto create custom URLs In-Reply-To: <3E98BE00-7A5D-42EA-900F-9617620E4CA5@sala.ca> References: <00b201c76a35$0ce47c20$6a01a8c0@gamebox> <3E98BE00-7A5D-42EA-900F-9617620E4CA5@sala.ca> Message-ID: <460F1B9F.4080103@devonianfarm.com> Dell Sala wrote: >> >> In other words, build a php wrapper around your software package. Done >> right, it won't know the difference, and you don't have to muck around >> with httpd.conf. This can be fun. It can be an easy way to improve the user interface of commercial junkware web apps. I did a presentation at a conference about a demo system I built with an instruction librarian. With about 200 lines of PHP I was able to put a wrapper over a library catalog that created an online instruction unit that worked with the real catalog. It would display popover
s that would give people instructions. The app monitored their progress -- it would congradulate them if they found what they were looking for and offer them help if they made certain common mistakes. From paul at devonianfarm.com Sat Mar 31 22:46:48 2007 From: paul at devonianfarm.com (Paul Houle) Date: Sat, 31 Mar 2007 22:46:48 -0400 Subject: [nycphp-talk] Single Signon Multiple Domains In-Reply-To: <46084B54.8030705@dailytechnology.net> References: <8d9a42800703261510l2c84f5daiafbfd94547eccbe0@mail.gmail.com> <00f101c76ffe$591a4a60$07d6f4a7@ced> <8d9a42800703261531l7c684b9bw4024d46d3406d8d1@mail.gmail.com> <46084B54.8030705@dailytechnology.net> Message-ID: <460F1D18.40207@devonianfarm.com> Brian Dailey wrote: > (By the way, I know an IP address *won't* work, it was a theoretical > question.) > > I've had this same problem before and I'm curious to see how others > have solved it. > Reinventing the wheel is a waste of time in most circumstances. When it comes to security, reinventing the wheel is a way to get hacked. Take a look at some serious systems such as: http://developer.yahoo.com/auth/ http://www.sixapart.com/typekey/ http://www.projectliberty.org/ From ben at projectskyline.com Sat Mar 31 23:34:10 2007 From: ben at projectskyline.com (Ben Sgro (ProjectSkyline)) Date: Sat, 31 Mar 2007 23:34:10 -0400 Subject: [nycphp-talk] Creating database tables when deploying products References: <01b001c76fb4$bef4f730$6a01a8c0@gamebox> <460F1387.2070105@devonianfarm.com> Message-ID: <000f01c7740e$9ce3fde0$6a01a8c0@gamebox> Hello Paul, Excellent points. I'm *shamed* .. as stated, "less painful", heh. I believe Jiju had mentioned using .sql files as well, its a great idea. I may try that out on my next project. Up until taking a recent job, our shop only supported mySQL. That's where all my experiance lies (besides a few months at a MSSQL shop). But now we need to support MSSQL, and I just ported my SQL php 4 libs to OOP PHP 5....(guess I'll write these libs right the first time). I suppose I can use PEAR:DB:SQLwhatever, but I'm intimate what my SQL code and don't want to give it up. Anyways, thanks again to all! - Ben ----- Original Message ----- From: "Paul Houle" To: "NYPHP Talk" Sent: Saturday, March 31, 2007 10:05 PM Subject: Re: [nycphp-talk] Creating database tables when deploying products > Ben Sgro (ProjectSkyline) wrote: >> >> $sqlStr = "CREATE TABLE admin " >> . " (id int(11) NOT NULL auto_increment," >> . " username varchar(64) default ''," >> . " password varchar(64) default ''," >> . " last_login int(12) default 0," >> . " primary key(id, username)" >> . ')'; >> DBAS_MySQLQuery($sqlStr, $db); > Not too bad, but PHP isn't Java. you can write multi-line string > literals. > > $sqlStr = " > CREATE TABLE admin (id int(11) NOT NULL auto_increment, > username varchar(64) default, > password varchar(64) default ',' > last_login int(12) default 0, > primary key(id, username) > )"; > > More readable, less painful. I'm thinking about this stuff too. > There are lots of people who are addicted to visual tools like the > "Enterprise Manager" that comes with Microsoft SQL Server. These have > their place, but you really should be writing DDL (CREATE TABLE, etc.) if > you want consistent results. Historically, I've written schema files > into *.sql files that can be > > * cut and pasted into the MS-SQL "Query Analyser", or > * mysql -uuser -p db_name < load_schema.sql > > The cross database thing is making me think about a different answer. > Also lately I've been creating large numbers of repetitive tables, or > groups of tables that all have certain columns (timestamps, for instance) > > When it comes to cross database, however, you ought to think about > the business goal you're after. It's pretty silly to support all 20 or so > relational databases that PHP can connect to. Most organizations, > however, will have a few databases that are reasonable targets: > > * Mysql and MS-SQL: the kind of shop that likes to have it both ways with > Microsoft and Open Source. You can ship apps that will keep most people > happy. > * Mysql and Oracle: good for the Unix shop which has both entrepreneurial > projects (install Linux, start coding) and 'enterprise' systems (ask your > boss to ask her boss to ask his boss to ask the DBA to make you a table) > * Postgresql and MySQL: if you want to please all the open source people > you meet > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php