From lists at zaunere.com Sun Jun 1 16:03:52 2008 From: lists at zaunere.com (Hans Zaunere) Date: Sun, 1 Jun 2008 16:03:52 -0400 Subject: [nycphp-talk] PHP 6 Message-ID: <000101c8c422$9def3190$d9cd94b0$@com> Hello everyone, I came across this article and thought it would be useful to pass along: http://www.ibm.com/developerworks/opensource/library/os-php-future/?ca=dgr-l nxw01PHP-Future Happy June, --- Hans Zaunere / President / New York PHP www.nyphp.org / ?www.nyphp.com From ka at kacomputerconsulting.com Sun Jun 1 18:43:58 2008 From: ka at kacomputerconsulting.com (Kristina Anderson) Date: Sun, 1 Jun 2008 15:43:58 -0700 Subject: [nycphp-talk] readfile() with PDF Message-ID: <1212360238.3873@coral.he.net> Hi Everyone -- I'm almost there with my PDF download application and everything is working great except that instead of downloading the PDF, it's printing it out on the screen like so:@8(??r?;q??7?L??y??&?Q??q?4?j???|?9?? ?V??)g?B?0?i?W??8#?8w????8_?????Q????Q?j@?&?A)/??g?>'K???t?;\?? ??$??F?ZUn??? ?(4T?%)????0C&?????Z??i????8??bx??E???B?; ????P????????A? om??W= ?x??????-?????[???0?? ???}??y) 7ta?????>j???T?7???@????t???`q?2??????&???6? etc. Here is the code that I have right now...something is wrong. At one point I got it to give me the file save/download dialogue box but with the pagename not the filename... //======= $filename="333.pdf"; $filesize=filesize($filename); header("Content-Type: application/pdf"); header("Content-Length: ".$filesize); header("Content-Disposition: inline; filename=$filename"); header("Content-Transfer-Encoding: binary"); $file_contents = readfile($filename); print $file_contents; //====== -- Kristina From ka at kacomputerconsulting.com Sun Jun 1 18:50:30 2008 From: ka at kacomputerconsulting.com (Kristina Anderson) Date: Sun, 1 Jun 2008 15:50:30 -0700 Subject: Fw: [nycphp-talk] readfile() with PDF Message-ID: <1212360630.6361@coral.he.net> ahh... I see one thing, I should be using attachment rather than inline... let me see if that helps :) ------------- Forwarded message follows ------------- Hi Everyone -- I'm almost there with my PDF download application and everything is working great except that instead of downloading the PDF, it's printing it out on the screen like so:@8(??r?;q??7?L??y??&?Q??q?4?j???|?9?? ?V??)g?B?0?i?W??8#?8w????8_?????Q????Q?j@?&?A)/??g?>'K???t?;\?? ??$??F?ZUn??? ?(4T?%)????0C&?????Z??i????8??bx??E???B?; ????P????????A? om??W= ?x??????-?????[???0?? ???}??y) 7ta?????>j???T?7???@????t???`q?2??????&???6? etc. Here is the code that I have right now...something is wrong. At one point I got it to give me the file save/download dialogue box but with the pagename not the filename... //======= $filename="333.pdf"; $filesize=filesize($filename); header("Content-Type: application/pdf"); header("Content-Length: ".$filesize); header("Content-Disposition: inline; filename=$filename"); header("Content-Transfer-Encoding: binary"); $file_contents = readfile($filename); print $file_contents; //====== -- Kristina _______________________________________________ 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 zippy1981 at gmail.com Sun Jun 1 19:01:12 2008 From: zippy1981 at gmail.com (Justin Dearing) Date: Sun, 1 Jun 2008 19:01:12 -0400 Subject: Fw: [nycphp-talk] readfile() with PDF In-Reply-To: <1212360630.6361@coral.he.net> References: <1212360630.6361@coral.he.net> Message-ID: <5458db3c0806011601j484b3122ob5efa8c341934ef9@mail.gmail.com> Check the error log. Its possible something in your code above that smippet (perhaps in an include file) is sending body text and you are not seeing the error. On Sun, Jun 1, 2008 at 6:50 PM, Kristina Anderson wrote: > ahh... I see one thing, I should be using attachment rather than > inline... > > let me see if that helps :) > ------------- Forwarded message follows ------------- > > Hi Everyone -- > > I'm almost there with my PDF download application and everything is > working great except that instead of downloading the PDF, it's printing > it out on the screen like so:@ 8 ("?r?;q(R)?7?L? ?y??&?Q ?? q?4?j???|?9?? > V ?)g B?0?i?W? ?8#(c)8w?(c)??8_?????Q??? ?Q?j @?&?A)/?? g?>'K?? ?t?;\? " > ??$??F?ZUn??? ?(4T?%)??" ?0C&?"? ??Z?"i ????8??bx'?E???B ?;? > ????P????"???A? om??W= ?x ??????-?? ???[???0?? ???}??y) > 7 ta?????>j???T?7?? ?@????t???`q?2??????&?(R)?6? etc. > > Here is the code that I have right now...something is wrong. At one > point I got it to give me the file save/download dialogue box but with > the pagename not the filename... > > //======= > > $filename="333.pdf"; > $filesize=filesize($filename); > header("Content-Type: application/pdf"); > header("Content-Length: ".$filesize); > header("Content-Disposition: inline; filename=$filename"); > header("Content-Transfer-Encoding: binary"); > $file_contents = readfile($filename); > print $file_contents; > > //====== > > -- Kristina > > _______________________________________________ > 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 ka at kacomputerconsulting.com Sun Jun 1 19:08:24 2008 From: ka at kacomputerconsulting.com (Kristina Anderson) Date: Sun, 1 Jun 2008 16:08:24 -0700 Subject: Fw: [nycphp-talk] readfile() with PDF Message-ID: <1212361704.12364@coral.he.net> Changing "inline" to "attachment" worked!! :) I can taste that cold beer already!! -- Kristina > Check the error log. Its possible something in your code above that > smippet (perhaps in an include file) is sending body text and you are > not seeing the error. > > On Sun, Jun 1, 2008 at 6:50 PM, Kristina Anderson > wrote: > > ahh... I see one thing, I should be using attachment rather than > > inline... > > > > let me see if that helps :) > > ------------- Forwarded message follows ------------- > > > > Hi Everyone -- > > > > I'm almost there with my PDF download application and everything is > > working great except that instead of downloading the PDF, it's printing > > it out on the screen like so:@ 8 ("?r?;q(R)?7?L? ?y??&?Q ?? q?4?j???|?9?? > > V ?)g B?0?i?W? ?8#(c)8w?(c)??8_?????Q??? ?Q?j @?&?A)/?? g?>'K?? ?t?;\? " > > ??$??F?ZUn??? ?(4T?%)??" ?0C&?"? ??Z?"i ????8??bx'?E???B ?; > > ????P????"???A? om??W= ?x ??????-?? ???[???0?? ???}??y) > > 7 ta?????>j???T?7?? ?@????t???`q?2??????&?(R)?6? etc. > > > > Here is the code that I have right now...something is wrong. At one > > point I got it to give me the file save/download dialogue box but with > > the pagename not the filename... > > > > //======= > > > > $filename="333.pdf"; > > $filesize=filesize($filename); > > header("Content-Type: application/pdf"); > > header("Content-Length: ".$filesize); > > header("Content-Disposition: inline; filename=$filename"); > > header("Content-Transfer-Encoding: binary"); > > $file_contents = readfile($filename); > > print $file_contents; > > > > //====== > > > > -- Kristina > > > > _______________________________________________ > > 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 arzala at gmail.com Sun Jun 1 23:23:24 2008 From: arzala at gmail.com (Anirudh Zala) Date: Mon, 2 Jun 2008 08:53:24 +0530 Subject: [nycphp-talk] PHP 6 In-Reply-To: <000101c8c422$9def3190$d9cd94b0$@com> References: <000101c8c422$9def3190$d9cd94b0$@com> Message-ID: <200806020853.24417.arzala@gmail.com> On Monday 02 Jun 2008 01:33:52 Hans Zaunere wrote: > Hello everyone, > > I came across this article and thought it would be useful to pass along: > > http://www.ibm.com/developerworks/opensource/library/os-php-future/?ca=dgr- >l nxw01PHP-Future > > > Happy June, Thanks for the link. Here is similar story but with different wordings. http://www.corephp.co.uk/archives/19-Prepare-for-PHP-6.html Anirudh Zala > > --- > 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 brian at realm3.com Mon Jun 2 09:46:16 2008 From: brian at realm3.com (Brian D.) Date: Mon, 2 Jun 2008 09:46:16 -0400 Subject: Fw: [nycphp-talk] readfile() with PDF In-Reply-To: <5458db3c0806011601j484b3122ob5efa8c341934ef9@mail.gmail.com> References: <1212360630.6361@coral.he.net> <5458db3c0806011601j484b3122ob5efa8c341934ef9@mail.gmail.com> Message-ID: Your problem is that you're actually outputting the PDF content twice. readfile() actually reads the file into the output buffer, so it's the equivalent of: echo file_get_contents($file); See http://us2.php.net/readfile - Brian D. On Sun, Jun 1, 2008 at 7:01 PM, Justin Dearing wrote: > Check the error log. Its possible something in your code above that > smippet (perhaps in an include file) is sending body text and you are > not seeing the error. > > On Sun, Jun 1, 2008 at 6:50 PM, Kristina Anderson > wrote: >> ahh... I see one thing, I should be using attachment rather than >> inline... >> >> let me see if that helps :) >> ------------- Forwarded message follows ------------- >> >> Hi Everyone -- >> >> I'm almost there with my PDF download application and everything is >> working great except that instead of downloading the PDF, it's printing >> it out on the screen like so:@ 8 ("?r?;q(R)?7?L? ?y??&?Q ?? q?4?j???|?9?? >> V ?)g B?0?i?W? ?8#(c)8w?(c)??8_?????Q??? ?Q?j @?&?A)/?? g?>'K?? ?t?;\? " >> ??$??F?ZUn??? ?(4T?%)??" ?0C&?"? ??Z?"i ????8??bx'?E???B ?;? >> ????P????"???A? om??W= ?x ??????-?? ???[???0?? ???}??y) >> 7 ta?????>j???T?7?? ?@????t???`q?2??????&?(R)?6? etc. >> >> Here is the code that I have right now...something is wrong. At one >> point I got it to give me the file save/download dialogue box but with >> the pagename not the filename... >> >> //======= >> >> $filename="333.pdf"; >> $filesize=filesize($filename); >> header("Content-Type: application/pdf"); >> header("Content-Length: ".$filesize); >> header("Content-Disposition: inline; filename=$filename"); >> header("Content-Transfer-Encoding: binary"); >> $file_contents = readfile($filename); >> print $file_contents; >> >> //====== >> >> -- Kristina >> >> _______________________________________________ >> 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 > -- realm3 web applications [realm3.com] freelance consulting, application development (917) 512-3594 From birgunjp0071 at yahoo.com Tue Jun 3 00:16:22 2008 From: birgunjp0071 at yahoo.com (birgunj birgunj) Date: Mon, 2 Jun 2008 21:16:22 -0700 (PDT) Subject: [nycphp-talk] need help about cms design In-Reply-To: Message-ID: <966304.65505.qm@web59306.mail.re1.yahoo.com> Dear all, i am trying to design and build the cms(content management system) from scratch.how to design the database for cms and how to start coding for this. i need help about this.if anbody has any idea,supporting material ,please share with us. thanks in advance to all. humayoo "Brian D." wrote: Your problem is that you're actually outputting the PDF content twice. readfile() actually reads the file into the output buffer, so it's the equivalent of: echo file_get_contents($file); See http://us2.php.net/readfile - Brian D. On Sun, Jun 1, 2008 at 7:01 PM, Justin Dearing wrote: > Check the error log. Its possible something in your code above that > smippet (perhaps in an include file) is sending body text and you are > not seeing the error. > > On Sun, Jun 1, 2008 at 6:50 PM, Kristina Anderson > wrote: >> ahh... I see one thing, I should be using attachment rather than >> inline... >> >> let me see if that helps :) >> ------------- Forwarded message follows ------------- >> >> Hi Everyone -- >> >> I'm almost there with my PDF download application and everything is >> working great except that instead of downloading the PDF, it's printing >> it out on the screen like so:@ 8 ("?r?;q(R)?7?L? ?y??&?Q ?? q?4?j???|?9?? >> V ?)g B?0?i?W? ?8#(c)8w?(c)??8_?????Q??? ?Q?j @?&?A)/?? g?>'K?? ?t?;\? " >> ??$??F?ZUn??? ?(4T?%)??" ?0C&?"? ??Z?"i ????8??bx'?E???B ?; >> ????P????"???A? om??W= ?x ??????-?? ???[???0?? ???}??y) >> 7 ta?????>j???T?7?? ?@????t???`q?2??????&?(R)?6? etc. >> >> Here is the code that I have right now...something is wrong. At one >> point I got it to give me the file save/download dialogue box but with >> the pagename not the filename... >> >> //======= >> >> $filename="333.pdf"; >> $filesize=filesize($filename); >> header("Content-Type: application/pdf"); >> header("Content-Length: ".$filesize); >> header("Content-Disposition: inline; filename=$filename"); >> header("Content-Transfer-Encoding: binary"); >> $file_contents = readfile($filename); >> print $file_contents; >> >> //====== >> >> -- Kristina >> >> _______________________________________________ >> 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 > -- realm3 web applications [realm3.com] freelance consulting, application development (917) 512-3594 _______________________________________________ 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 Tue Jun 3 06:44:26 2008 From: ramons at gmx.net (David Krings) Date: Tue, 03 Jun 2008 06:44:26 -0400 Subject: [nycphp-talk] need help about cms design In-Reply-To: <966304.65505.qm@web59306.mail.re1.yahoo.com> References: <966304.65505.qm@web59306.mail.re1.yahoo.com> Message-ID: <4845208A.6040404@gmx.net> birgunj birgunj wrote: > Dear all, > > i am trying to design and build the cms(content management system) from > scratch.how to design the database for cms and how to start coding for this. > > i need help about this.if anbody has any idea,supporting material > ,please share with us. > > thanks in advance to all. > > humayoo Well, despite the thread hijack I'll answer. First off a few questions. Did you ever design a database for any other application? Did you ever code something in PHP that went beyond some basic input verification, did something more than put out a static page, and worked in the end? I don't want to sound cross, but your question is like calling up Car Talk and asking the guys "I want to design and build my own car from scratch. How do I do that?". I'm just guessing here, but I assume that your experience with coding and database design is not that great. So maybe you want to download and use a CMS forwhatever you want to do and start with something that is less complex. David From brian at realm3.com Tue Jun 3 09:00:01 2008 From: brian at realm3.com (Brian D.) Date: Tue, 3 Jun 2008 09:00:01 -0400 Subject: [nycphp-talk] need help about cms design In-Reply-To: <966304.65505.qm@web59306.mail.re1.yahoo.com> References: <966304.65505.qm@web59306.mail.re1.yahoo.com> Message-ID: PHP Docs: http://www.php.net/docs.php Google is always an excellent resource: http://www.google.com/search?q="getting+started+with+php" As is Del.icio.us: http://del.icio.us/tag/php+tutorial Best of luck! -b. On Tue, Jun 3, 2008 at 12:16 AM, birgunj birgunj wrote: > Dear all, > > i am trying to design and build the cms(content management system) from > scratch.how to design the database for cms and how to start coding for this. > > i need help about this.if anbody has any idea,supporting material ,please > share with us. > > thanks in advance to all. > > humayoo > > "Brian D." wrote: > > Your problem is that you're actually outputting the PDF content twice. > readfile() actually reads the file into the output buffer, so it's the > equivalent of: > > echo file_get_contents($file); > > See http://us2.php.net/readfile > > - Brian D. > > On Sun, Jun 1, 2008 at 7:01 PM, Justin Dearing wrote: >> Check the error log. Its possible something in your code above that >> smippet (perhaps in an include file) is sending body text and you are >> not seeing the error. >> >> On Sun, Jun 1, 2008 at 6:50 PM, Kristina Anderson >> wrote: >>> ahh... I see one thing, I should be using attachment rather than >>> inline... >>> >>> let me see if that helps :) >>> ------------- Forwarded message follows ------------- >>> >>> Hi Everyone -- >>> >>> I'm almost there with my PDF download application and everything is >>> working great except that instead of downloading the PDF, it's printing >>> it out on the screen like so:@ 8 ("?r?;q(R)?7?L? ?y??&?Q ?? q?4?j???|?9?? >>> V ?)g B?0?i?W? ?8#(c)8w?(c)??8_?????Q??? ?Q?j @?&?A)/?? g?>'K?? ?t?;\? " >>> ??$??F?ZUn??? ?(4T?%)??" ?0C&?"? ??Z?"i ????8??bx'?E???B ?;? >>> ????P????"???A? om??W= ?x ??????-?? ???[???0?? ???}??y) >>> 7 ta?????>j???T?7?? ?@????t???`q?2??????&?(R)?6? etc. >>> >>> Here is the code that I have right now...something is wrong. At one >>> point I got it to give me the file save/download dialogue box but with >>> the pagename not the filename... >>> >>> //======= >>> >>> $filename="333.pdf"; >>> $filesize=filesize($filename); >>> header("Content-Type: application/pdf"); >>> header("Content-Length: ".$filesize); >>> header("Content-Disposition: inline; filename=$filename"); >>> header("Content-Transfer-Encoding: binary"); >>> $file_contents = readfile($filename); >>> print $file_contents; >>> >>> //====== >>> >>> -- Kristina >>> >>> _______________________________________________ >>> 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 >> > > > > -- > realm3 web applications [realm3.com] > freelance consulting, application development > (917) 512-3594 > _______________________________________________ > 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 > -- realm3 web applications [realm3.com] freelance consulting, application development (917) 512-3594 From chsnyder at gmail.com Tue Jun 3 10:46:16 2008 From: chsnyder at gmail.com (csnyder) Date: Tue, 3 Jun 2008 10:46:16 -0400 Subject: [nycphp-talk] need help about cms design In-Reply-To: <4845208A.6040404@gmx.net> References: <966304.65505.qm@web59306.mail.re1.yahoo.com> <4845208A.6040404@gmx.net> Message-ID: On Tue, Jun 3, 2008 at 6:44 AM, David Krings wrote: > > I don't > want to sound cross, but your question is like calling up Car Talk and > asking the guys "I want to design and build my own car from scratch. How do > I do that?". Great answer. Anyone can build a go-cart, but if you want to build a BMW from scratch you need to get a serious education and a precision machine shop first. -- Chris Snyder http://chxo.com/ From jmcgraw1 at gmail.com Tue Jun 3 11:12:01 2008 From: jmcgraw1 at gmail.com (Jake McGraw) Date: Tue, 3 Jun 2008 11:12:01 -0400 Subject: [nycphp-talk] need help about cms design In-Reply-To: References: <966304.65505.qm@web59306.mail.re1.yahoo.com> <4845208A.6040404@gmx.net> Message-ID: > how to design the database for cms and how to start coding for this is right up there with this gem http://www.youtube.com/watch?v=Ni_rAamVP2s - jake On Tue, Jun 3, 2008 at 10:46 AM, csnyder wrote: > On Tue, Jun 3, 2008 at 6:44 AM, David Krings wrote: >> >> I don't >> want to sound cross, but your question is like calling up Car Talk and >> asking the guys "I want to design and build my own car from scratch. How do >> I do that?". > > Great answer. Anyone can build a go-cart, but if you want to build a > BMW from scratch you need to get a serious education and a precision > machine shop first. > > -- > 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 smanes at magpie.com Tue Jun 3 12:58:04 2008 From: smanes at magpie.com (Steve Manes) Date: Tue, 03 Jun 2008 12:58:04 -0400 Subject: [nycphp-talk] need help about cms design In-Reply-To: <966304.65505.qm@web59306.mail.re1.yahoo.com> References: <966304.65505.qm@web59306.mail.re1.yahoo.com> Message-ID: <4845781C.8060709@magpie.com> birgunj birgunj wrote: > i am trying to design and build the cms(content management system) from > scratch.how to design the database for cms and how to start coding for this. > > i need help about this.if anbody has any idea,supporting material > ,please share with us. I think your first step is to define what a CMS is, at least for your purposes, and why the existing open source wheels need to be reinvented again. From an ERD perspective, I'd design the data store to be polymorphic which the application would aggregate as a set of nodes defining a blog article, a comment, a forum post, etc. From ashaw at polymerdb.org Tue Jun 3 15:43:26 2008 From: ashaw at polymerdb.org (Allen Shaw) Date: Tue, 03 Jun 2008 14:43:26 -0500 Subject: [nycphp-talk] GUI for SOAP/WSDL Message-ID: <48459EDE.6090901@polymerdb.org> Hi Gang, Maybe I've just got GUI on the brain from Jake's post today (http://lists.lists.nyphp.org/pipermail/talk/2008-June/025909.html -- unbelievabl), but here's my question: I'm looking for a GUI tool (PHP or otherwise, web-based or otherwise) that will help me understand a WSDL spec without actually reading the file. Docs are pretty sparse on the service I'm using, and I've waded through many lines of WSDL trying to see what elements are required, the name of various methods, etc. The kind of tool I'm looking for would parse a WSDL file and then show me a list of available methods, and for each method the required elements, then maybe even prepare the raw SOAP request for me (though I can't really imagine needing to see the raw SOAP request). Yeah, sure, that's what I get from wading through the WSDL, but something a lot more streamlined would be a big step up. Any hints or clues from the NYPHP gang? (BTW, googling for words like WSDL GUI didn't seem like it was going in the right direction...) Thanks, Allen -- Allen Shaw slidePresenter (http://slides.sourceforge.net) From ashaw at polymerdb.org Tue Jun 3 15:48:49 2008 From: ashaw at polymerdb.org (Allen Shaw) Date: Tue, 03 Jun 2008 14:48:49 -0500 Subject: [nycphp-talk] GUI for SOAP/WSDL In-Reply-To: <48459EDE.6090901@polymerdb.org> References: <48459EDE.6090901@polymerdb.org> Message-ID: <4845A021.6040300@polymerdb.org> > I'm looking for a GUI tool (PHP or otherwise, web-based or otherwise) > that will help me understand a WSDL spec without actually reading the > file. Forgot to mention the ideal feature here would be for the tool to prompt me for the method parameters, then send the request and display the response. What I'm trying to accomplish is not only understanding a given service better, but trying it here and there without having to type a bunch of code just for a one-off trial request. Thanks, A. -- Allen Shaw slidePresenter (http://slides.sourceforge.net) -- Allen Shaw slidePresenter (http://slides.sourceforge.net) From jmcgraw1 at gmail.com Tue Jun 3 16:07:36 2008 From: jmcgraw1 at gmail.com (Jake McGraw) Date: Tue, 3 Jun 2008 16:07:36 -0400 Subject: [nycphp-talk] GUI for SOAP/WSDL In-Reply-To: <4845A021.6040300@polymerdb.org> References: <48459EDE.6090901@polymerdb.org> <4845A021.6040300@polymerdb.org> Message-ID: After being the source of you inspiration, why don't I provide your solution: http://sspcatalog.sap.com/wsnavigator/jsps/explorer/enterwsdl_main.jsp Try searching "wsdl navigator" for other solutions, this is the best I could find. - jake On Tue, Jun 3, 2008 at 3:48 PM, Allen Shaw wrote: >> I'm looking for a GUI tool (PHP or otherwise, web-based or otherwise) >> that will help me understand a WSDL spec without actually reading the >> file. > > Forgot to mention the ideal feature here would be for the tool to prompt me > for the method parameters, then send the request and display the response. > What I'm trying to accomplish is not only understanding a given service > better, but trying it here and there without having to type a bunch of code > just for a one-off trial request. > > Thanks, > A. > > -- > Allen Shaw > slidePresenter (http://slides.sourceforge.net) > > > > -- > Allen Shaw > 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 > From anthony at thrillist.com Tue Jun 3 16:38:18 2008 From: anthony at thrillist.com (anthony wlodarski) Date: Tue, 3 Jun 2008 16:38:18 -0400 Subject: [nycphp-talk] need help about cms design In-Reply-To: <4845781C.8060709@magpie.com> References: <966304.65505.qm@web59306.mail.re1.yahoo.com> <4845781C.8060709@magpie.com> Message-ID: <37B30C27-675F-4A18-A5B0-D24BA682AD89@thrillist.com> CMS is just a term for fancy text editor. I would check around to see if you can just find an off the shelf product and play with it. There is usually no reason to reinvent the wheel unless it is going to outperform your current competitors. Drupal (my current punching bag) can take a beating and then some and is flexible enough to allow you to customize it to your content. Now I don't want to discourage you from learning about the inner workings of a fancy text editor because it is good knowledge to have but keep in mind that the time you spend reinventing the wheel could be spent improving the current wheel which is already stable and works (and has a good support base). -Anthony On Jun 3, 2008, at 12:58 PM, Steve Manes wrote: > birgunj birgunj wrote: >> i am trying to design and build the cms(content management system) >> from scratch.how to design the database for cms and how to start >> coding for this. >> i need help about this.if anbody has any idea,supporting >> material ,please share with us. > > I think your first step is to define what a CMS is, at least for > your purposes, and why the existing open source wheels need to be > reinvented again. From an ERD perspective, I'd design the data > store to be polymorphic which the application would aggregate as a > set of nodes defining a blog article, a comment, a forum post, 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 > Anthony Wlodarski Web Applications Developer www.thrillist.com 560 Broadway, Suite 308 New York, NY 10012 p 646.274.2435 f 646.557.0803 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ashaw at polymerdb.org Tue Jun 3 16:40:45 2008 From: ashaw at polymerdb.org (Allen Shaw) Date: Tue, 03 Jun 2008 15:40:45 -0500 Subject: [nycphp-talk] GUI for SOAP/WSDL In-Reply-To: References: <48459EDE.6090901@polymerdb.org> <4845A021.6040300@polymerdb.org> Message-ID: <4845AC4D.9090407@polymerdb.org> Jake McGraw wrote: > http://sspcatalog.sap.com/wsnavigator/jsps/explorer/enterwsdl_main.jsp > > Try searching "wsdl navigator" for other solutions, this is the best I > could find. > Hi Jake, Yep, that's a pretty cool thing. Unfortunately it doesn't seem to support session headers, which this particular service requires (login first, then include the sessionid in the session header of subsequent requests). Guess I'll keep looking. If this were Open Source I'd hack it to support session headers and then contribute the mods, but I'm not so sure if I want to try and create such a thing from scratch. Seems like a big task. Anyway, thanks for the lead. In general, a good tool to know about. - Allen -- Allen Shaw slidePresenter (http://slides.sourceforge.net) From ka at kacomputerconsulting.com Tue Jun 3 16:47:09 2008 From: ka at kacomputerconsulting.com (Kristina Anderson) Date: Tue, 3 Jun 2008 13:47:09 -0700 Subject: [nycphp-talk] need help about cms design Message-ID: <1212526029.19720@coral.he.net> That's exactly what it is - a text editor or data entry application with edit/publish states. And determining the data to be displayed on the front end and designing data entry forms and writing insert strings is the easy part...the hard part is the edit/preview functionality and determining the edit states needed and how to design the database to best handle that. I inherited a half-finished CMS project and learned A LOT about how to design it and how NOT to design it -- but I would not recommend that method to the fainthearted!! -- Kristina > > > CMS is just a term for fancy text editor. I would check around to see > if you can just find an off the shelf product and play with it. There > is usually no reason to reinvent the wheel unless it is going to > outperform your current competitors. Drupal (my current punching bag) > can take a beating and then some and is flexible enough to allow you > to customize it to your content. Now I don't want to discourage you > from learning about the inner workings of a fancy text editor because > it is good knowledge to have but keep in mind that the time you spend > reinventing the wheel could be spent improving the current wheel which > is already stable and works (and has a good support base). > > -Anthony > > On Jun 3, 2008, at 12:58 PM, Steve Manes wrote: > > > birgunj birgunj wrote: > >> i am trying to design and build the cms(content management system) > >> from scratch.how to design the database for cms and how to start > >> coding for this. > >> i need help about this.if anbody has any idea,supporting > >> material ,please share with us. > > > > I think your first step is to define what a CMS is, at least for > > your purposes, and why the existing open source wheels need to be > > reinvented again. From an ERD perspective, I'd design the data > > store to be polymorphic which the application would aggregate as a > > set of nodes defining a blog article, a comment, a forum post, 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 > > > > > > > Anthony Wlodarski > Web Applications Developer > www.thrillist.com > 560 Broadway, Suite 308 > New York, NY 10012 > p 646.274.2435 > f 646.557.0803 > > > From ramons at gmx.net Tue Jun 3 19:32:02 2008 From: ramons at gmx.net (David Krings) Date: Tue, 03 Jun 2008 19:32:02 -0400 Subject: [nycphp-talk] need help about cms design In-Reply-To: <37B30C27-675F-4A18-A5B0-D24BA682AD89@thrillist.com> References: <966304.65505.qm@web59306.mail.re1.yahoo.com> <4845781C.8060709@magpie.com> <37B30C27-675F-4A18-A5B0-D24BA682AD89@thrillist.com> Message-ID: <4845D472.8030804@gmx.net> anthony wlodarski wrote: > I would check around to see if you can just find an off the shelf product and play with it. There is usually no reason to reinvent the wheel unless it is going to outperform your current competitors. That depends. I am still working on my picture and video viewer and archiving system. Of course I could have just downloaded one. The goal is to learn something more than just click a link. I am convinced that my system isn't winning any awards and it doesn't outperform its competition (although jamming 800 pictures into the system in 5 minutes in one go is sweet), but that wasn't the point. So maybe a simple CMS could have a few tables and as input front-end the FCKEditor and then some code that generates output. But I don't know what the intentions are of the original poster. It sounded more like "I need a CMS, go and program one for me, I'm waiting." David From krook at us.ibm.com Tue Jun 3 21:07:53 2008 From: krook at us.ibm.com (Daniel Krook) Date: Tue, 3 Jun 2008 21:07:53 -0400 Subject: [nycphp-talk] GUI for SOAP/WSDL In-Reply-To: <48459EDE.6090901@polymerdb.org> Message-ID: Hi Allen, > Hi Gang, > ... > > I'm looking for a GUI tool (PHP or otherwise, web-based or > otherwise) > that will help me understand a WSDL spec without actually > reading the > file. > ... > Any hints or clues from the NYPHP gang? Eclipse has a pretty nice GUI for this. You can visually create and edit WSDL. There's a recent developerWorks tutorial that shows how to work with these types of files using Eclipse and the PDT: http://www.ibm.com/developerworks/edu/os-dw-os-eclipse-phpws.html https://www6.software.ibm.com/developerworks/education/os-eclipse-phpws/os-eclipse-phpws-pdf.pdf > > Thanks, > Allen > > -- > Allen Shaw > slidePresenter (http://slides.sourceforge.net) HTH, -Dan Daniel Krook Senior IT Specialist Content Tools Developer - SCSA, SCJP, SCWCD, ZCE, ICDAssoc. Global Solutions, ibm.com From selyah1 at yahoo.com Wed Jun 4 00:25:53 2008 From: selyah1 at yahoo.com (selyah) Date: Tue, 3 Jun 2008 21:25:53 -0700 (PDT) Subject: [nycphp-talk] 3D ANIMATION Message-ID: <862270.1225.qm@web30802.mail.mud.yahoo.com> Hello: This request is a bit off topic, but i was wondering if anyone know or have information on a 3-D program that can be downloaded from the net and also have a easy to follow tutorial. I have to combine a web page and an animation/rendering of solids into a projec. Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at projectskyline.com Wed Jun 4 11:42:11 2008 From: ben at projectskyline.com (Ben Sgro) Date: Wed, 04 Jun 2008 11:42:11 -0400 Subject: [nycphp-talk] MSSQL, PDO & Unicode Message-ID: <4846B7D3.1020705@projectskyline.com> Hello All, So, here's the issue I'm stuck against: We are currently developing on Linux and then deploying to Test, Staging and Production on Windows. We are using the Zend framework, with the PDO driver. (config.ini: database.adapter = "pdo_mssql"). The original issue is that when storing XML fields the pdo driver was failing to select the "unicode" data from MSSQL. Here's the error: Warning: PDOStatement::execute() [function.PDOStatement-execute]: message: Unicode data in a Unicode-only collation or ntext data cannot be sent to clients using DB-Library (such as ISQL) or ODBC version 3.7 or earlier. (severity 16) To fix this, we store the XML in a MSSQL TEXT field. Well, it turns out, our client doesn't like that ... they want the ability to xpath the data. We returned the field to 'XML' and created a 'view' in MSSQL that cast the XML to TEXT. So, now my application selects from the Views, which works great. However, since the field is now computed (via the cast) I am unable to INSERT/UPDATE into it. I thought, well maybe I can have the selects (fetchAll(), fetchRow()) access the VIEW and the Updates/Inserts (insert(), update()) access the base table (w/the XML field). So, I could provide my own implementation to the Zend DB Table Abstract insert() and update() methods. Instead of having, say protected $_name = 'whatever', my models could have another variable named $_viewName = 'viewWhatever'; However, after looking into that, it doesn't seem too simple. Those methods actually pass in a db object, not a table name (like fetchAll() and fetchRow()). So programmaticaly, it appears easier to override the implementation of fetchAll() and fetchRow(). Lets pretend we can't do that. Another option would be to use Stored Procedures. But since my application is already written with ORM/Zend DB Table Abstract...that would be a real PITA. Our client also won't let us provide THEM a view...so keep the fields as TEXT for our application and have a VIEW that cast from TEXT to XML (not sure if you can even do this) so then they can XPATH to their hearts content. So, I decided that there must be an better driver to use ... is there? Does anyone have a solution ? One of my coworkers just suggested having two fields, TEXT and XML, and using a SQLSERVER trigger to keep them up to date. ..Thanks ya'll!!!!! - Ben From zippy1981 at gmail.com Wed Jun 4 12:22:17 2008 From: zippy1981 at gmail.com (Justin Dearing) Date: Wed, 4 Jun 2008 12:22:17 -0400 Subject: [nycphp-talk] MSSQL, PDO & Unicode In-Reply-To: <4846B7D3.1020705@projectskyline.com> References: <4846B7D3.1020705@projectskyline.com> Message-ID: <5458db3c0806040922w472b5497h924eb122016b5fd7@mail.gmail.com> Ben, Your problems will magically go away if you use php on windows. The freetds driver that linux uses and I assume your linux odbc driver either uses or stole code from has issues with certain things like varchar above 255. Check the freeTDS website for details. The microsoft odbc driver just works, and it works great. Also, two columns will increase rowsize. since were talking large strings and not ints, guids or the like this will be a big issue. On Wed, Jun 4, 2008 at 11:42 AM, Ben Sgro wrote: > Hello All, > > So, here's the issue I'm stuck against: > > We are currently developing on Linux and then deploying to Test, Staging and > Production on Windows. > > We are using the Zend framework, with the PDO driver. (config.ini: > database.adapter = "pdo_mssql"). > > The original issue is that when storing XML fields the pdo driver was > failing to select the "unicode" data from MSSQL. > Here's the error: > > Warning: PDOStatement::execute() > [function.PDOStatement-execute]: message: Unicode data in a > Unicode-only collation or ntext data > cannot be sent to clients using DB-Library (such as ISQL) or ODBC > version 3.7 or earlier. (severity 16) > > To fix this, we store the XML in a MSSQL TEXT field. Well, it turns out, our > client doesn't like that ... they want the ability > to xpath the data. > > We returned the field to 'XML' and created a 'view' in MSSQL that cast the > XML to TEXT. So, now my application selects from the Views, > which works great. However, since the field is now computed (via the cast) I > am unable to INSERT/UPDATE into it. > > I thought, well maybe I can have the selects (fetchAll(), fetchRow()) access > the VIEW and the Updates/Inserts (insert(), update()) access the base table > (w/the XML field). > So, I could provide my own implementation to the Zend DB Table Abstract > insert() and update() methods. Instead of having, say protected $_name = > 'whatever', my models could have another variable named $_viewName = > 'viewWhatever'; > > However, after looking into that, it doesn't seem too simple. Those methods > actually pass in a db object, not a table name (like fetchAll() and > fetchRow()). So programmaticaly, it appears easier to override the > implementation of fetchAll() and fetchRow(). > > Lets pretend we can't do that. Another option would be to use Stored > Procedures. But since my application is already written with ORM/Zend DB > Table Abstract...that would be a real PITA. > > Our client also won't let us provide THEM a view...so keep the fields as > TEXT for our application and have a VIEW that cast from TEXT to XML (not > sure if you can even do this) so then they can XPATH to their hearts > content. > > So, I decided that there must be an better driver to use ... is there? > > Does anyone have a solution ? > > One of my coworkers just suggested having two fields, TEXT and XML, and > using a SQLSERVER trigger to keep them up to date. > > ..Thanks ya'll!!!!! > > - Ben > > > _______________________________________________ > 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 csc111vs at gmail.com Wed Jun 4 12:47:59 2008 From: csc111vs at gmail.com (Sarath chandra) Date: Wed, 4 Jun 2008 22:17:59 +0530 Subject: [nycphp-talk] 3D ANIMATION In-Reply-To: <862270.1225.qm@web30802.mail.mud.yahoo.com> References: <862270.1225.qm@web30802.mail.mud.yahoo.com> Message-ID: HI Selyah This is a bit interesting..i think for rendering 3D objects on web there are some technologies like flash, .Net enable you to some extent . other possibility could be to uploading the video content of the animation/rendering. -- Regards, Sarath Chandra. On Wed, Jun 4, 2008 at 9:55 AM, selyah wrote: > Hello: This request is a bit off topic, but i was wondering if anyone > know or have information on a 3-D program that can be downloaded from the > net and also have a easy to follow tutorial. > I have to combine a web page and an animation/rendering of solids into a > projec. > Thanks in advance > > > _______________________________________________ > 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 paul at gubavision.com Wed Jun 4 13:02:12 2008 From: paul at gubavision.com (paul at gubavision.com) Date: Wed, 04 Jun 2008 13:02:12 -0400 Subject: [nycphp-talk] 3D ANIMATION In-Reply-To: References: <862270.1225.qm@web30802.mail.mud.yahoo.com> Message-ID: <20080604130212.c9rfob8bkkko808c@mail.fluidhosting.com> I'm a visual artist not a coder. I dabble in PHP. I haven't looked in a while but I have not really found an good easy to understand and use 3D rendering program. You might find one of those but not all or them. That said you might rather look to find someone to do this part of the project for you and use your own talents where they make you the most profit. I'll hire a coder if I need one because my talent and knowledge base is better suited for other things. Good Luck, Paul Guba > HI Selyah > > This is a bit interesting..i think for rendering 3D objects on web there are > some technologies like flash, .Net enable you to some extent . > other possibility could be to uploading the video content of the > animation/rendering. > > > > -- > Regards, > > Sarath Chandra. > > > > On Wed, Jun 4, 2008 at 9:55 AM, selyah wrote: > >> Hello: This request is a bit off topic, but i was wondering if anyone >> know or have information on a 3-D program that can be downloaded from the >> net and also have a easy to follow tutorial. >> I have to combine a web page and an animation/rendering of solids into a >> projec. >> Thanks in advance >> >> >> _______________________________________________ >> 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 Wed Jun 4 13:13:49 2008 From: rolan at omnistep.com (Rolan Yang) Date: Wed, 04 Jun 2008 13:13:49 -0400 Subject: [nycphp-talk] 3D ANIMATION In-Reply-To: <862270.1225.qm@web30802.mail.mud.yahoo.com> References: <862270.1225.qm@web30802.mail.mud.yahoo.com> Message-ID: <4846CD4D.6050709@omnistep.com> selyah wrote: > Hello: > This request is a bit off topic, but i was wondering if anyone know or > have information on a 3-D program that can be downloaded from the net > and also have a easy to follow tutorial. > I have to combine a web page and an animation/rendering of solids into > a projec. > Thanks in advance About 10 years ago VRML was a hot buzzword. Do a search for "vrml java viewer" to find some 3d rendering applets. As far as I know, VRML is a "standard" so you should be able to find a utility to port your 3dstudio or autocad objects into VRML. I was conflicted about replying to this message because subject is quite off topic . Perhaps it would be more appropriate to move it to a lower bandwidth list like "front-end"? ~Rolan From ben at projectskyline.com Wed Jun 4 13:20:47 2008 From: ben at projectskyline.com (Ben Sgro) Date: Wed, 04 Jun 2008 13:20:47 -0400 Subject: [nycphp-talk] MSSQL, PDO & Unicode In-Reply-To: <5458db3c0806040922w472b5497h924eb122016b5fd7@mail.gmail.com> References: <4846B7D3.1020705@projectskyline.com> <5458db3c0806040922w472b5497h924eb122016b5fd7@mail.gmail.com> Message-ID: <4846CEEF.9060306@projectskyline.com> Hello Justin, The problem does not go away on Windows: SQLSTATE[HY000]: General error: 10007 Unicode data in a Unicode-only collation or ntext data cannot be sent to clients using DB-Library (such as ISQL) or ODBC version 3.7 or earlier. [10007] (severity 5) [(null)] - Ben Justin Dearing wrote: > Ben, > > Your problems will magically go away if you use php on windows. The > freetds driver that linux uses and I assume your linux odbc driver > either uses or stole code from has issues with certain things like > varchar above 255. Check the freeTDS website for details. The > microsoft odbc driver just works, and it works great. > > Also, two columns will increase rowsize. since were talking large > strings and not ints, guids or the like this will be a big issue. > > > On Wed, Jun 4, 2008 at 11:42 AM, Ben Sgro wrote: > >> Hello All, >> >> So, here's the issue I'm stuck against: >> >> We are currently developing on Linux and then deploying to Test, Staging and >> Production on Windows. >> >> We are using the Zend framework, with the PDO driver. (config.ini: >> database.adapter = "pdo_mssql"). >> >> The original issue is that when storing XML fields the pdo driver was >> failing to select the "unicode" data from MSSQL. >> Here's the error: >> >> Warning: PDOStatement::execute() >> [function.PDOStatement-execute]: message: Unicode data in a >> Unicode-only collation or ntext data >> cannot be sent to clients using DB-Library (such as ISQL) or ODBC >> version 3.7 or earlier. (severity 16) >> >> To fix this, we store the XML in a MSSQL TEXT field. Well, it turns out, our >> client doesn't like that ... they want the ability >> to xpath the data. >> >> We returned the field to 'XML' and created a 'view' in MSSQL that cast the >> XML to TEXT. So, now my application selects from the Views, >> which works great. However, since the field is now computed (via the cast) I >> am unable to INSERT/UPDATE into it. >> >> I thought, well maybe I can have the selects (fetchAll(), fetchRow()) access >> the VIEW and the Updates/Inserts (insert(), update()) access the base table >> (w/the XML field). >> So, I could provide my own implementation to the Zend DB Table Abstract >> insert() and update() methods. Instead of having, say protected $_name = >> 'whatever', my models could have another variable named $_viewName = >> 'viewWhatever'; >> >> However, after looking into that, it doesn't seem too simple. Those methods >> actually pass in a db object, not a table name (like fetchAll() and >> fetchRow()). So programmaticaly, it appears easier to override the >> implementation of fetchAll() and fetchRow(). >> >> Lets pretend we can't do that. Another option would be to use Stored >> Procedures. But since my application is already written with ORM/Zend DB >> Table Abstract...that would be a real PITA. >> >> Our client also won't let us provide THEM a view...so keep the fields as >> TEXT for our application and have a VIEW that cast from TEXT to XML (not >> sure if you can even do this) so then they can XPATH to their hearts >> content. >> >> So, I decided that there must be an better driver to use ... is there? >> >> Does anyone have a solution ? >> >> One of my coworkers just suggested having two fields, TEXT and XML, and >> using a SQLSERVER trigger to keep them up to date. >> >> ..Thanks ya'll!!!!! >> >> - Ben >> >> >> _______________________________________________ >> 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 chsnyder at gmail.com Wed Jun 4 13:23:26 2008 From: chsnyder at gmail.com (csnyder) Date: Wed, 4 Jun 2008 13:23:26 -0400 Subject: [nycphp-talk] 3D ANIMATION In-Reply-To: <20080604130212.c9rfob8bkkko808c@mail.fluidhosting.com> References: <862270.1225.qm@web30802.mail.mud.yahoo.com> <20080604130212.c9rfob8bkkko808c@mail.fluidhosting.com> Message-ID: On Wed, Jun 4, 2008 at 1:02 PM, wrote: > I'm a visual artist not a coder. I dabble in PHP. I haven't looked in a > while but I have not really found an good easy to understand and use 3D > rendering program. Does Google Sketchup count? http://sketchup.google.com/ I've heard it's pretty easy to use. You can embed the output in Google Earth, but I don't know you can embed the output in a web page other than as a screenshot. -- Chris Snyder http://chxo.com/ From zippy1981 at gmail.com Wed Jun 4 13:37:00 2008 From: zippy1981 at gmail.com (Justin Dearing) Date: Wed, 4 Jun 2008 13:37:00 -0400 Subject: [nycphp-talk] MSSQL, PDO & Unicode In-Reply-To: <4846CEEF.9060306@projectskyline.com> References: <4846B7D3.1020705@projectskyline.com> <5458db3c0806040922w472b5497h924eb122016b5fd7@mail.gmail.com> <4846CEEF.9060306@projectskyline.com> Message-ID: <5458db3c0806041037y17100cb3ve1f70db2599d4bae@mail.gmail.com> On Wed, Jun 4, 2008 at 1:20 PM, Ben Sgro wrote: > The problem does not go away on Windows: > > SQLSTATE[HY000]: General error: 10007 Unicode data in a Unicode-only > collation or ntext data cannot be sent to clients using DB-Library (such as > ISQL) or ODBC version 3.7 or earlier. [10007] (severity 5) [(null)] Did you try the PDO odbc driver. also do you have the latest mssql server driver. Or you can also try: http://pecl.php.net/package/PDO_DBLIB. That might have a newer FreeTDS lib. Really though find out what the latest FreeTDS can handle before trying any non odbc driver for sql server on php. After all, any open source mssql server interface is probably based on freetds. From jorge at rhst.net Wed Jun 4 14:08:34 2008 From: jorge at rhst.net (Jorge Lopez) Date: Wed, 4 Jun 2008 14:08:34 -0400 Subject: [nycphp-talk] Etsy Hiring PHP Devs in NYC In-Reply-To: References: <862270.1225.qm@web30802.mail.mud.yahoo.com> Message-ID: <6FBEE3E4-B391-46F6-89CB-74CD05C0640C@rhst.net> Hello all, If anyone is interested, we're hiring for PHP developers at Etsy.com. Here is the job listing: http://fix.etsy.com/jobs/job_Eng_PHP.html Send your resume and code samples over to: work at etsy.com Feel free to hit me up with any questions -Jorge From ben at projectskyline.com Wed Jun 4 14:08:51 2008 From: ben at projectskyline.com (Ben Sgro) Date: Wed, 04 Jun 2008 14:08:51 -0400 Subject: [nycphp-talk] MSSQL, PDO & Unicode In-Reply-To: <5458db3c0806041037y17100cb3ve1f70db2599d4bae@mail.gmail.com> References: <4846B7D3.1020705@projectskyline.com> <5458db3c0806040922w472b5497h924eb122016b5fd7@mail.gmail.com> <4846CEEF.9060306@projectskyline.com> <5458db3c0806041037y17100cb3ve1f70db2599d4bae@mail.gmail.com> Message-ID: <4846DA33.7040000@projectskyline.com> Hello Justin, A few weeks ago I build the driver for linux and got it working. My problems are w/the pdo driver it self, not being able to work correctly. Also that and Zend doesn't have a SQLSERVER driver (besides pdo). - Ben Justin Dearing wrote: > On Wed, Jun 4, 2008 at 1:20 PM, Ben Sgro wrote: > >> The problem does not go away on Windows: >> >> SQLSTATE[HY000]: General error: 10007 Unicode data in a Unicode-only >> collation or ntext data cannot be sent to clients using DB-Library (such as >> ISQL) or ODBC version 3.7 or earlier. [10007] (severity 5) [(null)] >> > > Did you try the PDO odbc driver. also do you have the latest mssql > server driver. > > Or you can also try: > http://pecl.php.net/package/PDO_DBLIB. That might have a newer FreeTDS lib. > > Really though find out what the latest FreeTDS can handle before > trying any non odbc driver for sql server on php. After all, any open > source mssql server interface is probably based on freetds. > _______________________________________________ > 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 zippy1981 at gmail.com Wed Jun 4 14:55:34 2008 From: zippy1981 at gmail.com (Justin Dearing) Date: Wed, 4 Jun 2008 14:55:34 -0400 Subject: [nycphp-talk] MSSQL, PDO & Unicode In-Reply-To: <4846DA33.7040000@projectskyline.com> References: <4846B7D3.1020705@projectskyline.com> <5458db3c0806040922w472b5497h924eb122016b5fd7@mail.gmail.com> <4846CEEF.9060306@projectskyline.com> <5458db3c0806041037y17100cb3ve1f70db2599d4bae@mail.gmail.com> <4846DA33.7040000@projectskyline.com> Message-ID: <5458db3c0806041155x4d0087aax12ce2838ac56371c@mail.gmail.com> Ben, Ah I see. The send framework has a wrapper around that you are using, and the ODBC support is not fully functional. At least that's what I gather from Jira: http://framework.zend.com/issues/browse/ZF-905 That being said, since the mssql PDO driver uses FreeTDS, I'd spend some time researching the ability to use xml columns with freetds as everything rides on that. On Wed, Jun 4, 2008 at 2:08 PM, Ben Sgro wrote: > Hello Justin, > > A few weeks ago I build the driver for linux and got it working. > > My problems are w/the pdo driver it self, not being able to work correctly. > Also that and Zend doesn't have a SQLSERVER driver (besides pdo). > > - Ben > > Justin Dearing wrote: >> >> On Wed, Jun 4, 2008 at 1:20 PM, Ben Sgro wrote: >> >>> >>> The problem does not go away on Windows: >>> >>> SQLSTATE[HY000]: General error: 10007 Unicode data in a Unicode-only >>> collation or ntext data cannot be sent to clients using DB-Library (such >>> as >>> ISQL) or ODBC version 3.7 or earlier. [10007] (severity 5) [(null)] >>> >> >> Did you try the PDO odbc driver. also do you have the latest mssql >> server driver. >> >> Or you can also try: >> http://pecl.php.net/package/PDO_DBLIB. That might have a newer FreeTDS >> lib. >> >> Really though find out what the latest FreeTDS can handle before >> trying any non odbc driver for sql server on php. After all, any open >> source mssql server interface is probably based on freetds. >> _______________________________________________ >> 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 davehauenstein at gmail.com Wed Jun 4 14:59:13 2008 From: davehauenstein at gmail.com (David Hauenstein) Date: Wed, 04 Jun 2008 14:59:13 -0400 Subject: [nycphp-talk] MSSQL, PDO & Unicode In-Reply-To: <5458db3c0806041155x4d0087aax12ce2838ac56371c@mail.gmail.com> References: <4846B7D3.1020705@projectskyline.com> <5458db3c0806040922w472b5497h924eb122016b5fd7@mail.gmail.com> <4846CEEF.9060306@projectskyline.com> <5458db3c0806041037y17100cb3ve1f70db2599d4bae@mail.gmail.com> <4846DA33.7040000@projectskyline.com> <5458db3c0806041155x4d0087aax12ce2838ac56371c@mail.gmail.com> Message-ID: <4846E601.3060002@gmail.com> Justin, FreeTDS is a library that allows Linux to talk to mssql. Ben needs this to work on a production Windows environment, so FreeTDS has nothing to do with the solution. -Dave Justin Dearing wrote: > Ben, > > Ah I see. The send framework has a wrapper around that you are using, > and the ODBC support is not fully functional. At least that's what I > gather from Jira: > http://framework.zend.com/issues/browse/ZF-905 > > That being said, since the mssql PDO driver uses FreeTDS, I'd spend > some time researching the ability to use xml columns with freetds as > everything rides on that. > > > > On Wed, Jun 4, 2008 at 2:08 PM, Ben Sgro wrote: > >> Hello Justin, >> >> A few weeks ago I build the driver for linux and got it working. >> >> My problems are w/the pdo driver it self, not being able to work correctly. >> Also that and Zend doesn't have a SQLSERVER driver (besides pdo). >> >> - Ben >> >> Justin Dearing wrote: >> >>> On Wed, Jun 4, 2008 at 1:20 PM, Ben Sgro wrote: >>> >>> >>>> The problem does not go away on Windows: >>>> >>>> SQLSTATE[HY000]: General error: 10007 Unicode data in a Unicode-only >>>> collation or ntext data cannot be sent to clients using DB-Library (such >>>> as >>>> ISQL) or ODBC version 3.7 or earlier. [10007] (severity 5) [(null)] >>>> >>>> >>> Did you try the PDO odbc driver. also do you have the latest mssql >>> server driver. >>> >>> Or you can also try: >>> http://pecl.php.net/package/PDO_DBLIB. That might have a newer FreeTDS >>> lib. >>> >>> Really though find out what the latest FreeTDS can handle before >>> trying any non odbc driver for sql server on php. After all, any open >>> source mssql server interface is probably based on freetds. >>> _______________________________________________ >>> 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 davehauenstein at gmail.com Wed Jun 4 14:59:47 2008 From: davehauenstein at gmail.com (David Hauenstein) Date: Wed, 04 Jun 2008 14:59:47 -0400 Subject: [nycphp-talk] MSSQL, PDO & Unicode In-Reply-To: <5458db3c0806041155x4d0087aax12ce2838ac56371c@mail.gmail.com> References: <4846B7D3.1020705@projectskyline.com> <5458db3c0806040922w472b5497h924eb122016b5fd7@mail.gmail.com> <4846CEEF.9060306@projectskyline.com> <5458db3c0806041037y17100cb3ve1f70db2599d4bae@mail.gmail.com> <4846DA33.7040000@projectskyline.com> <5458db3c0806041155x4d0087aax12ce2838ac56371c@mail.gmail.com> Message-ID: <4846E623.2080508@gmail.com> Justin, FreeTDS is a library that allows Linux to talk to mssql. Ben needs his app to work on a production server that runs Windows, so FreeTDS has nothing to do with the solution, unfortunately. -Dave Justin Dearing wrote: > Ben, > > Ah I see. The send framework has a wrapper around that you are using, > and the ODBC support is not fully functional. At least that's what I > gather from Jira: > http://framework.zend.com/issues/browse/ZF-905 > > That being said, since the mssql PDO driver uses FreeTDS, I'd spend > some time researching the ability to use xml columns with freetds as > everything rides on that. > > > > On Wed, Jun 4, 2008 at 2:08 PM, Ben Sgro wrote: > >> Hello Justin, >> >> A few weeks ago I build the driver for linux and got it working. >> >> My problems are w/the pdo driver it self, not being able to work correctly. >> Also that and Zend doesn't have a SQLSERVER driver (besides pdo). >> >> - Ben >> >> Justin Dearing wrote: >> >>> On Wed, Jun 4, 2008 at 1:20 PM, Ben Sgro wrote: >>> >>> >>>> The problem does not go away on Windows: >>>> >>>> SQLSTATE[HY000]: General error: 10007 Unicode data in a Unicode-only >>>> collation or ntext data cannot be sent to clients using DB-Library (such >>>> as >>>> ISQL) or ODBC version 3.7 or earlier. [10007] (severity 5) [(null)] >>>> >>>> >>> Did you try the PDO odbc driver. also do you have the latest mssql >>> server driver. >>> >>> Or you can also try: >>> http://pecl.php.net/package/PDO_DBLIB. That might have a newer FreeTDS >>> lib. >>> >>> Really though find out what the latest FreeTDS can handle before >>> trying any non odbc driver for sql server on php. After all, any open >>> source mssql server interface is probably based on freetds. >>> _______________________________________________ >>> 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 lists at enobrev.com Wed Jun 4 15:24:28 2008 From: lists at enobrev.com (Mark Armendariz) Date: Wed, 04 Jun 2008 15:24:28 -0400 Subject: [nycphp-talk] 3D ANIMATION In-Reply-To: References: <862270.1225.qm@web30802.mail.mud.yahoo.com> <20080604130212.c9rfob8bkkko808c@mail.fluidhosting.com> Message-ID: <4846EBEC.7030204@enobrev.com> csnyder wrote: > On Wed, Jun 4, 2008 at 1:02 PM, wrote: > >> I'm a visual artist not a coder. I dabble in PHP. I haven't looked in a >> while but I have not really found an good easy to understand and use 3D >> rendering program. >> > > Does Google Sketchup count? > http://sketchup.google.com/ > > I've heard it's pretty easy to use. You can embed the output in Google > Earth, but I don't know you can embed the output in a web page other > than as a screenshot. > Google Sketchup does indeed have a pretty easy interface. I recommend it as well. There's also an open source 3d App called blender: http://www.blender.org/ From WikiPedia: "Blender has a robust feature set similar in scope and depth to other high-end 3D software such as Softimage|XSI , Cinema 4D , 3ds Max , Lightwave and Maya " http://en.wikipedia.org/wiki/Blender_(software) I'm not sure what your needs are, but this could be a reason to get creative and break some ground. If you search for "3d engine canvas" (sans quotes), you'll find quite a few blog posts, samples and examples of people writing 3d engines in javascript meant to draw to the canvas tag, which should work in most modern browsers. Canvas Tag: http://en.wikipedia.org/wiki/Canvas_tag Here's one I found particularly intriguing: http://www.nihilogic.dk/labs/canvas3dtexture_0.2/ Good luck! Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From consult at covenantedesign.com Wed Jun 4 15:35:14 2008 From: consult at covenantedesign.com (Webmaster) Date: Wed, 04 Jun 2008 15:35:14 -0400 Subject: [nycphp-talk] 3D ANIMATION In-Reply-To: <4846EBEC.7030204@enobrev.com> References: <862270.1225.qm@web30802.mail.mud.yahoo.com> <20080604130212.c9rfob8bkkko808c@mail.fluidhosting.com> <4846EBEC.7030204@enobrev.com> Message-ID: <4846EE72.8050201@covenantedesign.com> I have been doing graphic art for a number of years, and I can't recommend DAZ(Hexagon, Studio, Carrara) enough... http://www.daz3d.com http://www.daz3d.com/i.x/software/studio/-/?&_m=d http://www.daz3d.com/i.x/software/hexagon/-/?&_m=d http://www.daz3d.com/i.x/software/carrara/-/?&_m=d -Ed Mark Armendariz wrote: > csnyder wrote: >> On Wed, Jun 4, 2008 at 1:02 PM, wrote: >> >>> I'm a visual artist not a coder. I dabble in PHP. I haven't looked in a >>> while but I have not really found an good easy to understand and use 3D >>> rendering program. >>> >> >> Does Google Sketchup count? >> http://sketchup.google.com/ >> >> I've heard it's pretty easy to use. You can embed the output in Google >> Earth, but I don't know you can embed the output in a web page other >> than as a screenshot. >> > Google Sketchup does indeed have a pretty easy interface. I recommend > it as well. > > There's also an open source 3d App called blender: > http://www.blender.org/ > > >From WikiPedia: "Blender has a robust feature set similar in scope > and depth to other high-end 3D software such as Softimage|XSI > , Cinema 4D > , 3ds Max > , Lightwave > and Maya > " > http://en.wikipedia.org/wiki/Blender_(software) > > I'm not sure what your needs are, but this could be a reason to get > creative and break some ground. If you search for "3d engine canvas" > (sans quotes), you'll find quite a few blog posts, samples and > examples of people writing 3d engines in javascript meant to draw to > the canvas tag, which should work in most modern browsers. > > Canvas Tag: > http://en.wikipedia.org/wiki/Canvas_tag > > Here's one I found particularly intriguing: > http://www.nihilogic.dk/labs/canvas3dtexture_0.2/ > > > Good luck! > > Mark > ------------------------------------------------------------------------ > > _______________________________________________ > 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 selyah1 at yahoo.com Wed Jun 4 16:46:53 2008 From: selyah1 at yahoo.com (selyah) Date: Wed, 4 Jun 2008 13:46:53 -0700 (PDT) Subject: [nycphp-talk] 3D ANIMATION Message-ID: <242773.82095.qm@web30808.mail.mud.yahoo.com> ? actually, it is seperate from the web page.? what i am doing is from the webpage, customers click on a link that will send them to a page where they are able to enter a "3-D world'.? on such is for those who are buying houses.? the home buyer will be taken "taken into the home" via a camera that walks through the house from room to room.?? it is similiar to virtual reality but using auto cad to do the layout and 3-D drawings then the other software will do the actuall "walk-thru".? i had that software when i was in college, but not gain access to it nor do i remember the name of it ----- Original Message ---- From: Sarath chandra To: NYPHP Talk Sent: Wednesday, June 4, 2008 11:47:59 AM Subject: Re: [nycphp-talk] 3D ANIMATION HI Selyah ? This is a bit interesting..i think for rendering 3D objects on web there are some technologies like flash, .Net enable you to some extent?. other?possibility?could be to uploading the ?video content of the animation/rendering. ? ? --? Regards, Sarath Chandra. ? On Wed, Jun 4, 2008 at 9:55 AM, selyah wrote: Hello: This request is a bit off topic, but i was wondering if anyone know or have information on a 3-D program that can be downloaded from the net and also have a easy to follow tutorial. I have to combine a web page and an animation/rendering of solids into a projec. Thanks in advance ? _______________________________________________ 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 selyah1 at yahoo.com Wed Jun 4 16:49:48 2008 From: selyah1 at yahoo.com (selyah) Date: Wed, 4 Jun 2008 13:49:48 -0700 (PDT) Subject: [nycphp-talk] 3D ANIMATION Message-ID: <526703.6487.qm@web30801.mail.mud.yahoo.com> thanks Chris, i hard about google sketch up, but forgot about it.?? i will give that a try ? ----- Original Message ---- From: csnyder To: NYPHP Talk Sent: Wednesday, June 4, 2008 12:23:26 PM Subject: Re: [nycphp-talk] 3D ANIMATION On Wed, Jun 4, 2008 at 1:02 PM,? wrote: > I'm a visual artist not a coder.? I dabble in PHP.? I haven't looked in a > while but I have not really found an good easy to understand and use 3D > rendering program. Does Google Sketchup count? http://sketchup.google.com/ I've heard it's pretty easy to use. You can embed the output in Google Earth, but I don't know you can embed the output in a web page other than as a screenshot. -- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bmartin at mac.com Wed Jun 4 16:55:45 2008 From: bmartin at mac.com (Bruce Martin) Date: Wed, 04 Jun 2008 16:55:45 -0400 Subject: [nycphp-talk] 3D ANIMATION In-Reply-To: <242773.82095.qm@web30808.mail.mud.yahoo.com> References: <242773.82095.qm@web30808.mail.mud.yahoo.com> Message-ID: The best software for virtual tours is Quicktime VR movies, you can hotlink within a VR movie to, for example, open a door or walk down the stairs. Bruce Martin The Martin Solution bruce at martinsolution.com http://www.martinsolution.com http://externals.martinsolution.com On Jun 4, 2008, at 4:46 PM, selyah wrote: > > > actually, it is seperate from the web page. what i am doing is from > the webpage, customers click on a link that will send them to a page > where they are able to enter a "3-D world'. on such is for those > who are buying houses. the home buyer will be taken "taken into the > home" via a camera that walks through the house from room to room. > it is similiar to virtual reality but using auto cad to do the > layout and 3-D drawings then the other software will do the actuall > "walk-thru". i had that software when i was in college, but not > gain access to it nor do i remember the name of it > > ----- Original Message ---- > From: Sarath chandra > To: NYPHP Talk > Sent: Wednesday, June 4, 2008 11:47:59 AM > Subject: Re: [nycphp-talk] 3D ANIMATION > > HI Selyah > > This is a bit interesting..i think for rendering 3D objects on web > there are some technologies like flash, .Net enable you to some > extent . > other possibility could be to uploading the video content of the > animation/rendering. > > > > -- > Regards, > > Sarath Chandra. > > > > On Wed, Jun 4, 2008 at 9:55 AM, selyah wrote: > Hello: > This request is a bit off topic, but i was wondering if anyone know > or have information on a 3-D program that can be downloaded from the > net and also have a easy to follow tutorial. > I have to combine a web page and an animation/rendering of solids > into a projec. > Thanks in advance > > > _______________________________________________ > 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 y2rob at aol.com Wed Jun 4 17:42:39 2008 From: y2rob at aol.com (y2rob at aol.com) Date: Wed, 04 Jun 2008 17:42:39 -0400 Subject: [nycphp-talk] PHP 6 In-Reply-To: <000101c8c422$9def3190$d9cd94b0$@com> References: <000101c8c422$9def3190$d9cd94b0$@com> Message-ID: <8CA94A30BD67223-13C-1DC5@webmail-md06.sysops.aol.com> awesome!!! thanks, ~rob -----Original Message----- From: Hans Zaunere To: 'NYPHP Talk' Sent: Sun, 1 Jun 2008 4:03 pm Subject: [nycphp-talk] PHP 6 Hello everyone, I came across this article and thought it would be useful to pass along: http://www.ibm.com/developerworks/opensource/library/os-php-future/?ca=dgr-l nxw01PHP-Future Happy June, --- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ka at kacomputerconsulting.com Wed Jun 4 18:32:28 2008 From: ka at kacomputerconsulting.com (Kristina Anderson) Date: Wed, 4 Jun 2008 15:32:28 -0700 Subject: [nycphp-talk] Error Trapping Code problem Message-ID: <1212618748.7375@coral.he.net> Hi everyone, this is probably something really dumb that I am missing, but I need help. This code upon submit calls this error trapping function (to test for duplicate usernames). There is a hidden field named "step" that has a value of "1". It is working on another page but I am trying to use this code and apparently leaving something out? Thanks for any help. $step = isset($_POST['step']) ? $_POST['step'] : 0; $username = isset($_POST['username']) ? $_POST['username'] : ''; $error = ''; switch ($step) { case 0; // do nothing, drop through and get user data break; case 1: // the user has submitted data, now check it. //if ($error =='') // { $query = "SELECT * FROM Providers WHERE username='$username' "; echo $query; $result = mysql_query($query) or die(mysql_error()); $myrow = mysql_fetch_assoc($result); if (!empty($myrow)) { $error = "Sorry, this username is already taken"; } // } //break; } -- Kristina From selyah1 at yahoo.com Wed Jun 4 18:37:54 2008 From: selyah1 at yahoo.com (selyah) Date: Wed, 4 Jun 2008 15:37:54 -0700 (PDT) Subject: [nycphp-talk] 3D ANIMATION Message-ID: <741426.74478.qm@web30805.mail.mud.yahoo.com> thanks bruce, but isn't Quicktime VR for apple computers......i am using windows (don't laugh) ----- Original Message ---- From: Bruce Martin To: NYPHP Talk Sent: Wednesday, June 4, 2008 3:55:45 PM Subject: Re: [nycphp-talk] 3D ANIMATION The best software for virtual tours is Quicktime VR movies, you can hotlink within a VR movie to, for example, open a door or walk down the stairs.? Bruce Martin The Martin Solution bruce at martinsolution.com http://www.martinsolution.com http://externals.martinsolution.com On Jun 4, 2008, at 4:46 PM, selyah wrote: ? actually, it is seperate from the web page.? what i am doing is from the webpage, customers click on a link that will send them to a page where they are able to enter a "3-D world'.? on such is for those who are buying houses.? the home buyer will be taken "taken into the home" via a camera that walks through the house from room to room.?? it is similiar to virtual reality but using auto cad to do the layout and 3-D drawings then the other software will do the actuall "walk-thru".? i had that software when i was in college, but not gain access to it nor do i remember the name of it ----- Original Message ---- From: Sarath chandra To: NYPHP Talk Sent: Wednesday, June 4, 2008 11:47:59 AM Subject: Re: [nycphp-talk] 3D ANIMATION HI Selyah ? This is a bit interesting..i think for rendering 3D objects on web there are some technologies like flash, .Net enable you to some extent?. other?possibility?could be to uploading the ?video content of the animation/rendering. ? ? --? Regards, Sarath Chandra. ? On Wed, Jun 4, 2008 at 9:55 AM, selyah wrote: Hello: This request is a bit off topic, but i was wondering if anyone know or have information on a 3-D program that can be downloaded from the net and also have a easy to follow tutorial. I have to combine a web page and an animation/rendering of solids into a projec. Thanks in advance ? _______________________________________________ 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 zippy1981 at gmail.com Wed Jun 4 19:16:23 2008 From: zippy1981 at gmail.com (Justin Dearing) Date: Wed, 4 Jun 2008 19:16:23 -0400 Subject: [nycphp-talk] MSSQL, PDO & Unicode In-Reply-To: <4846E623.2080508@gmail.com> References: <4846B7D3.1020705@projectskyline.com> <5458db3c0806040922w472b5497h924eb122016b5fd7@mail.gmail.com> <4846CEEF.9060306@projectskyline.com> <5458db3c0806041037y17100cb3ve1f70db2599d4bae@mail.gmail.com> <4846DA33.7040000@projectskyline.com> <5458db3c0806041155x4d0087aax12ce2838ac56371c@mail.gmail.com> <4846E623.2080508@gmail.com> Message-ID: <5458db3c0806041616v542d62d9vf2ab8fd24ddd327c@mail.gmail.com> On Wed, Jun 4, 2008 at 2:59 PM, David Hauenstein wrote: > FreeTDS is a library that allows Linux to talk to mssql. Ben needs his app > to work on a production server that runs Windows, so FreeTDS has nothing to > do with the solution, unfortunately. Dave, I think I've been making false assumptions for a couple of years now. I always thought that the mssql_foo() functions and the mssql pdo functions used FreeTDS even on windows. I can't find a definite answer online so can you point out a source that confirms I am correct or incorrect in my assumption. Ben, Assuming I am incorrect I have to say sorry I'm of no help in this regard. From jcampbell1 at gmail.com Wed Jun 4 19:20:24 2008 From: jcampbell1 at gmail.com (John Campbell) Date: Wed, 4 Jun 2008 19:20:24 -0400 Subject: [nycphp-talk] Error Trapping Code problem In-Reply-To: <1212618748.7375@coral.he.net> References: <1212618748.7375@coral.he.net> Message-ID: <8f0676b40806041620o655f86d0k1e6b927b233200c1@mail.gmail.com> On Wed, Jun 4, 2008 at 6:32 PM, Kristina Anderson wrote: > Hi everyone, this is probably something really dumb that I am missing, > but I need help. This code upon submit calls this error trapping > function (to test for duplicate usernames). There is a hidden field > named "step" that has a value of "1". > It is working on another page but I am trying to use this code and > apparently leaving something out? > Not sure if this is the issue, but you have a semi-colon instead of a colon: > case 0; // do nothing, drop through and get user data -John C. From ka at kacomputerconsulting.com Wed Jun 4 20:17:11 2008 From: ka at kacomputerconsulting.com (Kristina Anderson) Date: Wed, 4 Jun 2008 17:17:11 -0700 Subject: [nycphp-talk] Error Trapping Code problem Message-ID: <1212625031.22940@coral.he.net> Hmmm....it has that in the working code too...any suggestions how I can test this thing? > On Wed, Jun 4, 2008 at 6:32 PM, Kristina Anderson > wrote: > > Hi everyone, this is probably something really dumb that I am missing, > > but I need help. This code upon submit calls this error trapping > > function (to test for duplicate usernames). There is a hidden field > > named "step" that has a value of "1". > > It is working on another page but I am trying to use this code and > > apparently leaving something out? > > > > Not sure if this is the issue, but you have a semi-colon instead of a colon: > > case 0; // do nothing, drop through and get user data > > -John C. > _______________________________________________ > 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 ka at kacomputerconsulting.com Wed Jun 4 20:57:31 2008 From: ka at kacomputerconsulting.com (Kristina Anderson) Date: Wed, 4 Jun 2008 17:57:31 -0700 Subject: Fw: Re: [nycphp-talk] Error Trapping Code problem Message-ID: <1212627451.8335@coral.he.net> I set up a stripped down test page and it's working fine so it must be something else on the particular page interfering with it... ------------- Forwarded message follows ------------- Hmmm....it has that in the working code too...any suggestions how I can test this thing? > On Wed, Jun 4, 2008 at 6:32 PM, Kristina Anderson > wrote: > > Hi everyone, this is probably something really dumb that I am missing, > > but I need help. This code upon submit calls this error trapping > > function (to test for duplicate usernames). There is a hidden field > > named "step" that has a value of "1". > > It is working on another page but I am trying to use this code and > > apparently leaving something out? > > > > Not sure if this is the issue, but you have a semi-colon instead of a colon: > > case 0; // do nothing, drop through and get user data > > -John C. > _______________________________________________ > 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 ka at kacomputerconsulting.com Wed Jun 4 21:16:36 2008 From: ka at kacomputerconsulting.com (Kristina Anderson) Date: Wed, 4 Jun 2008 18:16:36 -0700 Subject: Fw: Re: [nycphp-talk] Error Trapping Code problem Message-ID: <1212628596.16421@coral.he.net> I set up a stripped down test page and it's working fine so it must be something else on the particular page interfering with it... ------------- Forwarded message follows ------------- Hmmm....it has that in the working code too...any suggestions how I can test this thing? > On Wed, Jun 4, 2008 at 6:32 PM, Kristina Anderson > wrote: > > Hi everyone, this is probably something really dumb that I am missing, > > but I need help. This code upon submit calls this error trapping > > function (to test for duplicate usernames). There is a hidden field > > named "step" that has a value of "1". > > It is working on another page but I am trying to use this code and > > apparently leaving something out? > > > > Not sure if this is the issue, but you have a semi-colon instead of a colon: > > case 0; // do nothing, drop through and get user data > > -John C. > _______________________________________________ > 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 ka at kacomputerconsulting.com Wed Jun 4 21:41:40 2008 From: ka at kacomputerconsulting.com (Kristina Anderson) Date: Wed, 4 Jun 2008 18:41:40 -0700 Subject: [nycphp-talk] RESOLVED: Error Trapping Code problem Message-ID: <1212630100.26858@coral.he.net> figured out why it wasn't working...this only works when the form is posting to itself...lucky thing we had that thread on 'two forms on a page' a few weeks ago !! -- Kristina ------------- Forwarded message follows ------------- I set up a stripped down test page and it's working fine so it must be something else on the particular page interfering with it... ------------- Forwarded message follows ------------- Hmmm....it has that in the working code too...any suggestions how I can test this thing? > On Wed, Jun 4, 2008 at 6:32 PM, Kristina Anderson > wrote: > > Hi everyone, this is probably something really dumb that I am missing, > > but I need help. This code upon submit calls this error trapping > > function (to test for duplicate usernames). There is a hidden field > > named "step" that has a value of "1". > > It is working on another page but I am trying to use this code and > > apparently leaving something out? > > > > Not sure if this is the issue, but you have a semi-colon instead of a colon: > > case 0; // do nothing, drop through and get user data > > -John C. > _______________________________________________ > 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 ------------------- Kristina D. H. Anderson Senior Application Developer/Consultant "Building a Better Tomorrow, One Line of Code at a Time" 646-247-4987 From birgunjp0071 at yahoo.com Thu Jun 5 00:33:55 2008 From: birgunjp0071 at yahoo.com (birgunj birgunj) Date: Wed, 4 Jun 2008 21:33:55 -0700 (PDT) Subject: [nycphp-talk] need help about cms design In-Reply-To: <4845208A.6040404@gmx.net> Message-ID: <349231.87910.qm@web59309.mail.re1.yahoo.com> Dear All, i am learning how to design and develop cms(content management system).i need help regarding this.i need a book or tutorial which explain step by step procedure with example.if any body has any material or ebook or idea please share with me. thanks humayoo David Krings wrote: birgunj birgunj wrote: > Dear all, > > i am trying to design and build the cms(content management system) from > scratch.how to design the database for cms and how to start coding for this. > > i need help about this.if anbody has any idea,supporting material > ,please share with us. > > thanks in advance to all. > > humayoo Well, despite the thread hijack I'll answer. First off a few questions. Did you ever design a database for any other application? Did you ever code something in PHP that went beyond some basic input verification, did something more than put out a static page, and worked in the end? I don't want to sound cross, but your question is like calling up Car Talk and asking the guys "I want to design and build my own car from scratch. How do I do that?". I'm just guessing here, but I assume that your experience with coding and database design is not that great. So maybe you want to download and use a CMS forwhatever you want to do and start with something that is less complex. David _______________________________________________ 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 ben at projectskyline.com Thu Jun 5 09:14:38 2008 From: ben at projectskyline.com (Ben Sgro) Date: Thu, 05 Jun 2008 09:14:38 -0400 Subject: [nycphp-talk] MSSQL, PDO & Unicode In-Reply-To: <5458db3c0806041616v542d62d9vf2ab8fd24ddd327c@mail.gmail.com> References: <4846B7D3.1020705@projectskyline.com> <5458db3c0806040922w472b5497h924eb122016b5fd7@mail.gmail.com> <4846CEEF.9060306@projectskyline.com> <5458db3c0806041037y17100cb3ve1f70db2599d4bae@mail.gmail.com> <4846DA33.7040000@projectskyline.com> <5458db3c0806041155x4d0087aax12ce2838ac56371c@mail.gmail.com> <4846E623.2080508@gmail.com> <5458db3c0806041616v542d62d9vf2ab8fd24ddd327c@mail.gmail.com> Message-ID: <4847E6BE.3090601@projectskyline.com> Hello Justin, Yeah, as far as I can tell, Dave is correct. The source I built was for linux. I don't see if building for windows. (But I haven't tried) Thanks though for your feedback. I'm hoping someone can provide some additional help. This is REAL problem, because we worked hard to get PHP accepted as a development language for enterprise applications by our client. And now we are having all these problems. Its a fact that our client's requirements is that we use SQL-SERVER, and with Zend And PHP on windows, this is proving to have many limitations. Its a real shame that Zend hasn't improved the pdo or offer something other than pdo for windows/linux. I'm not a windows/ms user, but our clients are. Anyways, incase anyone wants to know how I've temporarily solved this problem. Basetable: ... XmlContent TextContent View: ... TextContent All my controllers point to my View table. Whenever the TextContent field is updated, a SQLSERVER trigger is run that updates the basetable's XmlContent field. Its kinda hacky, but it works. - Ben PS: Its silly that Zend does a SELECT * for fetchAll() and fetchRow(). You should be able to override w/a list of fields (I dont want to write my own SQL). Justin Dearing wrote: > On Wed, Jun 4, 2008 at 2:59 PM, David Hauenstein > wrote: > >> FreeTDS is a library that allows Linux to talk to mssql. Ben needs his app >> to work on a production server that runs Windows, so FreeTDS has nothing to >> do with the solution, unfortunately. >> > > Dave, > > I think I've been making false assumptions for a couple of years now. > I always thought that the mssql_foo() functions and the mssql pdo > functions used FreeTDS even on windows. I can't find a definite answer > online so can you point out a source that confirms I am correct or > incorrect in my assumption. > > Ben, > > Assuming I am incorrect I have to say sorry I'm of no help in this regard. > _______________________________________________ > 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 ashaw at polymerdb.org Thu Jun 5 10:54:36 2008 From: ashaw at polymerdb.org (Allen Shaw) Date: Thu, 05 Jun 2008 09:54:36 -0500 Subject: [nycphp-talk] need help about cms design In-Reply-To: <349231.87910.qm@web59309.mail.re1.yahoo.com> References: <349231.87910.qm@web59309.mail.re1.yahoo.com> Message-ID: <4847FE2C.8060806@polymerdb.org> birgunj birgunj wrote: > i am learning how to design and develop cms(content management > system).i need help regarding this.i need a book or tutorial which > explain step by step procedure with example.if any body has any > material or ebook or idea please share with me. Hi Humayoo, That certainly sounds like a very big question. But there are some second-language / translation / communication issues here as well, so maybe I can assume your question is as innocent as, "Hi. I'm really new at this but thought a simple CMS system might be an interesting learning project for me. Can anyone recommend some beginner-level resources that touch on CMS design?" In answer to *that* question, I would recommend something like _PHP and MySQL Web Development_, by Luke Welling and Laura Thomson. Very beginner-oriented I thought (it starts off with a section called "PHP Crash Course"), and contains a section (30 pages out of 800 in the book) on "Building a Content Management System". Might be useful for you. Good luck learning -- don't forget to learn the basics as you go along. Also, this article will be /very/ useful for you as you go along learning. Bookmark it and refer to it now and then; you'll learn a lot: http://www.catb.org/~esr/faqs/smart-questions.html All the best, Allen -- Allen Shaw slidePresenter (http://slides.sourceforge.net) From anthony at thrillist.com Thu Jun 5 11:38:13 2008 From: anthony at thrillist.com (anthony wlodarski) Date: Thu, 5 Jun 2008 11:38:13 -0400 Subject: [nycphp-talk] need help about cms design In-Reply-To: <4847FE2C.8060806@polymerdb.org> References: <349231.87910.qm@web59309.mail.re1.yahoo.com> <4847FE2C.8060806@polymerdb.org> Message-ID: <6021BBFB-B165-4675-9E15-674E0AA426B7@thrillist.com> If someone tells you to RTFM they are usually right. -Anthony On Jun 5, 2008, at 10:54 AM, Allen Shaw wrote: > Also, this article will be /very/ useful for you as you go along > learning. Bookmark it and refer to it now and then; you'll learn a > lot: http://www.catb.org/~esr/faqs/smart-questions.html Anthony Wlodarski Web Applications Developer www.thrillist.com 560 Broadway, Suite 308 New York, NY 10012 p 646.274.2435 f 646.557.0803 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ashaw at polymerdb.org Thu Jun 5 11:58:15 2008 From: ashaw at polymerdb.org (Allen Shaw) Date: Thu, 05 Jun 2008 10:58:15 -0500 Subject: [nycphp-talk] need help about cms design In-Reply-To: <6021BBFB-B165-4675-9E15-674E0AA426B7@thrillist.com> References: <349231.87910.qm@web59309.mail.re1.yahoo.com> <4847FE2C.8060806@polymerdb.org> <6021BBFB-B165-4675-9E15-674E0AA426B7@thrillist.com> Message-ID: <48480D17.1070301@polymerdb.org> anthony wlodarski wrote: > If someone tells you to RTFM they are usually right. Yeah, me too -- often they're right without even saying it. ;-) Of course, that's not at all the message I was trying to give the OP. - A. -- Allen Shaw slidePresenter (http://slides.sourceforge.net) From rotsen at gmail.com Thu Jun 5 12:47:19 2008 From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=) Date: Thu, 5 Jun 2008 09:47:19 -0700 Subject: [nycphp-talk] PHP $_SESSION Message-ID: HELP!!!!! I am going crazy trying to figure a problem. I have an existing code that I wrote and it works(miracle!) and I am porting it from php 4.1 to php 5.1 I just realized that my $_SESSION array is empty on php 5.1 Did something changed? What am I missing? Thanks, Nestor :-) -------------- next part -------------- An HTML attachment was scrubbed... URL: From anthony at thrillist.com Thu Jun 5 13:01:24 2008 From: anthony at thrillist.com (anthony wlodarski) Date: Thu, 5 Jun 2008 13:01:24 -0400 Subject: [nycphp-talk] PHP $_SESSION In-Reply-To: References: Message-ID: <0A27DD70-EE6E-4C74-8928-16CF1ECB0C82@thrillist.com> The better question is how do you build it currently? Without that I can't figure out how it might be breaking. Also don't forget to call session_start(); otherwise $_SESSION won't resume where it left off. -Anthony On Jun 5, 2008, at 12:47 PM, N?stor wrote: > HELP!!!!! > > I am going crazy trying to figure a problem. > > I have an existing code that I wrote and it works(miracle!) > and I am porting it from php 4.1 to php 5.1 > > I just realized that my $_SESSION array is empty on php 5.1 > > Did something changed? What am I missing? > > Thanks, > > Nestor :-) > _______________________________________________ > 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 Anthony Wlodarski Web Applications Developer www.thrillist.com 560 Broadway, Suite 308 New York, NY 10012 p 646.274.2435 f 646.557.0803 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramons at gmx.net Thu Jun 5 13:21:58 2008 From: ramons at gmx.net (David Krings) Date: Thu, 05 Jun 2008 13:21:58 -0400 Subject: [nycphp-talk] PHP $_SESSION In-Reply-To: <0A27DD70-EE6E-4C74-8928-16CF1ECB0C82@thrillist.com> References: <0A27DD70-EE6E-4C74-8928-16CF1ECB0C82@thrillist.com> Message-ID: <484820B6.9080605@gmx.net> Hi! I found that calling session_start() before doing anything else seems to be the only way to make that work reliably. I make sure that it is the first thing a script executes. Also, just as a test, add this at the top of the script

If that doesn't show any results something is really wrong and you may want to take a look at the error logs. If you are looking for specific keys, did you write anything to the session? And watch out for typos. I can't tell you how often I was about to jump behind a bus just because I missed a friggin "n" or "e". David anthony wlodarski wrote: > The better question is how do you build it currently? Without that I > can't figure out how it might be breaking. Also don't forget to call > session_start(); otherwise $_SESSION won't resume where it left off. > > -Anthony > From rotsen at gmail.com Thu Jun 5 13:23:57 2008 From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=) Date: Thu, 5 Jun 2008 10:23:57 -0700 Subject: [nycphp-talk] PHP $_SESSION In-Reply-To: <0A27DD70-EE6E-4C74-8928-16CF1ECB0C82@thrillist.com> References: <0A27DD70-EE6E-4C74-8928-16CF1ECB0C82@thrillist.com> Message-ID: I understand this. Like I said it is not working on PHP 5.1. I do the session_start() and then I put the session_id() into my $_SESSION['mysession']; The problem is that my $_SESSION['mysession'] is empty on php 5.1 when it was not in php 4.1. Apparently a logs of people where having this problim according to this link: http://bugs.php.net/bug.php?id=16263 I am reading the above link to see what the answer to the problem is. I was hoping that some one on this list had seen this problem and knows the answer. Thanks, Nestor :-) On Thu, Jun 5, 2008 at 10:01 AM, anthony wlodarski wrote: > The better question is how do you build it currently? Without that I can't > figure out how it might be breaking. Also don't forget to call > session_start(); otherwise $_SESSION won't resume where it left off. > -Anthony > > On Jun 5, 2008, at 12:47 PM, N?stor wrote: > > HELP!!!!! > > I am going crazy trying to figure a problem. > > I have an existing code that I wrote and it works(miracle!) > and I am porting it from php 4.1 to php 5.1 > > I just realized that my $_SESSION array is empty on php 5.1 > > Did something changed? What am I missing? > > Thanks, > > Nestor :-) > _______________________________________________ > 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 > > > > > > Anthony Wlodarski > Web Applications Developer > www.thrillist.com > 560 Broadway, Suite 308 > New York, NY 10012 > p 646.274.2435 > f 646.557.0803 > > > _______________________________________________ > 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 jorge at rhst.net Thu Jun 5 13:44:16 2008 From: jorge at rhst.net (Jorge Lopez) Date: Thu, 5 Jun 2008 13:44:16 -0400 Subject: [nycphp-talk] PHP $_SESSION In-Reply-To: References: <0A27DD70-EE6E-4C74-8928-16CF1ECB0C82@thrillist.com> Message-ID: You wouldn't happen to have a custom session handler object? -Jorge On Jun 5, 2008, at 1:23 PM, N?stor wrote: > I understand this. Like I said it is not working on PHP 5.1. > I do the session_start() > and then I put the session_id() into my $_SESSION['mysession']; > > The problem is that my $_SESSION['mysession'] is empty on php 5.1 > when it was not in php 4.1. > > Apparently a logs of people where having this problim according to > this link: > http://bugs.php.net/bug.php?id=16263 > > I am reading the above link to see what the answer to the problem is. > I was hoping that some one on this list had seen this problem and > knows the answer. > > Thanks, > > Nestor :-) > > On Thu, Jun 5, 2008 at 10:01 AM, anthony wlodarski > wrote: > The better question is how do you build it currently? Without that > I can't figure out how it might be breaking. Also don't forget to > call session_start(); otherwise $_SESSION won't resume where it left > off. > > -Anthony > > On Jun 5, 2008, at 12:47 PM, N?stor wrote: > >> HELP!!!!! >> >> I am going crazy trying to figure a problem. >> >> I have an existing code that I wrote and it works(miracle!) >> and I am porting it from php 4.1 to php 5.1 >> >> I just realized that my $_SESSION array is empty on php 5.1 >> >> Did something changed? What am I missing? >> >> Thanks, >> >> Nestor :-) >> _______________________________________________ >> 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 > > > > > Anthony Wlodarski > Web Applications Developer > www.thrillist.com > 560 Broadway, Suite 308 > New York, NY 10012 > p 646.274.2435 > f 646.557.0803 > > > _______________________________________________ > 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 tim_lists at o2group.com Thu Jun 5 13:49:52 2008 From: tim_lists at o2group.com (Tim Lieberman) Date: Thu, 5 Jun 2008 11:49:52 -0600 Subject: [nycphp-talk] PHP $_SESSION In-Reply-To: References: <0A27DD70-EE6E-4C74-8928-16CF1ECB0C82@thrillist.com> Message-ID: What are the session settings you get from phpinfo()? -Tim On Jun 5, 2008, at 11:44 AM, Jorge Lopez wrote: > You wouldn't happen to have a custom session handler object? > > -Jorge > > On Jun 5, 2008, at 1:23 PM, N?stor wrote: > >> I understand this. Like I said it is not working on PHP 5.1. >> I do the session_start() >> and then I put the session_id() into my $_SESSION['mysession']; >> >> The problem is that my $_SESSION['mysession'] is empty on php 5.1 >> when it was not in php 4.1. >> >> Apparently a logs of people where having this problim according to >> this link: >> http://bugs.php.net/bug.php?id=16263 >> >> I am reading the above link to see what the answer to the problem is. >> I was hoping that some one on this list had seen this problem and >> knows the answer. >> >> Thanks, >> >> Nestor :-) >> >> On Thu, Jun 5, 2008 at 10:01 AM, anthony wlodarski >> wrote: >> The better question is how do you build it currently? Without >> that I can't figure out how it might be breaking. Also don't >> forget to call session_start(); otherwise $_SESSION won't resume >> where it left off. >> >> -Anthony >> >> On Jun 5, 2008, at 12:47 PM, N?stor wrote: >> >>> HELP!!!!! >>> >>> I am going crazy trying to figure a problem. >>> >>> I have an existing code that I wrote and it works(miracle!) >>> and I am porting it from php 4.1 to php 5.1 >>> >>> I just realized that my $_SESSION array is empty on php 5.1 >>> >>> Did something changed? What am I missing? >>> >>> Thanks, >>> >>> Nestor :-) >>> _______________________________________________ >>> 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 >> >> >> >> >> Anthony Wlodarski >> Web Applications Developer >> www.thrillist.com >> 560 Broadway, Suite 308 >> New York, NY 10012 >> p 646.274.2435 >> f 646.557.0803 >> >> >> _______________________________________________ >> 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 ramons at gmx.net Thu Jun 5 13:55:26 2008 From: ramons at gmx.net (David Krings) Date: Thu, 05 Jun 2008 13:55:26 -0400 Subject: [nycphp-talk] PHP $_SESSION In-Reply-To: References: <0A27DD70-EE6E-4C74-8928-16CF1ECB0C82@thrillist.com> Message-ID: <4848288E.2090602@gmx.net> N?stor wrote: > I understand this. Like I said it is not working on PHP 5.1. > I do the session_start() > and then I put the session_id() into my $_SESSION['mysession']; > > The problem is that my $_SESSION['mysession'] is empty on php 5.1 > when it was not in php 4.1. > Out of curiosity, why do you store the session ID in the session array when session_id() will give you what you are looking for? And then, what does session_id() produce? If that is an empty value then $_SESSION['mysession'] will be empty as well. > Apparently a logs of people where having this problim according to this > link: > http://bugs.php.net/bug.php?id=16263 > > I am reading the above link to see what the answer to the problem is. > I was hoping that some one on this list had seen this problem and > knows the answer. The answers boil down to two things: 1. Check where the session files are written to and make sure that PHP has full access to that place and that nothing else wipes those files out. 2. Use this: References: <0A27DD70-EE6E-4C74-8928-16CF1ECB0C82@thrillist.com> <4848288E.2090602@gmx.net> Message-ID: To answer the last 3 postings I get the session_id() and save it in $_SESSION['mysession'] then in every page I compare them if not the same then I send the user back to the login page: if($_SESSION['mysession'] != session_id() ){ // redirect to the HR admin page header("Location:/login.php"); } The redirect works!!! YES! $_SESSION['mysession'] is empty, the session information is disappearing from one page to the other. When i do a phpinfo() I do not have any $_SESSION variables; On Thu, Jun 5, 2008 at 10:55 AM, David Krings wrote: > N?stor wrote: > >> I understand this. Like I said it is not working on PHP 5.1. >> I do the session_start() >> and then I put the session_id() into my $_SESSION['mysession']; >> >> The problem is that my $_SESSION['mysession'] is empty on php 5.1 >> when it was not in php 4.1. >> >> > Out of curiosity, why do you store the session ID in the session array when > session_id() will give you what you are looking for? And then, what does > session_id() produce? If that is an empty value then $_SESSION['mysession'] > will be empty as well. > > Apparently a logs of people where having this problim according to this >> link: >> http://bugs.php.net/bug.php?id=16263 >> >> I am reading the above link to see what the answer to the problem is. >> I was hoping that some one on this list had seen this problem and >> knows the answer. >> > > > The answers boil down to two things: > 1. Check where the session files are written to and make sure that PHP has > full access to that place and that nothing else wipes those files out. > 2. Use this: > session_start(); > header("Cache-control: private"); > > I use sessions extensively in my projects and didn't find that there is any > issue. I do set the cache control. > > HTH > > David > > _______________________________________________ > 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 rotsen at gmail.com Thu Jun 5 14:09:03 2008 From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=) Date: Thu, 5 Jun 2008 11:09:03 -0700 Subject: [nycphp-talk] PHP $_SESSION In-Reply-To: References: <0A27DD70-EE6E-4C74-8928-16CF1ECB0C82@thrillist.com> <4848288E.2090602@gmx.net> Message-ID: My previous system's php: PHP 4.3.9 (cgi) (built: Nov 24 2004 08:48:16) session variables work My new system's php: PHP 5.1.6 (cli) (built: Jan 15 2008 04:57:50) session variables do not work :-( -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim_lists at o2group.com Thu Jun 5 14:14:00 2008 From: tim_lists at o2group.com (Tim Lieberman) Date: Thu, 5 Jun 2008 12:14:00 -0600 Subject: [nycphp-talk] PHP $_SESSION In-Reply-To: References: <0A27DD70-EE6E-4C74-8928-16CF1ECB0C82@thrillist.com> <4848288E.2090602@gmx.net> Message-ID: There's a section in the phpinfo() output called session. Compare those sections between the two php versions. If you don't see anything obvious, post at least the php5 config here, and maybe we'll see something. It sounds to me like wherever PHP5 is trying to save session files on disk is not writable, but it could be any number of things. -Tim On Jun 5, 2008, at 12:05 PM, N?stor wrote: > To answer the last 3 postings > > I get the session_id() and save it in $_SESSION['mysession'] > then in every page I compare them if not the same then I send the > user back to > the login page: > if($_SESSION['mysession'] != session_id() ){ > // redirect to the HR admin page > header("Location:/login.php"); > } > > The redirect works!!! > > YES! $_SESSION['mysession'] is empty, the session information > is disappearing > from one page to the other. > > When i do a phpinfo() I do not have any $_SESSION variables; > > > > > > On Thu, Jun 5, 2008 at 10:55 AM, David Krings wrote: > N?stor wrote: > I understand this. Like I said it is not working on PHP 5.1. > I do the session_start() > and then I put the session_id() into my $_SESSION['mysession']; > > The problem is that my $_SESSION['mysession'] is empty on php 5.1 > when it was not in php 4.1. > > > Out of curiosity, why do you store the session ID in the session > array when session_id() will give you what you are looking for? And > then, what does session_id() produce? If that is an empty value > then $_SESSION['mysession'] will be empty as well. > > > Apparently a logs of people where having this problim according to > this link: > http://bugs.php.net/bug.php?id=16263 > > I am reading the above link to see what the answer to the problem is. > I was hoping that some one on this list had seen this problem and > knows the answer. > > > The answers boil down to two things: > 1. Check where the session files are written to and make sure that > PHP has full access to that place and that nothing else wipes those > files out. > 2. Use this: > session_start(); > header("Cache-control: private"); > > I use sessions extensively in my projects and didn't find that > there is any issue. I do set the cache control. > > HTH > > David > > _______________________________________________ > 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 sailer at bnl.gov Thu Jun 5 14:15:23 2008 From: sailer at bnl.gov (Tim Sailer) Date: Thu, 5 Jun 2008 14:15:23 -0400 Subject: [nycphp-talk] PHP $_SESSION In-Reply-To: References: <0A27DD70-EE6E-4C74-8928-16CF1ECB0C82@thrillist.com> <4848288E.2090602@gmx.net> Message-ID: <20080605181523.GA3096@bnl.gov> On Thu, Jun 05, 2008 at 11:05:35AM -0700, N?stor wrote: > To answer the last 3 postings > > I get the session_id() and save it in $_SESSION['mysession'] > then in every page I compare them if not the same then I send the user back > to > the login page: > if($_SESSION['mysession'] != session_id() ){ > // redirect to the HR admin page > header("Location:/login.php"); > } > > The redirect works!!! > > YES! $_SESSION['mysession'] is empty, the session information is > disappearing > from one page to the other. Are you doing a session_start()? Tim From rotsen at gmail.com Thu Jun 5 14:34:08 2008 From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=) Date: Thu, 5 Jun 2008 11:34:08 -0700 Subject: [nycphp-talk] PHP $_SESSION In-Reply-To: References: <0A27DD70-EE6E-4C74-8928-16CF1ECB0C82@thrillist.com> <4848288E.2090602@gmx.net> Message-ID: How can I check to see that the problem is that the session files are writable to the disk? How do I catch the error? my session.path.save points to /var/lib/php/session Thanks, On Thu, Jun 5, 2008 at 11:14 AM, Tim Lieberman wrote: > There's a section in the phpinfo() output called session. > Compare those sections between the two php versions. If you don't see > anything obvious, post at least the php5 config here, and maybe we'll see > something. > > It sounds to me like wherever PHP5 is trying to save session files on disk > is not writable, but it could be any number of things. > > -Tim > > On Jun 5, 2008, at 12:05 PM, N?stor wrote: > > To answer the last 3 postings > > I get the session_id() and save it in $_SESSION['mysession'] > then in every page I compare them if not the same then I send the user back > to > the login page: > if($_SESSION['mysession'] != session_id() ){ > // redirect to the HR admin page > header("Location:/login.php"); > } > > The redirect works!!! > > YES! $_SESSION['mysession'] is empty, the session information is > disappearing > from one page to the other. > > When i do a phpinfo() I do not have any $_SESSION variables; > > > > > > On Thu, Jun 5, 2008 at 10:55 AM, David Krings wrote: > >> N?stor wrote: >> >>> I understand this. Like I said it is not working on PHP 5.1. >>> I do the session_start() >>> and then I put the session_id() into my $_SESSION['mysession']; >>> >>> The problem is that my $_SESSION['mysession'] is empty on php 5.1 >>> when it was not in php 4.1. >>> >>> >> Out of curiosity, why do you store the session ID in the session array >> when session_id() will give you what you are looking for? And then, what >> does session_id() produce? If that is an empty value then >> $_SESSION['mysession'] will be empty as well. >> >> Apparently a logs of people where having this problim according to this >>> link: >>> http://bugs.php.net/bug.php?id=16263 >>> >>> I am reading the above link to see what the answer to the problem is. >>> I was hoping that some one on this list had seen this problem and >>> knows the answer. >>> >> >> >> The answers boil down to two things: >> 1. Check where the session files are written to and make sure that PHP has >> full access to that place and that nothing else wipes those files out. >> 2. Use this: >> > session_start(); >> header("Cache-control: private"); >> >> I use sessions extensively in my projects and didn't find that there is >> any issue. I do set the cache control. >> >> HTH >> >> David >> >> _______________________________________________ >> 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 rotsen at gmail.com Thu Jun 5 14:31:46 2008 From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=) Date: Thu, 5 Jun 2008 11:31:46 -0700 Subject: [nycphp-talk] PHP $_SESSION In-Reply-To: <20080605181523.GA3096@bnl.gov> References: <0A27DD70-EE6E-4C74-8928-16CF1ECB0C82@thrillist.com> <4848288E.2090602@gmx.net> <20080605181523.GA3096@bnl.gov> Message-ID: yes On Thu, Jun 5, 2008 at 11:15 AM, Tim Sailer wrote: > On Thu, Jun 05, 2008 at 11:05:35AM -0700, N?stor wrote: > > To answer the last 3 postings > > > > I get the session_id() and save it in $_SESSION['mysession'] > > then in every page I compare them if not the same then I send the user > back > > to > > the login page: > > if($_SESSION['mysession'] != session_id() ){ > > // redirect to the HR admin page > > header("Location:/login.php"); > > } > > > > The redirect works!!! > > > > YES! $_SESSION['mysession'] is empty, the session information is > > disappearing > > from one page to the other. > > Are you doing a session_start()? > > Tim > _______________________________________________ > 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 jcampbell1 at gmail.com Thu Jun 5 14:44:22 2008 From: jcampbell1 at gmail.com (John Campbell) Date: Thu, 5 Jun 2008 14:44:22 -0400 Subject: [nycphp-talk] PHP $_SESSION In-Reply-To: References: <0A27DD70-EE6E-4C74-8928-16CF1ECB0C82@thrillist.com> <4848288E.2090602@gmx.net> Message-ID: <8f0676b40806051144j17854c09ib642e8fc6e1d5a01@mail.gmail.com> On Thu, Jun 5, 2008 at 2:09 PM, N?stor wrote: > My previous system's php: > PHP 4.3.9 (cgi) (built: Nov 24 2004 08:48:16) > session variables work > > My new system's php: > PHP 5.1.6 (cli) (built: Jan 15 2008 04:57:50) > session variables do not work Can you post the session section from php_info() ... it might give some clues. -John C. From anthony at thrillist.com Thu Jun 5 14:44:45 2008 From: anthony at thrillist.com (anthony wlodarski) Date: Thu, 5 Jun 2008 14:44:45 -0400 Subject: [nycphp-talk] PHP $_SESSION In-Reply-To: References: <0A27DD70-EE6E-4C74-8928-16CF1ECB0C82@thrillist.com> <4848288E.2090602@gmx.net> <20080605181523.GA3096@bnl.gov> Message-ID: Do this to see what's in the $_SESSION variable. "; print_r($_SESSION); print "
";
?>
On Jun 5, 2008, at 2:31 PM, N?stor wrote:

> yes
>
> On Thu, Jun 5, 2008 at 11:15 AM, Tim Sailer  wrote:
> On Thu, Jun 05, 2008 at 11:05:35AM -0700, N?stor wrote:
> > To answer the last 3 postings
> >
> > I get the session_id() and save it in $_SESSION['mysession']
> > then in every page I compare them if not the same then I send the  
> user back
> > to
> > the login page:
> >   if($_SESSION['mysession'] != session_id() ){
> >      // redirect to the HR admin page
> >      header("Location:/login.php");
> >   }
> >
> > The redirect works!!!
> >
> > YES!    $_SESSION['mysession'] is empty,  the session information is
> > disappearing
> > from one page to the other.
>
> Are you doing a session_start()?
>
> Tim
> _______________________________________________
> 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




Anthony Wlodarski
Web Applications Developer
www.thrillist.com
560 Broadway, Suite 308
New York, NY 10012
p 646.274.2435
f 646.557.0803

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From rotsen at gmail.com  Thu Jun  5 15:00:15 2008
From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=)
Date: Thu, 5 Jun 2008 12:00:15 -0700
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: <8f0676b40806051144j17854c09ib642e8fc6e1d5a01@mail.gmail.com>
References: 
	<0A27DD70-EE6E-4C74-8928-16CF1ECB0C82@thrillist.com>
	
	<4848288E.2090602@gmx.net>
	
	
	<8f0676b40806051144j17854c09ib642e8fc6e1d5a01@mail.gmail.com>
Message-ID: 

phpinfo() does not show the SESSION  section

On Thu, Jun 5, 2008 at 11:44 AM, John Campbell  wrote:

>
>
> Can you post the session section from php_info() ... it might give some
> clues.
>
> -John C.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From jcampbell1 at gmail.com  Thu Jun  5 15:17:46 2008
From: jcampbell1 at gmail.com (John Campbell)
Date: Thu, 5 Jun 2008 15:17:46 -0400
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: 
References: 
	<0A27DD70-EE6E-4C74-8928-16CF1ECB0C82@thrillist.com>
	
	<4848288E.2090602@gmx.net>
	
	
	<8f0676b40806051144j17854c09ib642e8fc6e1d5a01@mail.gmail.com>
	
Message-ID: <8f0676b40806051217o450a2e3byb00186a55431c845@mail.gmail.com>

On Thu, Jun 5, 2008 at 3:00 PM, N?stor  wrote:
> phpinfo() does not show the SESSION  section
>
> On Thu, Jun 5, 2008 at 11:44 AM, John Campbell  wrote:

Well that is clearly a problem.  Can you post the header section?  It
also seems strange that your posted version is (cli); that doesn't
make much sense if you want a webserver.  This is clearly an
install/build issue.  Please provide some info on the platform and
distro and how you installed.

-John C.


From rotsen at gmail.com  Thu Jun  5 15:17:47 2008
From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=)
Date: Thu, 5 Jun 2008 12:17:47 -0700
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: 
References: 
	<0A27DD70-EE6E-4C74-8928-16CF1ECB0C82@thrillist.com>
	
	<4848288E.2090602@gmx.net>
	
	<20080605181523.GA3096@bnl.gov>
	
	
Message-ID: 

phpinfo() and the below code does not show any session info.

I can see the session_id() in mu login page before I call the next php
page.  Then I look at the session info on the second page there is not
session info.
Remember this code I wrote about 3 years ago and it works on my other
linux system running RHEL 3/apache 1.39/php 4.3.2/
my new linux system is RHEL 5.1/apache 2/php 5.1



On Thu, Jun 5, 2008 at 11:44 AM, anthony wlodarski 
wrote:

> Do this to see what's in the $_SESSION variable.
>
> ";
> print_r($_SESSION);
> print "
";
> ?>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From rotsen at gmail.com  Thu Jun  5 15:29:15 2008
From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=)
Date: Thu, 5 Jun 2008 12:29:15 -0700
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: <8f0676b40806051217o450a2e3byb00186a55431c845@mail.gmail.com>
References: 
	<0A27DD70-EE6E-4C74-8928-16CF1ECB0C82@thrillist.com>
	
	<4848288E.2090602@gmx.net>
	
	
	<8f0676b40806051144j17854c09ib642e8fc6e1d5a01@mail.gmail.com>
	
	<8f0676b40806051217o450a2e3byb00186a55431c845@mail.gmail.com>
Message-ID: 

The login page set mysession id
the second page checks the session ids and  redirects to login page if no
match

This is the output oh my header_list before just before redirecting to the
login
page:
array(4) {
      [0]=> string(23) "X-Powered-By: PHP/5.1.6"
      [1]=> string(38) "Expires: Thu, 19 Nov 1981 08:52:00 GMT"
      [2]=> string(77) "Cache-Control: no-store, no-cache, must-revalidate,
post-check=0, pre-check=0"
      [3]=> string(16) "Pragma: no-cache"
}




On Thu, Jun 5, 2008 at 12:17 PM, John Campbell  wrote:

> On Thu, Jun 5, 2008 at 3:00 PM, N?stor  wrote:
> > phpinfo() does not show the SESSION  section
> >
> > On Thu, Jun 5, 2008 at 11:44 AM, John Campbell 
> wrote:
>
> Well that is clearly a problem.  Can you post the header section?  It
> also seems strange that your posted version is (cli); that doesn't
> make much sense if you want a webserver.  This is clearly an
> install/build issue.  Please provide some info on the platform and
> distro and how you installed.
>
> -John C.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From rotsen at gmail.com  Thu Jun  5 16:16:13 2008
From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=)
Date: Thu, 5 Jun 2008 13:16:13 -0700
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: 
References: 
	<0A27DD70-EE6E-4C74-8928-16CF1ECB0C82@thrillist.com>
	
	<4848288E.2090602@gmx.net>
	
	
	<8f0676b40806051144j17854c09ib642e8fc6e1d5a01@mail.gmail.com>
	
	<8f0676b40806051217o450a2e3byb00186a55431c845@mail.gmail.com>
	
Message-ID: 

Interesting that the SESSION data is not there but I can the
HTTP_COOKIE PHPSESSID=ttl1fo7uv30sq4hbi8fkq4v683

which just happens to be my session_id().

Still no SESSION section

:-(

On Thu, Jun 5, 2008 at 12:29 PM, N?stor  wrote:

> The login page set mysession id
> the second page checks the session ids and  redirects to login page if no
> match
>
> This is the output oh my header_list before just before redirecting to the
> login
> page:
> array(4) {
>       [0]=> string(23) "X-Powered-By: PHP/5.1.6"
>       [1]=> string(38) "Expires: Thu, 19 Nov 1981 08:52:00 GMT"
>       [2]=> string(77) "Cache-Control: no-store, no-cache, must-revalidate,
> post-check=0, pre-check=0"
>       [3]=> string(16) "Pragma: no-cache"
> }
>
>
>
>
> On Thu, Jun 5, 2008 at 12:17 PM, John Campbell 
> wrote:
>
>> On Thu, Jun 5, 2008 at 3:00 PM, N?stor  wrote:
>> > phpinfo() does not show the SESSION  section
>> >
>> > On Thu, Jun 5, 2008 at 11:44 AM, John Campbell 
>> wrote:
>>
>> Well that is clearly a problem.  Can you post the header section?  It
>> also seems strange that your posted version is (cli); that doesn't
>> make much sense if you want a webserver.  This is clearly an
>> install/build issue.  Please provide some info on the platform and
>> distro and how you installed.
>>
>> -John C.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From jcampbell1 at gmail.com  Thu Jun  5 16:21:00 2008
From: jcampbell1 at gmail.com (John Campbell)
Date: Thu, 5 Jun 2008 16:21:00 -0400
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: 
References: 
	<0A27DD70-EE6E-4C74-8928-16CF1ECB0C82@thrillist.com>
	
	<4848288E.2090602@gmx.net>
	
	
	<8f0676b40806051144j17854c09ib642e8fc6e1d5a01@mail.gmail.com>
	
	<8f0676b40806051217o450a2e3byb00186a55431c845@mail.gmail.com>
	
Message-ID: <8f0676b40806051321x6620cdd3s3ce70bbc8fbf6ff5@mail.gmail.com>

On Thu, Jun 5, 2008 at 3:29 PM, N?stor  wrote:
> The login page set mysession id
> the second page checks the session ids and  redirects to login page if no
> match
>
> This is the output oh my header_list before just before redirecting to the
> login
> page:
> array(4) {
>       [0]=> string(23) "X-Powered-By: PHP/5.1.6"
>       [1]=> string(38) "Expires: Thu, 19 Nov 1981 08:52:00 GMT"
>       [2]=> string(77) "Cache-Control: no-store, no-cache, must-revalidate,
> post-check=0, pre-check=0"
>       [3]=> string(16) "Pragma: no-cache"
> }

I am sorry, that was not what I meant.  I was talking about the output
of phpinfo.  Can you provide a link to the output of phpinfo() or copy
and paste the top section.


From rotsen at gmail.com  Thu Jun  5 16:30:12 2008
From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=)
Date: Thu, 5 Jun 2008 13:30:12 -0700
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: 
References: 
	
	<4848288E.2090602@gmx.net>
	
	
	<8f0676b40806051144j17854c09ib642e8fc6e1d5a01@mail.gmail.com>
	
	<8f0676b40806051217o450a2e3byb00186a55431c845@mail.gmail.com>
	
	
Message-ID: 

I was wrong, there is a SESSION section is just that I was searchin for
_SESSION
on the page and I was not findng it.

this is the session information
---------------------------------------------
session Session Support enabled Registered save handlers files user Registered
serializer handlers php php_binary wddx
DirectiveLocal ValueMaster Value session.auto_startOffOff
session.bug_compat_42OnOn session.bug_compat_warnOnOn session.cache_expire
180180 session.cache_limiternocachenocache session.cookie_domain*no value**no
value* session.cookie_lifetime00 session.cookie_path// session.cookie_secure
OffOff session.entropy_file*no value**no value* session.entropy_length00
session.gc_divisor100100 session.gc_maxlifetime14401440
session.gc_probability11 session.hash_bits_per_character44
session.hash_function00 session.namePHPSESSIDPHPSESSID session.referer_check
*no value**no value* session.save_handlerfilesfiles session.save_path/tmp

; Whether to use cookies.
session.use_cookies = 1

; This option enables administrators to make their users invulnerable to
; attacks which involve passing session ids in URLs; defaults to 0.
; session.use_only_cookies = 1

; Name of the session (used as cookie name).
session.name = PHPSESSID

; Initialize session on request startup.
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0

; The path for which the cookie is valid.
session.cookie_path = /

; The domain for which the cookie is valid.
session.cookie_domain =

; Handler used to serialize data.  php is the standard serializer of PHP.
session.serialize_handler = php

; Define the probability that the 'garbage collection' process is started
; on every session initialization.
; The probability is calculated by using gc_probability/gc_divisor,
; e.g. 1/100 means there is a 1% chance that the GC process starts
; on each request.

session.gc_probability = 1
session.gc_divisor     = 1000

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440

; NOTE: If you are using the subdirectory option for storing session files
;       (see session.save_path above), then garbage collection does *not*
;       happen automatically.  You will need to do your own garbage
;       collection through a shell script, cron entry, or some other method.
;       For example, the following script would is the equivalent of
;       setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
;          cd /path/to/sessions; find -cmin +24 | xargs rm

; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, albeit register_globals
; is disabled.  PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled.

session.bug_compat_42 = 0
session.bug_compat_warn = 1

; Check HTTP Referer to invalidate externally stored URLs containing ids.
; HTTP_REFERER has to contain this substring for the session to be
; considered as valid.
session.referer_check =

; How many bytes to read from the file.
session.entropy_length = 0

; Specified here to create the session id.
session.entropy_file =

;session.entropy_length = 16

;session.entropy_file = /dev/urandom

; Set to {nocache,private,public,} to determine HTTP caching aspects
; or leave this empty to avoid sending anti-caching headers.
session.cache_limiter = nocache

; Document expires after n minutes.
session.cache_expire = 180

; trans sid support is disabled by default.
; Use of trans sid may risk your users security.
; Use this option with caution.
; - User may send URL contains active session ID
;   to other person via. email/irc/etc.
; - URL that contains active session ID may be stored
;   in publically accessible computer.
; - User may access your site with the same session ID
;   always using URL stored in browser's history or bookmarks.
session.use_trans_sid = 0

; Select a hash function
; 0: MD5   (128 bits)
; 1: SHA-1 (160 bits)
session.hash_function = 0

; Define how many bits are stored in each character when converting
; the binary hash data to something readable.
;
; 4 bits: 0-9, a-f
; 5 bits: 0-9, a-v
; 6 bits: 0-9, a-z, A-Z, -, ,
session.hash_bits_per_character = 5

; The URL rewriter will look for URLs in a defined set of HTML tags.
; form/fieldset are special; if you include them here, the rewriter will
; add a hidden  field with the info which is otherwise appended
; to URLs.  If you want XHTML conformity, remove the form entry.
; Note that all valid entries require a /tmp

; Whether to use cookies.
session.use_cookies = 1

; This option enables administrators to make their users invulnerable to
; attacks which involve passing session ids in URLs; defaults to 0.
; session.use_only_cookies = 1

; Name of the session (used as cookie name).
session.name = PHPSESSID

; Initialize session on request startup.
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0

; The path for which the cookie is valid.
session.cookie_path = /

; The domain for which the cookie is valid.
session.cookie_domain =

; Handler used to serialize data.  php is the standard serializer of PHP.
session.serialize_handler = php

; Define the probability that the 'garbage collection' process is started
; on every session initialization.
; The probability is calculated by using gc_probability/gc_divisor,
; e.g. 1/100 means there is a 1% chance that the GC process starts
; on each request.

session.gc_probability = 1
session.gc_divisor     = 1000

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440

; NOTE: If you are using the subdirectory option for storing session files
;       (see session.save_path above), then garbage collection does *not*
;       happen automatically.  You will need to do your own garbage
;       collection through a shell script, cron entry, or some other method.
;       For example, the following script would is the equivalent of
;       setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
;          cd /path/to/sessions; find -cmin +24 | xargs rm

; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, albeit register_globals
; is disabled.  PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled.

session.bug_compat_42 = 0
session.bug_compat_warn = 1

; Check HTTP Referer to invalidate externally stored URLs containing ids.
; HTTP_REFERER has to contain this substring for the session to be
; considered as valid.
session.referer_check =

; How many bytes to read from the file.
session.entropy_length = 0

; Specified here to create the session id.
session.entropy_file =

;session.entropy_length = 16

;session.entropy_file = /dev/urandom

; Set to {nocache,private,public,} to determine HTTP caching aspects
; or leave this empty to avoid sending anti-caching headers.
session.cache_limiter = nocache

; Document expires after n minutes.
session.cache_expire = 180

; trans sid support is disabled by default.
; Use of trans sid may risk your users security.
; Use this option with caution.
; - User may send URL contains active session ID
;   to other person via. email/irc/etc.
; - URL that contains active session ID may be stored
;   in publically accessible computer.
; - User may access your site with the same session ID
;   always using URL stored in browser's history or bookmarks.
session.use_trans_sid = 0

; Select a hash function
; 0: MD5   (128 bits)
; 1: SHA-1 (160 bits)
session.hash_function = 0

; Define how many bits are stored in each character when converting
; the binary hash data to something readable.
;
; 4 bits: 0-9, a-f
; 5 bits: 0-9, a-v
; 6 bits: 0-9, a-z, A-Z, -, ,
session.hash_bits_per_character = 5

; The URL rewriter will look for URLs in a defined set of HTML tags.
; form/fieldset are special; if you include them here, the rewriter will
; add a hidden  field with the info which is otherwise appended
; to URLs.  If you want XHTML conformity, remove the form entry.
; Note that all valid entries require a  session.serialize_handlerphpphp
session.use_cookiesOnOn session.use_only_cookiesOffOff session.use_trans_sid
00


On Thu, Jun 5, 2008 at 1:16 PM, N?stor  wrote:

> Interesting that the SESSION data is not there but I can the
> HTTP_COOKIE PHPSESSID=ttl1fo7uv30sq4hbi8fkq4v683
>
> which just happens to be my session_id().
>
> Still no SESSION section
>
> :-(
>
>
> On Thu, Jun 5, 2008 at 12:29 PM, N?stor  wrote:
>
>> The login page set mysession id
>> the second page checks the session ids and  redirects to login page if no
>> match
>>
>> This is the output oh my header_list before just before redirecting to the
>> login
>> page:
>> array(4) {
>>       [0]=> string(23) "X-Powered-By: PHP/5.1.6"
>>       [1]=> string(38) "Expires: Thu, 19 Nov 1981 08:52:00 GMT"
>>       [2]=> string(77) "Cache-Control: no-store, no-cache,
>> must-revalidate, post-check=0, pre-check=0"
>>       [3]=> string(16) "Pragma: no-cache"
>> }
>>
>>
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From rotsen at gmail.com  Thu Jun  5 16:32:18 2008
From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=)
Date: Thu, 5 Jun 2008 13:32:18 -0700
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: 
References: 
	<4848288E.2090602@gmx.net>
	
	
	<8f0676b40806051144j17854c09ib642e8fc6e1d5a01@mail.gmail.com>
	
	<8f0676b40806051217o450a2e3byb00186a55431c845@mail.gmail.com>
	
	
	
Message-ID: 

The php.ini on my RHEL 3/php4.3.2  shows
; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, albeit
register_globals
; is disabled.  PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning seperately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled.

session.bug_compat_42 = 1
session.bug_compat_warn = 0
------------------------------------------------------------------------------

while my RHEL 5/php 5.1 shows this in the php.ini:
; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, albeit
register_globals; is disabled.  PHP 4.3 and later will warn you, if this
feature is used.
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled.

session.bug_compat_42 = 0
session.bug_compat_warn = 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From rotsen at gmail.com  Thu Jun  5 17:36:46 2008
From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=)
Date: Thu, 5 Jun 2008 14:36:46 -0700
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: <8f0676b40806051321x6620cdd3s3ce70bbc8fbf6ff5@mail.gmail.com>
References: 
	
	<4848288E.2090602@gmx.net>
	
	
	<8f0676b40806051144j17854c09ib642e8fc6e1d5a01@mail.gmail.com>
	
	<8f0676b40806051217o450a2e3byb00186a55431c845@mail.gmail.com>
	
	<8f0676b40806051321x6620cdd3s3ce70bbc8fbf6ff5@mail.gmail.com>
Message-ID: 

I tried sending the phpinfo data but the message was flag for
being too long.

:-)

On Thu, Jun 5, 2008 at 1:21 PM, John Campbell  wrote:

>
> I am sorry, that was not what I meant.  I was talking about the output
> of phpinfo.  Can you provide a link to the output of phpinfo() or copy
> and paste the top section.
> _______________________________________________
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From ramons at gmx.net  Thu Jun  5 18:34:17 2008
From: ramons at gmx.net (David Krings)
Date: Thu, 05 Jun 2008 18:34:17 -0400
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: 
References: 		<4848288E.2090602@gmx.net>			<8f0676b40806051144j17854c09ib642e8fc6e1d5a01@mail.gmail.com>		<8f0676b40806051217o450a2e3byb00186a55431c845@mail.gmail.com>		<8f0676b40806051321x6620cdd3s3ce70bbc8fbf6ff5@mail.gmail.com>
	
Message-ID: <484869E9.8070008@gmx.net>

You can attach the HTML or even zip it up and then attach it. Or just post the 
sections asked for.

N?stor wrote:
> I tried sending the phpinfo data but the message was flag for
> being too long.
> 
> :-)
> 
> On Thu, Jun 5, 2008 at 1:21 PM, John Campbell  > wrote:
> 
> 
>     I am sorry, that was not what I meant.  I was talking about the output
>     of phpinfo.  Can you provide a link to the output of phpinfo() or copy
>     and paste the top section.
>     _______________________________________________
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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 jcampbell1 at gmail.com  Thu Jun  5 18:53:05 2008
From: jcampbell1 at gmail.com (John Campbell)
Date: Thu, 5 Jun 2008 18:53:05 -0400
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: 
References: 
	<4848288E.2090602@gmx.net>
	
	
	<8f0676b40806051144j17854c09ib642e8fc6e1d5a01@mail.gmail.com>
	
	<8f0676b40806051217o450a2e3byb00186a55431c845@mail.gmail.com>
	
	
	
Message-ID: <8f0676b40806051553v44eafe1fx983e788afe4974dc@mail.gmail.com>

On Thu, Jun 5, 2008 at 4:30 PM, N?stor  wrote:
> I was wrong, there is a SESSION section is just that I was searchin for
> _SESSION
> on the page and I was not findng it.
>
> session.save_path/tmp
>

I assume you are testing with a simple page like


References: 
	
	
	<8f0676b40806051144j17854c09ib642e8fc6e1d5a01@mail.gmail.com>
	
	<8f0676b40806051217o450a2e3byb00186a55431c845@mail.gmail.com>
	
	
	
	<8f0676b40806051553v44eafe1fx983e788afe4974dc@mail.gmail.com>
Message-ID: 

The session variables are empty.  The save path is /tmp
I do see the PHPSESSID on the phpinfo page.

It has to do with the php.ini set up but  except for the differences I
mentioned
on a previous email I do not see much differences.

I will try it on a small page like you mentioned.

:-)

On Thu, Jun 5, 2008 at 3:53 PM, John Campbell  wrote:

> On Thu, Jun 5, 2008 at 4:30 PM, N?stor  wrote:
> > I was wrong, there is a SESSION section is just that I was searchin for
> > _SESSION
> > on the page and I was not findng it.
> >
> > session.save_path/tmp
> >
>
> I assume you are testing with a simple page like
>
>  session_start();
> echo ++$_SESSION['foo'];
>
> The number should increase on every refresh.  Does it just print 1
> every time?  Are there files in /tmp that look like
> "sess324afd9asd91874ea"?  Delete your cookies and refresh the page and
> check for a cookie like: PHPSESSID=324afd9asd91874ea ?
>
> -John C.
> _______________________________________________
> 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 rotsen at gmail.com  Thu Jun  5 19:01:18 2008
From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=)
Date: Thu, 5 Jun 2008 16:01:18 -0700
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: <8f0676b40806051553v44eafe1fx983e788afe4974dc@mail.gmail.com>
References: 
	
	
	<8f0676b40806051144j17854c09ib642e8fc6e1d5a01@mail.gmail.com>
	
	<8f0676b40806051217o450a2e3byb00186a55431c845@mail.gmail.com>
	
	
	
	<8f0676b40806051553v44eafe1fx983e788afe4974dc@mail.gmail.com>
Message-ID: 

I tested this small program and the value is always 1


On Thu, Jun 5, 2008 at 3:53 PM, John Campbell  wrote:

>
> I assume you are testing with a simple page like
>
>  session_start();
> echo ++$_SESSION['foo'];
>
> The number should increase on every refresh.  Does it just print 1
> every time?  Are there files in /tmp that look like
> "sess324afd9asd91874ea"?  Delete your cookies and refresh the page and
> check for a cookie like: PHPSESSID=324afd9asd91874ea ?
>
> -John C.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From jcampbell1 at gmail.com  Thu Jun  5 19:06:18 2008
From: jcampbell1 at gmail.com (John Campbell)
Date: Thu, 5 Jun 2008 19:06:18 -0400
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: 
References: 
	
	<8f0676b40806051144j17854c09ib642e8fc6e1d5a01@mail.gmail.com>
	
	<8f0676b40806051217o450a2e3byb00186a55431c845@mail.gmail.com>
	
	
	
	<8f0676b40806051553v44eafe1fx983e788afe4974dc@mail.gmail.com>
	
Message-ID: <8f0676b40806051606m6cd2b71erf1831d3aa69587af@mail.gmail.com>

On Thu, Jun 5, 2008 at 6:59 PM, N?stor  wrote:
> The session variables are empty.  The save path is /tmp

Not what I meant.  From ssh, type:
cd /tmp
ls

Do you see files that start with sess?

> I do see the PHPSESSID on the phpinfo page.

I know that.  Do you have a cookie for your domain named PHPSESSID?

-John C.


From jcampbell1 at gmail.com  Thu Jun  5 19:06:18 2008
From: jcampbell1 at gmail.com (John Campbell)
Date: Thu, 5 Jun 2008 19:06:18 -0400
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: 
References: 
	
	<8f0676b40806051144j17854c09ib642e8fc6e1d5a01@mail.gmail.com>
	
	<8f0676b40806051217o450a2e3byb00186a55431c845@mail.gmail.com>
	
	
	
	<8f0676b40806051553v44eafe1fx983e788afe4974dc@mail.gmail.com>
	
Message-ID: <8f0676b40806051606m6cd2b71erf1831d3aa69587af@mail.gmail.com>

On Thu, Jun 5, 2008 at 6:59 PM, N?stor  wrote:
> The session variables are empty.  The save path is /tmp

Not what I meant.  From ssh, type:
cd /tmp
ls

Do you see files that start with sess?

> I do see the PHPSESSID on the phpinfo page.

I know that.  Do you have a cookie for your domain named PHPSESSID?

-John C.


From rotsen at gmail.com  Thu Jun  5 19:09:20 2008
From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=)
Date: Thu, 5 Jun 2008 16:09:20 -0700
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: 
References: 
	
	<8f0676b40806051144j17854c09ib642e8fc6e1d5a01@mail.gmail.com>
	
	<8f0676b40806051217o450a2e3byb00186a55431c845@mail.gmail.com>
	
	
	
	<8f0676b40806051553v44eafe1fx983e788afe4974dc@mail.gmail.com>
	
Message-ID: 

I tested the same small program on my other server and the value
changes everytime.

PHP works on both the old an the new system

What should I check that I might be missing on one system compare to the
other
so I can pass SESSION information.

Remeber my old system is RHEL 3/apache 1.39/ php 4.3.2  <-- WORKS
New system is RHEL 5.1/ apache 2.2.3/  php 5.1.6  <-- DOES NOT WORK

:-)

On Thu, Jun 5, 2008 at 4:01 PM, N?stor  wrote:

>
> I tested this small program and the value is always 1
>
>
>
> On Thu, Jun 5, 2008 at 3:53 PM, John Campbell 
> wrote:
>
>>
>> I assume you are testing with a simple page like
>>
>> > session_start();
>> echo ++$_SESSION['foo'];
>>
>> The number should increase on every refresh.  Does it just print 1
>> every time?  Are there files in /tmp that look like
>> "sess324afd9asd91874ea"?  Delete your cookies and refresh the page and
>> check for a cookie like: PHPSESSID=324afd9asd91874ea ?
>>
>> -John C.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From tim_lists at o2group.com  Thu Jun  5 19:25:00 2008
From: tim_lists at o2group.com (Tim Lieberman)
Date: Thu, 5 Jun 2008 17:25:00 -0600
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: 
References: 
	
	<8f0676b40806051144j17854c09ib642e8fc6e1d5a01@mail.gmail.com>
	
	<8f0676b40806051217o450a2e3byb00186a55431c845@mail.gmail.com>
	
	
	
	<8f0676b40806051553v44eafe1fx983e788afe4974dc@mail.gmail.com>
	
	
Message-ID: <99FA6873-2A28-441B-A0B1-71EE751C41DD@o2group.com>

SSH into the box:

cd /
ls -l

-- what are the owner and permissions on /tmp?

cd /tmp
ls

do you see php session files?

-Tim
On Jun 5, 2008, at 5:09 PM, N?stor wrote:

> I tested the same small program on my other server and the value
> changes everytime.
>
> PHP works on both the old an the new system
>
> What should I check that I might be missing on one system compare  
> to the other
> so I can pass SESSION information.
>
> Remeber my old system is RHEL 3/apache 1.39/ php 4.3.2  <-- WORKS
> New system is RHEL 5.1/ apache 2.2.3/  php 5.1.6  <-- DOES NOT WORK
>
> :-)
>
> On Thu, Jun 5, 2008 at 4:01 PM, N?stor  wrote:
>
> I tested this small program and the value is always 1
>
>
>
> On Thu, Jun 5, 2008 at 3:53 PM, John Campbell  
>  wrote:
>
> I assume you are testing with a simple page like
>
>  session_start();
> echo ++$_SESSION['foo'];
>
> The number should increase on every refresh.  Does it just print 1
> every time?  Are there files in /tmp that look like
> "sess324afd9asd91874ea"?  Delete your cookies and refresh the page and
> check for a cookie like: PHPSESSID=324afd9asd91874ea ?
>
> -John C.
>
>
> _______________________________________________
> 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 rotsen at gmail.com  Thu Jun  5 20:01:40 2008
From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=)
Date: Thu, 5 Jun 2008 17:01:40 -0700
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: <8f0676b40806051606m6cd2b71erf1831d3aa69587af@mail.gmail.com>
References: 
	<8f0676b40806051144j17854c09ib642e8fc6e1d5a01@mail.gmail.com>
	
	<8f0676b40806051217o450a2e3byb00186a55431c845@mail.gmail.com>
	
	
	
	<8f0676b40806051553v44eafe1fx983e788afe4974dc@mail.gmail.com>
	
	<8f0676b40806051606m6cd2b71erf1831d3aa69587af@mail.gmail.com>
Message-ID: 

No sess files in /tmp

_SERVER["HTTP_COOKIE"]  --> PHPSESSID=ttl1fo7uv30sq4hbi8fkq4v683


On Thu, Jun 5, 2008 at 4:06 PM, John Campbell  wrote:

> On Thu, Jun 5, 2008 at 6:59 PM, N?stor  wrote:
> > The session variables are empty.  The save path is /tmp
>
> Not what I meant.  From ssh, type:
> cd /tmp
> ls
>
> Do you see files that start with sess?
>
> > I do see the PHPSESSID on the phpinfo page.
>
> I know that.  Do you have a cookie for your domain named PHPSESSID?
>
> -John C.
> _______________________________________________
> 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 rotsen at gmail.com  Thu Jun  5 20:04:59 2008
From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=)
Date: Thu, 5 Jun 2008 17:04:59 -0700
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: 
References: 
	
	<8f0676b40806051217o450a2e3byb00186a55431c845@mail.gmail.com>
	
	
	
	<8f0676b40806051553v44eafe1fx983e788afe4974dc@mail.gmail.com>
	
	<8f0676b40806051606m6cd2b71erf1831d3aa69587af@mail.gmail.com>
	
Message-ID: 

the permission for /tmp is 777


On Thu, Jun 5, 2008 at 5:01 PM, N?stor  wrote:

> No sess files in /tmp
>
> _SERVER["HTTP_COOKIE"]  --> PHPSESSID=ttl1fo7uv30sq4hbi8fkq4v683
>
>
>
> On Thu, Jun 5, 2008 at 4:06 PM, John Campbell 
> wrote:
>
>> On Thu, Jun 5, 2008 at 6:59 PM, N?stor  wrote:
>> > The session variables are empty.  The save path is /tmp
>>
>> Not what I meant.  From ssh, type:
>> cd /tmp
>> ls
>>
>> Do you see files that start with sess?
>>
>> > I do see the PHPSESSID on the phpinfo page.
>>
>> I know that.  Do you have a cookie for your domain named PHPSESSID?
>>
>> -John C.
>> _______________________________________________
>> 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 tim_lists at o2group.com  Thu Jun  5 20:08:55 2008
From: tim_lists at o2group.com (Tim Lieberman)
Date: Thu, 5 Jun 2008 18:08:55 -0600
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: 
References: 
	<8f0676b40806051144j17854c09ib642e8fc6e1d5a01@mail.gmail.com>
	
	<8f0676b40806051217o450a2e3byb00186a55431c845@mail.gmail.com>
	
	
	
	<8f0676b40806051553v44eafe1fx983e788afe4974dc@mail.gmail.com>
	
	<8f0676b40806051606m6cd2b71erf1831d3aa69587af@mail.gmail.com>
	
Message-ID: <1C3FE4DE-D5B2-49B9-82BB-69F1BC94E76B@o2group.com>

/tmp is usually easy to write to, but it sure seems like apache  
doesn't have permission to write there.

Who owns /tmp?  What permissions are are on the directory?

-Tim

On Jun 5, 2008, at 6:01 PM, N?stor wrote:

> No sess files in /tmp
>
> _SERVER["HTTP_COOKIE"]  --> PHPSESSID=ttl1fo7uv30sq4hbi8fkq4v683
>
>
> On Thu, Jun 5, 2008 at 4:06 PM, John Campbell  
>  wrote:
> On Thu, Jun 5, 2008 at 6:59 PM, N?stor  wrote:
> > The session variables are empty.  The save path is /tmp
>
> Not what I meant.  From ssh, type:
> cd /tmp
> ls
>
> Do you see files that start with sess?
>
> > I do see the PHPSESSID on the phpinfo page.
>
> I know that.  Do you have a cookie for your domain named PHPSESSID?
>
> -John C.
> _______________________________________________
> 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 tim_lists at o2group.com  Thu Jun  5 20:11:10 2008
From: tim_lists at o2group.com (Tim Lieberman)
Date: Thu, 5 Jun 2008 18:11:10 -0600
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: 
References: 
	
	<8f0676b40806051217o450a2e3byb00186a55431c845@mail.gmail.com>
	
	
	
	<8f0676b40806051553v44eafe1fx983e788afe4974dc@mail.gmail.com>
	
	<8f0676b40806051606m6cd2b71erf1831d3aa69587af@mail.gmail.com>
	
	
Message-ID: <69849366-AB1F-4E0B-9763-341B7EE1C35A@o2group.com>

So strange.

Anything in the apache error_log?

-Tim
On Jun 5, 2008, at 6:04 PM, N?stor wrote:

> the permission for /tmp is 777
>
>
> On Thu, Jun 5, 2008 at 5:01 PM, N?stor  wrote:
> No sess files in /tmp
>
> _SERVER["HTTP_COOKIE"]  --> PHPSESSID=ttl1fo7uv30sq4hbi8fkq4v683
>
>
>
> On Thu, Jun 5, 2008 at 4:06 PM, John Campbell  
>  wrote:
> On Thu, Jun 5, 2008 at 6:59 PM, N?stor  wrote:
> > The session variables are empty.  The save path is /tmp
>
> Not what I meant.  From ssh, type:
> cd /tmp
> ls
>
> Do you see files that start with sess?
>
> > I do see the PHPSESSID on the phpinfo page.
>
> I know that.  Do you have a cookie for your domain named PHPSESSID?
>
> -John C.
> _______________________________________________
> 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 rotsen at gmail.com  Thu Jun  5 20:23:38 2008
From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=)
Date: Thu, 5 Jun 2008 17:23:38 -0700
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: <1C3FE4DE-D5B2-49B9-82BB-69F1BC94E76B@o2group.com>
References: 
	<8f0676b40806051217o450a2e3byb00186a55431c845@mail.gmail.com>
	
	
	
	<8f0676b40806051553v44eafe1fx983e788afe4974dc@mail.gmail.com>
	
	<8f0676b40806051606m6cd2b71erf1831d3aa69587af@mail.gmail.com>
	
	<1C3FE4DE-D5B2-49B9-82BB-69F1BC94E76B@o2group.com>
Message-ID: 

root owns the directory but is set to allow everyone 777

On Thu, Jun 5, 2008 at 5:08 PM, Tim Lieberman  wrote:

> /tmp is usually easy to write to, but it sure seems like apache doesn't
> have permission to write there.
> Who owns /tmp?  What permissions are are on the directory?
>
> -Tim
>
> On Jun 5, 2008, at 6:01 PM, N?stor wrote:
>
> No sess files in /tmp
>
> _SERVER["HTTP_COOKIE"]  --> PHPSESSID=ttl1fo7uv30sq4hbi8fkq4v683
>
>
> On Thu, Jun 5, 2008 at 4:06 PM, John Campbell 
> wrote:
>
>> On Thu, Jun 5, 2008 at 6:59 PM, N?stor  wrote:
>> > The session variables are empty.  The save path is /tmp
>>
>> Not what I meant.  From ssh, type:
>> cd /tmp
>> ls
>>
>> Do you see files that start with sess?
>>
>> > I do see the PHPSESSID on the phpinfo page.
>>
>> I know that.  Do you have a cookie for your domain named PHPSESSID?
>>
>> -John C.
>> _______________________________________________
>> 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 rotsen at gmail.com  Thu Jun  5 20:31:41 2008
From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=)
Date: Thu, 5 Jun 2008 17:31:41 -0700
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: <69849366-AB1F-4E0B-9763-341B7EE1C35A@o2group.com>
References: 
	
	
	
	<8f0676b40806051553v44eafe1fx983e788afe4974dc@mail.gmail.com>
	
	<8f0676b40806051606m6cd2b71erf1831d3aa69587af@mail.gmail.com>
	
	
	<69849366-AB1F-4E0B-9763-341B7EE1C35A@o2group.com>
Message-ID: 

WOW, I am getting this on my /var/log/httpd/error_log file
[Thu Jun 05 17:29:46 2008] [error] [client 10.100.1.67] PHP Warning:
Unknown: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/tmp\n\n; Whether to use
cookies.\nsession.use_cookies = 1\n\n; This option enables administrators to
make their users invulnerable to\n; attacks which involve passing session
ids in URLs; defaults to 0.\n; session.use_only_cookies = 1\n\n; Name of the
session (used as cookie name).\nsession.name = PHPSESSID\n\n; Initialize
session on request startup.\nsession.auto_start = 0\n\n; Lifetime in seconds
of cookie or, if 0, until browser is restarted.\nsession.cookie_lifetime =
0\n\n; The path for which the cookie is valid.\nsession.cookie_path = /\n\n;
The domain for which the cookie is valid.\nsession.cookie_domain =\n\n;
Handler used to serialize data.  php is the standard serializer of
PHP.\nsession.serialize_handler = php\n\n; Define the probability that the
'garbage collection' process is started\n; on every session
initialization.\n; The probability is calculated by using
gc_probability/gc_divisor,\n; e.g. 1/100 means t in Unknown on line 0


On Thu, Jun 5, 2008 at 5:11 PM, Tim Lieberman  wrote:

> So strange.
> Anything in the apache error_log?
>
> -Tim
>
> On Jun 5, 2008, at 6:04 PM, N?stor wrote:
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From rotsen at gmail.com  Thu Jun  5 20:57:51 2008
From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=)
Date: Thu, 5 Jun 2008 17:57:51 -0700
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: 
References: 
	
	
	<8f0676b40806051553v44eafe1fx983e788afe4974dc@mail.gmail.com>
	
	<8f0676b40806051606m6cd2b71erf1831d3aa69587af@mail.gmail.com>
	
	
	<69849366-AB1F-4E0B-9763-341B7EE1C35A@o2group.com>
	
Message-ID: 

FOUND THE PROBLEM!!!!

In the php.ini file there was an extra double quote '"'
I found it by a miracle while I was going line by line
on the php.ini file.  I do not know how it got there.

as soon as I removed it then I restarted the service for httpd and it is
working.

I can go home know ................


Thanks to all for your help!!!!   :-)

On Thu, Jun 5, 2008 at 5:31 PM, N?stor  wrote:

> WOW, I am getting this on my /var/log/httpd/error_log file
> [Thu Jun 05 17:29:46 2008] [error] [client 10.100.1.67] PHP Warning:
> Unknown: Failed to write session data (files). Please verify that the
> current setting of session.save_path is correct (/tmp\n\n; Whether to use
> cookies.\nsession.use_cookies = 1\n\n; This option enables administrators to
> make their users invulnerable to\n; attacks which involve passing session
> ids in URLs; defaults to 0.\n; session.use_only_cookies = 1\n\n; Name of the
> session (used as cookie name).\nsession.name = PHPSESSID\n\n; Initialize
> session on request startup.\nsession.auto_start = 0\n\n; Lifetime in seconds
> of cookie or, if 0, until browser is restarted.\nsession.cookie_lifetime =
> 0\n\n; The path for which the cookie is valid.\nsession.cookie_path = /\n\n;
> The domain for which the cookie is valid.\nsession.cookie_domain =\n\n;
> Handler used to serialize data.  php is the standard serializer of
> PHP.\nsession.serialize_handler = php\n\n; Define the probability that the
> 'garbage collection' process is started\n; on every session
> initialization.\n; The probability is calculated by using
> gc_probability/gc_divisor,\n; e.g. 1/100 means t in Unknown on line 0
>
>
>
> On Thu, Jun 5, 2008 at 5:11 PM, Tim Lieberman 
> wrote:
>
>>  So strange.
>> Anything in the apache error_log?
>>
>> -Tim
>>
>> On Jun 5, 2008, at 6:04 PM, N?stor wrote:
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From joe-nyphp at joeschmittjr.com  Thu Jun  5 20:59:44 2008
From: joe-nyphp at joeschmittjr.com (Joe Schmitt)
Date: Thu, 5 Jun 2008 20:59:44 -0400
Subject: [nycphp-talk] need help about cms design
References: <349231.87910.qm@web59309.mail.re1.yahoo.com>
Message-ID: <017801c8c770$9d6ba040$0301a8c0@joe>

Hi Humayoo,

Here are two books that take you through the use of PHP and MySQL. Both end with a section about creating a CMS.

How to Do Everything with PHP & MySQL
By Vikram Vaswani
362pp total
CMS Chapter 30pp

PHP 5/MySql Programming for the absolute beginner
By Andy Harris
427pp total
CMS Chapter 44pp

Here is a link to a free all in one installation package that contains everything you need to work on your local machine:
http://www.apachefriends.org/en/xampp.html

"XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl."
It uses minimal system resources and there are versions for the following OS's:
Linux, Windows, Mac OS X, and Solaris.

Be Well,
Joe
----
Joe Schmitt
joe-nyphp at joeschmittjr

  ----- Original Message ----- 
  From: birgunj birgunj 
  To: NYPHP Talk 
  Sent: Thursday, June 05, 2008 12:33 AM
  Subject: [nycphp-talk] need help about cms design


  Dear All,
  i am learning how to design and develop cms(content management system).i need help regarding this.i need a book or tutorial which explain step by step procedure with example.if any body has any material or ebook or idea please share with me.

  thanks 
  humayoo

  David Krings  wrote:
    birgunj birgunj wrote:
    > Dear all,
    > 
    > i am trying to design and build the cms(content management system) from 
    > scratch.how to design the database for cms and how to start coding for this.
    > 
    > i need help about this.if anbody has any idea,supporting material 
    > ,please share with us.
    > 
    > thanks in advance to all.
    > 
    > humayoo


    Well, despite the thread hijack I'll answer. First off a few questions. Did 
    you ever design a database for any other application? Did you ever code 
    something in PHP that went beyond some basic input verification, did something 
    more than put out a static page, and worked in the end? I don't want to sound 
    cross, but your question is like calling up Car Talk and asking the guys "I 
    want to design and build my own car from scratch. How do I do that?". I'm just 
    guessing here, but I assume that your experience with coding and database 
    design is not that great. So maybe you want to download and use a CMS 
    forwhatever you want to do and start with something that is less complex.

    David
    _______________________________________________
    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 tim_lists at o2group.com  Thu Jun  5 21:00:05 2008
From: tim_lists at o2group.com (Tim Lieberman)
Date: Thu, 5 Jun 2008 19:00:05 -0600
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: 
References: 
	
	
	
	<8f0676b40806051553v44eafe1fx983e788afe4974dc@mail.gmail.com>
	
	<8f0676b40806051606m6cd2b71erf1831d3aa69587af@mail.gmail.com>
	
	
	<69849366-AB1F-4E0B-9763-341B7EE1C35A@o2group.com>
	
Message-ID: <2D79C644-291C-4BEF-9E2C-A25D5609949C@o2group.com>

Is it possible that safe mode is turned on?


-Tim

On Jun 5, 2008, at 6:31 PM, N?stor wrote:

> WOW, I am getting this on my /var/log/httpd/error_log file
> [Thu Jun 05 17:29:46 2008] [error] [client 10.100.1.67] PHP  
> Warning:  Unknown: Failed to write session data (files). Please  
> verify that the current setting of session.save_path is correct (/ 
> tmp\n\n; Whether to use cookies.\nsession.use_cookies = 1\n\n; This  
> option enables administrators to make their users invulnerable to 
> \n; attacks which involve passing session ids in URLs; defaults to  
> 0.\n; session.use_only_cookies = 1\n\n; Name of the session (used  
> as cookie name).\nsession.name = PHPSESSID\n\n; Initialize session  
> on request startup.\nsession.auto_start = 0\n\n; Lifetime in  
> seconds of cookie or, if 0, until browser is restarted. 
> \nsession.cookie_lifetime = 0\n\n; The path for which the cookie is  
> valid.\nsession.cookie_path = /\n\n; The domain for which the  
> cookie is valid.\nsession.cookie_domain =\n\n; Handler used to  
> serialize data.  php is the standard serializer of PHP. 
> \nsession.serialize_handler = php\n\n; Define the probability that  
> the 'garbage collection' process is started\n; on every session  
> initialization.\n; The probability is calculated by using  
> gc_probability/gc_divisor,\n; e.g. 1/100 means t in Unknown on line 0
>
>
> On Thu, Jun 5, 2008 at 5:11 PM, Tim Lieberman  
>  wrote:
> So strange.
>
> Anything in the apache error_log?
>
> -Tim
>
> On Jun 5, 2008, at 6:04 PM, N?stor wrote:
>
>
> _______________________________________________
> 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 tim_lists at o2group.com  Thu Jun  5 21:05:54 2008
From: tim_lists at o2group.com (Tim Lieberman)
Date: Thu, 5 Jun 2008 19:05:54 -0600
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: 
References: 
	
	
	<8f0676b40806051553v44eafe1fx983e788afe4974dc@mail.gmail.com>
	
	<8f0676b40806051606m6cd2b71erf1831d3aa69587af@mail.gmail.com>
	
	
	<69849366-AB1F-4E0B-9763-341B7EE1C35A@o2group.com>
	
	
Message-ID: 

Woot.


On Jun 5, 2008, at 6:57 PM, N?stor wrote:

> FOUND THE PROBLEM!!!!
>
> In the php.ini file there was an extra double quote '"'
> I found it by a miracle while I was going line by line
> on the php.ini file.  I do not know how it got there.
>
> as soon as I removed it then I restarted the service for httpd and  
> it is working.
>
> I can go home know ................
>
>
> Thanks to all for your help!!!!   :-)
>
> On Thu, Jun 5, 2008 at 5:31 PM, N?stor  wrote:
> WOW, I am getting this on my /var/log/httpd/error_log file
> [Thu Jun 05 17:29:46 2008] [error] [client 10.100.1.67] PHP  
> Warning:  Unknown: Failed to write session data (files). Please  
> verify that the current setting of session.save_path is correct (/ 
> tmp\n\n; Whether to use cookies.\nsession.use_cookies = 1\n\n; This  
> option enables administrators to make their users invulnerable to 
> \n; attacks which involve passing session ids in URLs; defaults to  
> 0.\n; session.use_only_cookies = 1\n\n; Name of the session (used  
> as cookie name).\nsession.name = PHPSESSID\n\n; Initialize session  
> on request startup.\nsession.auto_start = 0\n\n; Lifetime in  
> seconds of cookie or, if 0, until browser is restarted. 
> \nsession.cookie_lifetime = 0\n\n; The path for which the cookie is  
> valid.\nsession.cookie_path = /\n\n; The domain for which the  
> cookie is valid.\nsession.cookie_domain =\n\n; Handler used to  
> serialize data.  php is the standard serializer of PHP. 
> \nsession.serialize_handler = php\n\n; Define the probability that  
> the 'garbage collection' process is started\n; on every session  
> initialization.\n; The probability is calculated by using  
> gc_probability/gc_divisor,\n; e.g. 1/100 means t in Unknown on line 0
>
>
>
> On Thu, Jun 5, 2008 at 5:11 PM, Tim Lieberman  
>  wrote:
> So strange.
>
> Anything in the apache error_log?
>
> -Tim
>
> On Jun 5, 2008, at 6:04 PM, N?stor wrote:
>
>
>
> _______________________________________________
> 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 birgunjp0071 at yahoo.com  Fri Jun  6 01:14:44 2008
From: birgunjp0071 at yahoo.com (birgunj birgunj)
Date: Thu, 5 Jun 2008 22:14:44 -0700 (PDT)
Subject: [nycphp-talk] need help about cms design
In-Reply-To: <017801c8c770$9d6ba040$0301a8c0@joe>
Message-ID: <78346.72595.qm@web59303.mail.re1.yahoo.com>

hi,
 
thanks for help,it is help full for me. thanks a lot.
 


--- On Thu, 6/5/08, Joe Schmitt <joe-nyphp at joeschmittjr.com> wrote:

From: Joe Schmitt <joe-nyphp at joeschmittjr.com>
Subject: Re: [nycphp-talk] need help about cms design
To: "NYPHP Talk" <talk at lists.nyphp.org>
Date: Thursday, June 5, 2008, 5:59 PM





Hi Humayoo,
 
Here are two books that take you through the use of PHP and MySQL. Both end with a section about creating a CMS.
 
How to Do Everything with PHP & MySQL
By Vikram Vaswani
362pp total
CMS Chapter 30pp
 
PHP 5/MySql Programming for the absolute beginner
By Andy Harris
427pp total
CMS Chapter 44pp
 
Here is a link to a free all in one installation package that contains everything you need to work on your local machine:
http://www.apachefriends.org/en/xampp.html
 
"XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl."
It uses minimal system resources and there are versions for the following OS's:
Linux, Windows, Mac OS X, and Solaris.
 
Be Well,
Joe
----
Joe Schmitt
joe-nyphp at joeschmittjr
 

----- Original Message ----- 
From: birgunj birgunj 
To: NYPHP Talk 
Sent: Thursday, June 05, 2008 12:33 AM
Subject: [nycphp-talk] need help about cms design


Dear All,
i am learning how to design and develop cms(content management system).i need help regarding this.i need a book or tutorial which explain step by step procedure with example.if any body has any material or ebook or idea please share with me.
 
thanks 
humayoo

David Krings <ramons at gmx.net> wrote:
birgunj birgunj wrote:
> Dear all,
> 
> i am trying to design and build the cms(content management system) from 
> scratch.how to design the database for cms and how to start coding for this.
> 
> i need help about this.if anbody has any idea,supporting material 
> ,please share with us.
> 
> thanks in advance to all.
> 
> humayoo


Well, despite the thread hijack I'll answer. First off a few questions. Did 
you ever design a database for any other application? Did you ever code 
something in PHP that went beyond some basic input verification, did something 
more than put out a static page, and worked in the end? I don't want to sound 
cross, but your question is like calling up Car Talk and asking the guys "I 
want to design and build my own car from scratch. How do I do that?". I'm just 
guessing here, but I assume that your experience with coding and database 
design is not that great. So maybe you want to download and use a CMS 
forwhatever you want to do and start with something that is less complex.

David
_______________________________________________
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 anthony at thrillist.com  Fri Jun  6 10:17:22 2008
From: anthony at thrillist.com (anthony wlodarski)
Date: Fri, 6 Jun 2008 10:17:22 -0400
Subject: [nycphp-talk] PHP $_SESSION
In-Reply-To: 
References: 
	
	
	<8f0676b40806051553v44eafe1fx983e788afe4974dc@mail.gmail.com>
	
	<8f0676b40806051606m6cd2b71erf1831d3aa69587af@mail.gmail.com>
	
	
	<69849366-AB1F-4E0B-9763-341B7EE1C35A@o2group.com>
	
	
	
Message-ID: <65A73FD7-2E32-486E-A600-EB935D37AFFF@thrillist.com>

Two days later and it is a quote issue...

Glad the bug was cleared.

-Anthony

On Jun 5, 2008, at 9:05 PM, Tim Lieberman wrote:

> Woot.
>
>
> On Jun 5, 2008, at 6:57 PM, N?stor wrote:
>
>> FOUND THE PROBLEM!!!!
>>
>> In the php.ini file there was an extra double quote '"'
>> I found it by a miracle while I was going line by line
>> on the php.ini file.  I do not know how it got there.
>>
>> as soon as I removed it then I restarted the service for httpd and  
>> it is working.
>>
>> I can go home know ................
>>
>>
>> Thanks to all for your help!!!!   :-)
>>
>> On Thu, Jun 5, 2008 at 5:31 PM, N?stor  wrote:
>> WOW, I am getting this on my /var/log/httpd/error_log file
>> [Thu Jun 05 17:29:46 2008] [error] [client 10.100.1.67] PHP  
>> Warning:  Unknown: Failed to write session data (files). Please  
>> verify that the current setting of session.save_path is correct (/ 
>> tmp\n\n; Whether to use cookies.\nsession.use_cookies = 1\n\n; This  
>> option enables administrators to make their users invulnerable to 
>> \n; attacks which involve passing session ids in URLs; defaults to  
>> 0.\n; session.use_only_cookies = 1\n\n; Name of the session (used  
>> as cookie name).\nsession.name = PHPSESSID\n\n; Initialize session  
>> on request startup.\nsession.auto_start = 0\n\n; Lifetime in  
>> seconds of cookie or, if 0, until browser is restarted. 
>> \nsession.cookie_lifetime = 0\n\n; The path for which the cookie is  
>> valid.\nsession.cookie_path = /\n\n; The domain for which the  
>> cookie is valid.\nsession.cookie_domain =\n\n; Handler used to  
>> serialize data.  php is the standard serializer of PHP. 
>> \nsession.serialize_handler = php\n\n; Define the probability that  
>> the 'garbage collection' process is started\n; on every session  
>> initialization.\n; The probability is calculated by using  
>> gc_probability/gc_divisor,\n; e.g. 1/100 means t in Unknown on line 0
>>
>>
>>
>> On Thu, Jun 5, 2008 at 5:11 PM, Tim Lieberman  
>>  wrote:
>> So strange.
>>
>> Anything in the apache error_log?
>>
>> -Tim
>>
>> On Jun 5, 2008, at 6:04 PM, N?stor wrote:
>>
>>
>>
>> _______________________________________________
>> 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




Anthony Wlodarski
Web Applications Developer
www.thrillist.com
560 Broadway, Suite 308
New York, NY 10012
p 646.274.2435
f 646.557.0803

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From davehauenstein at gmail.com  Fri Jun  6 11:58:08 2008
From: davehauenstein at gmail.com (David Hauenstein)
Date: Fri, 06 Jun 2008 11:58:08 -0400
Subject: [nycphp-talk] MSSQL, PDO & Unicode
In-Reply-To: <5458db3c0806041616v542d62d9vf2ab8fd24ddd327c@mail.gmail.com>
References: <4846B7D3.1020705@projectskyline.com>	<5458db3c0806040922w472b5497h924eb122016b5fd7@mail.gmail.com>	<4846CEEF.9060306@projectskyline.com>	<5458db3c0806041037y17100cb3ve1f70db2599d4bae@mail.gmail.com>	<4846DA33.7040000@projectskyline.com>	<5458db3c0806041155x4d0087aax12ce2838ac56371c@mail.gmail.com>	<4846E623.2080508@gmail.com>
	<5458db3c0806041616v542d62d9vf2ab8fd24ddd327c@mail.gmail.com>
Message-ID: <48495E90.2040100@gmail.com>

Justin,

http://www.freetds.org/ says: "FreeTDS is a set of libraries for Unix 
and Linux that allows your programs to natively talk to Microsoft SQL 
Server and Sybase databases."

I've only developed a few things using mssql, but i'm sure that FreeTDS 
is only unix/linux.

-Dave

Justin Dearing wrote:
> On Wed, Jun 4, 2008 at 2:59 PM, David Hauenstein
>  wrote:
>   
>> FreeTDS is a library that allows Linux to talk to mssql. Ben needs his app
>> to work on a production server that runs Windows, so FreeTDS has nothing to
>> do with the solution, unfortunately.
>>     
>
> Dave,
>
> I think I've been making false assumptions for a couple of years now.
> I always thought that the mssql_foo() functions and the mssql pdo
> functions used FreeTDS even on windows. I can't find a definite answer
> online so can you point out a source that confirms I am correct or
> incorrect in my assumption.
>
> Ben,
>
> Assuming I am incorrect I have to say sorry I'm of no help in this regard.
> _______________________________________________
> 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 max at neuropunks.org  Fri Jun  6 13:14:40 2008
From: max at neuropunks.org (Max Gribov)
Date: Fri, 06 Jun 2008 13:14:40 -0400
Subject: [nycphp-talk] amazon aws
Message-ID: <48497080.5050702@neuropunks.org>

Hi all,
does anyone have any experience with amazon ec2 cloud?..
It sounds cheap and like the next best thing since sliced bread.. Has 
anyone tried this beyond a dev environment?

With PHP code of course..


thanks!

max


From matt at atopia.net  Fri Jun  6 14:07:46 2008
From: matt at atopia.net (Matt Juszczak)
Date: Fri, 6 Jun 2008 14:07:46 -0400 (EDT)
Subject: [nycphp-talk] CakePHP
Message-ID: <20080606140730.G85402@mercury.atopia.net>

One of my clients wants to do some development with this - I haven't used 
it.  What do you all think of it?

-Matt


From jcampbell1 at gmail.com  Fri Jun  6 14:20:44 2008
From: jcampbell1 at gmail.com (John Campbell)
Date: Fri, 6 Jun 2008 14:20:44 -0400
Subject: [nycphp-talk] amazon aws
In-Reply-To: <48497080.5050702@neuropunks.org>
References: <48497080.5050702@neuropunks.org>
Message-ID: <8f0676b40806061120t3bbf987dv4952d0971928f82e@mail.gmail.com>

On Fri, Jun 6, 2008 at 1:14 PM, Max Gribov  wrote:
> Hi all,
> does anyone have any experience with amazon ec2 cloud?..
> It sounds cheap and like the next best thing since sliced bread.. Has anyone
> tried this beyond a dev environment?
>
> With PHP code of course..
>

I don't have anything in production running on EC2, but I am
considering migrating to it soon.

I tried it in 2006, and voted against it because it seemed impossible
to make SSL work because there were no static ip addresses.  This
changed in March 08 with the release of "elastic ip", and I have now
been playing with it again.  It is now a ton easier to get up and
running on EC2 than it was in 2006 because there are a lot more
pre-built images and online help/tutorials courtesy of the
blogosphere.

I do use S3 to serve static content for a production site, and I have
been extremely pleased with the quality of the service.

-John C.


From matt at atopia.net  Fri Jun  6 14:24:05 2008
From: matt at atopia.net (Matt Juszczak)
Date: Fri, 6 Jun 2008 14:24:05 -0400 (EDT)
Subject: [nycphp-talk] amazon aws
In-Reply-To: <8f0676b40806061120t3bbf987dv4952d0971928f82e@mail.gmail.com>
References: <48497080.5050702@neuropunks.org>
	<8f0676b40806061120t3bbf987dv4952d0971928f82e@mail.gmail.com>
Message-ID: <20080606142325.Q86475@mercury.atopia.net>

> been extremely pleased with the quality of the service.

So is this the wave of the future then?  Is dedicated infrastructure going 
to go away?  Or only be around for high performance stuff like database 
servers, etc.?


From jbaltz at altzman.com  Fri Jun  6 14:30:07 2008
From: jbaltz at altzman.com (Jerry B. Altzman)
Date: Fri, 06 Jun 2008 14:30:07 -0400
Subject: [nycphp-talk] amazon aws
In-Reply-To: <20080606142325.Q86475@mercury.atopia.net>
References: <48497080.5050702@neuropunks.org>
	<8f0676b40806061120t3bbf987dv4952d0971928f82e@mail.gmail.com>
	<20080606142325.Q86475@mercury.atopia.net>
Message-ID: <4849822F.6080802@altzman.com>

on 2008-06-06 14:24 Matt Juszczak said the following:
>> been extremely pleased with the quality of the service.
> So is this the wave of the future then?  Is dedicated infrastructure 
> going to go away?  Or only be around for high performance stuff like 
> database servers, etc.?

Not likely, right now 1829 UTC 20080606 amazon.com itself is 503, that 
tends to leech confidence out of the system.

//jbaltz
-- 
jerry b. altzman        jbaltz at altzman.com     www.jbaltz.com
thank you for contributing to the heat death of the universe.


From matt at atopia.net  Fri Jun  6 14:30:45 2008
From: matt at atopia.net (Matt Juszczak)
Date: Fri, 6 Jun 2008 14:30:45 -0400 (EDT)
Subject: [nycphp-talk] amazon aws
In-Reply-To: <4849822F.6080802@altzman.com>
References: <48497080.5050702@neuropunks.org>
	<8f0676b40806061120t3bbf987dv4952d0971928f82e@mail.gmail.com>
	<20080606142325.Q86475@mercury.atopia.net>
	<4849822F.6080802@altzman.com>
Message-ID: <20080606143033.F86905@mercury.atopia.net>

>> So is this the wave of the future then?  Is dedicated infrastructure going 
>> to go away?  Or only be around for high performance stuff like database 
>> servers, etc.?
>
> Not likely, right now 1829 UTC 20080606 amazon.com itself is 503, that tends 
> to leech confidence out of the system.


But www.amazon.com isn't :P


From chsnyder at gmail.com  Fri Jun  6 14:39:12 2008
From: chsnyder at gmail.com (csnyder)
Date: Fri, 6 Jun 2008 14:39:12 -0400
Subject: [nycphp-talk] amazon aws
In-Reply-To: <20080606142325.Q86475@mercury.atopia.net>
References: <48497080.5050702@neuropunks.org>
	<8f0676b40806061120t3bbf987dv4952d0971928f82e@mail.gmail.com>
	<20080606142325.Q86475@mercury.atopia.net>
Message-ID: 

On Fri, Jun 6, 2008 at 2:24 PM, Matt Juszczak  wrote:
>> been extremely pleased with the quality of the service.
>
> So is this the wave of the future then?  Is dedicated infrastructure going
> to go away?  Or only be around for high performance stuff like database
> servers, etc.?

EC2 rocks, except for the part where there is no per-instance
persistent storage. You have to build a scheme that backs everything
up to S3 or some other external store in case your instance goes away.
Apparently they are working on that, though.

I see the value in having dedicated infrastructure for development and
some core services, and then surrounding that with cloud or grid
services for redundancy and geographic diversity.

If you trust Amazon enough to store _everything_ there, then you don't
need physical servers. I doubt that most organizations will trust them
to that extent, as EC2 is a pretty juicy target for attackers at this
point.

-- 
Chris Snyder
http://chxo.com/


From tim_lists at o2group.com  Fri Jun  6 15:13:29 2008
From: tim_lists at o2group.com (Tim Lieberman)
Date: Fri, 6 Jun 2008 13:13:29 -0600
Subject: [nycphp-talk] CakePHP
In-Reply-To: <20080606140730.G85402@mercury.atopia.net>
References: <20080606140730.G85402@mercury.atopia.net>
Message-ID: <5EDB097D-2AED-443A-8F90-9F74A967852B@o2group.com>

On Jun 6, 2008, at 12:07 PM, Matt Juszczak wrote:

> One of my clients wants to do some development with this - I  
> haven't used it.  What do you all think of it?

Meh ... It's an MVC framework.  The controller and view stuff is  
alright.  The Model concept works but is a little frustrating at times.

Give yourself plenty of time to play with it and "do things the cake  
way".

Oh, and use the 1.2 branch, even though it's only just now at RC1.

-Tim



From lists at zaunere.com  Fri Jun  6 16:29:49 2008
From: lists at zaunere.com (Hans Zaunere)
Date: Fri, 6 Jun 2008 16:29:49 -0400
Subject: [nycphp-talk] amazon aws
In-Reply-To: <48497080.5050702@neuropunks.org>
References: <48497080.5050702@neuropunks.org>
Message-ID: <00da01c8c814$117e9a70$347bcf50$@com>

> does anyone have any experience with amazon ec2 cloud?..
> It sounds cheap and like the next best thing since sliced bread.. Has
> anyone tried this beyond a dev environment?

I don't have anything in production on it, but have played with it
considerably.  It's Xen virtualization.  I've built images, done the
provisioning dance, configuration, etc.  And talked with their product
manager about some new functionality that they need to make it a realistic
hosting platform.

> With PHP code of course..

Their provisioning system is all Java that I think hits a XML web service,
but of course this could be tweaked.  The web service looked
straightforward, but I didn't spend the time developing any code for it.

The biggest problem I had with it is price.  It comes out to about
$230/month for the base package, and that doesn't even include storage or
bandwidth.  For that type of money, I'd rather have dedicated servers at a
top-tier provider.

The other issue is accounting of usage.  Long story short, it's quite
difficult to accurately which VM is using how much resources.  When
providing hosting, then, this makes it difficult to set prices accordingly.
This is what I discussed with their product manager, and I'm apparently not
the first to bring this up with him.

>From speaking with him, it certainly is a interesting service, and at some
point, probably will be the wave of the future.  However, I got a very
"experimental" feel from him.  This perhaps is highlighted by their SLA and
some recent - and significant - outage problems.  At the end of the day, the
price point just didn't make sense and I'm focused back to good old regular
hosting.

---
Hans Zaunere / President / New York PHP
    www.nyphp.org  / ?www.nyphp.com 





From mitch.pirtle at gmail.com  Fri Jun  6 16:34:59 2008
From: mitch.pirtle at gmail.com (Mitch Pirtle)
Date: Fri, 6 Jun 2008 16:34:59 -0400
Subject: [nycphp-talk] CakePHP
In-Reply-To: <5EDB097D-2AED-443A-8F90-9F74A967852B@o2group.com>
References: <20080606140730.G85402@mercury.atopia.net>
	<5EDB097D-2AED-443A-8F90-9F74A967852B@o2group.com>
Message-ID: <330532b60806061334od819c4bg7995918c8333c0f7@mail.gmail.com>

On Fri, Jun 6, 2008 at 3:13 PM, Tim Lieberman  wrote:
> Oh, and use the 1.2 branch, even though it's only just now at RC1.

+1 on this one. There are some good improvements in 1.2 that make life
a lot easier.

If I were to start a project and had to choose a PHP-based MVC
framework, it would be a dead heat between CakePHP and Symfony.

-- Mitch, ducking under desk and waiting for the "my framework is
better than yours" battle


From chsnyder at gmail.com  Fri Jun  6 16:52:26 2008
From: chsnyder at gmail.com (csnyder)
Date: Fri, 6 Jun 2008 16:52:26 -0400
Subject: [nycphp-talk] amazon aws
In-Reply-To: <00da01c8c814$117e9a70$347bcf50$@com>
References: <48497080.5050702@neuropunks.org>
	<00da01c8c814$117e9a70$347bcf50$@com>
Message-ID: 

On Fri, Jun 6, 2008 at 4:29 PM, Hans Zaunere  wrote:

> The biggest problem I had with it is price.  It comes out to about
> $230/month for the base package, and that doesn't even include storage or
> bandwidth.  For that type of money, I'd rather have dedicated servers at a
> top-tier provider.

...or $72 if you do the math right. It's $0.10 per hour.

Bandwidth is $0.10 - $0.17 per GB.

It actually compares well to most VPS plans.


-- 
Chris Snyder
http://chxo.com/


From max at neuropunks.org  Fri Jun  6 17:26:46 2008
From: max at neuropunks.org (Max Gribov)
Date: Fri, 06 Jun 2008 17:26:46 -0400
Subject: [nycphp-talk] amazon aws
In-Reply-To: 
References: <48497080.5050702@neuropunks.org>	<00da01c8c814$117e9a70$347bcf50$@com>
	
Message-ID: <4849AB96.7030004@neuropunks.org>

csnyder wrote:
> ...or $72 if you do the math right. It's $0.10 per hour.
>   
depends on the instance you're using




From max at neuropunks.org  Fri Jun  6 17:30:45 2008
From: max at neuropunks.org (Max Gribov)
Date: Fri, 06 Jun 2008 17:30:45 -0400
Subject: [nycphp-talk] amazon aws
In-Reply-To: <00da01c8c814$117e9a70$347bcf50$@com>
References: <48497080.5050702@neuropunks.org>
	<00da01c8c814$117e9a70$347bcf50$@com>
Message-ID: <4849AC85.5060703@neuropunks.org>

Hans Zaunere wrote:
> >From speaking with him, it certainly is a interesting service, and at some
> point, probably will be the wave of the future.  However, I got a very
> "experimental" feel from him.  This perhaps is highlighted by their SLA and
> some recent - and significant - outage problems.  At the end of the day, the
> price point just didn't make sense and I'm focused back to good old regular
> hosting.
>
>   
Yeah, I also got a feel of "beta" from this... It does seem cool though.
One thing i heard about it, is that all the ip's they use are published 
in various spam blacklists by Amazon themselves - for obvious reasons.
So if i wanted to send out any kind of email, id have to outsource it..

Thanks to all who replied!

Im going to try them out, and post if i find anything really 
interesting/cool/sucky about them..




> ---
> 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 nate at cakephp.org  Fri Jun  6 17:51:20 2008
From: nate at cakephp.org (Nate Abele)
Date: Fri, 6 Jun 2008 17:51:20 -0400
Subject: [nycphp-talk] Re: talk Digest, Vol 20, Issue 19
In-Reply-To: <20080606212752.D9E6F5083E@mail.cakephp.org>
References: <20080606212752.D9E6F5083E@mail.cakephp.org>
Message-ID: <90824AED-123B-45F5-9A12-7D359B74204A@cakephp.org>

> Date: Fri, 6 Jun 2008 16:34:59 -0400
> From: "Mitch Pirtle" 
> Subject: Re: [nycphp-talk] CakePHP
> To: "NYPHP Talk" 
>
> ....
>
> -- Mitch, ducking under desk and waiting for the "my framework is
> better than yours" battle
>

Honestly I'm kind of getting bored with the battles, so I'm going to  
do as much letting-the-code-speak-for-itself as possible, in order to  
say this: Symfony is a great framework if you really like Java.    
Compare:

http://book.cakephp.org/view/335/create-a-posts-controller

to

http://www.symfony-project.org/book/1_0/06-Inside-the-Controller-Layer

On configuration:

http://book.cakephp.org/view/39/configuration
(only sections 3.4.1 and 3.4.3.2 are required reading)

vs.

http://www.symfony-project.org/book/1_0/05-Configuring-Symfony

Just throwing that out there.  Hope it helps.

- Nate

P.S.  Mitch, what the heck are you doing these days?  We should grab a  
beer or something.


From larrylud at gmail.com  Fri Jun  6 21:21:31 2008
From: larrylud at gmail.com (Larry Ludwig)
Date: Fri, 06 Jun 2008 21:21:31 -0400
Subject: [nycphp-talk] Re: talk Digest, Vol 20, Issue 19
In-Reply-To: <4849abfe.0661220a.4d57.4a1dSMTPIN_ADDED@mx.google.com>
References: <4849abfe.0661220a.4d57.4a1dSMTPIN_ADDED@mx.google.com>
Message-ID: <4849E29B.50803@gmail.com>



    Date: Fri, 06 Jun 2008 13:14:40 -0400
    From: Max Gribov 
    Subject: [nycphp-talk] amazon aws
    To: NYPHP Talk 
    Message-ID: <48497080.5050702 at neuropunks.org>
    Content-Type: text/plain; charset=ISO-8859-1; format=flowed

    Hi all,
    does anyone have any experience with amazon ec2 cloud?..
    It sounds cheap and like the next best thing since sliced bread.. Has 
    anyone tried this beyond a dev environment?

    With PHP code of course..


    thanks!

    max

Hi All,

A few customers have asked this same question to our service.  Hans Z 
brings up all great issues:

I have posted a blog discussing some of their deficiencies:

http://www.empoweringmedia.com/blog/archives/21

-L

-- 
Larry Ludwig
Empowering Media
1-866-792-0489 x600
Managed and Unmanaged Xen VPSes
http://www.hostcube.com/	



From rmarscher at beaffinitive.com  Sat Jun  7 01:41:57 2008
From: rmarscher at beaffinitive.com (Rob Marscher)
Date: Sat, 7 Jun 2008 01:41:57 -0400
Subject: [nycphp-talk] amazon aws
In-Reply-To: <4849AC85.5060703@neuropunks.org>
References: <48497080.5050702@neuropunks.org>
	<00da01c8c814$117e9a70$347bcf50$@com>
	<4849AC85.5060703@neuropunks.org>
Message-ID: 

> On Jun 6, 2008, at 1:14 PM, Max Gribov wrote:

>>   does anyone have any experience with amazon ec2 cloud?..
>>   It sounds cheap and like the next best thing since sliced bread..  
>> Has anyone tried this beyond a dev environment?

On Jun 6, 2008, at 9:21 PM, Larry Ludwig wrote:
> A few customers have asked this same question to our service.  Hans  
> Z brings up all great issues:  I have posted a blog discussing some  
> of their deficiencies:  http://www.empoweringmedia.com/blog/archives/21

Yeah... I was just talking about this with Larry.  I'm also not  
convinced EC2 is the best thing for hosting pubic web applications at  
this time.  There are hosting companies out there like Larry's that  
provide Xen virtual servers which have a lot of the same advantages as  
EC2 instances, but at a lower monthly cost.

EC2 seems a bit more appropriate for batch and parallel computing in  
short bursts.  For example, anytime you upload a video to S3... you  
could fire up an EC2 instance with an image that has software to  
convert the video into multiple formats/sizes and then place the  
results back on S3 (there's the Amazon SQS service to assist with  
batch processing).  If you don't upload any videos for 10 days, you  
don't have to pay anything.  If you upload 20 videos at once, you  
could potentially start 20 EC2 instances and get the whole job done  
very quickly (20 is the default max for an account... you can raise  
your limit via a special request).

Then there's the stuff that NYTimes has been doing with EC2.  Pretty  
cool:
http://open.blogs.nytimes.com/2007/11/01/self-service-prorated-super-computing-fun/
http://open.blogs.nytimes.com/2008/05/21/the-new-york-times-archives-amazon-web-services-timesmachine/

-Rob



From rmarscher at beaffinitive.com  Sat Jun  7 01:52:04 2008
From: rmarscher at beaffinitive.com (Rob Marscher)
Date: Sat, 7 Jun 2008 01:52:04 -0400
Subject: [nycphp-talk] amazon aws
In-Reply-To: <8f0676b40806061120t3bbf987dv4952d0971928f82e@mail.gmail.com>
References: <48497080.5050702@neuropunks.org>
	<8f0676b40806061120t3bbf987dv4952d0971928f82e@mail.gmail.com>
Message-ID: 

On Jun 6, 2008, at 2:20 PM, John Campbell wrote:
> I do use S3 to serve static content for a production site, and I have
> been extremely pleased with the quality of the service.

How much static content?  Large files only... or have you tried  
serving, say, all the images, static html, css, javascript, etc?  I  
seem to remember hearing reports early on that it wasn't necessarily  
the best performance for serving your 2k background png.  It obviously  
works well for stuff like media, photo archives, etc.  But I'm  
wondering if you could use it to really offset the number of requests  
and load from your web server.  Serving static content from apache  
running php is a waste of resources... but I'm wondering if offloading  
it to S3 would be better (or at least cheaper and not too much slower/ 
reliable) than maintaining your own dedicated server for static content.

Thanks,
Rob



From ps at sun-code.com  Sat Jun  7 07:57:10 2008
From: ps at sun-code.com (Peter Sawczynec)
Date: Sat, 7 Jun 2008 07:57:10 -0400
Subject: [nycphp-talk] amazon aws
In-Reply-To: 
References: <48497080.5050702@neuropunks.org><00da01c8c814$117e9a70$347bcf50$@com><4849AC85.5060703@neuropunks.org>
	
Message-ID: <000001c8c895$9e2b0180$da810480$@com>

I just wanted to take a moment to compliment the NY Times for their
apparently ceaseless commitment to getting the NY Times content online
and then tirelessly ramping in new media delivery styles (slideshows,
inline videos, interactive multilayered charts, flash movies and
presentations, RSS, My Times, etc.), so that the reading of the NY Times
online has actually become a noteworthy and meaningful experience.

For what it is worth, I stopped reading the paper NY Times probably 7
years ago. I get almost all my news from the web and secondly TV. My
radio consumption is also pretty much zero. I do still glance at several
print magazines that I like, but consistently turn to their online
presence as much as possible to actually get some reading done. I don't
have a Kindle, but my personal consumption of downloadable PDFs (maps
and guides, advertising, educational material, user manuals, forms) and
other eBooks has climbed hugely in the last two years.  

But, I must admit that the vast and teeming sprawl of the NY Times
online has, it seems, now even exceeded the sprawl of the Sunday NY
Times print edition (the NY Times online Home Page is 2 feet deep every
single day). Personally, I did not think that would ever happen (and I
got to admit, I stopped reading papers because of their ungainly sprawl
and was lured to web news portals for the better, faster, stronger [<<<
see Kanye West http://www.youtube.com/watch?v=cZd1Js0QaOI] info
consumption online offered). For expediency, I find myself turning to
other news sites that deliver actually less news but they are somehow
more rapidly, even more literally optically scan-able and digestible.
The evolving triple, quadruple and quintuple sets of intermeshed
vertical and horizontal menu layers at the NY Times online have left me
somewhat put off.

I believe that the NY Times online is one of many elegant living
laboratories of the evolving transfer of serious information
distribution to the web paradigm and it is disclosing that intricacy and
complexity is the norm not the exception. 

But I do think that an as yet unharnessed technique for
compressing/organizing/speeding delivery of online news presentation
(tags, clouds, etc) is yet to come to the fore. 

Personally, I think if before starting any web delivery
task/project/site we first thought how can we optimize this delivery as
if this info was only going to appear in a mobile or ultracompact
format, then we might have a fighting chance of improvising and
reconforming the now totally normal, sprawling, high-bandwidth info wall
of web and presenting it more ingeniously with a smaller faster tighter
delivery format. 

Reflecting on this further, I note that I feel real comfortable and in
control on Amazon.com (despite that they are also retrieving and
presenting millions of units of data) and feel much less in control on
the NY Times site.  

That is all, of course, for what it is worth. 


Warmest regards, 
?
Hombre sin Nombre 
Technology Dir.
Sun-code Interactive
Sun-code.com 
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 Rob Marscher
Sent: Saturday, June 07, 2008 1:42 AM
To: NYPHP Talk
Subject: Re: [nycphp-talk] amazon aws

> On Jun 6, 2008, at 1:14 PM, Max Gribov wrote:

>>   does anyone have any experience with amazon ec2 cloud?..
>>   It sounds cheap and like the next best thing since sliced bread..  
>> Has anyone tried this beyond a dev environment?

On Jun 6, 2008, at 9:21 PM, Larry Ludwig wrote:
> A few customers have asked this same question to our service.  Hans  
> Z brings up all great issues:  I have posted a blog discussing some  
> of their deficiencies:
http://www.empoweringmedia.com/blog/archives/21

Yeah... I was just talking about this with Larry.  I'm also not  
convinced EC2 is the best thing for hosting pubic web applications at  
this time.  There are hosting companies out there like Larry's that  
provide Xen virtual servers which have a lot of the same advantages as  
EC2 instances, but at a lower monthly cost.

EC2 seems a bit more appropriate for batch and parallel computing in  
short bursts.  For example, anytime you upload a video to S3... you  
could fire up an EC2 instance with an image that has software to  
convert the video into multiple formats/sizes and then place the  
results back on S3 (there's the Amazon SQS service to assist with  
batch processing).  If you don't upload any videos for 10 days, you  
don't have to pay anything.  If you upload 20 videos at once, you  
could potentially start 20 EC2 instances and get the whole job done  
very quickly (20 is the default max for an account... you can raise  
your limit via a special request).

Then there's the stuff that NYTimes has been doing with EC2.  Pretty  
cool:
http://open.blogs.nytimes.com/2007/11/01/self-service-prorated-super-com
puting-fun/
http://open.blogs.nytimes.com/2008/05/21/the-new-york-times-archives-ama
zon-web-services-timesmachine/

-Rob

_______________________________________________
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 ramons at gmx.net  Sat Jun  7 08:33:14 2008
From: ramons at gmx.net (David Krings)
Date: Sat, 07 Jun 2008 08:33:14 -0400
Subject: [nycphp-talk] amazon aws
In-Reply-To: <000001c8c895$9e2b0180$da810480$@com>
References: <48497080.5050702@neuropunks.org><00da01c8c814$117e9a70$347bcf50$@com><4849AC85.5060703@neuropunks.org>	
	<000001c8c895$9e2b0180$da810480$@com>
Message-ID: <484A800A.9050605@gmx.net>

Peter Sawczynec wrote:
> For what it is worth, I stopped reading the paper NY Times probably 7
> years ago. 

I read the NY Times briefly some years ago and while I think it is a good 
paper it is just too much and lacks, but explainably so, any local coverage. 
And the local papers have 2 pages of local news, a dismal coverage of world 
news, and the rest goes for baseball coverage.
I do, too, get most of my news input from the web as well as WAMC. I have the 
option to read several european papers who publish in German and most of the 
time their reports put a totally different spin on things, which balances the 
typically one sided spin of the US media. What is interesting is how they 
provide their articles. Many have for the Web2.0 age very bland page layouts 
and all put the main navigation at the top and the more detailed navigation on 
the right and typically go easy on images. See, most people in Germany have to 
pay for online time by the minute, others have contracts that limit the amount 
of data downloaded, and then there is still the large portion of people with 
dial-up. Most use the enterprise CMS from Six (www.six.de), a PHP based system.
In general, I think it isn't so much as to what you want to put out on a page, 
but what the audience is most likely able to receive. That is why YouTube has 
videos of often crappy video quality as that makes for smaller files that load 
faster and are an option for folks with dial-up as well.

David


From ka at kacomputerconsulting.com  Sat Jun  7 22:22:10 2008
From: ka at kacomputerconsulting.com (Kristina Anderson)
Date: Sat, 7 Jun 2008 19:22:10 -0700
Subject: [nycphp-talk] comparing arrays to build query?
Message-ID: <1212891730.12890@coral.he.net>

OK, this really has me flummoxed.  I'm not sure if I'm going about this 
the right way.

I have three tables, an Employer table, a Provider table and a Jobs 
table.  Each Provider (worker) has up to nine zip codes and a possible 
metro area which contains all the zip codes in their city which is 
their "service area".

When they log on, I need to display only the Jobs in any of their zip 
codes. 

In the Jobs table, there is a remote zip field (remzip) and if that has 
a value, that is the zip where the job is, otherwise we use the zip 
field in the Employers table.

I've built two arrays one by 
"SELECT * FROM Providers INNER JOIN Employers ON Jobs.empid = 
Employers.EmpID ";

which gives me both the remzip and zip fields and the jobid field.

And one by querying the database for all the zips in the service area 
of that particular Provider and dumping them all into an array.

So now I have these two arrays I can compare...is there an easier way 
to do this or ... ?

I need to compare these two arrays and if any value from array 2 is in 
array 1, pull out the entire row by jobid from the database and display 
it.

Thanks in advance,
---- Kristina 


From jellicle at gmail.com  Sun Jun  8 07:18:19 2008
From: jellicle at gmail.com (Michael Sims)
Date: Sun, 8 Jun 2008 07:18:19 -0400
Subject: [nycphp-talk] comparing arrays to build query?
In-Reply-To: <1212891730.12890@coral.he.net>
References: <1212891730.12890@coral.he.net>
Message-ID: <200806080718.19141.jellicle@gmail.com>

On Saturday 07 June 2008, Kristina Anderson wrote:

> I have three tables, an Employer table, a Provider table and a Jobs
> table.  Each Provider (worker) has up to nine zip codes and a possible
> metro area which contains all the zip codes in their city which is
> their "service area".
>
> When they log on, I need to display only the Jobs in any of their zip
> codes.


The easiest thing would be to always populate the zip code in the Jobs 
table.  Don't call it "remote zip", call it "job zip" and populate it when 
you create the job whether it's the same as the employer's zip or not.


SELECT * From Jobs INNER JOIN Employees ON (Employees.EmployeeID = 
$EmployeeID) AND ((Employees.zip1 = Jobs.jobzip) OR (Employees.zip2 = 
Jobs.jobzip) OR (Employees.zip3 = Jobs.jobzip))

or let's say you want to show the employer too...

SELECT * FROM Jobs INNER JOIN Employees ON ((Employees.EmployeeID = 
$EmployeeID) AND ((Employees.zip1 = Jobs.jobzip) OR (Employees.zip2 = 
Jobs.jobzip) OR (Employees.zip3 = Jobs.jobzip))) LEFT JOIN Employers ON 
(Jobs.EmpID = Employers.EmpID)


Now, you can still do it in one query even if you don't change the job zip 
code as I suggested above - you'll have to sub-select the zip from the 
employer table, left as an exercise for the reader...

As a general rule, if you can make the database do your mix and matching, I 
prefer to do it there rather than in arrays.  In 99% percent of cases the 
database will happily give you exactly what you need if you just ask it 
nicely.


Michael Sims



From ka at kacomputerconsulting.com  Sun Jun  8 09:14:33 2008
From: ka at kacomputerconsulting.com (Kristina Anderson)
Date: Sun, 8 Jun 2008 06:14:33 -0700
Subject: [nycphp-talk] comparing arrays to build query?
Message-ID: <1212930873.1794@coral.he.net>

I think I didn't explain correctly --  the remote zip and the 
employer's zip are two different values, if a job is in a different 
location from where the employer lives then that field will be 
populated.  This would be a ton easier if they were the same value or 
if I had the luxury of redoing the database structure, which I do not 
at this stage of the game (right before deploy).

If anyone has any suggestions, thanks!

-- Kristina

> On Saturday 07 June 2008, Kristina Anderson wrote:
> 
> > I have three tables, an Employer table, a Provider table and a Jobs
> > table.  Each Provider (worker) has up to nine zip codes and a 
possible
> > metro area which contains all the zip codes in their city which is
> > their "service area".
> >
> > When they log on, I need to display only the Jobs in any of their 
zip
> > codes.
> 
> 
> The easiest thing would be to always populate the zip code in the 
Jobs 
> table.  Don't call it "remote zip", call it "job zip" and populate it 
when 
> you create the job whether it's the same as the employer's zip or not.
> 
> 
> SELECT * From Jobs INNER JOIN Employees ON (Employees.EmployeeID = 
> $EmployeeID) AND ((Employees.zip1 = Jobs.jobzip) OR (Employees.zip2 = 
> Jobs.jobzip) OR (Employees.zip3 = Jobs.jobzip))
> 
> or let's say you want to show the employer too...
> 
> SELECT * FROM Jobs INNER JOIN Employees ON ((Employees.EmployeeID = 
> $EmployeeID) AND ((Employees.zip1 = Jobs.jobzip) OR (Employees.zip2 = 
> Jobs.jobzip) OR (Employees.zip3 = Jobs.jobzip))) LEFT JOIN Employers 
ON 
> (Jobs.EmpID = Employers.EmpID)
> 
> 
> Now, you can still do it in one query even if you don't change the 
job zip 
> code as I suggested above - you'll have to sub-select the zip from 
the 
> employer table, left as an exercise for the reader...
> 
> As a general rule, if you can make the database do your mix and 
matching, I 
> prefer to do it there rather than in arrays.  In 99% percent of cases 
the 
> database will happily give you exactly what you need if you just ask 
it 
> nicely.
> 
> 
> Michael Sims
> 
> _______________________________________________
> 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 ramons at gmx.net  Sun Jun  8 09:27:26 2008
From: ramons at gmx.net (David Krings)
Date: Sun, 08 Jun 2008 09:27:26 -0400
Subject: [nycphp-talk] comparing arrays to build query?
In-Reply-To: <1212930873.1794@coral.he.net>
References: <1212930873.1794@coral.he.net>
Message-ID: <484BDE3E.8010009@gmx.net>

Kristina Anderson wrote:
> 
> If anyone has any suggestions, thanks!
> 
> -- Kristina
> 

I'd go down the path you thought about. I find doing things in code often 
easier and less complex than crafting some tricked out SQL. SQL may be faster 
than code, but that is just my guess. If it is that shortly before deploying 
I'd stick with something that works and that you understand. You do not have 
the time left to try things and evaluate the one approach over the other over 
time. And if you know what is happening then it is much easier to troubleshoot 
and potentially optimize later. I rather work with code that I trust, even if 
it is not the best solution on the planet.

David


From ka at kacomputerconsulting.com  Sun Jun  8 09:44:57 2008
From: ka at kacomputerconsulting.com (Kristina Anderson)
Date: Sun, 8 Jun 2008 06:44:57 -0700
Subject: [nycphp-talk] comparing arrays to build query?
Message-ID: <1212932697.12687@coral.he.net>

David -- exactly.  With the deadlines I face and pressure from clients 
to "get things done now", it's unfortunate that I rarely have time to 
do anything the "best way possible"...there's always a better way to do 
it but the client won't wait while I sit there and toy with it for 
another week.  This pressure leads me to have to hack things together 
any way I can find that works effectively, and also leads me, when I 
start feeling extreme time pressure, to post questions on occasion that 
I should have and often do figure out are easy and simple and I 
shouldn't have posted (luckily I think this is not one of those silly 
ones).

I would dearly love to modify the database structure as the previous 
replier suggested, but doing that at a late stage of the game always 
leads to consequences of some sort.

I'm thinking we should start a thread about work/life balance on here :)
I'd do it except I won't have a day off until next Sunday!

-- Kristina


> Kristina Anderson wrote:
> > 
> > If anyone has any suggestions, thanks!
> > 
> > -- Kristina
> > 
> 
> I'd go down the path you thought about. I find doing things in code 
often 
> easier and less complex than crafting some tricked out SQL. SQL may 
be faster 
> than code, but that is just my guess. If it is that shortly before 
deploying 
> I'd stick with something that works and that you understand. You do 
not have 
> the time left to try things and evaluate the one approach over the 
other over 
> time. And if you know what is happening then it is much easier to 
troubleshoot 
> and potentially optimize later. I rather work with code that I trust, 
even if 
> it is not the best solution on the planet.
> 
> David
> _______________________________________________
> 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
> 
> 

-------------------
Kristina D. H. Anderson
Senior Application Developer/Consultant
"Building a Better Tomorrow, One Line of Code at a Time"
646-247-4987



From rmarscher at beaffinitive.com  Sun Jun  8 10:59:47 2008
From: rmarscher at beaffinitive.com (Rob Marscher)
Date: Sun, 8 Jun 2008 10:59:47 -0400
Subject: [nycphp-talk] amazon aws
In-Reply-To: <484A800A.9050605@gmx.net>
References: <48497080.5050702@neuropunks.org><00da01c8c814$117e9a70$347bcf50$@com><4849AC85.5060703@neuropunks.org>	
	<000001c8c895$9e2b0180$da810480$@com> <484A800A.9050605@gmx.net>
Message-ID: 

On Jun 7, 2008, at 8:33 AM, David Krings wrote:
> What is interesting is how they provide their articles. Many have  
> for the Web2.0 age very bland page layouts and all put the main  
> navigation at the top and the more detailed navigation on the right  
> and typically go easy on images.

That's definitely a bit of a Web2.0 design trend - present less info  
per page, use common/simple layouts to make the page easy to digest,  
use large fonts/forms, etc.

I've found that often though when there's numerous people that you  
have to please (and you don't have the final say in the matter)... the  
original simple intent keeps getting more items added, ads thrown in,  
etc.  I wouldn't be surprised if this is the case with the NYTimes.   
You can see that every single department and partner seems to demand  
their little slice of the homepage.

-Rob



From lists at enobrev.com  Sun Jun  8 14:01:11 2008
From: lists at enobrev.com (Mark Armendariz)
Date: Sun, 08 Jun 2008 14:01:11 -0400
Subject: [nycphp-talk] comparing arrays to build query?
In-Reply-To: <1212891730.12890@coral.he.net>
References: <1212891730.12890@coral.he.net>
Message-ID: <484C1E67.1030600@enobrev.com>

So you have an array of zips, like array(11201, 11206, 11301), right?  
and you need to find all the jobs within that array of zips?

If so your query would look something like this:

mysql_query('SELECT * FROM Providers INNER JOIN Employers ON Jobs.empid = 
Employers.EmpID WHERE Jobs.zip IN (' . implode(',', $aZips) . ')');

Which becomes 
SELECT * FROM Providers INNER JOIN Employers ON Jobs.empid = 
Employers.EmpID WHERE Jobs.zip IN (11201,11206,11301)

Not sure if that's what you're looking for.

Mark


Kristina Anderson wrote:
> OK, this really has me flummoxed.  I'm not sure if I'm going about this 
> the right way.
>
> I have three tables, an Employer table, a Provider table and a Jobs 
> table.  Each Provider (worker) has up to nine zip codes and a possible 
> metro area which contains all the zip codes in their city which is 
> their "service area".
>
> When they log on, I need to display only the Jobs in any of their zip 
> codes. 
>
> In the Jobs table, there is a remote zip field (remzip) and if that has 
> a value, that is the zip where the job is, otherwise we use the zip 
> field in the Employers table.
>
> I've built two arrays one by 
> "SELECT * FROM Providers INNER JOIN Employers ON Jobs.empid = 
> Employers.EmpID ";
>
> which gives me both the remzip and zip fields and the jobid field.
>
> And one by querying the database for all the zips in the service area 
> of that particular Provider and dumping them all into an array.
>
> So now I have these two arrays I can compare...is there an easier way 
> to do this or ... ?
>
> I need to compare these two arrays and if any value from array 2 is in 
> array 1, pull out the entire row by jobid from the database and display 
> it.
>
> Thanks in advance,
> ---- Kristina 
> _______________________________________________
> 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 ka at kacomputerconsulting.com  Sun Jun  8 14:25:23 2008
From: ka at kacomputerconsulting.com (Kristina Anderson)
Date: Sun, 8 Jun 2008 11:25:23 -0700
Subject: [nycphp-talk] comparing arrays to build query?
Message-ID: <1212949523.32014@coral.he.net>

that's really really close to what I need ... except that I first have 
to test for if Jobs.remzip is empty and if so, query on Employers.zip 
instead.

This sounds like it might be a task for that Coalesce function we were 
discussing a few months back?

As long as the array implodes before the client implodes, this might 
work :) Thanks Mark



-- Kristina

> So you have an array of zips, like array(11201, 11206, 11301), 
right?  
> and you need to find all the jobs within that array of zips?
> 
> If so your query would look something like this:
> 
> mysql_query('SELECT * FROM Providers INNER JOIN Employers ON 
Jobs.empid = 
> Employers.EmpID WHERE Jobs.zip IN (' . implode(',', $aZips) . ')');
> 
> Which becomes 
> SELECT * FROM Providers INNER JOIN Employers ON Jobs.empid = 
> Employers.EmpID WHERE Jobs.zip IN (11201,11206,11301)
> 
> Not sure if that's what you're looking for.
> 
> Mark
> 
> 
> Kristina Anderson wrote:
> > OK, this really has me flummoxed.  I'm not sure if I'm going about 
this 
> > the right way.
> >
> > I have three tables, an Employer table, a Provider table and a Jobs 
> > table.  Each Provider (worker) has up to nine zip codes and a 
possible 
> > metro area which contains all the zip codes in their city which is 
> > their "service area".
> >
> > When they log on, I need to display only the Jobs in any of their 
zip 
> > codes. 
> >
> > In the Jobs table, there is a remote zip field (remzip) and if that 
has 
> > a value, that is the zip where the job is, otherwise we use the zip 
> > field in the Employers table.
> >
> > I've built two arrays one by 
> > "SELECT * FROM Providers INNER JOIN Employers ON Jobs.empid = 
> > Employers.EmpID ";
> >
> > which gives me both the remzip and zip fields and the jobid field.
> >
> > And one by querying the database for all the zips in the service 
area 
> > of that particular Provider and dumping them all into an array.
> >
> > So now I have these two arrays I can compare...is there an easier 
way 
> > to do this or ... ?
> >
> > I need to compare these two arrays and if any value from array 2 is 
in 
> > array 1, pull out the entire row by jobid from the database and 
display 
> > it.
> >
> > Thanks in advance,
> > ---- Kristina 
> > _______________________________________________
> > 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 jcampbell1 at gmail.com  Mon Jun  9 10:38:33 2008
From: jcampbell1 at gmail.com (John Campbell)
Date: Mon, 9 Jun 2008 10:38:33 -0400
Subject: [nycphp-talk] amazon aws
In-Reply-To: 
References: <48497080.5050702@neuropunks.org>
	<8f0676b40806061120t3bbf987dv4952d0971928f82e@mail.gmail.com>
	
Message-ID: <8f0676b40806090738x3cfe3756hec82fdcfd8a4859a@mail.gmail.com>

On Sat, Jun 7, 2008 at 1:52 AM, Rob Marscher  wrote:
> On Jun 6, 2008, at 2:20 PM, John Campbell wrote:
>>
>> I do use S3 to serve static content for a production site, and I have
>> been extremely pleased with the quality of the service.
>
> How much static content?  Large files only... or have you tried serving,
> say, all the images, static html, css, javascript, etc?  I seem to remember
> hearing reports early on that it wasn't necessarily the best performance for
> serving your 2k background png.  It obviously works well for stuff like
> media, photo archives, etc.  But I'm wondering if you could use it to really
> offset the number of requests and load from your web server.  Serving static
> content from apache running php is a waste of resources... but I'm wondering
> if offloading it to S3 would be better (or at least cheaper and not too much
> slower/reliable) than maintaining your own dedicated server for static
> content.
>

We are using it for static photos and videos.  The main benefit is
that it is cheap and we don't have to worry about space limitations or
bandwidth headaches.  I wouldn't recommend it for css images,
javascript, and static html for two reasons:
1) It requires 3-5 extra DNS queries, so first load will be slow.
2) There is no suitable way to gzip.

Since we buy a lot of adwords clicks, first load performance is
crucial.  I have mirrored all of the css images and javascript onto
S3, and I can flip the switch if needed, but for now we are only using
it for photos and videos.

-John C.


From ps at sun-code.com  Mon Jun  9 21:05:36 2008
From: ps at sun-code.com (Peter Sawczynec)
Date: Mon, 9 Jun 2008 21:05:36 -0400
Subject: [nycphp-talk] LinkedIn Connections for PHP 
Message-ID: <000501c8ca96$178d23d0$46a76b70$@com>

Good Day All:

 

I would like to develop more LinkedIn Connections. 

 

If you are a LinkedIn member already and you are open to Connect to me,
please do 

using my ps at sun-code.com email.

 

Or if you would be open to me connecting to you, send me an email
off-list with 

a good email address I can use to request your Connection.

 

My LinkedIn profile is at: http://www.linkedin.com/in/petersawczynec

 

Lastly, what was the final call on the PHP Group on LinkedIn? Which one
to use?

 

Warmest regards, 

 

Peter Sawczynec 

Technology Dir.

Sun-code Interactive

Sun-code.com 

646.316.3678 

  ps at sun-code.com

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From birgunjp0071 at yahoo.com  Tue Jun 10 02:43:54 2008
From: birgunjp0071 at yahoo.com (birgunj birgunj)
Date: Mon, 9 Jun 2008 23:43:54 -0700 (PDT)
Subject: [nycphp-talk] need help about joomla
In-Reply-To: <017801c8c770$9d6ba040$0301a8c0@joe>
Message-ID: <301092.85746.qm@web59306.mail.re1.yahoo.com>

hi all,
i  am trying to learn joomal.i need detail explaination of each joomla database table and its field.
i search joomla forum,developer network and also on google  but i did not find any thing regarding this.if any body have any material or any thing please share wit us.
thanks in advance to all

--- On Thu, 6/5/08, Joe Schmitt <joe-nyphp at joeschmittjr.com> wrote:

From: Joe Schmitt <joe-nyphp at joeschmittjr.com>
Subject: Re: [nycphp-talk] need help about cms design
To: "NYPHP Talk" <talk at lists.nyphp.org>
Date: Thursday, June 5, 2008, 5:59 PM





Hi Humayoo,
 
Here are two books that take you through the use of PHP and MySQL. Both end with a section about creating a CMS.
 
How to Do Everything with PHP & MySQL
By Vikram Vaswani
362pp total
CMS Chapter 30pp
 
PHP 5/MySql Programming for the absolute beginner
By Andy Harris
427pp total
CMS Chapter 44pp
 
Here is a link to a free all in one installation package that contains everything you need to work on your local machine:
http://www.apachefriends.org/en/xampp.html
 
"XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl."
It uses minimal system resources and there are versions for the following OS's:
Linux, Windows, Mac OS X, and Solaris.
 
Be Well,
Joe
----
Joe Schmitt
joe-nyphp at joeschmittjr
 

----- Original Message ----- 
From: birgunj birgunj 
To: NYPHP Talk 
Sent: Thursday, June 05, 2008 12:33 AM
Subject: [nycphp-talk] need help about cms design


Dear All,
i am learning how to design and develop cms(content management system).i need help regarding this.i need a book or tutorial which explain step by step procedure with example.if any body has any material or ebook or idea please share with me.
 
thanks 
humayoo

David Krings <ramons at gmx.net> wrote:
birgunj birgunj wrote:
> Dear all,
> 
> i am trying to design and build the cms(content management system) from 
> scratch.how to design the database for cms and how to start coding for this.
> 
> i need help about this.if anbody has any idea,supporting material 
> ,please share with us.
> 
> thanks in advance to all.
> 
> humayoo


Well, despite the thread hijack I'll answer. First off a few questions. Did 
you ever design a database for any other application? Did you ever code 
something in PHP that went beyond some basic input verification, did something 
more than put out a static page, and worked in the end? I don't want to sound 
cross, but your question is like calling up Car Talk and asking the guys "I 
want to design and build my own car from scratch. How do I do that?". I'm just 
guessing here, but I assume that your experience with coding and database 
design is not that great. So maybe you want to download and use a CMS 
forwhatever you want to do and start with something that is less complex.

David
_______________________________________________
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 ramons at gmx.net  Tue Jun 10 06:46:32 2008
From: ramons at gmx.net (David Krings)
Date: Tue, 10 Jun 2008 06:46:32 -0400
Subject: [nycphp-talk] need help about joomla
In-Reply-To: <301092.85746.qm@web59306.mail.re1.yahoo.com>
References: <301092.85746.qm@web59306.mail.re1.yahoo.com>
Message-ID: <484E5B88.4080204@gmx.net>

birgunj birgunj wrote:
> hi all,

Hi!

First of all, hijacking threads is not nice. Please start a new thread for a 
new topic.

> i  am trying to learn joomal.i need detail explaination of each joomla 
> database table and its field.

In order to learn how to use Joomla you don't need to know every field in the 
database.

> 
> i search joomla forum,developer network and also on google  but i did 
> not find any thing regarding this.if any body have any material or any 
> thing please share wit us.
> thanks in advance to all
> 

Did you look at the database itself in MySQL and see if there are any comments 
or descriptions? Maybe there is a Joomla expert on NYPHP, but if you can't get 
that information from the joomla forum or developer network, then asking 
others has less of a chance. Also, did you see if there is any documentation 
that comes with the source code?

David


From ashaw at polymerdb.org  Tue Jun 10 11:33:49 2008
From: ashaw at polymerdb.org (Allen Shaw)
Date: Tue, 10 Jun 2008 10:33:49 -0500
Subject: [nycphp-talk] need help about joomla
In-Reply-To: <484E5B88.4080204@gmx.net>
References: <301092.85746.qm@web59306.mail.re1.yahoo.com>
	<484E5B88.4080204@gmx.net>
Message-ID: <484E9EDD.7010009@polymerdb.org>

David Krings wrote:
> First of all, hijacking threads is not nice. Please start a new thread 
> for a new topic.
Yeah, I think many people may not know the difference.

Humayoo: what he means is, be sure to *create a new email* when you want 
to change the topic, instead of hitting "reply" and then changing the 
subject line.  Doing it the wrong way will screw up certain features in 
people's email software when they're reading your message.

- A.

-- 
Allen Shaw
slidePresenter (http://slides.sourceforge.net)



From paulcheung at tiscali.co.uk  Tue Jun 10 14:57:13 2008
From: paulcheung at tiscali.co.uk (PaulCheung)
Date: Tue, 10 Jun 2008 19:57:13 +0100
Subject: [nycphp-talk] Setting up outgoing mail using Linux
References: <78c6bd860802061106l16b27889me6e52f24c47968cd@mail.gmail.com>
Message-ID: 

Can anybody help?

I am having problems trying to send automated emails using Linux, typically 
order confirmation emails. I don't know how it is set-up and according to 
the  manual I read it said "for unix only. You may supply arguments as well 
(default: 'sendmail -t -i). sendmail_path = sendmail -t -i;

This didn't not work. I use 1and1 and they have setup the sendmail and I 
found the sendmail path is /usr/sbin/sendmail

so I set sendmail_path = '/usr/sbin/sendmail -i -t'; This doesn't work 
either - below is the snippet of code.
================================================================
$headers = 'X-Mailer: PHP/' . phpversion();
sendmail_path = '/usr/sbin/sendmail -i -t';

$date = date("Y-m-d");

     $to = "$email1";
     $subject = "Your Account Number";
     $message = "Thank you for choosing HANWELL PRODUCTS


PLEASE MAKE A CAREFUL NOTE OF THIS INFORMATION AS WITHOUT IT YOU WILL NOT BE 
ABLE ACCESS YOUR  HANWELL PRODUCTS ACCOUNT

Your USER-ID  is :  $userid

Your PASSWORD is :  $passcode

Your ACCOUNT  is :  $account

This Email was sent on : $account_date

";
$from    = "FROM: info at hanwellproducts.com";

echo "The email was sent : $date ";
mail ($to, $subject, $message, $headers);
?>

Can anybody show me what I am doing wrong?

Paul

 



From joe-nyphp at joeschmittjr.com  Tue Jun 10 18:57:24 2008
From: joe-nyphp at joeschmittjr.com (Joe Schmitt)
Date: Tue, 10 Jun 2008 18:57:24 -0400
Subject: [nycphp-talk] Setting up outgoing mail using Linux
References: <78c6bd860802061106l16b27889me6e52f24c47968cd@mail.gmail.com>
	
Message-ID: <003001c8cb4d$59ff8f20$0301a8c0@joe>

Hi Paul,

It looks like you need to add quotes around the items in the mail function
even though they're variables.

This works for me, I receive an email when someone contacts me from a web
form:
mail ("joe-nyphp at joeschmittjr.com", "Contact the web master",
"$message_body", "From: {$_POST['email']}");

Try a simple one (see below), then add variables:
mail ("YourEmailAddress at test.com", "Test Title", "Test Message", "From:
TestSender at test.com");

----
Joe Schmitt
joe-nyphp at joeschmittjr

----- Original Message ----- 
From: "PaulCheung" 
To: "NYPHP Talk" 
Sent: Tuesday, June 10, 2008 2:57 PM
Subject: [nycphp-talk] Setting up outgoing mail using Linux


> Can anybody help?
>
> I am having problems trying to send automated emails using Linux,
typically
> order confirmation emails. I don't know how it is set-up and according to
> the  manual I read it said "for unix only. You may supply arguments as
well
> (default: 'sendmail -t -i). sendmail_path = sendmail -t -i;
>
> This didn't not work. I use 1and1 and they have setup the sendmail and I
> found the sendmail path is /usr/sbin/sendmail
>
> so I set sendmail_path = '/usr/sbin/sendmail -i -t'; This doesn't work
> either - below is the snippet of code.
> ================================================================
> $headers = 'X-Mailer: PHP/' . phpversion();
> sendmail_path = '/usr/sbin/sendmail -i -t';
>
> $date = date("Y-m-d");
>
>      $to = "$email1";
>      $subject = "Your Account Number";
>      $message = "Thank you for choosing HANWELL PRODUCTS
>
>
> PLEASE MAKE A CAREFUL NOTE OF THIS INFORMATION AS WITHOUT IT YOU WILL NOT
BE
> ABLE ACCESS YOUR  HANWELL PRODUCTS ACCOUNT
>
> Your USER-ID  is :  $userid
>
> Your PASSWORD is :  $passcode
>
> Your ACCOUNT  is :  $account
>
> This Email was sent on : $account_date
>
> ";
> $from    = "FROM: info at hanwellproducts.com";
>
> echo "The email was sent : $date ";
> mail ($to, $subject, $message, $headers);
> ?>
>
> Can anybody show me what I am doing wrong?
>
> Paul
>
>
>
> _______________________________________________
> 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 paulcheung at tiscali.co.uk  Wed Jun 11 03:51:58 2008
From: paulcheung at tiscali.co.uk (PaulCheung)
Date: Wed, 11 Jun 2008 08:51:58 +0100
Subject: [nycphp-talk] Setting up outgoing mail using Linux
References: <78c6bd860802061106l16b27889me6e52f24c47968cd@mail.gmail.com>
	<003001c8cb4d$59ff8f20$0301a8c0@joe>
Message-ID: 

Hi Joe,

Thanks for that, it didn't work either.Everything appears to have been sent 
but the email never arrives or is it sent?

Paul
----- Original Message ----- 
From: "Joe Schmitt" 
To: "NYPHP Talk" 
Sent: Tuesday, June 10, 2008 11:57 PM
Subject: Re: [nycphp-talk] Setting up outgoing mail using Linux


> Hi Paul,
>
> It looks like you need to add quotes around the items in the mail function
> even though they're variables.
>
> This works for me, I receive an email when someone contacts me from a web
> form:
> mail ("joe-nyphp at joeschmittjr.com", "Contact the web master",
> "$message_body", "From: {$_POST['email']}");
>
> Try a simple one (see below), then add variables:
> mail ("YourEmailAddress at test.com", "Test Title", "Test Message", "From:
> TestSender at test.com");
>
> ----
> Joe Schmitt
> joe-nyphp at joeschmittjr
>
> ----- Original Message ----- 
> From: "PaulCheung" 
> To: "NYPHP Talk" 
> Sent: Tuesday, June 10, 2008 2:57 PM
> Subject: [nycphp-talk] Setting up outgoing mail using Linux
>
>
>> Can anybody help?
>>
>> I am having problems trying to send automated emails using Linux,
> typically
>> order confirmation emails. I don't know how it is set-up and according to
>> the  manual I read it said "for unix only. You may supply arguments as
> well
>> (default: 'sendmail -t -i). sendmail_path = sendmail -t -i;
>>
>> This didn't not work. I use 1and1 and they have setup the sendmail and I
>> found the sendmail path is /usr/sbin/sendmail
>>
>> so I set sendmail_path = '/usr/sbin/sendmail -i -t'; This doesn't work
>> either - below is the snippet of code.
>> ================================================================
>> $headers = 'X-Mailer: PHP/' . phpversion();
>> sendmail_path = '/usr/sbin/sendmail -i -t';
>>
>> $date = date("Y-m-d");
>>
>>      $to = "$email1";
>>      $subject = "Your Account Number";
>>      $message = "Thank you for choosing HANWELL PRODUCTS
>>
>>
>> PLEASE MAKE A CAREFUL NOTE OF THIS INFORMATION AS WITHOUT IT YOU WILL NOT
> BE
>> ABLE ACCESS YOUR  HANWELL PRODUCTS ACCOUNT
>>
>> Your USER-ID  is :  $userid
>>
>> Your PASSWORD is :  $passcode
>>
>> Your ACCOUNT  is :  $account
>>
>> This Email was sent on : $account_date
>>
>> ";
>> $from    = "FROM: info at hanwellproducts.com";
>>
>> echo "The email was sent : $date ";
>> mail ($to, $subject, $message, $headers);
>> ?>
>>
>> Can anybody show me what I am doing wrong?
>>
>> Paul
>>
>>
>>
>> _______________________________________________
>> 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  Wed Jun 11 06:24:18 2008
From: ps at sun-code.com (Peter Sawczynec)
Date: Wed, 11 Jun 2008 06:24:18 -0400
Subject: [nycphp-talk] PHP LinkedIn 
Message-ID: <000001c8cbad$4f044600$ed0cd200$@com>

Offline, someone wrote to me directly and posed the question(s): Why
have more Connections of LinkedIn? Why use a LinkedIn
compared/contrasted to a mailing list?

I thought that my thoughts were actually worth posting here. 

LinkedIn, Jigsaw, HotJobs, Monster, Dice, MySpace, Facebook, yahoo,
google, Adobe, IBM, Oracle... -- evidence of the success and integration
of the [social] networking aspect of using the Internet to get something
done is evident everywhere.

I don?t think that LinkedIn itself, is everyone's answer -- but what
LinkedIn represents on the Internet is important. 

Even if you don't want to ever use LinkedIn yourself, understanding it
more fully (for say dispassionate professional purposes) by taking an
opportunity to precisely examine the tools of LinkedIn and what the
potential benefits and advantages there are to using them robustly is
well worth the time. For example, LinkedIn has embedded within the
structure professional Q&A/advice-style internal mailing lists too.
Also, all communications on LinkedIn can be public or private,
professional or personal (essentially online or offline, so to speak)
without going out of the interface or needing to state that you are
going private or off list, or using multiple email addresses. One,
technically, doesn't even need email addresses. One more just uses the
right tool/technique for the communication job. 

I believe that what LinkedIn is and how LinkedIn works (and how it even
came to be) is closely meshed with the expansion and growth of the
Internet/Web 2.0 way of life and doing business. I would posit that it
is highly probable that in the future more and more groups/associations
will be more like a LinkedIn or [social] networks from the get go. (In
fact, it would seem, that future is already here. First thing college
kids join is Facebook. Then other local specialized [social] networks.)

I would proactively support the aggressive spread of PHP professionals
(individually and formally as a Group) into LinkedIn territory since
yesterday. Many already have. 

Warmest regards, 
?
Peter Sawczynec 
Technology Dir.
Sun-code Interactive
Sun-code.com 
646.316.3678 
ps at sun-code.com




From ashaw at polymerdb.org  Wed Jun 11 11:25:20 2008
From: ashaw at polymerdb.org (Allen Shaw)
Date: Wed, 11 Jun 2008 10:25:20 -0500
Subject: [nycphp-talk] Setting up outgoing mail using Linux
In-Reply-To: 
References: <78c6bd860802061106l16b27889me6e52f24c47968cd@mail.gmail.com>	<003001c8cb4d$59ff8f20$0301a8c0@joe>
	
Message-ID: <484FEE60.7000106@polymerdb.org>

PaulCheung wrote:
> Thanks for that, it didn't work either.Everything appears to have been 
> sent but the email never arrives or is it sent?
Hi Paul,

You want to make sure you're analyzing the situation in detail, looking 
for evidence that will indicate the source of the problem.  That is, 
avoid trial-and-error debugging in which you change some code, run it, 
and then just wait to see if the email comes or not.  At this point 
(that is, since you're asking for help on it) you should be beyond 
trial-and-error.

For example:
- check the return value of the mail() function.  I believe it returns a 
boolean based on success or failure. (Check the manual to be sure.)
- can you get access to the apache error logs, which might contain some 
information about an error?

I also assume you have asked your hosting provider for help on this?  If 
you have, their reply might offer some clues to people here who want to 
help you.  And you've scoured their documentation for references to 
sendmail and php?  It's possible they have some specific requirements 
for sending mail from scripts.

- Allen

-- 
Allen Shaw
slidePresenter (http://slides.sourceforge.net)



From chsnyder at gmail.com  Wed Jun 11 11:29:18 2008
From: chsnyder at gmail.com (csnyder)
Date: Wed, 11 Jun 2008 11:29:18 -0400
Subject: [nycphp-talk] Setting up outgoing mail using Linux
In-Reply-To: <484FEE60.7000106@polymerdb.org>
References: <78c6bd860802061106l16b27889me6e52f24c47968cd@mail.gmail.com>
	
	<003001c8cb4d$59ff8f20$0301a8c0@joe>
	
	<484FEE60.7000106@polymerdb.org>
Message-ID: 

On Wed, Jun 11, 2008 at 11:25 AM, Allen Shaw  wrote:

> I also assume you have asked your hosting provider for help on this?  If you
> have, their reply might offer some clues to people here who want to help
> you.  And you've scoured their documentation for references to sendmail and
> php?  It's possible they have some specific requirements for sending mail
> from scripts.

Most mail-related problems have nothing to do with the sendmail line
used by PHP. They are typically problems further downstream in the
mail system.

The best way to debug is to be able to watch the mail.log as you send
a message using php. Definitely consult with your provider to get to
the bottom of this.

Chris Snyder
http://chxor.chxo.com/


From paulcheung at tiscali.co.uk  Wed Jun 11 12:49:08 2008
From: paulcheung at tiscali.co.uk (PaulCheung)
Date: Wed, 11 Jun 2008 17:49:08 +0100
Subject: [nycphp-talk] Setting up outgoing mail using Linux
References: <78c6bd860802061106l16b27889me6e52f24c47968cd@mail.gmail.com>	<003001c8cb4d$59ff8f20$0301a8c0@joe>
	<484FEE60.7000106@polymerdb.org>
Message-ID: <2CFD33A3350E453190365A0A1D3AAD76@X9183>

I have asked my provider and they replied that some of their FAQs are out of 
date and/or are no longer supported and that Level1 support would be happy 
to help but they are not trained in scripting languages. I have already 
asked if there were any special requirements and was told I had to upgrade 
my package from Business to Business-Pro which I did. They further suggested 
that I find a working Linux example, copy it and then implement it, as my 
new hosting package will support it.

If there are any other 1and1 users who are successfully sending out Linux 
emails, I would be most grateful if you would be so kind as to let me have a 
copy of the coding.

Paul

----- Original Message ----- 
From: "Allen Shaw" 
To: "NYPHP Talk" 
Sent: Wednesday, June 11, 2008 4:25 PM
Subject: Re: [nycphp-talk] Setting up outgoing mail using Linux


> PaulCheung wrote:
>> Thanks for that, it didn't work either.Everything appears to have been 
>> sent but the email never arrives or is it sent?
> Hi Paul,
>
> You want to make sure you're analyzing the situation in detail, looking 
> for evidence that will indicate the source of the problem.  That is, avoid 
> trial-and-error debugging in which you change some code, run it, and then 
> just wait to see if the email comes or not.  At this point (that is, since 
> you're asking for help on it) you should be beyond trial-and-error.
>
> For example:
> - check the return value of the mail() function.  I believe it returns a 
> boolean based on success or failure. (Check the manual to be sure.)
> - can you get access to the apache error logs, which might contain some 
> information about an error?
>
> I also assume you have asked your hosting provider for help on this?  If 
> you have, their reply might offer some clues to people here who want to 
> help you.  And you've scoured their documentation for references to 
> sendmail and php?  It's possible they have some specific requirements for 
> sending mail from scripts.
>
> - Allen
>
> -- 
> Allen Shaw
> 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 



From jeff at comprehensivity.com  Wed Jun 11 13:54:33 2008
From: jeff at comprehensivity.com (Jeff Knight)
Date: Wed, 11 Jun 2008 12:54:33 -0500
Subject: [nycphp-talk] Setting up outgoing mail using Linux
In-Reply-To: 
References: <78c6bd860802061106l16b27889me6e52f24c47968cd@mail.gmail.com>
	
Message-ID: 

Start simply, run this script and see what happens



It is possible that your email is going out, but getting rejected, and
the return path will help you establish that. If mail() fails, as
stated above you're going to need to check your logs for more
information. You might want to even consider using Pear Mail
(http://pear.php.net/package/Mail) to provide you with more helpful
error messages.

On Tue, Jun 10, 2008 at 1:57 PM, PaulCheung  wrote:
> Can anybody help?
>
> I am having problems trying to send automated emails using Linux, typically
> order confirmation emails. I don't know how it is set-up and according to
> the  manual I read it said "for unix only. You may supply arguments as well
> (default: 'sendmail -t -i). sendmail_path = sendmail -t -i;
>
> This didn't not work. I use 1and1 and they have setup the sendmail and I
> found the sendmail path is /usr/sbin/sendmail
>
> so I set sendmail_path = '/usr/sbin/sendmail -i -t'; This doesn't work
> either - below is the snippet of code.
> ================================================================
> $headers = 'X-Mailer: PHP/' . phpversion();
> sendmail_path = '/usr/sbin/sendmail -i -t';
>
> $date = date("Y-m-d");
>
>    $to = "$email1";
>    $subject = "Your Account Number";
>    $message = "Thank you for choosing HANWELL PRODUCTS
>
>
> PLEASE MAKE A CAREFUL NOTE OF THIS INFORMATION AS WITHOUT IT YOU WILL NOT BE
> ABLE ACCESS YOUR  HANWELL PRODUCTS ACCOUNT
>
> Your USER-ID  is :  $userid
>
> Your PASSWORD is :  $passcode
>
> Your ACCOUNT  is :  $account
>
> This Email was sent on : $account_date
>
> ";
> $from    = "FROM: info at hanwellproducts.com";
>
> echo "The email was sent : $date ";
> mail ($to, $subject, $message, $headers);
> ?>
>


From smanes at magpie.com  Wed Jun 11 14:11:07 2008
From: smanes at magpie.com (Steve Manes)
Date: Wed, 11 Jun 2008 14:11:07 -0400
Subject: [nycphp-talk] Setting up outgoing mail using Linux
In-Reply-To: 
References: <78c6bd860802061106l16b27889me6e52f24c47968cd@mail.gmail.com>		<003001c8cb4d$59ff8f20$0301a8c0@joe>		<484FEE60.7000106@polymerdb.org>
	
Message-ID: <4850153B.3020203@magpie.com>

csnyder wrote:
> Most mail-related problems have nothing to do with the sendmail line
> used by PHP. They are typically problems further downstream in the
> mail system.

A common one is assuming that the localhost mail server is working 
because it accepts the mail from the application.  I see a lot of 
bounces in my mail logs from web sites which ship mail from the 
box-stock and unconfigured sendmail servers on localhost.  These 
machines will often not be registered in DNS or will lack a valid PTR 
record or will greet target server with a generic "HELO 
bogus.site.name".  An increasing number of mail servers are doing DNS 
checks of mail servers as an anti-spam defense.

Case in point:

Jun 11 04:13:55 jack postfix/smtpd[57160]: NOQUEUE: reject: CONNECT from 
unknown[62.160.92.240]: 554 5.7.1 Client host rejected: cannot
  find your hostname, [62.160.92.240]; proto=SMTP




From lists at zaunere.com  Thu Jun 12 18:59:05 2008
From: lists at zaunere.com (Hans Zaunere)
Date: Thu, 12 Jun 2008 18:59:05 -0400
Subject: [nycphp-talk] New York PHP on LinkedIn and Flickr
In-Reply-To: 
References: 
Message-ID: <010801c8ccdf$ea3d5340$beb7f9c0$@com>

Thanks Brian, all.

The official LinkedIn group for NYPHP is the New York PHP Community.  Oddly,
I can't find a link to the "main page" of it on linkedin.com, but if you
search for it, it should come right up.

Anyone know how to get a link to a LinkedIn group?

And here is our Flickr group:

http://www.flickr.com/groups/nyphp/

Thanks Brian and Ed for supporting the group.

And, thanks to Andrew, we have RSS feeds of the mailing lists:

http://mailbucket.org/nyphp-talk.xml
http://mailbucket.org/nyphp-announce.xml
http://mailbucket.org/nyphp-jobs.xml
http://mailbucket.org/nyphp-org.xml
http://mailbucket.org/nyphp-pgsql.xml
http://mailbucket.org/nyphp-mysql.xml
http://mailbucket.org/nyphp-front-end.xml
http://mailbucket.org/nyphp-python.xml
http://mailbucket.org/nyphp-joomla.xml

These are also available on the mailing lists page:

http://www.nyphp.org/mailinglists.php

---
Hans Zaunere / President / New York PHP
    www.nyphp.org  / ?www.nyphp.com 



> -----Original Message-----
> From: talk-bounces at lists.nyphp.org [mailto:talk-
> bounces at lists.nyphp.org] On Behalf Of Brian D.
> Sent: Thursday, May 29, 2008 10:29 AM
> To: NYPHP Talk
> Subject: [nycphp-talk] New York PHP on LinkedIn and Flickr
> 
> There are some new ways to show your involvement in the New York PHP
> Community!
> 
> LinkedIn Group -
> If you're on LinkedIn joining the NYPHP Community group will allow you
> to contact other NYPHP Community members and view their profiles. You
> can join the group by following the link below:
> 
> http://www.linkedin.com/e/gis/110439/53F044687FCA
> 
> Flickr NYPHP Group -
> I've been adding pictures to this group for a few months now, but it
> doesn't have to just be pictures of New York PHP meetings. If any of
> you NYPHPers went to PHP|tek or any of the other conventions, feel
> free to add your pictures to the group.
> 
> http://flickr.com/groups/nyphp/pool/
> 
> 
> - Brian D.
> 
> --
> realm3 web applications [realm3.com]
> freelance consulting, application development
> (917) 512-3594
> _______________________________________________
> 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 max at neuropunks.org  Fri Jun 13 00:25:11 2008
From: max at neuropunks.org (Max Gribov)
Date: Fri, 13 Jun 2008 00:25:11 -0400
Subject: [nycphp-talk] Setting up outgoing mail using Linux
In-Reply-To: 
References: <78c6bd860802061106l16b27889me6e52f24c47968cd@mail.gmail.com>
	
Message-ID: <4851F6A7.90704@neuropunks.org>

PaulCheung wrote:
> I am having problems trying to send automated emails using Linux, 
> typically order confirmation emails. I don't know how it is set-up and 
> according to the  manual I read it said "for unix only. You may supply 
> arguments as well (default: 'sendmail -t -i). sendmail_path = sendmail 
> -t -i;
>
You may want to try setting up an email server as a test somewhere else, 
so you can have real access to the logs, and then using phpMailer, since 
it supports real smtp over port 25, with auth and ssl if need be. Access 
to mail log is definetely the first step in troubleshooting this (should 
be something like /var/log/mail.log)

For one project I worked on, email worked correctly only after I set up 
proper reverse resolve for the IP where mail was going out, setting up 
SPF record for the domain with that IP in it (Hi msn/hotmail and co) and 
setting up Domain Keys (Hi yahoo!)

With Domain Keys, at least with Postfix and dk-milter, there was no 
other way to get email signed besides using phpMailer - somehow mail() 
does not interface with postfix right (?) and email was not being signed 
unless the whole SMTP took place over regular port 25/tcp

You should also check the IP address of that server in various black 
lists like spamhaus etc.

Also, Id make sure From: part of the email is a valid address so you can 
receive any bounces.




> This didn't not work. I use 1and1 and they have setup the sendmail and 
> I found the sendmail path is /usr/sbin/sendmail
>
> so I set sendmail_path = '/usr/sbin/sendmail -i -t'; This doesn't work 
> either - below is the snippet of code.
> ================================================================
> $headers = 'X-Mailer: PHP/' . phpversion();
> sendmail_path = '/usr/sbin/sendmail -i -t';
>
> $date = date("Y-m-d");
>
>     $to = "$email1";
>     $subject = "Your Account Number";
>     $message = "Thank you for choosing HANWELL PRODUCTS
>
>
> PLEASE MAKE A CAREFUL NOTE OF THIS INFORMATION AS WITHOUT IT YOU WILL 
> NOT BE ABLE ACCESS YOUR  HANWELL PRODUCTS ACCOUNT
>
> Your USER-ID  is :  $userid
>
> Your PASSWORD is :  $passcode
>
> Your ACCOUNT  is :  $account
>
> This Email was sent on : $account_date
>
> ";
> $from    = "FROM: info at hanwellproducts.com";
>
> echo "The email was sent : $date ";
> mail ($to, $subject, $message, $headers);
> ?>
>
> Can anybody show me what I am doing wrong?
>
> Paul
>
>
>
> _______________________________________________
> 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 shaijudavis at gmail.com  Fri Jun 13 02:03:50 2008
From: shaijudavis at gmail.com (shaiju davis)
Date: Fri, 13 Jun 2008 11:03:50 +0500
Subject: [nycphp-talk] Problem with exeuting query while using PHP5 -
	Commands out of sync; you can't run this command now
Message-ID: <30ce306c0806122303gcd88247ue26262c073b72298@mail.gmail.com>

Hi All,

   When I try to call the second Stored procedure from PHP , I get this
following error
                            "Commands out of sync; you can't run this
command now".
  When I search I get the result as, it is because of the buffering problem
with the opened connection. Anyone know how to fix it?



Thanks in Advance,
Shaiju Davis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From paul at devonianfarm.com  Fri Jun 13 09:34:48 2008
From: paul at devonianfarm.com (paul at devonianfarm.com)
Date: Fri, 13 Jun 2008 09:34:48 -0400 (EDT)
Subject: [nycphp-talk] Problem with exeuting query while using PHP5 -
	Commands out of sync; you can't run this command now
Message-ID: <58048.192.168.1.70.1213364088.webmail@192.168.1.70>

 >   When I try to call the second Stored procedure from PHP , I get this following error
 >                           "Commands out of sync; you can't run this command now".
 > When I search I get the result as, it is because of the buffering problem with the opened connection.

Which database are you running?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From ramons at gmx.net  Fri Jun 13 10:51:35 2008
From: ramons at gmx.net (David Krings)
Date: Fri, 13 Jun 2008 10:51:35 -0400
Subject: [nycphp-talk] OT: SCSI Purchase advice
Message-ID: <48528977.7010400@gmx.net>

Hi!

I keep it short: does anyone know of a good outlet for affordable 80 pin SCSI 
drives? I hit the limit on my server and need to do something about it. Feel 
free to contact me off list.

Thanks,

David


From y2rob at aol.com  Fri Jun 13 15:07:26 2008
From: y2rob at aol.com (y2rob at aol.com)
Date: Fri, 13 Jun 2008 15:07:26 -0400
Subject: [nycphp-talk] Old subject new day - Pear Captcha
Message-ID: <8CA9B9FDA4294D2-1078-40C@MBLK-M29.sysops.aol.com>

hello,
i realize this is an old thread, but was anyone ever been able to get the pear captcha working?? here is the original thread from last year, but it seems like no one had a resolution to it.? 

http://lists.lists.nyphp.org/pipermail/talk/2007-August/023134.html

i've done a couple of searches and haven't found anything to solve this bug.? i find it funny that if you do a search for that particular error on google, it will bring you to a whole slough of sites experiencing the same problem.? i might try to debug it on my own, but i just wanted to see if anyone else was able to figure it out and i have a feeling it might be a bit of a lost cause!!??

~rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From lists at enobrev.com  Fri Jun 13 16:02:28 2008
From: lists at enobrev.com (Mark Armendariz)
Date: Fri, 13 Jun 2008 16:02:28 -0400
Subject: [nycphp-talk] Problem with exeuting query while using PHP5
	-	Commands out of sync; you can't run this command now
In-Reply-To: <30ce306c0806122303gcd88247ue26262c073b72298@mail.gmail.com>
References: <30ce306c0806122303gcd88247ue26262c073b72298@mail.gmail.com>
Message-ID: <4852D254.9020103@enobrev.com>

shaiju davis wrote:
> Hi All,
>
>    When I try to call the second Stored procedure from PHP , I get 
> this following error
>                             "Commands out of sync; you can't run this 
> command now".
>   When I search I get the result as, it is because of the buffering 
> problem with the opened connection. Anyone know how to fix it?
>  
>    

I had that problem while using mysqli_multi_query on a fairly large 
dataset (imdb database) not too long ago.  I don't remember the exact 
reason that was explained (mostly because there wasn't a very good one 
given), but in the end, I found that running store_result on the result 
set took care of the problem.  Considering the solution, I think it's 
related to buffering, as you mentioned.
                   
        $oDb->multi_query($sUpdate);
       
        // clears the buffer
        while($oDb->next_result()) {
            $oDb->store_result();
        }

Mark


From rolan at omnistep.com  Fri Jun 13 18:02:25 2008
From: rolan at omnistep.com (Rolan Yang)
Date: Fri, 13 Jun 2008 18:02:25 -0400
Subject: [nycphp-talk] Old subject new day - Pear Captcha
In-Reply-To: <8CA9B9FDA4294D2-1078-40C@MBLK-M29.sysops.aol.com>
References: <8CA9B9FDA4294D2-1078-40C@MBLK-M29.sysops.aol.com>
Message-ID: <4852EE71.2070601@omnistep.com>

y2rob at aol.com wrote:
> hello,
> i realize this is an old thread, but was anyone ever been able to get 
> the pear captcha working?  here is the original thread from last year, 
> but it seems like no one had a resolution to it. 
>
> http://lists.lists.nyphp.org/pipermail/talk/2007-August/023134.html
>
> i've done a couple of searches and haven't found anything to solve 
> this bug.  i find it funny that if you do a search for that particular 
> error on google, it will bring you to a whole slough of sites 
> experiencing the same problem.  i might try to debug it on my own, but 
> i just wanted to see if anyone else was able to figure it out and i 
> have a feeling it might be a bit of a lost cause!!??
>
> ~rob
> ------------------------------------------------------------------------
> 
>
I managed to get it working, but IIRC had to upgrade gd lib.

~Rolan


From rolan at omnistep.com  Fri Jun 13 18:07:14 2008
From: rolan at omnistep.com (Rolan Yang)
Date: Fri, 13 Jun 2008 18:07:14 -0400
Subject: [nycphp-talk] Old subject new day - Pear Captcha
In-Reply-To: <4852EE71.2070601@omnistep.com>
References: <8CA9B9FDA4294D2-1078-40C@MBLK-M29.sysops.aol.com>
	<4852EE71.2070601@omnistep.com>
Message-ID: <4852EF92.9040909@omnistep.com>

Rolan Yang wrote:
>>
> I managed to get it working, but IIRC had to upgrade gd lib.
>
> ~Rolan


Correction: the freetype2 lib was not installed on the machine by 
default and was required.

~Rolan


From y2rob at aol.com  Sat Jun 14 07:27:32 2008
From: y2rob at aol.com (y2rob at aol.com)
Date: Sat, 14 Jun 2008 07:27:32 -0400
Subject: [nycphp-talk] Old subject new day - Pear Captcha
In-Reply-To: <4852EF92.9040909@omnistep.com>
References: <8CA9B9FDA4294D2-1078-40C@MBLK-M29.sysops.aol.com>	<4852EE71.2070601@omnistep.com>
	<4852EF92.9040909@omnistep.com>
Message-ID: <8CA9C28C55CF537-1150-415B@FWM-D40.sysops.aol.com>


 hello rolan,
so did you make any code change or just had freetype2 installed?

~rob

ps - thanks for replying to my post :)


 


 

-----Original Message-----
From: Rolan Yang 
To: NYPHP Talk 
Sent: Fri, 13 Jun 2008 6:07 pm
Subject: Re: [nycphp-talk] Old subject new day - Pear Captcha









Rolan Yang wrote:?

>>?

> I managed to get it working, but IIRC had to upgrade gd lib.?

>?

> ~Rolan?
?


Correction: the freetype2 lib was not installed on the machine by 
default and was required.?
?

~Rolan?

_______________________________________________?

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  Sat Jun 14 08:37:16 2008
From: rolan at omnistep.com (Rolan Yang)
Date: Sat, 14 Jun 2008 08:37:16 -0400
Subject: [nycphp-talk] Old subject new day - Pear Captcha
In-Reply-To: <8CA9C28C55CF537-1150-415B@FWM-D40.sysops.aol.com>
References: <8CA9B9FDA4294D2-1078-40C@MBLK-M29.sysops.aol.com>	<4852EE71.2070601@omnistep.com>	<4852EF92.9040909@omnistep.com>
	<8CA9C28C55CF537-1150-415B@FWM-D40.sysops.aol.com>
Message-ID: <4853BB7C.8050008@omnistep.com>

y2rob at aol.com wrote:
> hello rolan,
> so did you make any code change or just had freetype2 installed?
>
> ~rob
>
> ps - thanks for replying to my post :)
>
Unfortunately, I was in a rush to get it done and didn't take notes. I 
do remember now that the true type fonts were not installed on the 
machine either so I copied one over from a windows machine. Here's a 
list of pear stuff installed:

Installed packages, channel pear.php.net:
=========================================
Package        Version   State
Archive_Tar    1.3.1     stable
Console_Getopt 1.2       stable
Image_Text     0.6.0beta beta
PEAR           1.4.9     stable
Text_CAPTCHA   0.3.1     alpha
Text_Figlet    1.0.0     stable
Text_Password  1.1.0     stable
XML_RPC        1.4.8     stable

Here's  a snippet of code that works (for me):

'20',
        'font_path'=>'/home/webdir/',
        'font_file'=>'VERDANA.TTF');
$captcha->init(150, 60,NULL,$options);
$image = $captcha->getCAPTCHAAsJPEG();
file_put_contents('captcha.jpg', $image);
$_SESSION['captcha_phrase'] = $captcha->getPhrase();

?>

The captcha has succeeded in stopping any futher spam from hitting my 
clients comment board. I've read, however, that something as simple as a 
fixed image and a request to retype the displayed word is sufficient 
(http://www.codinghorror.com/blog/archives/000712.html)

~Rolan


From tedd at sperling.com  Sat Jun 14 09:21:42 2008
From: tedd at sperling.com (tedd)
Date: Sat, 14 Jun 2008 09:21:42 -0400
Subject: [nycphp-talk] Old subject new day - Pear Captcha
In-Reply-To: <4853BB7C.8050008@omnistep.com>
References: <8CA9B9FDA4294D2-1078-40C@MBLK-M29.sysops.aol.com>
	<4852EE71.2070601@omnistep.com>	<4852EF92.9040909@omnistep.com>
	<8CA9C28C55CF537-1150-415B@FWM-D40.sysops.aol.com>
	<4853BB7C.8050008@omnistep.com>
Message-ID: 

At 8:37 AM -0400 6/14/08, Rolan Yang wrote:
>The captcha has succeeded in stopping any futher spam from hitting 
>my clients comment board. I've read, however, that something as 
>simple as a fixed image and a request to retype the displayed word 
>is sufficient (http://www.codinghorror.com/blog/archives/000712.html)
>
>~Rolan

That really depends upon how popular the attraction is. The more 
popular the site, the more incentive for spammers to break it.

Here's some of my examples:

http://webbytedd.com/aa/assorted-captcha/

They all work, but they all can be broken as well.

Cheers,

tedd

-- 
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com


From compustretch at gmail.com  Sat Jun 14 11:01:11 2008
From: compustretch at gmail.com (forest mars)
Date: Sat, 14 Jun 2008 11:01:11 -0400
Subject: [nycphp-talk] New York PHP on LinkedIn and Flickr
In-Reply-To: <010801c8ccdf$ea3d5340$beb7f9c0$@com>
References: 
	<010801c8ccdf$ea3d5340$beb7f9c0$@com>
Message-ID: 

On Thu, Jun 12, 2008 at 6:59 PM, Hans Zaunere  wrote:

>
>   Oddly,
> I can't find a link to the "main page" of it on linkedin.com, but if you
> search for it, it should come right up.



Actually it's not *odd* at all, in the sense that the LinkedIn groups
directory is widely known to be totally broken, and has been for some time.

The search is also somewhat broken, so nice that it comes up at all.


cheers,

Forest
-- 
"In theory, theory and practice are exactly the same.
In practice, they're completely different."

------------------------------------------------------------------
Switch to Name.Space: http://namespace.org/switch
Support new domains & keep free media free! Register yours today!
https://secure.name-space.com/registry

-----BEGIN PGP SIGNATURE-----
Version: PGPsdk version 1.7.1 (C) 1997-1999 Network Associates, Inc. and its
affiliated companies. (Diffie-Helman/DSS-only version)

iQA/AwUBRkjTLDbz7LySoccvEQJDcQCguZZj4M4kOVOlOX4CtbgR0rppsdovAjra
3RRXIlkdzuYI0YJz4WyvKlTn
=MLhk
-----END PGP SIGNATURE-----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From jon.gilkison at gmail.com  Mon Jun 16 05:51:53 2008
From: jon.gilkison at gmail.com (Jon Gilkison)
Date: Mon, 16 Jun 2008 05:51:53 -0400
Subject: [nycphp-talk] Metadata/Attributes in PHP
Message-ID: <2CEE40C7-C959-4C54-A366-D7AE12B10C8B@gmail.com>

I wrote a class that allows you to do metadata programming in PHP  
(attributes in C#/annotations in Java).  You can fetch the code and  
the post:  http://interfacelab.com/metadataattributes-in-php/

Sorry for the blog spam, hope people find this useful.

Best,

Jon


jon gilkison
chief technology officer / massify.com




-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From zippy1981 at gmail.com  Mon Jun 16 07:31:48 2008
From: zippy1981 at gmail.com (Justin Dearing)
Date: Mon, 16 Jun 2008 07:31:48 -0400
Subject: [nycphp-talk] Metadata/Attributes in PHP
In-Reply-To: <2CEE40C7-C959-4C54-A366-D7AE12B10C8B@gmail.com>
References: <2CEE40C7-C959-4C54-A366-D7AE12B10C8B@gmail.com>
Message-ID: <5458db3c0806160431r1e6277a7p30688196dd227019@mail.gmail.com>

On Mon, Jun 16, 2008 at 5:51 AM, Jon Gilkison  wrote:
> I wrote a class that allows you to do metadata programming in PHP
> (attributes in C#/annotations in Java).  You can fetch the code and the
> post:  http://interfacelab.com/metadataattributes-in-php/

Interesting idea, what types of attributes do you define?

I like the concept of the ObsoleteAttribute in .net and think this
would be one area where I would use that in PHP. Since I've never
defined a custom attribute in .NET, and only modified a custome
attribute class once, I can live without them just fine without them
in PHP for most purposes. If I have to inherit a class instead of
decorating functions with attributes, to create a web service so be
it.


From jon.gilkison at gmail.com  Mon Jun 16 08:03:55 2008
From: jon.gilkison at gmail.com (Jon Gilkison)
Date: Mon, 16 Jun 2008 08:03:55 -0400
Subject: [nycphp-talk] Metadata/Attributes in PHP
In-Reply-To: <5458db3c0806160431r1e6277a7p30688196dd227019@mail.gmail.com>
References: <2CEE40C7-C959-4C54-A366-D7AE12B10C8B@gmail.com>
	<5458db3c0806160431r1e6277a7p30688196dd227019@mail.gmail.com>
Message-ID: 

We use it in a lot of place here at massify.   For our ORM, we use it  
similar to how I have it in the example in that blog post.  We also  
use it on our controllers to specify pre and post filters to call  
before we route the incoming HTTP request.

The place we use it the most is in our Model controllers.  For our  
internal API's, we have a base controller class that can perform basic  
CRUD and search on any given model.  To enable this for a specific  
model, we inherit that controller and dress it with metadata to tell  
it which model to use, how to map query parameters to search  
parameters, post fields to model properties, etc.  We can literally  
kick out an API for the model in a few minutes.

You could do this without the metadata, but it makes it easier.  We've  
found anyways.

Best,

Jon.


On Jun 16, 2008, at 7:31 AM, Justin Dearing wrote:

> On Mon, Jun 16, 2008 at 5:51 AM, Jon Gilkison  
>  wrote:
>> I wrote a class that allows you to do metadata programming in PHP
>> (attributes in C#/annotations in Java).  You can fetch the code and  
>> the
>> post:  http://interfacelab.com/metadataattributes-in-php/
>
> Interesting idea, what types of attributes do you define?
>
> I like the concept of the ObsoleteAttribute in .net and think this
> would be one area where I would use that in PHP. Since I've never
> defined a custom attribute in .NET, and only modified a custome
> attribute class once, I can live without them just fine without them
> in PHP for most purposes. If I have to inherit a class instead of
> decorating functions with attributes, to create a web service so be
> it.
> _______________________________________________
> 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

jon gilkison
chief technology officer / massify.com




-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From codebowl at gmail.com  Mon Jun 16 09:54:38 2008
From: codebowl at gmail.com (Joseph Crawford)
Date: Mon, 16 Jun 2008 09:54:38 -0400
Subject: [nycphp-talk] Seeking Designer Partner
Message-ID: 

Hello,

I am new to the Lynn area, I have a project that I have created the  
specs for.  I have 9 years of exp with PHP / MySQL and plan to put  
this idea into action soon.  However rather than using a template to  
start I am looking for an XHTML / CSS / JS guru that can team up with  
me on this project.  If you are a good designer and are interested in  
hearing more about this project please email me back and I will go  
over the basic idea of what the site will be, etc.

Thanks,
Joseph Crawford
http://josephcrawford.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From radalapsker at yahoo.com  Mon Jun 16 10:28:56 2008
From: radalapsker at yahoo.com (-- rada --)
Date: Mon, 16 Jun 2008 07:28:56 -0700 (PDT)
Subject: [nycphp-talk] Old subject new day - Pear Captcha
Message-ID: <637780.60214.qm@web54112.mail.re2.yahoo.com>

Rob,
I just?installed http://www.captcha.ru/en/?last month and recommend it, very easy to use.
Rada Lapsker


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From y2rob at aol.com  Mon Jun 16 10:46:35 2008
From: y2rob at aol.com (y2rob at aol.com)
Date: Mon, 16 Jun 2008 10:46:35 -0400
Subject: [nycphp-talk] Old subject new day - Pear Captcha
In-Reply-To: <4853BB7C.8050008@omnistep.com>
References: <8CA9B9FDA4294D2-1078-40C@MBLK-M29.sysops.aol.com>	<4852EE71.2070601@omnistep.com>	<4852EF92.9040909@omnistep.com>	<8CA9C28C55CF537-1150-415B@FWM-D40.sysops.aol.com>
	<4853BB7C.8050008@omnistep.com>
Message-ID: <8CA9DD6E8A0B12A-1FD0-9B4@MBLK-M29.sysops.aol.com>


 hello rolan,
thanks very much :)

~rob


 


 

-----Original Message-----
From: Rolan Yang 
To: NYPHP Talk 
Sent: Sat, 14 Jun 2008 8:37 am
Subject: Re: [nycphp-talk] Old subject new day - Pear Captcha









y2rob at aol.com wrote:?

> hello rolan,?

> so did you make any code change or just had freetype2 installed??

>?

> ~rob?

>?

> ps - thanks for replying to my post :)?

>?

Unfortunately, I was in a rush to get it done and didn't take notes. I 
do remember now that the true type fonts were not installed on the 
machine either so I copied one over from a windows machine. Here's a 
list of pear stuff installed:?
?

Installed packages, channel pear.php.net:?

=========================================?

Package        Version   State?

Archive_Tar    1.3.1     stable?

Console_Getopt 1.2       stable?

Image_Text     0.6.0beta beta?

PEAR           1.4.9     stable?

Text_CAPTCHA   0.3.1     alpha?

Text_Figlet    1.0.0     stable?

Text_Password  1.1.0     stable?

XML_RPC        1.4.8     stable?
?

Here's  a snippet of code that works (for me):?
?

'20',?

?      'font_path'=>'/home/webdir/',?

?      'font_file'=>'VERDANA.TTF');?

$captcha->init(150, 60,NULL,$options);?

$image = $captcha->getCAPTCHAAsJPEG();?

file_put_contents('captcha.jpg', $image);?

$_SESSION['captcha_phrase'] = $captcha->getPhrase();?
?

?>?
?

The captcha has succeeded in stopping any futher spam from hitting my 
clients comment board. I've read, however, that something as simple as a 
fixed image and a request to retype the displayed word is sufficient 
(http://www.codinghorror.com/blog/archives/000712.html)?
?

~Rolan?

_______________________________________________?

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 chsnyder at gmail.com  Mon Jun 16 10:57:27 2008
From: chsnyder at gmail.com (csnyder)
Date: Mon, 16 Jun 2008 10:57:27 -0400
Subject: [nycphp-talk] Metadata/Attributes in PHP
In-Reply-To: <2CEE40C7-C959-4C54-A366-D7AE12B10C8B@gmail.com>
References: <2CEE40C7-C959-4C54-A366-D7AE12B10C8B@gmail.com>
Message-ID: 

On Mon, Jun 16, 2008 at 5:51 AM, Jon Gilkison  wrote:
> I wrote a class that allows you to do metadata programming in PHP
> (attributes in C#/annotations in Java).  You can fetch the code and the
> post:  http://interfacelab.com/metadataattributes-in-php/
> Sorry for the blog spam, hope people find this useful.
> Best,
> Jon
>
> jon gilkison
> chief technology officer / massify.com
>

Hey, nice use of reflection to pull the yaml out of the class definitions.

I've been doing a similar thing using json to customize existing
models at runtime, inspired by Kenneth Downs Adromeda Project. I went
with json over yaml in hopes of being able to reuse the model on the
client but haven't gotten around to that yet.

Centralizing and automating this stuff is definitely the way to go.

Chris Snyder
http://chxor.chxo.com/


From anieshjoseph at gmail.com  Mon Jun 16 13:41:07 2008
From: anieshjoseph at gmail.com (Aniesh joseph)
Date: Mon, 16 Jun 2008 23:11:07 +0530
Subject: [nycphp-talk] Javascript Highlighter
Message-ID: <1b3d2fde0806161041u10e842fn9f92b0cf108aa4ee@mail.gmail.com>

Hi All,

I wish to create a Javascript Highlighter. While we are reading some texts
on a webpage, I need to select certain words or paragraphs. When I click on
the selected portion, it need to remain as unselected. When we move to next
page, no need to keep this selection.

Any ideas would be great!

Thank you all.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From guilhermeblanco at gmail.com  Mon Jun 16 14:23:41 2008
From: guilhermeblanco at gmail.com (Guilherme Blanco)
Date: Mon, 16 Jun 2008 15:23:41 -0300
Subject: [nycphp-talk] Javascript Highlighter
In-Reply-To: <1b3d2fde0806161041u10e842fn9f92b0cf108aa4ee@mail.gmail.com>
References: <1b3d2fde0806161041u10e842fn9f92b0cf108aa4ee@mail.gmail.com>
Message-ID: 

Look for GeSHi http://qbnz.com/highlighter/

Cheers,

On Mon, Jun 16, 2008 at 2:41 PM, Aniesh joseph  wrote:
> Hi All,
>
> I wish to create a Javascript Highlighter. While we are reading some texts
> on a webpage, I need to select certain words or paragraphs. When I click on
> the selected portion, it need to remain as unselected. When we move to next
> page, no need to keep this selection.
>
> Any ideas would be great!
>
> Thank you all.
>
> _______________________________________________
> 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
>



-- 
Guilherme Blanco - Web Developer
CBC - Certified Bindows Consultant
Cell Phone: +55 (16) 9166-6902
MSN: guilhermeblanco at hotmail.com
URL: http://blog.bisna.com
Rio de Janeiro - RJ/Brazil


From pyurt at yahoo.com  Mon Jun 16 22:44:07 2008
From: pyurt at yahoo.com (pyurt)
Date: Mon, 16 Jun 2008 22:44:07 -0400
Subject: [nycphp-talk] OT: SCSI Purchase advice
In-Reply-To: <48528977.7010400@gmx.net>
Message-ID: <01df01c8d024$03e99960$64680a0a@Pres2103>

What capacity?  


Paul Yurt www.mastermoz.com 
Make the Internet Work for You! MasterMOZ

-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of David Krings
Sent: Friday, June 13, 2008 10:52 AM
To: NYPHP Talk
Subject: [nycphp-talk] OT: SCSI Purchase advice

Hi!

I keep it short: does anyone know of a good outlet for affordable 80 pin
SCSI drives? I hit the limit on my server and need to do something about it.
Feel free to contact me off list.

Thanks,

David
_______________________________________________
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 jon.gilkison at gmail.com  Tue Jun 17 23:53:16 2008
From: jon.gilkison at gmail.com (Jon Gilkison)
Date: Tue, 17 Jun 2008 23:53:16 -0400
Subject: [nycphp-talk] CSS Variables
Message-ID: 

I posted some code we've been using a lot lately at Massify.

Let's you use variables in CSS, as well as importing other stylesheets  
in.  With PHP of course.

http://interfacelab.com/variables-in-css-via-php/

Enjoy.

Jon.


jon gilkison
chief technology officer / massify.com




-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From anieshjoseph at gmail.com  Wed Jun 18 06:33:11 2008
From: anieshjoseph at gmail.com (Aniesh joseph)
Date: Wed, 18 Jun 2008 16:03:11 +0530
Subject: [nycphp-talk] Re: Javascript Highlighter
Message-ID: <1b3d2fde0806180333y6642938ev55d26c0fbe14a36@mail.gmail.com>

I mentioned about anothr HighLighter. To see Highlighter, please do the
following. Another site uses a similar Highlighter as part of an online
Test.

1 Login to their site. URL and other details are:

URL: http://www.e-mcat.com/
User Name: anieshjoseph at gmail.com
Password: test123

2. Click on 'Restart Online'. If it doesn't work, please click on 'Start
Online'.

3. On the left side of the question, there is some texts are displayed.
Please select some texts and it will be highlighted. You can select many
text like this and all be highlighted.

 When you click on a highlighted portion, then it will lose the selection.

Please NOTE, this works only in Internet Explorer.

I wish to create a Highlighter like this. I also need it to be work on
Mozilla and Explorer. if possible, it need to work on all browsers.

Can you send some suggestions on where I can start with this work ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From brian at realm3.com  Wed Jun 18 08:31:07 2008
From: brian at realm3.com (Brian D.)
Date: Wed, 18 Jun 2008 08:31:07 -0400
Subject: [nycphp-talk] CakePHP
In-Reply-To: <330532b60806061334od819c4bg7995918c8333c0f7@mail.gmail.com>
References: <20080606140730.G85402@mercury.atopia.net>
	<5EDB097D-2AED-443A-8F90-9F74A967852B@o2group.com>
	<330532b60806061334od819c4bg7995918c8333c0f7@mail.gmail.com>
Message-ID: 

I'm all for CakePHP - as a developer I use it on about 90% of the
PHP-based projects I work on. It makes developing easier and
maintenance a breeze. Like all things programming, though, it has it's
uses and one can use it in situation where better alternatives exist.

- Brian D.

On Fri, Jun 6, 2008 at 4:34 PM, Mitch Pirtle  wrote:
> On Fri, Jun 6, 2008 at 3:13 PM, Tim Lieberman  wrote:
>> Oh, and use the 1.2 branch, even though it's only just now at RC1.
>
> +1 on this one. There are some good improvements in 1.2 that make life
> a lot easier.
>
> If I were to start a project and had to choose a PHP-based MVC
> framework, it would be a dead heat between CakePHP and Symfony.
>
> -- Mitch, ducking under desk and waiting for the "my framework is
> better than yours" battle
> _______________________________________________
> 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
>



-- 
realm3 web applications [realm3.com]
freelance consulting, application development
(917) 512-3594


From tedd at sperling.com  Wed Jun 18 09:52:19 2008
From: tedd at sperling.com (tedd)
Date: Wed, 18 Jun 2008 09:52:19 -0400
Subject: [nycphp-talk] CSS Variables
In-Reply-To: 
References: 
Message-ID: 

At 11:53 PM -0400 6/17/08, Jon Gilkison wrote:
>I posted some code we've been using a lot lately at Massify.
>
>Let's you use variables in CSS, as well as importing other 
>stylesheets in.  With PHP of course.
>
>http://interfacelab.com/variables-in-css-via-php/
>
>Enjoy.
>
>Jon.

Or this:

http://sperling.com/examples/pcss/

Cheers,

tedd
-- 
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com


From zippy1981 at gmail.com  Wed Jun 18 10:47:15 2008
From: zippy1981 at gmail.com (Justin Dearing)
Date: Wed, 18 Jun 2008 10:47:15 -0400
Subject: [nycphp-talk] CSS Variables
In-Reply-To: 
References: 
	
Message-ID: <5458db3c0806180747x3ede8060gc12daabfc3c4ec4c@mail.gmail.com>

On Wed, Jun 18, 2008 at 9:52 AM, tedd  wrote:
> Or this:
>
> http://sperling.com/examples/pcss/

You know I was using smarty templates for CSS but I think I like this
better for the following reasons:

1) I had to escape the {} brackets that weren't variables, or change
the variable delimeter in smarty.
2) This just works and does what I need for CSS. The whole smarty MVC
thing is overkill, expecially when my view (the css) isn't a view.


From d at ingk.com  Wed Jun 18 11:05:13 2008
From: d at ingk.com (Damion Hankejh (ingk))
Date: Wed, 18 Jun 2008 11:05:13 -0400
Subject: [nycphp-talk] CSS Variables
In-Reply-To: <5458db3c0806180747x3ede8060gc12daabfc3c4ec4c@mail.gmail.com>
References: 	
	<5458db3c0806180747x3ede8060gc12daabfc3c4ec4c@mail.gmail.com>
Message-ID: <079401c8d154$b6554a00$22ffde00$@com>

On Wed, Jun 18, 2008 at 9:52 AM, tedd  wrote:
> Or this:
>
> http://sperling.com/examples/pcss/

You know I was using smarty templates for CSS but I think I like this
better for the following reasons:

1) I had to escape the {} brackets that weren't variables, or change
the variable delimeter in smarty.
2) This just works and does what I need for CSS. The whole smarty MVC
thing is overkill, expecially when my view (the css) isn't a view.

-----

To gain the benefits of browser/proxy caching, trimmed down page size(s) and
thus faster loading pages, CSS should be in its own file.  Just link to the
file in the header of your view files using:


However, if you want to keep stylesheets in your Smarty template, place it
within {literal} ... {/literal} tags to force Smarty to ignore everything
therein, including brackets.  JavaScript can also safely be left unparsed by
Smarty in this way.





From ben at projectskyline.com  Wed Jun 18 11:40:11 2008
From: ben at projectskyline.com (Ben Sgro)
Date: Wed, 18 Jun 2008 11:40:11 -0400
Subject: [nycphp-talk] Web Security Article (XSS)
Message-ID: <48592C5B.8070309@projectskyline.com>

Hey all,

This fairly short and pretty cool vectored attack came through on the 
dailydave; thought I'd share it here:

- Ben

---------------------

Hi -

Back in 2002 I had published details of a vulnerability affecting most
web browsers. It detailed a security flaw that allows attackers to
abuse non-HTTP protocols to launch Cross Site Scripting attacks even
when a target web application was not vulnerable to XSS.

Six years later I'm releasing an update to this research in this
paper. This security vulnerability still affects popular web browsers
nowadays and the following browsers were tested as vulnerable:

    * Internet Explorer 6
    * Internet Explorer 7
    * Internet Explorer 8 (beta 1)
    * Opera 9.27
    * Opera 9.50
    * Safari 1.32
    * Safari 3.1.1

Others have described how to abuse behavior for purposes other than
Cross Site Scripting. NGSSoftware previously published a paper called
"Inter-Protocol Exploitation" which references the original
EyeonSecurity paper.

Paper at:
http://resources.enablesecurity.com/resources/the%20extended%20html%20form%20attack%20revisited.pdf

or http://tinyurl.com/5d88ll




From tedd at sperling.com  Wed Jun 18 12:09:50 2008
From: tedd at sperling.com (tedd)
Date: Wed, 18 Jun 2008 12:09:50 -0400
Subject: [nycphp-talk] CSS Variables
In-Reply-To: <5458db3c0806180747x3ede8060gc12daabfc3c4ec4c@mail.gmail.com>
References: 
	
	<5458db3c0806180747x3ede8060gc12daabfc3c4ec4c@mail.gmail.com>
Message-ID: 

At 10:47 AM -0400 6/18/08, Justin Dearing wrote:
>On Wed, Jun 18, 2008 at 9:52 AM, tedd  wrote:
>>  Or this:
>>
>  > http://sperling.com/examples/pcss/
>
>You know I was using smarty templates for CSS but I think I like this
>better for the following reasons:
>
>1) I had to escape the {} brackets that weren't variables, or change
>the variable delimeter in smarty.
>2) This just works and does what I need for CSS. The whole smarty MVC
>thing is overkill, expecially when my view (the css) isn't a view.


Glad to be of service.

If you will consider using a .htaccess doc, then try this:


	ForceType application/x-httpd-php


That way you won't have to rename the suffix of your css files to 
php. However, you'll still need to have your css files start with --



-- for browser like FireFox, which actually does this right. Most 
other browsers don't require a header.

Cheers,

tedd



-- 
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com


From zippy1981 at gmail.com  Wed Jun 18 12:22:26 2008
From: zippy1981 at gmail.com (Justin Dearing)
Date: Wed, 18 Jun 2008 12:22:26 -0400
Subject: [nycphp-talk] CSS Variables
In-Reply-To: <079401c8d154$b6554a00$22ffde00$@com>
References: 
	
	<5458db3c0806180747x3ede8060gc12daabfc3c4ec4c@mail.gmail.com>
	<079401c8d154$b6554a00$22ffde00$@com>
Message-ID: <5458db3c0806180922t3cbc5c37kf75e24c6b7761706@mail.gmail.com>

On Wed, Jun 18, 2008 at 11:05 AM, Damion Hankejh (ingk)  wrote:
> To gain the benefits of browser/proxy caching, trimmed down page size(s) and
> thus faster loading pages, CSS should be in its own file.  Just link to the
> file in the header of your view files using:
> 

Actually, I was using smarty to generate per user custom stylesheets
as seperate css files not including it inline in the html. Yeah I
never did consider caching issues. As Tedd suggested in another email
I did set the header.

> However, if you want to keep stylesheets in your Smarty template, place it
> within {literal} ... {/literal} tags to force Smarty to ignore everything
> therein, including brackets.  JavaScript can also safely be left unparsed by
> Smarty in this way.
>
>
>
> _______________________________________________
> 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 jcampbell1 at gmail.com  Wed Jun 18 12:22:56 2008
From: jcampbell1 at gmail.com (John Campbell)
Date: Wed, 18 Jun 2008 12:22:56 -0400
Subject: [nycphp-talk] Smarty templating replacement - Dwoo
Message-ID: <8f0676b40806180922q3726d5e4sc808efcb426cdbc6@mail.gmail.com>

I have noticed a lot of people on the list mention Smarty, and I found
an replacement for Smarty called Dwoo that looks really promising.  It
is still beta, but I have tried it and it fixes a bunch of Smarty
problems.

The website is http://dwoo.org/

A couple of features worth mentioning:

1. Dwoo is designed to be a drop in replacement for Smarty, so in
theory, all of your existing smarty templates will work with Dwoo.
2. Dwoo supports template inheritance.
3. Dwoo can be set to treat brackets followed by a space as a literal
bracket.  This is really helpful for css/javascript.

Template inheritance is a really awesome feature that was borrowed
from the Django templating system.  Template inheritance is similar to
Symfony's slots, but more elegant and powerful.  With CakePhp, I see
crap like embedding the title and required external css/javascript
files in the controller, which is just plain wrong, but I don't know
of a good work around.  With template inheritance, it is easy for a
inner page template to modify the page title, add an additional
stylesheet, or embed javascript at the top or the bottom of the page,
while using a common master template.

I am not affiliated with this project in anyway... I just stumbled
upon it, and thought others may find it interesting.

Cheers,
-John C.


From zippy1981 at gmail.com  Wed Jun 18 12:32:23 2008
From: zippy1981 at gmail.com (Justin Dearing)
Date: Wed, 18 Jun 2008 12:32:23 -0400
Subject: [nycphp-talk] Smarty templating replacement - Dwoo
In-Reply-To: <8f0676b40806180922q3726d5e4sc808efcb426cdbc6@mail.gmail.com>
References: <8f0676b40806180922q3726d5e4sc808efcb426cdbc6@mail.gmail.com>
Message-ID: <5458db3c0806180932o50ea2ae1o838a27daffbd04ca@mail.gmail.com>

On Wed, Jun 18, 2008 at 12:22 PM, John Campbell  wrote:
> I have noticed a lot of people on the list mention Smarty, and I found
> an replacement for Smarty called Dwoo that looks really promising.  It
> is still beta, but I have tried it and it fixes a bunch of Smarty
> problems.

> 3. Dwoo can be set to treat brackets followed by a space as a literal
> bracket.  This is really helpful for css/javascript.

I want to dig up my old css through smarty code and give this a try,


From paulcheung at tiscali.co.uk  Wed Jun 18 12:41:31 2008
From: paulcheung at tiscali.co.uk (PaulCheung)
Date: Wed, 18 Jun 2008 17:41:31 +0100
Subject: [POSSIBLE SPAM] Re: [nycphp-talk] Setting up outgoing mail using Linux
References: <78c6bd860802061106l16b27889me6e52f24c47968cd@mail.gmail.com>	<003001c8cb4d$59ff8f20$0301a8c0@joe><484FEE60.7000106@polymerdb.org>
	<2CFD33A3350E453190365A0A1D3AAD76@X9183>
Message-ID: 

Thanks everybody for your help and suggestions. The problem is now sorted

Paul



 


From david at davidmintz.org  Wed Jun 18 15:37:01 2008
From: david at davidmintz.org (David Mintz)
Date: Wed, 18 Jun 2008 15:37:01 -0400
Subject: [POSSIBLE SPAM] Re: [nycphp-talk] Setting up outgoing mail using
	Linux
In-Reply-To: 
References: <78c6bd860802061106l16b27889me6e52f24c47968cd@mail.gmail.com>
	
	<003001c8cb4d$59ff8f20$0301a8c0@joe>
	
	<484FEE60.7000106@polymerdb.org>
	<2CFD33A3350E453190365A0A1D3AAD76@X9183>
	
Message-ID: <721f1cc50806181237k2e36e35m5a6ec74abbe4f43e@mail.gmail.com>

And the solution was.... ?

On Wed, Jun 18, 2008 at 12:41 PM, PaulCheung 
wrote:

> Thanks everybody for your help and suggestions. The problem is now sorted
>
> Paul
>
>
>
-- 
David Mintz
http://davidmintz.org/

The subtle source is clear and bright
The tributary streams flow through the darkness
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From paulcheung at tiscali.co.uk  Wed Jun 18 17:49:46 2008
From: paulcheung at tiscali.co.uk (PaulCheung)
Date: Wed, 18 Jun 2008 22:49:46 +0100
Subject: [nycphp-talk] Setting up outgoing mail usingLinux
References: <78c6bd860802061106l16b27889me6e52f24c47968cd@mail.gmail.com><003001c8cb4d$59ff8f20$0301a8c0@joe><484FEE60.7000106@polymerdb.org><2CFD33A3350E453190365A0A1D3AAD76@X9183>
	<721f1cc50806181237k2e36e35m5a6ec74abbe4f43e@mail.gmail.com>
Message-ID: 

The problem was not really technical. It was the to do with the way 1and1 have setup their webhosting packages. the Linux package I was using, the so named business package, doesn't support sending emails. when I upgraded to their Linux Business-Pro package, which supports SSH, I was able to send emails from PHP applications.

Message sent!

"); } else { echo("

Message delivery failed...

"); } ?> Paul ----- Original Message ----- From: David Mintz To: NYPHP Talk Sent: Wednesday, June 18, 2008 8:37 PM Subject: Re: [POSSIBLE SPAM] Re: [nycphp-talk] Setting up outgoing mail usingLinux And the solution was.... ? On Wed, Jun 18, 2008 at 12:41 PM, PaulCheung wrote: Thanks everybody for your help and suggestions. The problem is now sorted Paul -- David Mintz http://davidmintz.org/ The subtle source is clear and bright The tributary streams flow through the darkness ------------------------------------------------------------------------------ _______________________________________________ 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 mitch.pirtle at gmail.com Wed Jun 18 21:33:07 2008 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Wed, 18 Jun 2008 21:33:07 -0400 Subject: [nycphp-talk] Chyrp? Message-ID: <330532b60806181833ub7b08b2ned508177784c5364@mail.gmail.com> Stumbled over this today, a little blogging engine in PHP: http://chyrp.net/ So, who'se used it, and why would this be a compelling choice over say Wordpress, Typo, Mephisto, Typo3, Radiant, or any of the other bazillion other blogging-ready apps out there? -- Mitch, digging the logo, considering a test install From greg.rundlett at gmail.com Thu Jun 19 00:38:22 2008 From: greg.rundlett at gmail.com (Greg Rundlett) Date: Thu, 19 Jun 2008 00:38:22 -0400 Subject: [nycphp-talk] Javascript Highlighter In-Reply-To: <1b3d2fde0806161041u10e842fn9f92b0cf108aa4ee@mail.gmail.com> References: <1b3d2fde0806161041u10e842fn9f92b0cf108aa4ee@mail.gmail.com> Message-ID: <5e2aaca40806182138iaf660dbweb9fce8339971fd1@mail.gmail.com> On Mon, Jun 16, 2008 at 1:41 PM, Aniesh joseph wrote: > Hi All, > > I wish to create a Javascript Highlighter. While we are reading some texts > on a webpage, I need to select certain words or paragraphs. When I click on > the selected portion, it need to remain as unselected. When we move to next > page, no need to keep this selection. > > Any ideas would be great! > > Thank you all. You are talking about manipulating text selection ranges. I didn't find an off-the-shelf complete solution, but found several useful sources to help you. http://www.quirksmode.org/dom/range_intro.html /** * This code is a derivative work of Moodle * and is licensed under the GPL-v2 */ function getSel(){ var seltext; if (window.getSelection) seltext=window.getSelection(); else if (window.document.getSelection) seltext=window.document.getSelection(); else if (window.document.selection) seltext=window.document.selection.createRange().text; return seltext; } seltext = ''; if(window.frames.length == 0){ // Can't read from another frame, JS security seltext=getSel(); } if(seltext!='') { // create a new element at the point of click, wrapping the selection document.selection.createRange().pasteHTML("" + seltext + ""); // problem is that pasteHTML is for IE only // I didn't have a chance to work out a full solution or test this code } This older solution may help you achieve cross-platform compatibility with older browsers http://www.faqts.com/knowledge_base/view.phtml/aid/32427 This hack may be useful http://www.codingforums.com/showthread.php?t=62782 -- Greg Rundlett http://freephile.openid.org From paul at devonianfarm.com Thu Jun 19 15:34:34 2008 From: paul at devonianfarm.com (paul at devonianfarm.com) Date: Thu, 19 Jun 2008 15:34:34 -0400 (EDT) Subject: [nycphp-talk] List of E_STRICT errors? Message-ID: <41343.192.168.1.70.1213904074.webmail@192.168.1.70> Is there a list of E_STRICT errors kicking around the web or am I going to have to grep the PHP source code? -------------- next part -------------- An HTML attachment was scrubbed... URL: From paulcheung at tiscali.co.uk Sat Jun 21 16:07:15 2008 From: paulcheung at tiscali.co.uk (PaulCheung) Date: Sat, 21 Jun 2008 21:07:15 +0100 Subject: [nycphp-talk] Disabling browser back button. Message-ID: <2478B6E0A5284FE9858A62B8DC64C4DD@X9183> Hi Can anybody suggest a way around this problem or point me in the right direction? I have a genuinely legitimate reason to disable the browser back button, or at least the pages that have anything to do with the PHP application I am working on. Here is the scenario A user likes the on-line service provided and decides to purchase it using one of the standard on-line payment methods, typically PayPal. Once payment has been made, confirmed and received, the user is directed to an customer account creation page. Here the user enters the usual standard account details such as Name, Address, Telephone Number, User-Id, Password and so on. The application then generates an access code, which is automatically emailed from the application to the customer. As a precaution all PHP sessions variables are cleared, the "customer account creation page" is cleared and the user steered away from the signup part of the application to Google's main navigation page (this last bit being for testing purposes). Here in lays the problem. After initial creation of the account code and when the back button is pressed a few times, the user eventually return to the "customer account creation page". Which is the step immediately following payment validation. At this point, if the customer wants to create another new account all she or he has to do is, fill it the form once more, press submit and another new account is created. If the user just keeps doing this, he or she just keeps on creating new accounts. I have tried to disable the browser back button; but am unable to. I have researched JavaScript solutions and learnt, if the user turns off JavaScript, that is that. Cheers Paul From ioplex at gmail.com Sat Jun 21 19:39:25 2008 From: ioplex at gmail.com (Michael B Allen) Date: Sat, 21 Jun 2008 19:39:25 -0400 Subject: [nycphp-talk] Disabling browser back button. In-Reply-To: <2478B6E0A5284FE9858A62B8DC64C4DD@X9183> References: <2478B6E0A5284FE9858A62B8DC64C4DD@X9183> Message-ID: <78c6bd860806211639g51e0769ci2e0487aff21c09e1@mail.gmail.com> On 6/21/08, PaulCheung wrote: > Hi > > Can anybody suggest a way around this problem or point me in the right > direction? > > I have a genuinely legitimate reason to disable the browser back button, or > at least the pages that have anything to do with the PHP application I am > working on. > > Here is the scenario > A user likes the on-line service provided and decides to purchase it using > one of the standard on-line payment methods, typically PayPal. > > Once payment has been made, confirmed and received, the user is directed to > an customer account creation page. Here the user enters the usual standard > account details such as Name, Address, Telephone Number, User-Id, Password > and so on. > > The application then generates an access code, which is automatically > emailed from the application to the customer. As a precaution all PHP > sessions variables are cleared, the "customer account creation page" is > cleared and the user steered away from the signup part of the application to > Google's main navigation page (this last bit being for testing purposes). > > Here in lays the problem. After initial creation of the account code and > when the back button is pressed a few times, the user eventually return to > the "customer account creation page". Which is the step immediately > following payment validation. At this point, if the customer wants to create > another new account all she or he has to do is, fill it the form once more, > press submit and another new account is created. If the user just keeps > doing this, he or she just keeps on creating new accounts. > > I have tried to disable the browser back button; but am unable to. I have > researched JavaScript solutions and learnt, if the user turns off > JavaScript, that is that. The way this is usually dealt with is to use an HTTP redirect after the action is performed. And / or when you create a form you can add a hidden field containing a random token. The server stores a copy of the random token in the user's session. When the form is submitted, check to make sure the token matches the one in the session. If it does destroy it and perform the desired operation. Now if the user later backs into the form and submits it the token will be old and you'll know not to process the POST request action. Mike -- Michael B Allen PHP Active Directory SPNEGO SSO http://www.ioplex.com/ From tim_lists at o2group.com Sun Jun 22 00:36:45 2008 From: tim_lists at o2group.com (Tim Lieberman) Date: Sat, 21 Jun 2008 22:36:45 -0600 Subject: [nycphp-talk] Disabling browser back button. In-Reply-To: <2478B6E0A5284FE9858A62B8DC64C4DD@X9183> References: <2478B6E0A5284FE9858A62B8DC64C4DD@X9183> Message-ID: On Jun 21, 2008, at 2:07 PM, PaulCheung wrote: > Hi > > Can anybody suggest a way around this problem or point me in the > right direction? > > I have a genuinely legitimate reason to disable the browser back > button, or at least the pages that have anything to do with the PHP > application I am working on. > > Here is the scenario > A user likes the on-line service provided and decides to purchase > it using one of the standard on-line payment methods, typically > PayPal. > > Once payment has been made, confirmed and received, the user is > directed to an customer account creation page. Here the user enters > the usual standard account details such as Name, Address, Telephone > Number, User-Id, Password and so on. Why do you make them wait to create their account until after they pay? Aren't Name, Address, and phone necessary for payment processing anyway? > > The application then generates an access code, which is > automatically emailed from the application to the customer. As a > precaution all PHP sessions variables are cleared, the "customer > account creation page" is cleared and the user steered away from > the signup part of the application to Google's main navigation page > (this last bit being for testing purposes). A precaution against what? > > Here in lays the problem. After initial creation of the account > code and when the back button is pressed a few times, the user > eventually return to the "customer account creation page". Which is > the step immediately following payment validation. At this point, > if the customer wants to create another new account all she or he > has to do is, fill it the form once more, press submit and another > new account is created. If the user just keeps doing this, he or > she just keeps on creating new accounts. I assume you keep some record of the payment, that has some identifier. Like maybe a primary key on some "payments" table in a database. So why not associate accounts with payment_ids, and force accounts to have a unique payment id? Adding that sort of simple rule to the account-creation process would solve things. If someone backs up and tries to come through again, you don't create a second account, you just tell the user "Nice try, buddy..." > > I have tried to disable the browser back button; but am unable to. > I have researched JavaScript solutions and learnt, if the user > turns off JavaScript, that is that. Of course. You're trying to solve an authorization problem at the user interface level. If something is supposed to be impossible, it's better to make the underlying model or business logic enforce the model. Trying to enforce it by tightly controlling stuff that happens in the user's browser is ineffective, because you don't control the user's browser. But you do control what happens on the server. And you can make sure the server only allows one account per payment in just a few lines of code. From tedd at sperling.com Sun Jun 22 11:26:59 2008 From: tedd at sperling.com (tedd) Date: Sun, 22 Jun 2008 11:26:59 -0400 Subject: [nycphp-talk] Disabling browser back button. In-Reply-To: <2478B6E0A5284FE9858A62B8DC64C4DD@X9183> References: <2478B6E0A5284FE9858A62B8DC64C4DD@X9183> Message-ID: At 9:07 PM +0100 6/21/08, PaulCheung wrote: >Hi > >Can anybody suggest a way around this problem or point me in the >right direction? Use a token. Tedd -- this is very similar to the way you showed me how to use the boolean 'step' value to exit the error checking loop if no error conditions were found -- and just as simple to understand and brutally effective...I love it! Im this scenario, if the user for whatever reason needed to reload the page because of a malfunction, they'd need to establish a whole new session and start over with everything...and presumably pay a second time to be able to set up another account, which would dissuade them very effectively. In the Paypal app I recently built, I had them create an account and/or log in using their unique email address before they were able to purchase, and then captured their Paypal transaction ID (tx) upon redirect, inserted it into a table along with the ID of the product they had purchased, and authenticated against that for the download. -- Kristina > At 9:07 PM +0100 6/21/08, PaulCheung wrote: > >Hi > > > >Can anybody suggest a way around this problem or point me in the > >right direction? > > Use a token. > > > $token = isset($_SESSION['token']) ? $_SESSION['token'] : 0; > > if ($token == 1) > { > exit(); > } > > $_SESSION['token']) == 1; > > That way the page will be loaded just once per session. > > Cheers, > > tedd > -- > ------- > http://sperling.com http://ancientstones.com http://earthstones.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 tedd at sperling.com Sun Jun 22 15:17:07 2008 From: tedd at sperling.com (tedd) Date: Sun, 22 Jun 2008 15:17:07 -0400 Subject: [nycphp-talk] Disabling browser back button. In-Reply-To: <1214154636.15501@coral.he.net> References: <1214154636.15501@coral.he.net> Message-ID: -- Kristina At 10:10 AM -0700 6/22/08, Kristina Anderson wrote: >Tedd -- this is very similar to the way you showed me how to use the >boolean 'step' value to exit the error checking loop if no error >conditions were found -- and just as simple to understand and brutally >effective...I love it! I'm glad that you saw what I was doing. But, in all honesty I write simple code because I look at problems that way -- I'm simple. The complex I find too difficult to write so I pound on a problem until it breaks into a series of simple parts that I can understand. Then I just assemble the solution. >Im this scenario, if the user for whatever reason needed to reload the >page because of a malfunction, they'd need to establish a whole new >session and start over with everything...and presumably pay a second >time to be able to set up another account, which would dissuade them >very effectively. > >In the Paypal app I recently built, I had them create an account and/or >log in using their unique email address before they were able to >purchase, and then captured their Paypal transaction ID (tx) upon >redirect, inserted it into a table along with the ID of the product >they had purchased, and authenticated against that for the download. What you have described is very similar to what I do. I know you know how to do this, but for the benefit of any readers, I submit the following to consider. Before any purchase can be considered, the user must identify his/herself via a logon, membership, or something that allows the process to know this is a real person who wants to purchase something. After that step, then comes the selection of product followed by the payment process. Once the flow is in the payment process, you don't want the user to hit the back button NOR refresh their browser. So, I make a very prominent warning (large red type) on that page that says if the user clicks the back button or refreshes their browser, then that action will cancel their transaction and they will have to start again. Some actually read the warning and follow directions. To accomplish this, I incorporate token checking (as I previously described) to make sure they don't refresh the page as well as using javascript to disable the submit button -- Ialso don't want users to click the purchase button several times. It's really surprising how impatient users can get (click, click, click.....). But, regardless of what you do, you still have to plan that users won't follow directions and that's the reason for the token. Additionally, what happens IF the user has javascript turned off and can click the purchase button more than once? In that case, I also add another token routine for submitting data to PayPal. That way no matter what happens (many clicks, refresh, back button), the request for authorization is sent to PayPal only ONCE. Oddly enough, that still isn't the end of it. You must also contact PayPal (or whatever payment processing you are using) and ask them for "double transaction suppression" to be turned ON at their end. That way, it's almost certain that users won't be charged for the same item more than once. After all that, you should receive an authorization back from PayPal that everything is OK. So, record that authorization and whatever other user information you need and supply the user user with their purchase. But note, it is very important that you drop ALL the credit card information you have gathered in your script within 24 hours. Keeping any specific cc information beyond 24 hours is against the law. As you well know, with a little work and understanding how the process works, you can anticipate what user may do; gather the data you need; and make the sale. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From paulcheung at tiscali.co.uk Sun Jun 22 15:21:32 2008 From: paulcheung at tiscali.co.uk (PaulCheung) Date: Sun, 22 Jun 2008 20:21:32 +0100 Subject: [nycphp-talk] Disabling browser back button. References: <2478B6E0A5284FE9858A62B8DC64C4DD@X9183> Message-ID: Hi Tedd, Sorry to say it didn't work or at least I couldn't get it to work. As you see the only thing I did was to tidy up the last $_SESSION['token']. however I did try using True and False which disabled me completely. create account/access codes Cheers - Paul ----- Original Message ----- From: "tedd" To: "NYPHP Talk" Sent: Sunday, June 22, 2008 4:26 PM Subject: Re: [nycphp-talk] Disabling browser back button. > At 9:07 PM +0100 6/21/08, PaulCheung wrote: >>Hi >> >>Can anybody suggest a way around this problem or point me in the right >>direction? > > Use a token. > > > $token = isset($_SESSION['token']) ? $_SESSION['token'] : 0; > > if ($token == 1) > { > exit(); > } > > $_SESSION['token']) == 1; > > That way the page will be loaded just once per session. > > Cheers, > > tedd > -- > ------- > http://sperling.com http://ancientstones.com http://earthstones.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 tedd at sperling.com Sun Jun 22 16:13:51 2008 From: tedd at sperling.com (tedd) Date: Sun, 22 Jun 2008 16:13:51 -0400 Subject: [nycphp-talk] Disabling browser back button. In-Reply-To: References: <2478B6E0A5284FE9858A62B8DC64C4DD@X9183> Message-ID: >Hi Tedd, >Sorry to say it didn't work or at least I couldn't get it to work. >As you see the only thing I did was to tidy up the last >$_SESSION['token']. however I did try using True and False which >disabled me completely. > > $token = isset($_SESSION['token']) ? $_SESSION['token'] : 0; > if ($token == 1) > { > exit(); > } >$_SESSION['token'] = 1; >?> > > create account/access codes > > >Cheers - Paul Paul: It does work -- here's a working example: http://webbytedd.com/bb/one-time/ You can only see it once per session and it uses exactly the code I posted. You might take out that ob_start() and try it again. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From ka at kacomputerconsulting.com Sun Jun 22 16:59:37 2008 From: ka at kacomputerconsulting.com (Kristina Anderson) Date: Sun, 22 Jun 2008 13:59:37 -0700 Subject: [nycphp-talk] Disabling browser back button. Message-ID: <1214168377.10750@coral.he.net> Excellent points. And I will pass the 'double transaction suppression' info on to my client so he can enable this. With reard to storing credit card info on customers, I'd in general strongly advise any of my clients against going there -- with Paypal's (or whatever vendor they end up using) unique transaction ID that information is available in some form I'd imagine if requested...and also, that is what you are paying Paypal a percentage of the transaction for, so you don't have to trouble yourself about needing to store or request such information on your end of the app flow. Interestingly, on this project I learned that there is a thing called Paypal Micro, where on transactions under a dollar they only charge 9 or 10 cents per transaction, which is the only thing that makes it cost effective to sell such cheap products through Paypal, as ordinarily they'd swoop in and take a higher percentage of such a small sale. To use it, any client has to set up a new Paypal merchant account separate from any non-Micro account they might already have, which is a pain, but worth it overall with the money saved. In my app, the actual Paypal form is submitted by an 'invisible' PHP page that is never accessible to the user...so it's theoretically impossible for them to send it twice...I think. In any event, this app is a single item click & pay thing so from an error handling perspective it didn't require as much as some more complicated Paypal stuff would. This is the same method I'm incorporating to handle the error checking routine for the two form pages...passing things into hidden fields and submitting a second 'invisible' form with the values from the first form after the error conditions are satisfied. I appreciate your coding style, Tedd, because I too am a huge fan of keeping it simple -- and also of 'brute force' methods that probably are not the most elegant of solutions but the important things (to me) are 1. they work; and 2. when I go back to revisit code I wrote months or years ago, it's easier for me to understand what I was doing and reuse or enhance it. -- Kristina > -- Kristina > > At 10:10 AM -0700 6/22/08, Kristina Anderson wrote: > >Tedd -- this is very similar to the way you showed me how to use the > >boolean 'step' value to exit the error checking loop if no error > >conditions were found -- and just as simple to understand and brutally > >effective...I love it! > > I'm glad that you saw what I was doing. But, in all honesty I write > simple code because I look at problems that way -- I'm simple. The > complex I find too difficult to write so I pound on a problem until > it breaks into a series of simple parts that I can understand. Then I > just assemble the solution. > > > >Im this scenario, if the user for whatever reason needed to reload the > >page because of a malfunction, they'd need to establish a whole new > >session and start over with everything...and presumably pay a second > >time to be able to set up another account, which would dissuade them > >very effectively. > > > >In the Paypal app I recently built, I had them create an account and/or > >log in using their unique email address before they were able to > >purchase, and then captured their Paypal transaction ID (tx) upon > >redirect, inserted it into a table along with the ID of the product > >they had purchased, and authenticated against that for the download. > > > What you have described is very similar to what I do. I know you know > how to do this, but for the benefit of any readers, I submit the > following to consider. > > Before any purchase can be considered, the user must identify > his/herself via a logon, membership, or something that allows the > process to know this is a real person who wants to purchase something. > > After that step, then comes the selection of product followed by the > payment process. > > Once the flow is in the payment process, you don't want the user to > hit the back button NOR refresh their browser. So, I make a very > prominent warning (large red type) on that page that says if the user > clicks the back button or refreshes their browser, then that action > will cancel their transaction and they will have to start again. Some > actually read the warning and follow directions. > > To accomplish this, I incorporate token checking (as I previously > described) to make sure they don't refresh the page as well as using > javascript to disable the submit button -- Ialso don't want users to > click the purchase button several times. It's really surprising how > impatient users can get (click, click, click.....). > > But, regardless of what you do, you still have to plan that users > won't follow directions and that's the reason for the token. > > Additionally, what happens IF the user has javascript turned off and > can click the purchase button more than once? In that case, I also > add another token routine for submitting data to PayPal. That way no > matter what happens (many clicks, refresh, back button), the request > for authorization is sent to PayPal only ONCE. > > Oddly enough, that still isn't the end of it. You must also contact > PayPal (or whatever payment processing you are using) and ask them > for "double transaction suppression" to be turned ON at their end. > That way, it's almost certain that users won't be charged for the > same item more than once. > > After all that, you should receive an authorization back from PayPal > that everything is OK. So, record that authorization and whatever > other user information you need and supply the user user with their > purchase. But note, it is very important that you drop ALL the credit > card information you have gathered in your script within 24 hours. > Keeping any specific cc information beyond 24 hours is against the > law. > > As you well know, with a little work and understanding how the > process works, you can anticipate what user may do; gather the data > you need; and make the sale. > > Cheers, > > tedd > > -- > ------- > http://sperling.com http://ancientstones.com http://earthstones.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 brian at realm3.com Mon Jun 23 10:28:08 2008 From: brian at realm3.com (Brian D.) Date: Mon, 23 Jun 2008 10:28:08 -0400 Subject: [nycphp-talk] Disabling browser back button. In-Reply-To: References: <2478B6E0A5284FE9858A62B8DC64C4DD@X9183> Message-ID: I don't think there's ever a good reason to disable the "Back" button in a web application. If you think it necessary, it's time to rethink your process. That said, there are ways to handle it on the back end so that the user can't submit twice. Have you considered setting a session value at a point that allows creating the account, and then clearing the value once the account has been created? Otherwise someone could just clear their session data and go back to add more accounts. -Brian D. [snip] -- realm3 web applications [realm3.com] freelance consulting, application development phone: (917) 512-3594 fax: (440) 744-3559 From aaron at aarond.com Tue Jun 24 09:35:56 2008 From: aaron at aarond.com (Aaron Deutsch) Date: Tue, 24 Jun 2008 09:35:56 -0400 Subject: [nycphp-talk] mysql only host Message-ID: I always seem to have slow MySQL databases with my reseller and shared hosting. Is there such a thing as MySQL only hosting? If so any recommendations? thanks, Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: From d at ingk.com Tue Jun 24 09:50:02 2008 From: d at ingk.com (Damion Hankejh (ingk)) Date: Tue, 24 Jun 2008 09:50:02 -0400 Subject: [nycphp-talk] mysql only host In-Reply-To: References: Message-ID: <058201c8d601$34b9c3c0$9e2d4b40$@com> We had a horrendous experience with Mediatemple and just moved to Peer1.com. Using their dedicated virtual (dv) 3.0 Rage package with MySQL was a nightmare. Queries that would usually execute in well under .5 seconds would sometimes run well over a minute - clearly unrelated to the application being custom built, and obviously a result of poor management on Mediatemple's part. Granted, we are paying more for our own dedicated servers at Peer1 now, but we would have upgraded to private servers at Mediatemple if their (dv) 3.0 Rage service and accompanying "VIP Support" hadn't been such a joke. Damion I always seem to have slow MySQL databases with my reseller and shared hosting. Is there such a thing as MySQL only hosting? If so any recommendations? thanks, Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcampbell1 at gmail.com Tue Jun 24 10:13:37 2008 From: jcampbell1 at gmail.com (John Campbell) Date: Tue, 24 Jun 2008 10:13:37 -0400 Subject: [nycphp-talk] mysql only host In-Reply-To: References: Message-ID: <8f0676b40806240713v4ca2b0f5s2825a7aefac4bfdb@mail.gmail.com> On Tue, Jun 24, 2008 at 9:35 AM, Aaron Deutsch wrote: > I always seem to have slow MySQL databases with my reseller and shared > hosting. Is there such a thing as MySQL only hosting? If so any > recommendations? Your database should be located in the same datacenter as your application code, otherwise you are going to be in a world of hurt... imagine doing 10 synchronous queries with 100ms of connection latency. If you are using something like CakePHP, your application could be doing 100's of queries per page view. I really like Slicehost if you want something cheap. You get a Xen instance starting at $20 a month, and you can upgrade the instance or add instances with about 2 mouse clicks. -John C. From ajai at bitblit.net Tue Jun 24 10:48:01 2008 From: ajai at bitblit.net (Ajai Khattri) Date: Tue, 24 Jun 2008 10:48:01 -0400 (EDT) Subject: [nycphp-talk] mysql only host In-Reply-To: <8f0676b40806240713v4ca2b0f5s2825a7aefac4bfdb@mail.gmail.com> Message-ID: On Tue, 24 Jun 2008, John Campbell wrote: > I really like Slicehost if you want something cheap. You get a Xen > instance starting at $20 a month, and you can upgrade the instance or > add instances with about 2 mouse clicks. +1 for virtual servers. I pay $20/month for a Xen host with Linode (linode.com). They have a nice control panel where you can build disk images, boot/shutdown/reboot machines, do upgrades etc. They also give you access to the virtual console of your server via screen. -- Aj. From mitch.pirtle at gmail.com Tue Jun 24 13:43:29 2008 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Tue, 24 Jun 2008 13:43:29 -0400 Subject: [nycphp-talk] mysql only host In-Reply-To: <8f0676b40806240713v4ca2b0f5s2825a7aefac4bfdb@mail.gmail.com> References: <8f0676b40806240713v4ca2b0f5s2825a7aefac4bfdb@mail.gmail.com> Message-ID: <330532b60806241043n584b2068qe42b32effc5c2480@mail.gmail.com> On Tue, Jun 24, 2008 at 10:13 AM, John Campbell wrote: > On Tue, Jun 24, 2008 at 9:35 AM, Aaron Deutsch wrote: >> I always seem to have slow MySQL databases with my reseller and shared >> hosting. Is there such a thing as MySQL only hosting? If so any >> recommendations? > > Your database should be located in the same datacenter as your > application code, otherwise you are going to be in a world of hurt... > imagine doing 10 synchronous queries with 100ms of connection latency. > If you are using something like CakePHP, your application could be > doing 100's of queries per page view. > > I really like Slicehost if you want something cheap. You get a Xen > instance starting at $20 a month, and you can upgrade the instance or > add instances with about 2 mouse clicks. Agreed on that approach for small sites, and also can recommend ServerBeach for dedicated hosting. For a couple hundred bucks you can get a dual, dual-cpu system more than capable of running everything for moderate sites. -- Mitch From matt at atopia.net Tue Jun 24 23:12:08 2008 From: matt at atopia.net (Matt Juszczak) Date: Tue, 24 Jun 2008 23:12:08 -0400 (EDT) Subject: [nycphp-talk] mysql only host In-Reply-To: References: Message-ID: <20080624231156.A7557@mercury.atopia.net> Aaron, What is your email address? Your return address is bouncing. Please reply to me off list. -MJ On Tue, 24 Jun 2008, Aaron Deutsch wrote: > I always seem to have slow MySQL databases with my reseller and shared > hosting. Is there such a thing as MySQL only hosting? If so any > recommendations? > > thanks, > Aaron > > > !DSPAM:4860f840479591342191123! > From gatzby3jr at gmail.com Wed Jun 25 09:52:28 2008 From: gatzby3jr at gmail.com (Brian O'Connor) Date: Wed, 25 Jun 2008 09:52:28 -0400 Subject: [nycphp-talk] [OT] Webfaction hosting Message-ID: <29da5d150806250652icfd1d6ar30136f736ce1d580@mail.gmail.com> Hello, I was wondering if anyone had any experience with WebFaction for their shared hosting plans. I'm thinking of switching to them after my current plan expires, but I haven't heard much about them besides what they say on their own website. The only concern of mine is their limited disk space, but in reality I probably won't use 10GB. I'm looking at their Shared 1 plan at http://www.webfaction.com/services/hosting Any advice would be greatly appreciated. I'm currently at Hostdime and am not very satisfied. -- Brian O'Connor -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at zaunere.com Mon Jun 30 09:10:14 2008 From: lists at zaunere.com (Hans Zaunere) Date: Mon, 30 Jun 2008 09:10:14 -0400 Subject: [nycphp-talk] Postgres Presentations Message-ID: <010501c8dab2$a28777c0$e7966740$@com> Hi all, Bruce's presentation, as well as links to his other, very technical and useful PGSQL presentations, are online: http://www.nyphp.org/content/presentations/ Thanks Bruce! --- Hans Zaunere / President / New York PHP www.nyphp.org / ?www.nyphp.com From ashaw at polymerdb.org Mon Jun 30 09:32:29 2008 From: ashaw at polymerdb.org (Allen Shaw) Date: Mon, 30 Jun 2008 09:32:29 -0400 Subject: [nycphp-talk] mysql slow Internet connection trickery Message-ID: <4868E06D.9090603@polymerdb.org> Hi Gang, Banging my head against this wall, wondered if you all might know something I don't. (It does happen often, I find.) I need to provide several users with access to an online php/mysq database app, where the user's Internet connection is intermittently slow or down. We've used this (custom-written) database app quite well for a long time, but this Internet connection, combined with these users' need for real-time data to make moment-to-moment decisions -- it makes for a tricky challenge: either they suffer with using the system over this slow connection, or I find a way to bridge the gap for them. FYI, this is a hotel rooms management system being used to check guests in as they arrive. The Internet connection we've been given here in Paraguay is pretty spotty. We're in several hotels in town and need the data shared in real time across all locations, so something like just running a local copy seems like its not an option. Still, I'm trying to make a way for the user to have "mostly current" data from the central system, and also enter data without waiting for each request to be approved. I have been thinking you could run a local copy of the system on the user's laptop, then have some helper program in the back that communicates with the central server to send and receive data asynchronously, pushing user changes and polling for new data from the central server as fast as the Internet connection allows. The idea is that, except for a few minutes of latency, the user would never know the difference. The big problem I'm running into is managing potential data collisions: data changes from two or more users that conflict with each other but aren't discovered until later because of the latency. As far as I can see this is an application-specific problem -- that is, it's up to the developer (me) to make the application smart enough to watch conflicts and prevent collisions. But, having wracked my brain over this for a few days already, I finally thought it would be wise to at least ask somebody if there might be an easier way, some product that's designed to serve as a proxy or to ease this kind of 'intermittent connection' situation. A mysql product named "mysql proxy" got my attention because of its name, but from what I can tell it doesn't do what I'm describing here. You all have any thoughts? - Allen -- Allen Shaw slidePresenter (http://slides.sourceforge.net) From patrick at hexane.org Mon Jun 30 09:45:36 2008 From: patrick at hexane.org (Patrick May) Date: Mon, 30 Jun 2008 09:45:36 -0400 Subject: [nycphp-talk] mysql slow Internet connection trickery In-Reply-To: <4868E06D.9090603@polymerdb.org> References: <4868E06D.9090603@polymerdb.org> Message-ID: Allen, Maybe there's a way of storing data in a structured manner on the filesystem, so that you can use subversion / etc to manage changes to that data? It might be a bad idea, but it's the first thing I thought of. ~ p On Mon, Jun 30, 2008 at 9:32 AM, Allen Shaw wrote: > Hi Gang, > > Banging my head against this wall, wondered if you all might know something > I don't. (It does happen often, I find.) > > I need to provide several users with access to an online php/mysq database > app, where the user's Internet connection is intermittently slow or down. > We've used this (custom-written) database app quite well for a long time, > but this Internet connection, combined with these users' need for real-time > data to make moment-to-moment decisions -- it makes for a tricky challenge: > either they suffer with using the system over this slow connection, or I > find a way to bridge the gap for them. > > FYI, this is a hotel rooms management system being used to check guests in > as they arrive. The Internet connection we've been given here in Paraguay > is pretty spotty. We're in several hotels in town and need the data shared > in real time across all locations, so something like just running a local > copy seems like its not an option. > > Still, I'm trying to make a way for the user to have "mostly current" data > from the central system, and also enter data without waiting for each > request to be approved. I have been thinking you could run a local copy of > the system on the user's laptop, then have some helper program in the back > that communicates with the central server to send and receive data > asynchronously, pushing user changes and polling for new data from the > central server as fast as the Internet connection allows. The idea is that, > except for a few minutes of latency, the user would never know the > difference. > > The big problem I'm running into is managing potential data collisions: > data changes from two or more users that conflict with each other but aren't > discovered until later because of the latency. As far as I can see this is > an application-specific problem -- that is, it's up to the developer (me) to > make the application smart enough to watch conflicts and prevent collisions. > > But, having wracked my brain over this for a few days already, I finally > thought it would be wise to at least ask somebody if there might be an > easier way, some product that's designed to serve as a proxy or to ease this > kind of 'intermittent connection' situation. A mysql product named "mysql > proxy" got my attention because of its name, but from what I can tell it > doesn't do what I'm describing here. > > You all have any thoughts? > > - Allen > > -- > Allen Shaw > 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 > -- Patrick May 135 Oak Street New York, NY 11222 +1 (347) 232-5208 patrick at hexane.org http://www.hexane.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From anoland at indigente.net Mon Jun 30 09:50:38 2008 From: anoland at indigente.net (anoland at indigente.net) Date: Mon, 30 Jun 2008 06:50:38 -0700 (PDT) Subject: [nycphp-talk] mysql slow Internet connection trickery Message-ID: <3297664206.34628580@smtp.gmail.com> -----Original Message----- From: Allen Shaw Date: Monday, Jun 30, 2008 9:32 am Subject: [nycphp-talk] mysql slow Internet connection trickery To: NYPHP Talk Reply-To: NYPHP Talk Hi Gang, > >Banging my head against this wall, wondered if you all might know >something I don't. (It does happen often, I find.) > >I need to provide several users with access to an online php/mysq >database app, where the user's Internet connection is intermittently >slow or down. We've used this (custom-written) database app quite well >for a long time, but this Internet connection, combined with these >users' need for real-time data to make moment-to-moment decisions -- it >makes for a tricky challenge: either they suffer with using the system >over this slow connection, or I find a way to bridge the gap for them. > >FYI, this is a hotel rooms management system being used to check guests >in as they arrive. The Internet connection we've been given here in >Paraguay is pretty spotty. We're in several hotels in town and need the >data shared in real time across all locations, so something like just >running a local copy seems like its not an option. > >Still, I'm trying to make a way for the user to have "mostly current" >data from the central system, and also enter data without waiting for >each request to be approved. I have been thinking you could run a local >copy of the system on the user's laptop, then have some helper program >in the back that communicates with the central server to send and >receive data asynchronously, pushing user changes and polling for new >data from the central server as fast as the Internet connection allows. >The idea is that, except for a few minutes of latency, the user would >never know the difference. > > >You all have any thoughts? > >- Allen > I would research Google Gears and/or Firefox's Prism (or whatever is finally got named). It would close the gap for the most part by making syncronization easier. From tedd at sperling.com Mon Jun 30 10:33:26 2008 From: tedd at sperling.com (tedd) Date: Mon, 30 Jun 2008 10:33:26 -0400 Subject: [nycphp-talk] mysql slow Internet connection trickery In-Reply-To: <4868E06D.9090603@polymerdb.org> References: <4868E06D.9090603@polymerdb.org> Message-ID: At 9:32 AM -0400 6/30/08, Allen Shaw wrote: > > >You all have any thoughts? - Allen: One word -- transactions. http://dev.mysql.com/doc/refman/5.0/en/ansi-diff-transactions.html The transaction scheme is one that solves the problems you address. The theory is simply a record doesn't get updated unless it's certain that the process will happen. Here's a tutorial on it: http://www.devshed.com/c/a/MySQL/Using-Transactions-In-MySQL-Part-1/ Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From ashaw at polymerdb.org Mon Jun 30 10:34:10 2008 From: ashaw at polymerdb.org (Allen Shaw) Date: Mon, 30 Jun 2008 10:34:10 -0400 Subject: [nycphp-talk] mysql slow Internet connection trickery In-Reply-To: <3297664206.34628580@smtp.gmail.com> References: <3297664206.34628580@smtp.gmail.com> Message-ID: <4868EEE2.4090308@polymerdb.org> anoland at indigente.net wrote: > -----Original Message----- > From: Allen Shaw > >> ... I need to provide several users with access to an online php/mysq >> database app, where the user's Internet connection is intermittently >> slow or down. ... > I would research Google Gears and/or Firefox's Prism (or whatever is finally got named). It would close the gap for the most part by making syncronization easier. Good idea. Haven't dealt with those at all yet; sounds like a possibility. Thanks, Allen -- Allen Shaw slidePresenter (http://slides.sourceforge.net) From tedd at sperling.com Mon Jun 30 11:14:44 2008 From: tedd at sperling.com (tedd) Date: Mon, 30 Jun 2008 11:14:44 -0400 Subject: [nycphp-talk] mysql slow Internet connection trickery Message-ID: Oh, and there's a part 2 as well. http://www.devshed.com/c/a/MySQL/Using-Transactions-In-MySQL-Part-2 Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From patrick at hexane.org Mon Jun 30 11:53:04 2008 From: patrick at hexane.org (Patrick May) Date: Mon, 30 Jun 2008 11:53:04 -0400 Subject: [nycphp-talk] mysql slow Internet connection trickery In-Reply-To: <4868EEE2.4090308@polymerdb.org> References: <3297664206.34628580@smtp.gmail.com> <4868EEE2.4090308@polymerdb.org> Message-ID: I would point out that: 1. Transactions will not be useful if you cannot connect to the database 2. Google Gears and Prism seem to focus first on bridging the web / application space for a single user, rather than dealing with multi-way synchronization Source code control systems are explicitly designed to manage the process of synchronizing local state with a repository in a controlled fashion. Ultimately, if there is a conflict it's not just up to your application to resolve, but also your users. How do you prevent a room from being double booked? You can look at booking patterns and develop an algorithm can be developed that minimizes collisions. But who gets a room if it is double booked? That's probably a phone call or a conversation between employees. ~ p On Mon, Jun 30, 2008 at 10:34 AM, Allen Shaw wrote: > anoland at indigente.net wrote: > >> -----Original Message----- >> From: Allen Shaw >> >> >>> ... I need to provide several users with access to an online php/mysq >>> database app, where the user's Internet connection is intermittently slow or >>> down. ... >>> >> I would research Google Gears and/or Firefox's Prism (or whatever is >> finally got named). It would close the gap for the most part by making >> syncronization easier. >> > Good idea. Haven't dealt with those at all yet; sounds like a possibility. > > Thanks, > Allen > > -- > Allen Shaw > 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 > -- Patrick May 135 Oak Street New York, NY 11222 +1 (347) 232-5208 patrick at hexane.org http://www.hexane.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From ashaw at polymerdb.org Mon Jun 30 11:59:10 2008 From: ashaw at polymerdb.org (Allen Shaw) Date: Mon, 30 Jun 2008 11:59:10 -0400 Subject: [nycphp-talk] mysql slow Internet connection trickery In-Reply-To: References: Message-ID: <486902CE.3050906@polymerdb.org> tedd wrote: > Oh, and there's a part 2 as well. > > http://www.devshed.com/c/a/MySQL/Using-Transactions-In-MySQL-Part-2 Hi Tedd, If I understand the intro correctly, that article is about standard mysql transactions, but the problem I'm having won't really be solved with usual START TRANSACTION / COMMIT transactions. As an analogy, consider a instant messenger session between two people on very slow connections. Transactions can make sure that when one types a message, that message arrives to its recipient intact -- the sentence is not broken up or mangled. The latency problem, though, is when these two people are sending consecutive messages to each other but not receiving responses in real time. It becomes vaudeville very quickly: (Are you coming? Will you be late? Yes. Oh, I mean no. Well I meant that other question. Whatever.) The problem here is that the user's actions are dependent on the live data, and the live data can be changed by multiple users at once, with the various users remaining some minutes (or possibly more) behind the actual live data. It's a problem that we already have to guard against in a multi-user environment, but the latency period, and the potential for collisions, is hugely increased. Looks like I have some coding to do. -- Allen Shaw slidePresenter (http://slides.sourceforge.net) From ashaw at polymerdb.org Mon Jun 30 12:06:36 2008 From: ashaw at polymerdb.org (Allen Shaw) Date: Mon, 30 Jun 2008 12:06:36 -0400 Subject: [nycphp-talk] mysql slow Internet connection trickery In-Reply-To: References: <3297664206.34628580@smtp.gmail.com> <4868EEE2.4090308@polymerdb.org> Message-ID: <4869048C.90201@polymerdb.org> Patrick May wrote: > I would point out that: > > 1. Transactions will not be useful if you cannot connect to the database > 2. Google Gears and Prism seem to focus first on bridging the web / > application space for a single user, rather than dealing with > multi-way synchronization > > Source code control systems are explicitly designed to manage the > process of synchronizing local state with a repository in a controlled > fashion. Ultimately, if there is a conflict it's not just up to your > application to resolve, but also your users. > > How do you prevent a room from being double booked? You can look at > booking patterns and develop an algorithm can be developed that > minimizes collisions. But who gets a room if it is double booked? > That's probably a phone call or a conversation between employees. Hi Patrick, Yes, you've summarized it perfectly. I was already thinking of version control systems as a similar situation: the conflicts have to be resolved by a human being who's aware of the real world situation. The app just can't know which commit to take. Thought it wouldn't hurt to ask for a magic bullet, but you're stating what I figured already: this is application-specific and it's up to me to program the collision detection and resolution methods. Thanks, Allen -- Allen Shaw slidePresenter (http://slides.sourceforge.net) From patrick at hexane.org Mon Jun 30 12:18:04 2008 From: patrick at hexane.org (Patrick May) Date: Mon, 30 Jun 2008 12:18:04 -0400 Subject: [nycphp-talk] mysql slow Internet connection trickery In-Reply-To: <4869048C.90201@polymerdb.org> References: <3297664206.34628580@smtp.gmail.com> <4868EEE2.4090308@polymerdb.org> <4869048C.90201@polymerdb.org> Message-ID: Another note.... On Mon, Jun 30, 2008 at 12:06 PM, Allen Shaw wrote: > Thought it wouldn't hurt to ask for a magic bullet, but you're stating what > I figured already: this is application-specific and it's up to me to program > the collision detection and resolution methods. Though version control systems don't provide the whole solution, they can provide quite a bit of background information to a users: 1. is the local data up to date? 2. if we can't connect, how old is the local data? 3. if we can connect, are there any conflicts? 4. there is a conflict, when and who committed the conflicting data? If it is possible to structure the data so that diff can produce the change sets, then you can get the benefit of the network optimization that tools like Subversion provide. But this is a data-representation issue, and I guess you're concerned that flat files won't give you enough complexity to represent the business. ~ p -- Patrick May 135 Oak Street New York, NY 11222 +1 (347) 232-5208 patrick at hexane.org http://www.hexane.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From tedd at sperling.com Mon Jun 30 12:25:49 2008 From: tedd at sperling.com (tedd) Date: Mon, 30 Jun 2008 12:25:49 -0400 Subject: [nycphp-talk] mysql slow Internet connection trickery In-Reply-To: <486902CE.3050906@polymerdb.org> References: <486902CE.3050906@polymerdb.org> Message-ID: At 11:59 AM -0400 6/30/08, Allen Shaw wrote: >tedd wrote: >>Oh, and there's a part 2 as well. >> >>http://www.devshed.com/c/a/MySQL/Using-Transactions-In-MySQL-Part-2 >Hi Tedd, > >If I understand the intro correctly, that article is about standard >mysql transactions, but the problem I'm having won't really be >solved with usual START TRANSACTION / COMMIT transactions. As an >analogy, consider a instant messenger session between two people on >very slow connections. Transactions can make sure that when one >types a message, that message arrives to its recipient intact -- the >sentence is not broken up or mangled. The latency problem, though, >is when these two people are sending consecutive messages to each >other but not receiving responses in real time. It becomes >vaudeville very quickly: (Are you coming? Will you be late? Yes. >Oh, I mean no. Well I meant that other question. Whatever.) >The problem here is that the user's actions are dependent on the >live data, and the live data can be changed by multiple users at >once, with the various users remaining some minutes (or possibly >more) behind the actual live data. It's a problem that we already >have to guard against in a multi-user environment, but the latency >period, and the potential for collisions, is hugely increased. >Looks like I have some coding to do. Hi Allen: I think I understand your problem. You don't want a user being given a confirmation of a room when in fact the confirmation has not actually been confirmed because of RACE conditions. You could have the situation where several users are looking at the same open room (provided by the most "up-to-date" information) and believing that they could reserve it. But, in fact the only one who will be able to reserve the room will be the one who get's there first -- the classic RACE problem. While you feel that transactions will not solve the problem you face, but the problem you face is the same problem that Transactions face. I think any solution you create, will resemble the method that transactions use. Please read part 2 above. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From patrick at hexane.org Mon Jun 30 12:48:15 2008 From: patrick at hexane.org (Patrick May) Date: Mon, 30 Jun 2008 12:48:15 -0400 Subject: [nycphp-talk] mysql slow Internet connection trickery In-Reply-To: References: <486902CE.3050906@polymerdb.org> Message-ID: tedd, While you feel that transactions will not solve the problem you face, but > the problem you face is the same problem that Transactions face. I think any > solution you create, will resemble the method that transactions use. The odd issue is connectivity. If there is no network connectivity to the primary mysql server, how can one use transactions to manage synchronization? Cheers, Patrick -- Patrick May 135 Oak Street New York, NY 11222 +1 (347) 232-5208 patrick at hexane.org http://www.hexane.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramons at gmx.net Mon Jun 30 13:00:29 2008 From: ramons at gmx.net (David Krings) Date: Mon, 30 Jun 2008 13:00:29 -0400 Subject: [nycphp-talk] mysql slow Internet connection trickery In-Reply-To: <4868E06D.9090603@polymerdb.org> References: <4868E06D.9090603@polymerdb.org> Message-ID: <4869112D.1090304@gmx.net> One other thing to look at is if keeping a database connection is the most effective use of the limited bandwidth. Maybe sending the (partial) queries/responses as text via sockets has less overhead. You may also want to analyse the workflow more and see which information really needs to be shared and which one can remain local. If you only need to exchange the booked/available status for rooms then passing on the guest information is not necessary. Overall, you can minimize the impact, but there is no way to use PHP or some other tool to code a better connection. David From bzcoder at bzcode.com Mon Jun 30 13:58:02 2008 From: bzcoder at bzcode.com (bzcoder) Date: Mon, 30 Jun 2008 13:58:02 -0400 Subject: [nycphp-talk] mysql slow Internet connection trickery In-Reply-To: <4868E06D.9090603@polymerdb.org> References: <4868E06D.9090603@polymerdb.org> Message-ID: <48691EAA.3040307@bzcode.com> Allen Shaw wrote: > Hi Gang, > > Banging my head against this wall, wondered if you all might know > something I don't. (It does happen often, I find.) Well, it all depends on how you engineer the thing. But something to look into is "replication" I used it a lot in Lotus Notes, and you can use it with MySQL. So if you can place your database/web servers local to your clients, they can use their local server to make the updates, with everything replicated back to a master database. This is in NO WAY a magic bullet. Conflicts won't be magically handled, but what you will have is that all conflicts will be RECORDED and tracked. Than you can have one or more people who are authorized to use the "fix" functions and go in and flag entrees with the latest timestamp to give them preference. What this does is: 1) Saves you the moaning and groaning about the flaky connection - now everyone has a local server which gives them maximum speed. 2) Saves you the hassle of deciding how to flag conflicts and track them, instead you just need to implement a PHP solution to rectify the problems. From bzcoder at bzcode.com Mon Jun 30 14:09:21 2008 From: bzcoder at bzcode.com (bzcoder) Date: Mon, 30 Jun 2008 14:09:21 -0400 Subject: [nycphp-talk] mysql slow Internet connection trickery In-Reply-To: <48691EAA.3040307@bzcode.com> References: <4868E06D.9090603@polymerdb.org> <48691EAA.3040307@bzcode.com> Message-ID: <48692151.5050308@bzcode.com> bzcoder wrote: > Allen Shaw wrote: >> Hi Gang, >> >> Banging my head against this wall, wondered if you all might know >> something I don't. (It does happen often, I find.) > > Well, it all depends on how you engineer the thing. > > But something to look into is "replication" Head, meet wall. Sorry, here is a link on MySQL replication/conflict resolution: http://dev.mysql.com/doc/refman/5.1/en/mysql-cluster-replication-conflict-resolution.html Something to note, it will not always be something that is just a simple "pick a timestamp" for conflicts, so this system will take some time and thought. For example: Customer A: A Record(Name, Address, Favorite sport, whatever) Customer B: B Record(Name, Address, Favorite sport, whatever) Room RC: RC Record(Floor, keycode, type, etc) Room RD: RD Record(Floor, keycode, type, etc) Reservations: Customer A reserved room RC from June 1st to June7th Customer B reserves room RC from June 5st to June 9th Reserved Records: Room RC, June 1st, Customer A Room RC, June 2nd Customer A Room RC, June 3rd, Customer A Room RC, June 4th Customer A Room RC, June 5th, (Repl conflict! Customer A or B) Room RC, June 6th, (Repl conflict! Customer A or B) Room RC, June 7th, (Repl conflict! Customer A or B) Room RC, June 8th, Customer B Room RC, June 9th, Customer B The only conflict above would potentially be in the Reserved Records, all the other records can be updated independently. So not only do the 3 conflicted records need to be updated, but whichever customer loses must be re-registered for another room(and gap days reserved must be released. If B was given the room, than the 1-4th records for customer A must be purged) In the end, the /system/ you use for catching conflicts will matter less than the application you build to resolve them. From ashaw at polymerdb.org Mon Jun 30 16:18:10 2008 From: ashaw at polymerdb.org (Allen Shaw) Date: Mon, 30 Jun 2008 16:18:10 -0400 Subject: [nycphp-talk] mysql slow Internet connection trickery In-Reply-To: References: <486902CE.3050906@polymerdb.org> Message-ID: <48693F82.7030405@polymerdb.org> Patrick May wrote: > The odd issue is connectivity. If there is no network connectivity to > the primary mysql server, how can one use transactions to manage > synchronization? In fact there /is/ connectivity. It's just bone-numbingly slow and occassionally non-existent. -- Allen Shaw slidePresenter (http://slides.sourceforge.net) From scott at crisscott.com Mon Jun 30 16:24:25 2008 From: scott at crisscott.com (Scott Mattocks) Date: Mon, 30 Jun 2008 16:24:25 -0400 Subject: [nycphp-talk] mysql slow Internet connection trickery In-Reply-To: <48693F82.7030405@polymerdb.org> References: <486902CE.3050906@polymerdb.org> <48693F82.7030405@polymerdb.org> Message-ID: <486940F9.9000607@crisscott.com> Allen Shaw wrote: > In fact there /is/ connectivity. It's just bone-numbingly slow and > occassionally non-existent. This probably isn't the answer you want to hear, but maybe the clients money would be better spent on upgrading to a real connection instead of on a development resource trying to fix a non-software problem with software? -- Scott Mattocks Author: Pro PHP-GTK http://www.crisscott.com From rolan at omnistep.com Mon Jun 30 16:39:06 2008 From: rolan at omnistep.com (Rolan Yang) Date: Mon, 30 Jun 2008 16:39:06 -0400 Subject: [nycphp-talk] mysql slow Internet connection trickery In-Reply-To: <48693F82.7030405@polymerdb.org> References: <486902CE.3050906@polymerdb.org> <48693F82.7030405@polymerdb.org> Message-ID: <4869446A.3050203@omnistep.com> Allen Shaw wrote: > Patrick May wrote: >> The odd issue is connectivity. If there is no network connectivity to >> the primary mysql server, how can one use transactions to manage >> synchronization? > In fact there /is/ connectivity. It's just bone-numbingly slow and > occassionally non-existent. Not sure how expensive telephone landlines are in Paraguay, but you might want to roll out your own network with on-demand dialups.. the same way credit card terminals work. ~Rolan From ashaw at polymerdb.org Mon Jun 30 17:12:38 2008 From: ashaw at polymerdb.org (Allen Shaw) Date: Mon, 30 Jun 2008 17:12:38 -0400 Subject: [nycphp-talk] mysql slow Internet connection trickery In-Reply-To: <486940F9.9000607@crisscott.com> References: <486902CE.3050906@polymerdb.org> <48693F82.7030405@polymerdb.org> <486940F9.9000607@crisscott.com> Message-ID: <48694C46.80102@polymerdb.org> Scott Mattocks wrote: > This probably isn't the answer you want to hear, but maybe the clients > money would be better spent on upgrading to a real connection instead > of on a development resource trying to fix a non-software problem with > software? Actually, you're right, this is the true solution. This is the tragedy I find in many non-profits (this client included): lack of business experience in the executive team can lead to a lack of appreciation for the limitations of space, time, and manpower. Ah, well... - A. -- Allen Shaw slidePresenter (http://slides.sourceforge.net) From ashaw at polymerdb.org Mon Jun 30 17:24:23 2008 From: ashaw at polymerdb.org (Allen Shaw) Date: Mon, 30 Jun 2008 17:24:23 -0400 Subject: [nycphp-talk] mysql slow Internet connection trickery In-Reply-To: <4869446A.3050203@omnistep.com> References: <486902CE.3050906@polymerdb.org> <48693F82.7030405@polymerdb.org> <4869446A.3050203@omnistep.com> Message-ID: <48694F07.1090804@polymerdb.org> Rolan Yang wrote: > Allen Shaw wrote: >> Patrick May wrote: >>> The odd issue is connectivity. If there is no network connectivity >>> to the primary mysql server, how can one use transactions to manage >>> synchronization? >> In fact there /is/ connectivity. It's just bone-numbingly slow and >> occassionally non-existent. > > Not sure how expensive telephone landlines are in Paraguay, but you > might want to roll out your own network with on-demand dialups.. the > same way credit card terminals work. > In a lot of cases that might work. For us, the thing is we're here for a single event of 5 days long (with a week or so of on-site prep before that). The network is dependent on local providers, vendors, local staff, local budget, etc. Our team usually works in US, Japan, Korea, etc. where the band is a little broader. If we could come up with a system that works in this environment, we'd be much more ready to show up on short notice in future similar situations. - A. -- Allen Shaw slidePresenter (http://slides.sourceforge.net) From nynj.tech at hotmail.com Mon Jun 30 17:32:34 2008 From: nynj.tech at hotmail.com (chad qian) Date: Mon, 30 Jun 2008 17:32:34 -0400 Subject: [nycphp-talk] url pass array as parameter Message-ID: Hi, I want to pass an unknow array cart[]: to "gallery" page through url link: My url is:gallery.php?final=cart[] On gallery.php page I want to output everything in this array My code is: $finalcart=array(); $finalcart=$_get['final'] for(var i=0;i From tim_lists at o2group.com Mon Jun 30 17:39:48 2008 From: tim_lists at o2group.com (Tim Lieberman) Date: Mon, 30 Jun 2008 15:39:48 -0600 Subject: [nycphp-talk] url pass array as parameter In-Reply-To: References: Message-ID: <135159E1-03C5-4523-8ED7-1EFA94E168D5@o2group.com> Passing arrays in a query string is the wrong way to do it. Too many things can go wrong. You could try creating a form, and sticking the serialize()d array value in to a hidden field. Then POST the form to your gallery page. '; ?> And in gallery.php HTH -Tim On Jun 30, 2008, at 3:32 PM, chad qian wrote: > Hi, > I want to pass an unknow array cart[]: to "gallery" page through > url link: > > My url is:gallery.php?final=cart[] > > On gallery.php page > I want to output everything in this array > > My code is: > $finalcart=array(); > $finalcart=$_get['final'] > for(var i=0;i print finalcart[i]; > > > Maybe my code is wrong.I only want to show my need.Can anyone help > me to correct my code? > > Thanks! > > chad > > > The other season of giving begins 6/24/08. Check out the i?m > Talkathon. Check it out! > _______________________________________________ > 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: