From aaron at aarond.com Mon May 1 16:33:55 2006 From: aaron at aarond.com (aaron) Date: Mon, 01 May 2006 16:33:55 -0400 Subject: [nycphp-talk] php oracle/tomcat Message-ID: <445670B3.2060307@aarond.com> I'm trying to setup php & oracle to run on a win2k server using tomcat. The current php works but when I enable the php_oci8.dll file it hangs. I know when using IIS I had to enable an IUSER access on the oracle folder, but not with Tomcat. Am I missing an installation step? Thanks, Aaron D. From gisolfi at us.ibm.com Wed May 3 06:29:31 2006 From: gisolfi at us.ibm.com (Dan Gisolfi) Date: Wed, 3 May 2006 06:29:31 -0400 Subject: [nycphp-talk] Mashup Contest @ NYPHPCon 2006 Message-ID: An HTML attachment was scrubbed... URL: From yournway at gmail.com Thu May 4 09:24:29 2006 From: yournway at gmail.com (Alberto dos Santos) Date: Thu, 4 May 2006 14:24:29 +0100 Subject: [nycphp-talk] PHP Poo Message-ID: Hello all. I've just upgraded MySQL from 3.2.33 to 4.1.8 on a Fedora Core 2. SQL is working nice, php 4.3.10 too, jut not together as php can't load the mysql extension, can you help me? Thanks. -- Alberto dos Santos Consultor em TI IT Consultant http://www.yournway.com A internet ? sua maneira. The Internet your own way. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at jack-scott.com Thu May 4 09:59:09 2006 From: lists at jack-scott.com (Jack Scott) Date: Thu, 04 May 2006 09:59:09 -0400 Subject: [nycphp-talk] PHP Poo In-Reply-To: References: Message-ID: <1146751149.22505.7.camel@localhost> did you compile php or use an RPM? If you compiled from source did you set the --wtih-mysql flag? can you connect to mysql from the command line? There is an issue with how MySQL < 4 && MySQL >= 4.1 handle the passwords. Can you post the errors you recieve? On Thu, 2006-05-04 at 14:24 +0100, Alberto dos Santos wrote: > Hello all. > > I've just upgraded MySQL from 3.2.33 to 4.1.8 on a Fedora Core 2. > SQL is working nice, php 4.3.10 too, jut not together as php can't > load the mysql extension, can you help me? > > Thanks. > > -- > Alberto dos Santos > Consultor em TI > IT Consultant > > http://www.yournway.com > A internet ? sua maneira. > The Internet your own way. > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > 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 jonbaer at jonbaer.com Thu May 4 10:03:08 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Thu, 4 May 2006 10:03:08 -0400 Subject: [nycphp-talk] PHP Poo In-Reply-To: References: Message-ID: <2703BEC6-760F-46A6-BC78-F3E2111696B2@jonbaer.com> Hi, You need to load the MySQLi extension instead I beleive ... http://us3.php.net/mysqli You most likely need to enable it in your php.ini ... Also, if you compiled from source you should pull up your phpinfo() and copy the Configure Command and recompile w/ it + add this: --with-mysqli=/path/to/my/mysql_config - Jon On May 4, 2006, at 9:24 AM, Alberto dos Santos wrote: > Hello all. > > I've just upgraded MySQL from 3.2.33 to 4.1.8 on a Fedora Core 2. > SQL is working nice, php 4.3.10 too, jut not together as php can't > load the mysql extension, can you help me? > > Thanks. > > -- > Alberto dos Santos > Consultor em TI > IT Consultant > > http://www.yournway.com > A internet ? sua maneira. > The Internet your own way. > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > 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 yournway at gmail.com Thu May 4 10:27:07 2006 From: yournway at gmail.com (Alberto dos Santos) Date: Thu, 4 May 2006 15:27:07 +0100 Subject: [nycphp-talk] PHP Poo In-Reply-To: <1146751149.22505.7.camel@localhost> References: <1146751149.22505.7.camel@localhost> Message-ID: PHP was already there, I'm afraid... On 04/05/06, Jack Scott wrote: > > did you compile php or use an RPM? If you compiled from source did you set > the --wtih-mysql flag? > > can you connect to mysql from the command line? There is an issue with > how MySQL < 4 && MySQL >= 4.1 handle the passwords. > > Can you post the errors you recieve? > > > > On Thu, 2006-05-04 at 14:24 +0100, Alberto dos Santos wrote: > > Hello all. > > I've just upgraded MySQL from 3.2.33 to 4.1.8 on a Fedora Core 2. > SQL is working nice, php 4.3.10 too, jut not together as php can't load > the mysql extension, can you help me? > > Thanks. > > -- > Alberto dos Santos > Consultor em TI > IT Consultant > > http://www.yournway.com > A internet ? sua maneira. > The Internet your own way. > > _______________________________________________New York PHP Community Talk Mailing Listhttp://lists.nyphp.org/mailman/listinfo/talkNew York PHP Conference and Expo 2006http://www.nyphpcon.comShow Your Participation in New York PHPhttp://www.nyphp.org/show_participation.php > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > -- Alberto dos Santos Consultor em TI IT Consultant http://www.yournway.com A internet ? sua maneira. The Internet your own way. -------------- next part -------------- An HTML attachment was scrubbed... URL: From krook at us.ibm.com Thu May 4 10:49:06 2006 From: krook at us.ibm.com (Daniel Krook) Date: Thu, 4 May 2006 10:49:06 -0400 Subject: [nycphp-talk] PHP Poo In-Reply-To: <2703BEC6-760F-46A6-BC78-F3E2111696B2@jonbaer.com> Message-ID: > Hi, > > You need to load the MySQLi extension instead I beleive ... > ... > - Jon mysqli only works with PHP 5, he's using 4.3.10. The mysql extension will work with MySQL 4.1 & 5, though it won't let you take advantage of some features those versions offer. Daniel Krook, Content Tools Developer Global Production Services - Tools, ibm.com From max at neuropunks.org Thu May 4 12:08:44 2006 From: max at neuropunks.org (max) Date: Thu, 4 May 2006 11:08:44 -0500 Subject: [nycphp-talk] PHP Poo In-Reply-To: References: <1146751149.22505.7.camel@localhost> Message-ID: <20060504160844.GA25032@neuropunks.org> do ldd /usr/local/bin/php and ldd /usr/local/apache/libexec/libphp4.so (or whichever/whereever apache module is) You will be able to see if its compiled with libmysqlclient Which OS is this, and which errors do you get? On Thu, May 04, 2006 at 03:27:07PM +0100, Alberto dos Santos wrote: > PHP was already there, I'm afraid... > > On 04/05/06, Jack Scott wrote: > > > >did you compile php or use an RPM? If you compiled from source did you set > >the --wtih-mysql flag? > > > >can you connect to mysql from the command line? There is an issue with > >how MySQL < 4 && MySQL >= 4.1 handle the passwords. > > > >Can you post the errors you recieve? > > > > > > > >On Thu, 2006-05-04 at 14:24 +0100, Alberto dos Santos wrote: > > > >Hello all. > > > >I've just upgraded MySQL from 3.2.33 to 4.1.8 on a Fedora Core 2. > >SQL is working nice, php 4.3.10 too, jut not together as php can't load > >the mysql extension, can you help me? > > > >Thanks. > > > >-- > >Alberto dos Santos > >Consultor em TI > >IT Consultant > > > >http://www.yournway.com > >A internet ? sua maneira. > >The Internet your own way. > > > >_______________________________________________New York PHP Community Talk > >Mailing Listhttp://lists.nyphp.org/mailman/listinfo/talkNew York PHP > >Conference and Expo 2006http://www.nyphpcon.comShow Your Participation in > >New York PHPhttp://www.nyphp.org/show_participation.php > > > > > >_______________________________________________ > >New York PHP Community Talk Mailing List > >http://lists.nyphp.org/mailman/listinfo/talk > >New York PHP Conference and Expo 2006 > >http://www.nyphpcon.com > >Show Your Participation in New York PHP > >http://www.nyphp.org/show_participation.php > > > > > > > > > -- > Alberto dos Santos > Consultor em TI > IT Consultant > > http://www.yournway.com > A internet ? sua maneira. > The Internet your own way. > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From max at neuropunks.org Thu May 4 12:10:16 2006 From: max at neuropunks.org (max) Date: Thu, 4 May 2006 11:10:16 -0500 Subject: [nycphp-talk] PHP Poo In-Reply-To: <20060504160844.GA25032@neuropunks.org> References: <1146751149.22505.7.camel@localhost> <20060504160844.GA25032@neuropunks.org> Message-ID: <20060504161016.GA42739@neuropunks.org> Oh sorry, Fedora Core.. Have you restarted apache after upgrade?.. Get any weird errors in error_log? On Thu, May 04, 2006 at 11:08:44AM -0500, max wrote: > do ldd /usr/local/bin/php and ldd /usr/local/apache/libexec/libphp4.so (or whichever/whereever apache module is) > You will be able to see if its compiled with libmysqlclient > Which OS is this, and which errors do you get? > > > On Thu, May 04, 2006 at 03:27:07PM +0100, Alberto dos Santos wrote: > > PHP was already there, I'm afraid... > > > > On 04/05/06, Jack Scott wrote: > > > > > >did you compile php or use an RPM? If you compiled from source did you set > > >the --wtih-mysql flag? > > > > > >can you connect to mysql from the command line? There is an issue with > > >how MySQL < 4 && MySQL >= 4.1 handle the passwords. > > > > > >Can you post the errors you recieve? > > > > > > > > > > > >On Thu, 2006-05-04 at 14:24 +0100, Alberto dos Santos wrote: > > > > > >Hello all. > > > > > >I've just upgraded MySQL from 3.2.33 to 4.1.8 on a Fedora Core 2. > > >SQL is working nice, php 4.3.10 too, jut not together as php can't load > > >the mysql extension, can you help me? > > > > > >Thanks. > > > > > >-- > > >Alberto dos Santos > > >Consultor em TI > > >IT Consultant > > > > > >http://www.yournway.com > > >A internet ? sua maneira. > > >The Internet your own way. > > > > > >_______________________________________________New York PHP Community Talk > > >Mailing Listhttp://lists.nyphp.org/mailman/listinfo/talkNew York PHP > > >Conference and Expo 2006http://www.nyphpcon.comShow Your Participation in > > >New York PHPhttp://www.nyphp.org/show_participation.php > > > > > > > > >_______________________________________________ > > >New York PHP Community Talk Mailing List > > >http://lists.nyphp.org/mailman/listinfo/talk > > >New York PHP Conference and Expo 2006 > > >http://www.nyphpcon.com > > >Show Your Participation in New York PHP > > >http://www.nyphp.org/show_participation.php > > > > > > > > > > > > > > > -- > > Alberto dos Santos > > Consultor em TI > > IT Consultant > > > > http://www.yournway.com > > A internet ? sua maneira. > > The Internet your own way. > > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > New York PHP Conference and Expo 2006 > > 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 > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From edwardpotter at gmail.com Thu May 4 12:22:47 2006 From: edwardpotter at gmail.com (edward potter) Date: Thu, 4 May 2006 12:22:47 -0400 Subject: [nycphp-talk] PHP Poo In-Reply-To: <20060504161016.GA42739@neuropunks.org> References: <1146751149.22505.7.camel@localhost> <20060504160844.GA25032@neuropunks.org> <20060504161016.GA42739@neuropunks.org> Message-ID: as an aside, YES check those log files. 99% of the time you'll find the bug there. I had a few chances in life so far to sit side by side with some hardcore kernal hackers, those guys were mind blowing at the commad line, and one thing I always noticed, they were always tailing the log files. Chatting up one guy: I'm off dude Where? Into the cage What! Yep, steel wired cage, they're locking me in 24 hours straight, no RF leakage shit. What! Yep, intel-NSA shit What! How do you get yourself up for that? I prepare a really nice bong hit before I go in. What! And they don't care? Are you fuc$ing kidding me? . . . and so it goes . . . :-) remember those log files! -ed :-) On 5/4/06, max wrote: > Oh sorry, Fedora Core.. > Have you restarted apache after upgrade?.. > Get any weird errors in error_log? > > On Thu, May 04, 2006 at 11:08:44AM -0500, max wrote: > > do ldd /usr/local/bin/php and ldd /usr/local/apache/libexec/libphp4.so (or whichever/whereever apache module is) > > You will be able to see if its compiled with libmysqlclient > > Which OS is this, and which errors do you get? > > > > > > On Thu, May 04, 2006 at 03:27:07PM +0100, Alberto dos Santos wrote: > > > PHP was already there, I'm afraid... > > > > > > On 04/05/06, Jack Scott wrote: > > > > > > > >did you compile php or use an RPM? If you compiled from source did you set > > > >the --wtih-mysql flag? > > > > > > > >can you connect to mysql from the command line? There is an issue with > > > >how MySQL < 4 && MySQL >= 4.1 handle the passwords. > > > > > > > >Can you post the errors you recieve? > > > > > > > > > > > > > > > >On Thu, 2006-05-04 at 14:24 +0100, Alberto dos Santos wrote: > > > > > > > >Hello all. > > > > > > > >I've just upgraded MySQL from 3.2.33 to 4.1.8 on a Fedora Core 2. > > > >SQL is working nice, php 4.3.10 too, jut not together as php can't load > > > >the mysql extension, can you help me? > > > > > > > >Thanks. > > > > > > > >-- > > > >Alberto dos Santos > > > >Consultor em TI > > > >IT Consultant > > > > > > > >http://www.yournway.com > > > >A internet ? sua maneira. > > > >The Internet your own way. > > > > > > > >_______________________________________________New York PHP Community Talk > > > >Mailing Listhttp://lists.nyphp.org/mailman/listinfo/talkNew York PHP > > > >Conference and Expo 2006http://www.nyphpcon.comShow Your Participation in > > > >New York PHPhttp://www.nyphp.org/show_participation.php > > > > > > > > > > > >_______________________________________________ > > > >New York PHP Community Talk Mailing List > > > >http://lists.nyphp.org/mailman/listinfo/talk > > > >New York PHP Conference and Expo 2006 > > > >http://www.nyphpcon.com > > > >Show Your Participation in New York PHP > > > >http://www.nyphp.org/show_participation.php > > > > > > > > > > > > > > > > > > > > > -- > > > Alberto dos Santos > > > Consultor em TI > > > IT Consultant > > > > > > http://www.yournway.com > > > A internet ? sua maneira. > > > The Internet your own way. > > > > > _______________________________________________ > > > New York PHP Community Talk Mailing List > > > http://lists.nyphp.org/mailman/listinfo/talk > > > New York PHP Conference and Expo 2006 > > > 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 > > New York PHP Conference and Expo 2006 > > 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 > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From lists at zaunere.com Thu May 4 12:38:19 2006 From: lists at zaunere.com (Hans Zaunere) Date: Thu, 4 May 2006 12:38:19 -0400 Subject: [nycphp-talk] FW: O'Reilly UG Program News: DSUG Discount Changes Message-ID: <007d01c66f99$26f7c7d0$700aa8c0@MobileZ> All, looks like a valuable offer from ORA. H > Get 30% off a single book or 35% off two or more books from O'Reilly, > No Starch, Paraglyph, PC Publishing, Pragmatic Bookshelf, SitePoint, > or Syngress books you purchase directly from O'Reilly. Just use code > DSUG when ordering online or by phone 800-998-9938. Free ground > shipping on orders $29.95 or more in the US. > > > Other benefits you receive when you buy directly from O'Reilly > include: > > *100% Satisfaction Guarantee* > If, for any reason, you're not completely satisfied with your > purchase, return it to us and get your money back. A return shipping > label is included with every direct purchase, and directions are > posted online in case you've misplaced it: > . > > *Safari Enabled* > Whenever possible, our books are "Safari Enabled." This means you can > access your book for free online for 45 days through the O'Reilly > Safari Bookshelf. How do you know if your book is Safari Enabled? > Turn your book over and look for the "Safari Enabled" logo on the > bottom right of the page. If it's there, flip through the last couple > pages of your book until you find directions for accessing your book > online. > > *Booktech* > Have a question about your book? O'Reilly is the only publisher that > offers tech support for books. Send an email to > and we'll help you out. Be specific: > Include the book title and page number. It's also a good idea to > include the ISBN so we know what edition you have. > > *Reader Reviews* > Our reader reviews are read by most people at O'Reilly, including Tim > O'Reilly, all our editors, as well as sales, marketing, and PR. So if > you have praise, a gripe, or ideas for improvement, writing a reader > review on oreilly.com is a sure way for your voice to be heard. Just > go to your book's catalog page on oreilly.com and click the "Write a > Review" button. > > *Book Registration* > Register your book online and we'll notify you when the book has been > updated or a new edition is available. You can also win books and > other prizes. Haven't registered your books? Just go to > . > > *Newsletters* > Our newsletters keep you updated on the latest articles, books, news, > and events. A complete list of newsletters and lists can be found at > . From max at neuropunks.org Thu May 4 13:04:13 2006 From: max at neuropunks.org (max) Date: Thu, 4 May 2006 12:04:13 -0500 Subject: [nycphp-talk] Google speaker series Message-ID: <20060504170413.GA6864@neuropunks.org> http://services.google.com/event/nyspeakerseries.html Thursday, May 11th, 2006 Come hear Jon Bentley of Avaya Labs Research share 'Tricks of the Programming Trade!' What makes a great programmer? Clever ideas can often be traced to education, experience or heredity. Sometimes, though, insights come from "tricks of the trade". This talk describes three software tricks in detail: defining the right problem, back-of-the-envelope calculations, and debugging. It also surveys several others. Discussion will range from principles to war stories, with a special bonus theorem tossed in for good measure. Audience interaction is essential. Where: Google New York 1440 Broadway, 18th Floor Located between 40th and 41st New York, NY 10018 From dwclifton at gmail.com Thu May 4 18:51:05 2006 From: dwclifton at gmail.com (Douglas Clifton) Date: Thu, 4 May 2006 18:51:05 -0400 Subject: [nycphp-talk] Mashup Contest @ NYPHPCon 2006 Message-ID: <7d6cdcb0605041551uc82a077gb56dd2a98ee211f7@mail.gmail.com> > ---------- Forwarded message ---------- > From: Dan Gisolfi > To: talk at lists.nyphp.org > Date: Wed, 3 May 2006 06:29:31 -0400 > Subject: [nycphp-talk] Mashup Contest @ NYPHPCon 2006 > > IBM is sponsoring a mashup contest at NYPHPCon 2006. > > Come to the Manhattan Cocktail Party on June 15th to demo your mashup and > review other submissions! > > Prizes include video iPods! > > For details visit: http://www.nyphpcon.com/mashup.php > > Dan Thanks Dan. http://loadaveragezero.com/app/s9y/index.php?/archives/132-NYPHP-Conference-and-Expo-2006.html -- Douglas Clifton dwclifton at gmail.com http://loadaveragezero.com/ http://loadaveragezero.com/app/s9y/ http://loadaveragezero.com/drx/rss/recent From ps at pswebcode.com Fri May 5 21:46:46 2006 From: ps at pswebcode.com (Peter Sawczynec) Date: Fri, 5 May 2006 21:46:46 -0400 Subject: [nycphp-talk] MI3 Message-ID: <000401c670ae$f0ae1a00$68e4a144@Rubicon> Warmest regards, Peter Sawczynec, Technology Director PSWebcode _Design & Interface _Ecommerce _Database Management ps at pswebcode.com 718.796.1951 www.pswebcode.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From kzimmerm at yahoo.com Sat May 6 09:07:01 2006 From: kzimmerm at yahoo.com (Kurt Zimmerman) Date: Sat, 6 May 2006 06:07:01 -0700 (PDT) Subject: [nycphp-talk] Exec format error - PHP application not running In-Reply-To: Message-ID: <20060506130701.19087.qmail@web52215.mail.yahoo.com> Greetings all; As I continue to dig into my problem here, I am having problems trying to resolve this one. I had to switch a website to a new machine. The old machine was running fine. I have everything working (from first observation). I have a perl script page that runs fine. However I have a PHP app that fails with the following error: HTTP 500 - Internal server error Internet Explorer Looking in the error log this is what I see: [Fri May 05 10:20:03 2006] [error] [client 66.249.65.40] (8)Exec format error: exec of '/var/www/html/guestbook/index.php' failed [Fri May 05 10:20:03 2006] [error] [client 66.249.65.40] Premature end of script headers: index.php I am wondering if an owner/group issue may be the problem. Mind you I just copied everything over from the old machine to the new (linux 2 linux). Being somewhat new to all of this I know I have a lot to learn. Your help is greatly appriciated. Kurt Zimmerman __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From danielc at analysisandsolutions.com Sat May 6 10:02:43 2006 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sat, 6 May 2006 10:02:43 -0400 Subject: [nycphp-talk] Exec format error - PHP application not running In-Reply-To: <20060506130701.19087.qmail@web52215.mail.yahoo.com> References: <20060506130701.19087.qmail@web52215.mail.yahoo.com> Message-ID: <20060506140243.GA6402@panix.com> On Sat, May 06, 2006 at 06:07:01AM -0700, Kurt Zimmerman wrote: > > [Fri May 05 10:20:03 2006] [error] [client > 66.249.65.40] (8)Exec format error: exec of > '/var/www/html/guestbook/index.php' failed > [Fri May 05 10:20:03 2006] [error] [client > 66.249.65.40] Premature end of script headers: > index.php This is a common error on CGI scripts. That error usually comes up because the script isn't sending a content type, eg: Content-type: text/html\n\n But this is rarely an issue with PHP because PHP sends that automatically for you. What are your settings for the following php.ini items: default_mimetype output_buffering display_errors --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From danielc at analysisandsolutions.com Sat May 6 14:51:41 2006 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sat, 06 May 2006 14:51:41 -0400 Subject: [nycphp-talk] PHP in SecurityFocus #348 Message-ID: <20060506185136.C3874DBA785@mailspool2.panix.com> These summaries are available online RSS: http://phpsec.org/projects/vulnerabilities/securityfocus.xml HTML: http://phpsec.org/projects/vulnerabilities/securityfocus.html Alerts from SecurityFocus Newsletter #348 Make sure to check out the bottom item covering some MySQL bugs. APPLICATIONS USING PHP ---------------------- Artmedic Event Index.PHP Remote File Include Vulnerability http://www.securityfocus.com/bid/17736 Network Administration Visualized Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/17734 CoolMenus Index.PHP Remote File Include Vulnerability http://www.securityfocus.com/bid/17738 Free-PHP.net Simple Poll Authentication Bypass Vulnerability http://www.securityfocus.com/bid/17771 Ruperts News Script Login.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/17758 DeltaScripts PHP Pro Publish Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/17762 Limbo CMS SQL.PHP Remote File Include Vulnerability http://www.securityfocus.com/bid/17760 PHP Newsfeed Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/17757 DMCounter Kopf.PHP Remote File Include Vulnerability http://www.securityfocus.com/bid/17756 CmScout Multiple HTML Injection Vulnerabilities http://www.securityfocus.com/bid/17796 Pinnacle Cart Index.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/17794 Invision Gallery Post.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/17793 Virtual Hosting Control System Server_day_stats.PHP Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/17790 FileProtection Express Authentication Bypass Vulnerability http://www.securityfocus.com/bid/17786 GeoBlog Viewcat.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/17784 SF-Users Username HTML Injection Vulnerability http://www.securityfocus.com/bid/17783 SBlog Search.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/17782 XDT Pro Stats.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/17781 Zenphoto Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/17779 JSBoard Login.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/17778 X7 Chat Index.PHP Local File Include Vulnerability http://www.securityfocus.com/bid/17777 JMK Picture Gallery Admin_Gallery.PHP3 Authentication Bypass Vulnerability http://www.securityfocus.com/bid/17755 PlanetGallery Gallery_admin.PHP Authentication Bypass Vulnerability http://www.securityfocus.com/bid/17753 W-Agora BBCode Script Injection Vulnerability http://www.securityfocus.com/bid/17751 TextFileBB Multiple Tag Script Injection Vulnerabilities http://www.securityfocus.com/bid/17750 PHPNuke Downloads Module SQL Injection Vulnerability http://www.securityfocus.com/bid/17749 4Images Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/17748 I-RATER Platinum Config_settings.TPL.PHP Remote File Include Vulnerability http://www.securityfocus.com/bid/17731 Thyme Search Page HTML Injection Vulnerability http://www.securityfocus.com/bid/17746 Advanced GuestBook Addentry.PHP Remote File Include Vulnerability http://www.securityfocus.com/bid/17745 Blog Mod Weblog_posting.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/17744 OpenPHPnuke Remote File Include Vulnerability http://www.securityfocus.com/bid/17772 SunShop Shopping Cart Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/17770 OrbitHYIP Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/17766 MaxTrade Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/17765 phpBB Knowledge Base Mod KB_constants.PHP Remote File Include Vulnerability http://www.securityfocus.com/bid/17763 AZNEWS News.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/17761 PostNuke Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/17743 RELATED STUFF ------------- MySQL Remote Information Disclosure and Buffer Overflow Vulnerabilities http://www.securityfocus.com/bid/17780 Upgrade to 5.0.21, 4.0.27, 4.1.19 or 5.1.10. From danielc at analysisandsolutions.com Sat May 6 14:51:39 2006 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sat, 06 May 2006 14:51:39 -0400 Subject: [nycphp-talk] PHP in SecurityFocus #347 Message-ID: <20060506185134.BDEBFDBA785@mailspool2.panix.com> These summaries are available online RSS: http://phpsec.org/projects/vulnerabilities/securityfocus.xml HTML: http://phpsec.org/projects/vulnerabilities/securityfocus.html Alerts from SecurityFocus Newsletter #347 APPLICATIONS USING PHP ---------------------- Clansys Index.PHP Remote Code Execution Vulnerability http://www.securityfocus.com/bid/17660 My Gaming Ladder Stats.PHP Remote File Include Vulnerability http://www.securityfocus.com/bid/17657 CoreNews Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/17655 Simplog ImageList.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/17653 MKPortal Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/17651 dForum Multiple Remote File Include Vulnerabilities http://www.securityfocus.com/bid/17650 Instant Photo Gallery Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/17696 Invision Power Board Search.PHP Script Injection Vulnerability http://www.securityfocus.com/bid/17695 Invision Power Board Index.PHP CK Parameter SQL Injection Vulnerability http://www.securityfocus.com/bid/17690 PHPWebFTP Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/17688 NextAge Shopping Cart Multiple HTML Injection Vulnerabilities http://www.securityfocus.com/bid/17685 Photokorn Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/17683 RateIt Rateit.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/17518 Built2go Movie Review Movie_CLS.PHP3 Remote File Include Vulnerability http://www.securityfocus.com/bid/17679 Help Center Live OSTicket Module Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/17676 FlexBB Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/17574 SL_site Gallerie.PHP Information Disclosure Vulnerability http://www.securityfocus.com/bid/17672 PHPMyAgenda Agenda.PHP3 Remote File Include Vulnerability http://www.securityfocus.com/bid/17670 SL_site Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/17667 Scry Gallery Index.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/17668 RELATED STUFF ------------- Mozilla Firefox iframe.contentWindow.focus Buffer Overflow Vulnerability http://www.securityfocus.com/bid/17671 This exists in the new 1.5.0.2 release and probably earlier releases. From kzimmerm at yahoo.com Sat May 6 20:04:20 2006 From: kzimmerm at yahoo.com (Kurt Zimmerman) Date: Sat, 6 May 2006 17:04:20 -0700 (PDT) Subject: [nycphp-talk] talk Digest, Vol 36, Issue 5 In-Reply-To: Message-ID: <20060507000420.25206.qmail@web52204.mail.yahoo.com> > Date: Sat, 6 May 2006 10:02:43 -0400 > From: Daniel Convissor > Subject: Re: [nycphp-talk] Exec format error - PHP > application not > running > To: NYPHP Talk > Message-ID: <20060506140243.GA6402 at panix.com> > Content-Type: text/plain; charset=us-ascii > > On Sat, May 06, 2006 at 06:07:01AM -0700, Kurt > Zimmerman wrote: > > > > [Fri May 05 10:20:03 2006] [error] [client > > 66.249.65.40] (8)Exec format error: exec of > > '/var/www/html/guestbook/index.php' failed > > [Fri May 05 10:20:03 2006] [error] [client > > 66.249.65.40] Premature end of script headers: > > index.php > > This is a common error on CGI scripts. That error > usually comes up > because the script isn't sending a content type, eg: > > Content-type: text/html\n\n > > But this is rarely an issue with PHP because PHP > sends that automatically > for you. What are your settings for the following > php.ini items: > > default_mimetype > output_buffering > display_errors > > --Dan > > -- > T H E A N A L Y S I S A N D S O L U T I O N S > C O M P A N Y > data intensive web and database > programming > http://www.AnalysisAndSolutions.com/ > 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 > f: 718-854-0409 > > > ------------------------------ > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk default_mimetype = "text/html" output_buffering = Off display_errors = Off __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From danielc at analysisandsolutions.com Sun May 7 09:32:26 2006 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sun, 7 May 2006 09:32:26 -0400 Subject: [nycphp-talk] talk Digest, Vol 36, Issue 5 In-Reply-To: <20060507000420.25206.qmail@web52204.mail.yahoo.com> References: <20060507000420.25206.qmail@web52204.mail.yahoo.com> Message-ID: <20060507133226.GA3133@panix.com> Kurt: On Sat, May 06, 2006 at 05:04:20PM -0700, Kurt Zimmerman wrote: > > Date: Sat, 6 May 2006 10:02:43 -0400 > > From: Daniel Convissor > > > > On Sat, May 06, 2006 at 06:07:01AM -0700, Kurt > > Zimmerman wrote: > > > > > > [Fri May 05 10:20:03 2006] [error] [client > > > 66.249.65.40] (8)Exec format error: exec of > > > '/var/www/html/guestbook/index.php' failed > > > [Fri May 05 10:20:03 2006] [error] [client > > > 66.249.65.40] Premature end of script headers: > > > index.php > > default_mimetype = "text/html" > output_buffering = Off > display_errors = Off That's what I thought. Sounds like you're sending some sort of regular output before the headers are done going out. Turn display errors on (or look in your _PHP_ error logs if you have them on) and you'll likeley get an error message that will help you track down where. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From suzerain at suzerain.com Sun May 7 16:45:27 2006 From: suzerain at suzerain.com (Marc Antony Vose) Date: Sun, 7 May 2006 16:45:27 -0400 Subject: [nycphp-talk] AJAX and character encoding In-Reply-To: <28324-18545@sneakemail.com> References: <009801c659bd$14fc2e00$68e4a144@Rubicon> <28386-14478@sneakemail.com> <28324-18545@sneakemail.com> Message-ID: Hi all: I've run into a perplexing problem. I'm dealing with a situation with a client where all of their content is being dumped from an old version of FileMaker (5.5), and it is coming out as windows-1252 encoded. Though I always suggest that my clients have text encoded in UTF-8, since it is then prepared for internationalization in a sensible way, in this instance, I dealt with the windows encoding in order to save myself the headache. However, we ran into a site feature of theirs that basically required AJAX, because they wanted to display an endless bunch of data in a small place without a page reload required to see more items. I didn't know until I built the feature that AJAX requests default to UTF-8. Of course, it seems that most browsers detect that the page the content is coming into is encoded as windows 1252...except...you guessed it...Internet Explorer for Windows. So, in that browser, my extended characters are being mangled. Some searching around uncovered this blog article which outlines a potential workaround: http://www.taylanpince.com/blog/AJAX-and-Multibyte-Character-Support.html The problem is, the workaround relies on the mb_string functions, which unfortunately are not active on the server I have to work on. So, the question is....am I SOL, or has anyone here ever devised a cleverer solution to this problem? Of course, my preferred solution is to just have all the content be UTF-8 encoded...I'm also speaking with the client to see if his programmer can dump out the data in that format. But I'm trying to hedge my bets. Thanks, -- Marc Antony Vose http://www.suzerain.com/ Imagination is more important than knowledge. -- Albert Einstein From tedd at sperling.com Mon May 8 09:22:47 2006 From: tedd at sperling.com (tedd) Date: Mon, 8 May 2006 09:22:47 -0400 Subject: [nycphp-talk] AJAX and character encoding In-Reply-To: References: <009801c659bd$14fc2e00$68e4a144@Rubicon> <28386-14478@sneakemail.com> <28324-18545@sneakemail.com> Message-ID: At 4:45 PM -0400 5/7/06, Marc Antony Vose wrote: >However, we ran into a site feature of theirs that basically required >AJAX, because they wanted to display an endless bunch of data in a >small place without a page reload required to see more items. I >didn't know until I built the feature that AJAX requests default to >UTF-8. Marc: I didn't know that -- where's that default at? Correct me if I'm wrong, but if you are simply injecting code into a static web page, isn't it the tab of the page that sets the charset? Ajax simply prompts a php routine to prepare stuff for ajax to take back an inject into whatever you want between html tags, right? At least that's the way I'm doing it -- but, I'm simple that way. See http://xn--ovg.com -- I have several ajax examples there and I'm currently working on a similar project as you -- namely creating a static web page that takes an endless bunch of data and presents it to the viewer without reloading. I should be done with it by today, if you want to collaborate. tedd -- -------------------------------------------------------------------------------- http://sperling.com From chsnyder at gmail.com Mon May 8 09:28:09 2006 From: chsnyder at gmail.com (csnyder) Date: Mon, 8 May 2006 09:28:09 -0400 Subject: [nycphp-talk] AJAX and character encoding In-Reply-To: References: <009801c659bd$14fc2e00$68e4a144@Rubicon> <28386-14478@sneakemail.com> <28324-18545@sneakemail.com> Message-ID: On 5/7/06, Marc Antony Vose wrote: > Hi all: > > I've run into a perplexing problem. > > I'm dealing with a situation with a client where all of their content > is being dumped from an old version of FileMaker (5.5), and it is > coming out as windows-1252 encoded. > > Though I always suggest that my clients have text encoded in UTF-8, > since it is then prepared for internationalization in a sensible way, > in this instance, I dealt with the windows encoding in order to save > myself the headache. > > However, we ran into a site feature of theirs that basically required > AJAX, because they wanted to display an endless bunch of data in a > small place without a page reload required to see more items. I > didn't know until I built the feature that AJAX requests default to > UTF-8. > > Of course, it seems that most browsers detect that the page the > content is coming into is encoded as windows 1252...except...you > guessed it...Internet Explorer for Windows. So, in that browser, my > extended characters are being mangled. > > Some searching around uncovered this blog article which outlines a > potential workaround: > > http://www.taylanpince.com/blog/AJAX-and-Multibyte-Character-Support.html > > The problem is, the workaround relies on the mb_string functions, > which unfortunately are not active on the server I have to work on. > > So, the question is....am I SOL, or has anyone here ever devised a > cleverer solution to this problem? > > Of course, my preferred solution is to just have all the content be > UTF-8 encoded...I'm also speaking with the client to see if his > programmer can dump out the data in that format. But I'm trying to > hedge my bets. > > Thanks, > > -- > Marc Antony Vose > http://www.suzerain.com/ > > Imagination is more important than knowledge. > -- Albert Einstein > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > Character encoding is a state of mind... by which I mean, what happens if the page that the data is being sucked into has the 1252 encoding, in IE only? But I guess then you'd have to convert the rest of the page to 1252 for IE, which probably means you're back where you started. You could build a web service on a cheapo server that had mb_string support, and pass all the calls through that (caching them, of course). This will be an ongoing problem as all those systems which were built before unicode come due for rewrites. -- Chris Snyder http://chxo.com/ From adam at trachtenberg.com Mon May 8 10:24:07 2006 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 8 May 2006 10:24:07 -0400 (EDT) Subject: [nycphp-talk] AJAX and character encoding In-Reply-To: References: <009801c659bd$14fc2e00$68e4a144@Rubicon> <28386-14478@sneakemail.com> <28324-18545@sneakemail.com> Message-ID: On Mon, 8 May 2006, tedd wrote: > Correct me if I'm wrong, but if you are simply injecting code into a > static web page, isn't it the tab of the page that > sets the charset? > > Ajax simply prompts a php routine to prepare stuff for ajax to take > back an inject into whatever you want between html tags, right? At > least that's the way I'm doing it -- but, I'm simple that way. Without doing any research, I would also guess the setting the charset via a meta or HTTP header should fix this. If not, does you server have the iconv() extension enabled? That lets you convert between arbitrary character sets. -adam -- adam at trachtenberg.com | http://www.trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From ashaw at polymerdb.org Mon May 8 10:42:18 2006 From: ashaw at polymerdb.org (Allen Shaw) Date: Mon, 08 May 2006 09:42:18 -0500 Subject: [nycphp-talk] talk Digest, Vol 36, Issue 5 In-Reply-To: <20060507133226.GA3133@panix.com> References: <20060507000420.25206.qmail@web52204.mail.yahoo.com> <20060507133226.GA3133@panix.com> Message-ID: <445F58CA.9030301@polymerdb.org> Hi Kurt, I'm curious to hear what you find. Please let us know the outcome. Thanks, Allen Daniel Convissor wrote: > Kurt: > > On Sat, May 06, 2006 at 05:04:20PM -0700, Kurt Zimmerman wrote: > >>>Date: Sat, 6 May 2006 10:02:43 -0400 >>>From: Daniel Convissor >>> >>>On Sat, May 06, 2006 at 06:07:01AM -0700, Kurt >>>Zimmerman wrote: >>> >>>>[Fri May 05 10:20:03 2006] [error] [client >>>>66.249.65.40] (8)Exec format error: exec of >>>>'/var/www/html/guestbook/index.php' failed >>>>[Fri May 05 10:20:03 2006] [error] [client >>>>66.249.65.40] Premature end of script headers: >>>>index.php >> >> default_mimetype = "text/html" >> output_buffering = Off >> display_errors = Off > > > That's what I thought. Sounds like you're sending some sort of regular > output before the headers are done going out. Turn display errors on (or > look in your _PHP_ error logs if you have them on) and you'll likeley get > an error message that will help you track down where. > > --Dan > -- Allen Shaw Polymer (http://polymerdb.org) From edwardpotter at gmail.com Mon May 8 11:13:07 2006 From: edwardpotter at gmail.com (edward potter) Date: Mon, 8 May 2006 11:13:07 -0400 Subject: [nycphp-talk] Yes, the Forum/BB round up . . . Message-ID: hi, I'm looking for a plug and play php/mysql forum application for a web site I'm finishing up. I've looked at zillions over the years, and was never really 100% happy. I was wondering are there any new Web 2.0ish wannabes on the block? Soft and fluffy? Very lightweight? OR AKA "is there a perfect, web based forum application out here?" thanks, ed :-) From mitch.pirtle at gmail.com Mon May 8 11:57:41 2006 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Mon, 8 May 2006 11:57:41 -0400 Subject: [nycphp-talk] Yes, the Forum/BB round up . . . In-Reply-To: References: Message-ID: <330532b60605080857x28a54668t48a77a90574670a1@mail.gmail.com> On 5/8/06, edward potter wrote: > I've looked at zillions over the years, and was never really 100% > happy. I was wondering are there any new Web 2.0ish wannabes on the > block? Soft and fluffy? Very lightweight? OR AKA "is there a > perfect, web based forum application out here?" I'm a big fan of SMF from Simple Machines (www.simplemachines.org). We use it to power the Joomla community forums which are pretty high traffic and have many posts. Not aware of any newfangled modern forums out there. -- Mitch Pirtle Joomla! Core Developer Open Source Matters From ajai at bitblit.net Mon May 8 17:03:19 2006 From: ajai at bitblit.net (Ajai Khattri) Date: Mon, 08 May 2006 17:03:19 -0400 Subject: [nycphp-talk] Yes, the Forum/BB round up . . . In-Reply-To: References: Message-ID: <445FB217.2050800@bitblit.net> edward potter wrote: > hi, > > I'm looking for a plug and play php/mysql forum application for a web > site I'm finishing up. > > I've looked at zillions over the years, and was never really 100% > happy. I was wondering are there any new Web 2.0ish wannabes on the > block? Soft and fluffy? Very lightweight? OR AKA "is there a > perfect, web based forum application out here?" This is one is the sweetest Ive seen (and I mean, suuuweeeeet ;-): http;//getvanilla.com -- A From 1j0lkq002 at sneakemail.com Mon May 8 18:26:30 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Mon, 08 May 2006 15:26:30 -0700 Subject: [nycphp-talk] Yes, the Forum/BB round up . . . In-Reply-To: <445FB217.2050800@bitblit.net> References: <445FB217.2050800@bitblit.net> Message-ID: <12649-42460@sneakemail.com> Ajai Khattri ajai-at-bitblit.net |nyphp dev/internal group use| wrote: >edward potter wrote: > > >>hi, >> >>I'm looking for a plug and play php/mysql forum application for a web >>site I'm finishing up. >> >>I've looked at zillions over the years, and was never really 100% >>happy. I was wondering are there any new Web 2.0ish wannabes on the >>block? Soft and fluffy? Very lightweight? OR AKA "is there a >>perfect, web based forum application out here?" >> >> >This is one is the sweetest Ive seen (and I mean, suuuweeeeet ;-): > >http;//getvanilla.com > > > I recall looking at Vanilla a little while ago. I just looked again. There's nothing like the php talklist to keep you mindful of your PHP fundamentals (such as the use of single and double quotes..ahem) and there's nothing like XAMPP to *force* you to get it right lol. But now that I fixed vanilla's installer it looks pretty good. Still a ways from what i consider stable, and I see plenty of comments about IE rendering issues. Last time I settled on punbb.org because it was sooooo easy to get integrated and done with. Not at all web2.0-ey, but I didn't want to spend the time. -=john andrews http://www.seo-fun.com From 1j0lkq002 at sneakemail.com Mon May 8 19:54:28 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Mon, 08 May 2006 16:54:28 -0700 Subject: [nycphp-talk] Yes, the Forum/BB round up . . . Vanilla 421 from SVN In-Reply-To: <12649-42460@sneakemail.com> References: <445FB217.2050800@bitblit.net> <12649-42460@sneakemail.com> Message-ID: <1065-30364@sneakemail.com> inforequest 1j0lkq002-at-sneakemail.com |nyphp dev/internal group use| wrote: >Ajai Khattri ajai-at-bitblit.net |nyphp dev/internal group use| wrote: > > > >>edward potter wrote: >> >> >> >> >>>hi, >>> >>>I'm looking for a plug and play php/mysql forum application for a web >>>site I'm finishing up. >>> >>>I've looked at zillions over the years, and was never really 100% >>>happy. I was wondering are there any new Web 2.0ish wannabes on the >>>block? Soft and fluffy? Very lightweight? OR AKA "is there a >>>perfect, web based forum application out here?" >>> >>> >>> >>> >>This is one is the sweetest Ive seen (and I mean, suuuweeeeet ;-): >> >>http;//getvanilla.com >> >> >> >> >> > >I recall looking at Vanilla a little while ago. I just looked again. > >There's nothing like the php talklist to keep you mindful of your PHP >fundamentals (such as the use of single and double quotes..ahem) and >there's nothing like XAMPP to *force* you to get it right lol. But now >that I fixed vanilla's installer it looks pretty good. Still a ways from >what i consider stable, and I see plenty of comments about IE rendering >issues. > >Last time I settled on punbb.org because it was sooooo easy to get >integrated and done with. Not at all web2.0-ey, but I didn't want to >spend the time. > >-=john andrews >http://www.seo-fun.com > > And I will follow up that reply with more info.... I grabbed the current SVN trunk and it is far improved from 0.9.x.x "current stable" offered on getvanilla. It appears they are close to a 1.0 release. I like it so far. -=john andrews http://www.seo-fun.com From suzerain at suzerain.com Mon May 8 20:14:45 2006 From: suzerain at suzerain.com (Marc Antony Vose) Date: Mon, 8 May 2006 20:14:45 -0400 Subject: [nycphp-talk] AJAX and character encoding In-Reply-To: References: <009801c659bd$14fc2e00$68e4a144@Rubicon> <28386-14478@sneakemail.com> <28324-18545@sneakemail.com> Message-ID: At 10:24 AM -0400 5/8/06, Adam Maccabee Trachtenberg wrote: >On Mon, 8 May 2006, tedd wrote: > >> Correct me if I'm wrong, but if you are simply injecting code into a >> static web page, isn't it the tab of the page that >> sets the charset? >> >> Ajax simply prompts a php routine to prepare stuff for ajax to take >> back an inject into whatever you want between html tags, right? At >> least that's the way I'm doing it -- but, I'm simple that way. > >Without doing any research, I would also guess the setting the charset >via a meta or HTTP header should fix this. > >If not, does you server have the iconv() extension enabled? That lets >you convert between arbitrary character sets. > To clarify this for everyone: the character encoding of the page is in windows-1252. Therefore, in my opinion, the browser ought to display all the content in the character set. But, in researching AJAX, I've found that the httprequest object defaults all communication to UTF-8, no matter whether you set character encoding on it with a PHP header or not. Most browsers seem to detect this and display the proper characters. IE, though, doesn't. I assume it would display the characters fine if my entire page was set with UTF-8 encoding, but unfortunately, unless I get my client to change their system, this isn't going to happen. Here's the page in question (a rare book seller with a flair for the whimsical): http://209.160.72.79/btc/search_results?btc_keywords=grass&x=0&y=0 There is a 'module' at the top of the page with some author info. Int he middle, on the left, are some product results. Then, on the right, a narrower module contains related reference information about the author...this is the info coming into the page from AJAX (in this case, there are only a few responses, but sometimes there are dozens, in which case that module has some navigation to further items). So, Gunter Grass' name gets mangled in IE. It looks fine in all browsers that matter on OS X, and with another 'fix' I can get it to work in Firefox on Windows...but IE is just not doing it. If anyone has any ideas, feel free to enlighten me. I am trying to lobby them to perform some character encoding on the data before it gets to the server (it's a complicated system where all data is managed in an offline database, and it synchronizes with the web server via a series of cron jobs on their end and on the server). Cheers, Marc From andrew at plexpod.com Tue May 9 00:59:22 2006 From: andrew at plexpod.com (Andrew Yochum) Date: Tue, 9 May 2006 00:59:22 -0400 Subject: [nycphp-talk] Interesting PHP5 benchmarks In-Reply-To: References: Message-ID: <20060509045921.GP32737@desario.homelinux.net> Nicholas, On Sun, Apr 30, 2006 at 01:48:45PM -0400, Nicholas Tang wrote: > We were benchmarking our new beta setup - Apache 2, PHP 5, and APC 3 - > and seeing absolutely terrible results. Really, really bad. > Atrocious. As in, I had momentary fears we'd have to pick between a > rewrite in PHP 4 or double the size of our webserver farm to manage > it. ... > Amazingly, while I did tweak some settings here and there, and we did > nudge a few things in the code, the biggest change? We downgraded our > servers from Red Hat Enterprise 4 Update 3 to Update 2. That was it. > Approximately 90% of the difference in the two tests came from that > one shift - a shift that should have been completely inconsequential. ... I'm curious... What made you try downgrading from 3 to 2 to discover this? Are you using prefork or another MPM? Have you compared callgrind data when running 3 vs. 2? Please send more details and/or updates. I, for one, would like to hear more. Regards, Andrew -- Andrew Yochum Plexpod andrew at plexpod.com 718-360-0879 From ntang at communityconnect.com Tue May 9 01:24:34 2006 From: ntang at communityconnect.com (Nicholas Tang) Date: Tue, 9 May 2006 01:24:34 -0400 Subject: [nycphp-talk] Interesting PHP5 benchmarks Message-ID: Honestly, in this case, it was dumb luck - we happened to have one box that was still running U2 in the cluster we were using for stress testing. We were watching the performance of each box, and I noticed that one was consistently answering requests more quickly than the rest. The only difference was the update version of RHEL4. We then tried rolling back more machines and testing and we found that it really was faster. I haven't used callgrind, myself. We used a combination of various tools to benchmark and profile things - strace, sar, top, vmstat, iostat, etc. on the host level, apd for php, and finally, measuring things like response time, throughput, etc. on the webserver level. Finally - we're using prefork. I haven't heard particularly good things about PHP/APC running under any other MPM. (It may be improved now; I haven't checked.) Nicholas ________________________________ From: Andrew Yochum [mailto:andrew at plexpod.com] Sent: Tue 5/9/2006 12:59 AM To: Nicholas Tang Cc: NYPHP Talk Subject: Re: [nycphp-talk] Interesting PHP5 benchmarks Nicholas, On Sun, Apr 30, 2006 at 01:48:45PM -0400, Nicholas Tang wrote: > We were benchmarking our new beta setup - Apache 2, PHP 5, and APC 3 - > and seeing absolutely terrible results. Really, really bad. > Atrocious. As in, I had momentary fears we'd have to pick between a > rewrite in PHP 4 or double the size of our webserver farm to manage > it. ... > Amazingly, while I did tweak some settings here and there, and we did > nudge a few things in the code, the biggest change? We downgraded our > servers from Red Hat Enterprise 4 Update 3 to Update 2. That was it. > Approximately 90% of the difference in the two tests came from that > one shift - a shift that should have been completely inconsequential. ... I'm curious... What made you try downgrading from 3 to 2 to discover this? Are you using prefork or another MPM? Have you compared callgrind data when running 3 vs. 2? Please send more details and/or updates. I, for one, would like to hear more. Regards, Andrew -- Andrew Yochum Plexpod andrew at plexpod.com 718-360-0879 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikko.rantalainen at peda.net Tue May 9 04:05:05 2006 From: mikko.rantalainen at peda.net (Mikko Rantalainen) Date: Tue, 09 May 2006 11:05:05 +0300 Subject: [nycphp-talk] AJAX and character encoding In-Reply-To: References: <009801c659bd$14fc2e00$68e4a144@Rubicon> <28386-14478@sneakemail.com> <28324-18545@sneakemail.com> Message-ID: <44604D31.80709@peda.net> Marc Antony Vose wrote: > At 10:24 AM -0400 5/8/06, Adam Maccabee Trachtenberg wrote: >> On Mon, 8 May 2006, tedd wrote: >> >>> Correct me if I'm wrong, but if you are simply injecting code into a >>> static web page, isn't it the tab of the page that >>> sets the charset? >>> >>> Ajax simply prompts a php routine to prepare stuff for ajax to take >>> back an inject into whatever you want between html tags, right? At >>> least that's the way I'm doing it -- but, I'm simple that way. >> Without doing any research, I would also guess the setting the charset >> via a meta or HTTP header should fix this. >> >> If not, does you server have the iconv() extension enabled? That lets >> you convert between arbitrary character sets. > > To clarify this for everyone: the character encoding of the page is > in windows-1252. Therefore, in my opinion, the browser ought to > display all the content in the character set. > > But, in researching AJAX, I've found that the httprequest object > defaults all communication to UTF-8, no matter whether you set > character encoding on it with a PHP header or not. Most browsers > seem to detect this and display the proper characters. AJAX uses XMLHttpRequest() which uses XML. And XML uses UTF-8 unless transportation layer (HTTP) or the XML declaration say otherwise. If I've understood the problem correctly we have following situation: 1) HTTP server sends a text/html document X to browser with windows-1252 encoding 2) X contains javascript which uses XMLHttpRequest (a.k.a. AJAX) to query another web server Y. 3) Y returns XML document Z with HTTP without specifying header Content-Type: application/xml; charset=windows-1252 and without XML declaration such as . 4) X fails to correctly display results from Z because the browser "incorrectly" uses UTF-8. If this is the case, the only way to fix the problem is to fix Y so that it sends correct HTTP headers (or XML declaration but HTTP headers are more important to get right). The other reason for failing could be that the browser doesn't understand the non-standard character set name "windows-1252". Try to use "iso-8859-1" instead which is almost similar encoding and should be well supported. -- Mikko From kzimmerm at yahoo.com Tue May 9 04:13:17 2006 From: kzimmerm at yahoo.com (Kurt Zimmerman) Date: Tue, 9 May 2006 01:13:17 -0700 (PDT) Subject: [nycphp-talk] talk Digest, Vol 36, Issue 6 In-Reply-To: Message-ID: <20060509081317.9265.qmail@web52213.mail.yahoo.com> Message: 4 Date: Sun, 7 May 2006 09:32:26 -0400 From: Daniel Convissor Subject: Re: [nycphp-talk] talk Digest, Vol 36, Issue 5 To: NYPHP Talk Message-ID: <20060507133226.GA3133 at panix.com> Content-Type: text/plain; charset=us-ascii Kurt: On Sat, May 06, 2006 at 05:04:20PM -0700, Kurt Zimmerman wrote: > > Date: Sat, 6 May 2006 10:02:43 -0400 > > From: Daniel Convissor > > > > On Sat, May 06, 2006 at 06:07:01AM -0700, Kurt > > Zimmerman wrote: > > > > > > [Fri May 05 10:20:03 2006] [error] [client > > > 66.249.65.40] (8)Exec format error: exec of > > > '/var/www/html/guestbook/index.php' failed > > > [Fri May 05 10:20:03 2006] [error] [client > > > 66.249.65.40] Premature end of script headers: > > > index.php > > default_mimetype = "text/html" > output_buffering = Off > display_errors = Off That's what I thought. Sounds like you're sending some sort of regular output before the headers are done going out. Turn display errors on (or look in your _PHP_ error logs if you have them on) and you'll likeley get an error message that will help you track down where. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 ----------------------------- Dan, et el; For some reason I am not able to get a log to come out. I've double checked the settings in the php.ini file and it looks good. Several other items. I've piped the script thru PHP to produce the html to a file. The output file looks fine. Also I have imbedded PHP code in my index.htm main page which runs fine. Still searching. Kurt __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From rahmin at insite-out.com Tue May 9 12:46:12 2006 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Tue, 09 May 2006 12:46:12 -0400 Subject: [nycphp-talk] MySQL 4 vs. 5 and character encoding (?) In-Reply-To: <44604D31.80709@peda.net> Message-ID: Having a hard time figuring this one out.. We moved a large data store from MySQL 5.0.2-alpha to MySQL 4.1.12 All the high-bit chars -- which were stored fine in MySQL 5 -- are being mangled in MySQL 4. So, for example, if an editor pastes text from MS Word or another language, instead of storing the actual characters I get a bunch of gobbeldy-gook. (Unfortunately, 5 isn't up anymore, so I can't compare collation.) Does anyone have any insight as to what may be going on? (I had routines all up and running to clean high-bit chars that are now choking on their mangled equiv.) From codebowl at gmail.com Tue May 9 15:26:46 2006 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 9 May 2006 15:26:46 -0400 Subject: [nycphp-talk] [OT] - Computer For Sale w/ 21" widescreen display Message-ID: <8d9a42800605091226p37069f21q6d3dee9705087cab@mail.gmail.com> This is a bit off topic just thought i would see if anyone was interested in this pc, i am switching over to the mac platform and just bought a new G5 with the 23" display ASUS A8V Deluxe Motherboard AMD 64 3500+ 2 x 1GB Geil Ram 2 x 200 GB Western Digital Hard Drives Nvidia 256mb video card (i think it's the 6600 GT would have to check for certain) Plextor 16x +/- DVD RW Drive Gateway FPD2185W 21" HD Widescreen LCD Display. Make Offer Reminder: Respond off list please Thanks, -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From randalrust at gmail.com Tue May 9 18:08:39 2006 From: randalrust at gmail.com (Randal Rust) Date: Tue, 9 May 2006 18:08:39 -0400 Subject: [nycphp-talk] File Upload Issues on Windows Message-ID: I have a file upload class that works everywhere but on the production server. The production and development environments are Windows, running Apache. My test environment is Linux, running Apache. The weirdest thing is that in production, I can upload PDF files, but when I try to upload images, it completely fails. I keep getting the 'permission denied' message on the image directory. Any ideas? It's just completely perplexing that I can upload PDF files, but not images. It's the same code! -- Randal Rust R.Squared Communications www.r2communications.com From mikko.rantalainen at peda.net Wed May 10 03:47:50 2006 From: mikko.rantalainen at peda.net (Mikko Rantalainen) Date: Wed, 10 May 2006 10:47:50 +0300 Subject: [nycphp-talk] MySQL 4 vs. 5 and character encoding (?) In-Reply-To: References: Message-ID: <44619AA6.3040800@peda.net> Rahmin Pavlovic wrote: > Having a hard time figuring this one out.. > > We moved a large data store from MySQL 5.0.2-alpha to MySQL 4.1.12 > > All the high-bit chars -- which were stored fine in MySQL 5 -- are being > mangled in MySQL 4. So, for example, if an editor pastes text from MS Word Which character set did you use in MySQL5? Did you use --default-character-set=latin1 or something else with mysqldump/MySQL5? mysqldump of MySQL5 may give "interesting" output if you have incorrectly set character set. I had once many 8 bit bytes replaced with literal "?" which caused many problems later on. The behavior of mysqldump did change between MySQL4 and MySQL5. If you have been using windows-1252 character set or something that uses pretty much all 8 bit bytes, expect problems with mysqldump if you don't have correct character set. -- Mikko From rolan at omnistep.com Wed May 10 09:24:42 2006 From: rolan at omnistep.com (Rolan Yang) Date: Wed, 10 May 2006 09:24:42 -0400 Subject: [nycphp-talk] MySQL 4 vs. 5 and character encoding (?) In-Reply-To: References: Message-ID: <4461E99A.6030208@omnistep.com> Are you using the --compatible option when mysqldump'ing? It may not be documented the man page, but the feature is available. ~Rolan Rahmin Pavlovic wrote: > Having a hard time figuring this one out.. > > We moved a large data store from MySQL 5.0.2-alpha to MySQL 4.1.12 > > All the high-bit chars -- which were stored fine in MySQL 5 -- are being > mangled in MySQL 4. So, for example, if an editor pastes text from MS Word > or another language, instead of storing the actual characters I get a bunch > of gobbeldy-gook. > > (Unfortunately, 5 isn't up anymore, so I can't compare collation.) > > Does anyone have any insight as to what may be going on? (I had routines > all up and running to clean high-bit chars that are now choking on their > mangled equiv.) > > > From danielc at analysisandsolutions.com Wed May 10 10:11:24 2006 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 10 May 2006 10:11:24 -0400 Subject: [nycphp-talk] MySQL 4 vs. 5 and character encoding (?) In-Reply-To: References: <44604D31.80709@peda.net> Message-ID: <20060510141124.GA5348@panix.com> On Tue, May 09, 2006 at 12:46:12PM -0400, Rahmin Pavlovic wrote: > > All the high-bit chars -- which were stored fine in MySQL 5 -- are being > mangled in MySQL 4. I'm guessing the default character set for all the tables on your system in 5 was UTF-8 while in 4 it's latin1. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From rahmin at insite-out.com Wed May 10 10:57:53 2006 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Wed, 10 May 2006 10:57:53 -0400 Subject: [nycphp-talk] MySQL 4 vs. 5 and character encoding (?) In-Reply-To: <20060510141124.GA5348@panix.com> Message-ID: On 5/10/06 10:11 AM, "Daniel Convissor" wrote: > On Tue, May 09, 2006 at 12:46:12PM -0400, Rahmin Pavlovic wrote: >> >> All the high-bit chars -- which were stored fine in MySQL 5 -- are being >> mangled in MySQL 4. > > I'm guessing the default character set for all the tables on your system > in 5 was UTF-8 while in 4 it's latin1. > I already tried setting the charset / collation to utf-8 -- both on tables / fields -- but resaving data produces the same mangled results. Unfortunately -- and this is really just corporate politics (meh) -- another firm setup Apache/MySQL, and they haven't exactly been forthcoming with this, so I can't as of yet compare old-new charset's. Also unfortunately, all I can tell on my end is that when we moved data from Apache 1.3.33 (Unix) / MySQL 5.02-alpha to Apache 2.0.52 (CentOS) / MySQL 4.1.12, high-bit data became mangled. I'd be more than happy to suggest changes on the Apache-level, but my job is the management of content by way of PHP, and I don't know what I'd suggest that would help.. From danielc at analysisandsolutions.com Wed May 10 11:53:58 2006 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 10 May 2006 11:53:58 -0400 Subject: [nycphp-talk] MySQL 4 vs. 5 and character encoding (?) In-Reply-To: References: <20060510141124.GA5348@panix.com> Message-ID: <20060510155358.GA16101@panix.com> On Wed, May 10, 2006 at 10:57:53AM -0400, Rahmin Pavlovic wrote: > > I already tried setting the charset / collation to utf-8 -- both on tables / > fields -- but resaving data produces the same mangled results. How did you do that? ALTER TABLE? If so, that's too late. Open up the SQL script created by mysqldump. What's the default charset defined in the CREATE TABLE statements? --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From rahmin at insite-out.com Wed May 10 12:21:34 2006 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Wed, 10 May 2006 12:21:34 -0400 Subject: [nycphp-talk] MySQL 4 vs. 5 and character encoding (?) In-Reply-To: <20060510155358.GA16101@panix.com> Message-ID: On 5/10/06 11:53 AM, "Daniel Convissor" wrote: > On Wed, May 10, 2006 at 10:57:53AM -0400, Rahmin Pavlovic wrote: >> >> I already tried setting the charset / collation to utf-8 -- both on tables / >> fields -- but resaving data produces the same mangled results. > > How did you do that? ALTER TABLE? If so, that's too late. > > Open up the SQL script created by mysqldump. What's the default charset > defined in the CREATE TABLE statements? > latin1_swedish_ci. When I ALTER TABLE, it successfully updates to utf8_general_ci. Why is it too late? Do I need to re-dump? From dorgan at optonline.net Wed May 10 12:27:03 2006 From: dorgan at optonline.net (Donald J Organ IV) Date: Wed, 10 May 2006 12:27:03 -0400 Subject: [nycphp-talk] Alphanumeric Range Message-ID: <44621457.9080002@optonline.net> Anyone know of a way to get all the values for an alphanumeric range?? From to_dngo at yahoo.com Wed May 10 12:51:50 2006 From: to_dngo at yahoo.com (David Ngo) Date: Wed, 10 May 2006 09:51:50 -0700 (PDT) Subject: [nycphp-talk] Contracting in NYC In-Reply-To: Message-ID: <20060510165150.88134.qmail@web34211.mail.mud.yahoo.com> Do any of you guys commute to NYC from New Jersey? I currently live in New Jersey and am planning to accept a contract in NYC. It is on a 1099, and I have heard that if you work in NYC you have to pay a city tax. Is this true? If so how much is it, and would I have to pay it even if I'm on a 1099? I am trying to decide between 2 job offers right now, one of them is in New Jersey, and the other one is in NYC. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From mailinglists at caseysoftware.com Wed May 10 12:57:15 2006 From: mailinglists at caseysoftware.com (Keith Casey) Date: Wed, 10 May 2006 12:57:15 -0400 Subject: [nycphp-talk] Contracting in NYC In-Reply-To: <20060510165150.88134.qmail@web34211.mail.mud.yahoo.com> References: <20060510165150.88134.qmail@web34211.mail.mud.yahoo.com> Message-ID: On 5/10/06, David Ngo wrote: > I have heard > that if you work in NYC you have to pay a city tax. Is > this true? If so how much is it, and would I have to > pay it even if I'm on a 1099? On the tax front, this is probably what you're referring to: http://www.boston.com/news/nation/articles/2005/03/29/court_rules_telecommuter_must_pay_taxes/ I talked about a handful of the issues here: http://blogs.caseysoftware.com/?q=node/65 This was after I spoke with an accountant who *admittedly* didn't know the full implications of how this ruling was going to be interpretted elsewhere. keith -- D. Keith Casey Jr. CEO, CaseySoftware, LLC http://CaseySoftware.com 2006 DC PHP Conference: "PHP In The Federal Enterprise and the World" - http://dcphpconference.com/ From kenzolist at counterfolk.com Wed May 10 13:13:31 2006 From: kenzolist at counterfolk.com (Ken) Date: Wed, 10 May 2006 13:13:31 -0400 Subject: [nycphp-talk] Contracting in NYC In-Reply-To: <20060510165150.88134.qmail@web34211.mail.mud.yahoo.com> References: Message-ID: <6.96546316146851.353.556620359421@1.00008253709141> At 09:51 AM 5/10/2006 -0700, David Ngo wrote: >It is on a 1099, and I have heard >that if you work in NYC you have to pay a city tax. Is >this true? If so how much is it, and would I have to >pay it even if I'm on a 1099? Here is the joyous tax of which you speak: "NYC Unincorporated Business Tax" http://www.nyc.gov/html/dof/html/pdf/05pdf/nyc202_05i.pdf http://www.nyc.gov/html/dof/html/pdf/05pdf/nyc202_05.pdf As you can see, if you don't make enough money, you don't incur this tax. If you do incur it, it looks to be 4% of gross income attributable to the business carried on "partly" in NYC. - Ken From mlandman at face2interface.com Wed May 10 13:15:06 2006 From: mlandman at face2interface.com (Marty Landman) Date: Wed, 10 May 2006 13:15:06 -0400 Subject: [nycphp-talk] Contracting in NYC In-Reply-To: <20060510165150.88134.qmail@web34211.mail.mud.yahoo.com> References: <20060510165150.88134.qmail@web34211.mail.mud.yahoo.com> Message-ID: <6.2.0.14.0.20060510130337.03320bd8@face2interface.com> At 12:51 PM 5/10/2006, David Ngo wrote: >Do any of you guys commute to NYC from New Jersey? I did many years ago so take what I say with a grain of salt David, i.e. verify it still works this way. >I currently live in New Jersey and am planning to accept a contract in >NYC. It is on a 1099, and I have heard that if you work in NYC you have to >pay a city tax. Is this true? AFAIK it is true. >If so how much is it Depends on how much you earn in NYC. :) Check for forms and booklets http://www.tax.state.ny.us/ >and would I have to pay it even if I'm on a 1099? Yep. You'll either be filing as a sole proprietor or corporation, right? Either way you're responsible for taxes including withholding taxes and don't be late because they get you with fees when you are. You will also have to pay NYS tax iirc. They will - or at least used to - credit your NJ income tax but since that's less than NY tax your out of pocket will be the same as if you lived in NY. >I am trying to decide between 2 job offers right now, one of them is in >New Jersey, and the other one is in NYC. OTOH if your main work location is your local office then you may be able to deduct travelling costs. Might be worth some intensive reading of the tax pubs, or even a 1 hour consult with an accountant familiar with this situation. hth, Marty -- Marty Landman, Face 2 Interface Inc. 845-679-9387 Free Database Search App: http://face2interface.com/Products/FormATable.shtml Web Installed Formmail: http://face2interface.com/formINSTal From dcech at phpwerx.net Wed May 10 14:49:23 2006 From: dcech at phpwerx.net (Dan Cech) Date: Wed, 10 May 2006 14:49:23 -0400 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: <44621457.9080002@optonline.net> References: <44621457.9080002@optonline.net> Message-ID: <446235B3.8010704@phpwerx.net> Donald J Organ IV wrote: > Anyone know of a way to get all the values for an alphanumeric range?? Check out http://php.net/range Dan From codebowl at gmail.com Wed May 10 14:53:02 2006 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 10 May 2006 14:53:02 -0400 Subject: [nycphp-talk] [OT] - Computer For Sale w/ 21" widescreen display In-Reply-To: <8d9a42800605091226p37069f21q6d3dee9705087cab@mail.gmail.com> References: <8d9a42800605091226p37069f21q6d3dee9705087cab@mail.gmail.com> Message-ID: <8d9a42800605101153o24a77dfcu4065622b41eb99b@mail.gmail.com> Make offers people ;) I have to get this thing out of here otherwise it will go into the closet :) On 5/9/06, Joseph Crawford wrote: > > This is a bit off topic just thought i would see if anyone was interested > in this pc, i am switching over to the mac platform and just bought a new G5 > with the 23" display > > ASUS A8V Deluxe Motherboard > AMD 64 3500+ > 2 x 1GB Geil Ram > 2 x 200 GB Western Digital Hard Drives > Nvidia 256mb video card (i think it's the 6600 GT would have to check for > certain) > Plextor 16x +/- DVD RW Drive > Gateway FPD2185W 21" HD Widescreen LCD Display. > > Make Offer > > Reminder: Respond off list please > > Thanks, > > -- > Joseph Crawford Jr. > Zend Certified Engineer > Codebowl Solutions, Inc. > http://www.codebowl.com/ > 1-802-671-2021 > codebowl at gmail.com > -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff.knight at gmail.com Wed May 10 14:59:20 2006 From: jeff.knight at gmail.com (Jeff Knight) Date: Wed, 10 May 2006 13:59:20 -0500 Subject: [nycphp-talk] [OT] - Computer For Sale w/ 21" widescreen display In-Reply-To: <8d9a42800605101153o24a77dfcu4065622b41eb99b@mail.gmail.com> References: <8d9a42800605091226p37069f21q6d3dee9705087cab@mail.gmail.com> <8d9a42800605101153o24a77dfcu4065622b41eb99b@mail.gmail.com> Message-ID: <2ca9ba910605101159q40bedc8dke82fb60cad91bdcd@mail.gmail.com> you've obviously confused us with craigslist... On 5/10/06, Joseph Crawford wrote: > Make offers people ;) I have to get this thing out of here otherwise it > will go into the closet :) > > > On 5/9/06, Joseph Crawford < codebowl at gmail.com> wrote: > > > > This is a bit off topic just thought i would see if anyone was interested > in this pc, i am switching over to the mac platform and just bought a new G5 > with the 23" display > > > > ASUS A8V Deluxe Motherboard > > AMD 64 3500+ > > 2 x 1GB Geil Ram > > 2 x 200 GB Western Digital Hard Drives > > Nvidia 256mb video card (i think it's the 6600 GT would have to check for > certain) > > Plextor 16x +/- DVD RW Drive > > Gateway FPD2185W 21" HD Widescreen LCD Display. > > > > Make Offer > > > > Reminder: Respond off list please > > > > Thanks, > > > > > > -- > > Joseph Crawford Jr. > > Zend Certified Engineer > > Codebowl Solutions, Inc. > > http://www.codebowl.com/ > > 1-802-671-2021 > > codebowl at gmail.com > > > > -- > Joseph Crawford Jr. > Zend Certified Engineer > Codebowl Solutions, Inc. > http://www.codebowl.com/ > 1-802-671-2021 > codebowl at gmail.com > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > From dorgan at optonline.net Wed May 10 15:05:29 2006 From: dorgan at optonline.net (Donald J Organ IV) Date: Wed, 10 May 2006 15:05:29 -0400 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: <446235B3.8010704@phpwerx.net> References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> Message-ID: <44623979.5090301@optonline.net> that only looks at the first character. Dan Cech wrote: > Donald J Organ IV wrote: > >> Anyone know of a way to get all the values for an alphanumeric range?? >> > > Check out http://php.net/range > > Dan > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > From codebowl at gmail.com Wed May 10 15:11:02 2006 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 10 May 2006 15:11:02 -0400 Subject: [nycphp-talk] [OT] - Computer For Sale w/ 21" widescreen display In-Reply-To: <2ca9ba910605101159q40bedc8dke82fb60cad91bdcd@mail.gmail.com> References: <8d9a42800605091226p37069f21q6d3dee9705087cab@mail.gmail.com> <8d9a42800605101153o24a77dfcu4065622b41eb99b@mail.gmail.com> <2ca9ba910605101159q40bedc8dke82fb60cad91bdcd@mail.gmail.com> Message-ID: <8d9a42800605101211r601b5d7ve47a2faa4f42984@mail.gmail.com> Jeff, Actually no.. I figured i would offer it here to other programmers because i dont expect to get market price for it, if no one here wants it i will sell it locally or on ebay. but atleast i thought to offer it to other php developers who may not be able to afford a new system and this is reletively new. -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dcech at phpwerx.net Wed May 10 15:54:37 2006 From: dcech at phpwerx.net (Dan Cech) Date: Wed, 10 May 2006 15:54:37 -0400 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: <44623979.5090301@optonline.net> References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> Message-ID: <446244FD.2050706@phpwerx.net> Donald J Organ IV wrote: > that only looks at the first character. In that case maybe you will get a better response if you explain exactly what it is you are trying to achieve. Dan > Dan Cech wrote: >> Donald J Organ IV wrote: >> >>> Anyone know of a way to get all the values for an alphanumeric range?? >>> >> Check out http://php.net/range >> >> Dan From dorgan at optonline.net Wed May 10 16:11:14 2006 From: dorgan at optonline.net (Donald J Organ IV) Date: Wed, 10 May 2006 16:11:14 -0400 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: <446244FD.2050706@phpwerx.net> References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> Message-ID: <446248E2.4080701@optonline.net> Well basically i have a range of Canadian zip code prefixes such as A0A through A9Z, i need all the values, between the two values. Dan Cech wrote: > Donald J Organ IV wrote: > >> that only looks at the first character. >> > > In that case maybe you will get a better response if you explain exactly > what it is you are trying to achieve. > > Dan > > >> Dan Cech wrote: >> >>> Donald J Organ IV wrote: >>> >>> >>>> Anyone know of a way to get all the values for an alphanumeric range?? >>>> >>>> >>> Check out http://php.net/range >>> >>> Dan >>> > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > From edwardpotter at gmail.com Wed May 10 16:15:47 2006 From: edwardpotter at gmail.com (edward potter) Date: Wed, 10 May 2006 16:15:47 -0400 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: <446248E2.4080701@optonline.net> References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> Message-ID: I suspect you can do an ASCII # search in your SELECT statment, look for a range, that should do it. -ed :-) On 5/10/06, Donald J Organ IV wrote: > Well basically i have a range of Canadian zip code prefixes such as A0A > through A9Z, i need all the values, between the two values. > > Dan Cech wrote: > > Donald J Organ IV wrote: > > > >> that only looks at the first character. > >> > > > > In that case maybe you will get a better response if you explain exactly > > what it is you are trying to achieve. > > > > Dan > > > > > >> Dan Cech wrote: > >> > >>> Donald J Organ IV wrote: > >>> > >>> > >>>> Anyone know of a way to get all the values for an alphanumeric range?? > >>>> > >>>> > >>> Check out http://php.net/range > >>> > >>> Dan > >>> > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > New York PHP Conference and Expo 2006 > > 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 > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From dorgan at optonline.net Wed May 10 16:19:10 2006 From: dorgan at optonline.net (Donald J Organ IV) Date: Wed, 10 May 2006 16:19:10 -0400 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> Message-ID: <44624ABE.8000107@optonline.net> i wish it were that simple.....I have to build this into the current system, and that would mean getting all the values between the start and end and populating the database with those values. edward potter wrote: > I suspect you can do an ASCII # search in your SELECT statment, look > for a range, that should do it. > > -ed :-) > > > On 5/10/06, Donald J Organ IV wrote: > >> Well basically i have a range of Canadian zip code prefixes such as A0A >> through A9Z, i need all the values, between the two values. >> >> Dan Cech wrote: >> >>> Donald J Organ IV wrote: >>> >>> >>>> that only looks at the first character. >>>> >>>> >>> In that case maybe you will get a better response if you explain exactly >>> what it is you are trying to achieve. >>> >>> Dan >>> >>> >>> >>>> Dan Cech wrote: >>>> >>>> >>>>> Donald J Organ IV wrote: >>>>> >>>>> >>>>> >>>>>> Anyone know of a way to get all the values for an alphanumeric range?? >>>>>> >>>>>> >>>>>> >>>>> Check out http://php.net/range >>>>> >>>>> Dan >>>>> >>>>> >>> _______________________________________________ >>> New York PHP Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> New York PHP Conference and Expo 2006 >>> 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 >> New York PHP Conference and Expo 2006 >> 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 > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > From jeff.knight at gmail.com Wed May 10 16:24:31 2006 From: jeff.knight at gmail.com (Jeff Knight) Date: Wed, 10 May 2006 15:24:31 -0500 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: <44624ABE.8000107@optonline.net> References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> <44624ABE.8000107@optonline.net> Message-ID: <2ca9ba910605101324t3717531duc6dcdc04ca96d7f7@mail.gmail.com> if all else fails, try brute force... $range = array(); foreach (range(0,9) as $digit): foreach (range('A','Z') as $alpha): $range[] = 'A'.$digit.$alpha ; endforeach; endforeach; From nyphp at n0p.net Wed May 10 16:40:13 2006 From: nyphp at n0p.net (Flavio daCosta) Date: Wed, 10 May 2006 16:40:13 -0400 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: <446248E2.4080701@optonline.net> References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> Message-ID: <44624FAD.1080901@n0p.net> On 05/10/2006 04:11 PM, Donald J Organ IV wrote: > Well basically i have a range of Canadian zip code prefixes such as A0A > through A9Z, i need all the values, between the two values. AFAICT: PHP(5) can natively count by base 36. $min = 'A0A'; $max = 'A9Z'; for ($i = $min; $i < $max; ++$i) { echo $i, '
'; } From jeff.knight at gmail.com Wed May 10 16:43:17 2006 From: jeff.knight at gmail.com (Jeff Knight) Date: Wed, 10 May 2006 15:43:17 -0500 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: <44624FAD.1080901@n0p.net> References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> <44624FAD.1080901@n0p.net> Message-ID: <2ca9ba910605101343x45fdb37cwc86bf39f64d0a348@mail.gmail.com> On 5/10/06, Flavio daCosta wrote: > AFAICT: PHP(5) can natively count by base 36. sexy.... From nyphp at n0p.net Wed May 10 16:43:34 2006 From: nyphp at n0p.net (Flavio daCosta) Date: Wed, 10 May 2006 16:43:34 -0400 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: <44624FAD.1080901@n0p.net> References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> <44624FAD.1080901@n0p.net> Message-ID: <44625076.1060601@n0p.net> On 05/10/2006 04:40 PM, Flavio daCosta wrote: > for ($i = $min; $i < $max; ++$i) Heh, sorry off by one error. for ($i = $min; $i <= $max; ++$i) From dorgan at optonline.net Wed May 10 16:47:57 2006 From: dorgan at optonline.net (Donald J Organ IV) Date: Wed, 10 May 2006 16:47:57 -0400 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: <44625076.1060601@n0p.net> References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> <44624FAD.1080901@n0p.net> <44625076.1060601@n0p.net> Message-ID: <4462517D.5020704@optonline.net> thats exactly what I've been looking for. Guess i should have tried it first. ThankS! Flavio daCosta wrote: > On 05/10/2006 04:40 PM, Flavio daCosta wrote: > >> for ($i = $min; $i < $max; ++$i) >> > > Heh, sorry off by one error. > for ($i = $min; $i <= $max; ++$i) > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > From yournway at gmail.com Wed May 10 17:05:29 2006 From: yournway at gmail.com (Alberto dos Santos) Date: Wed, 10 May 2006 22:05:29 +0100 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: <44624FAD.1080901@n0p.net> References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> <44624FAD.1080901@n0p.net> Message-ID: Hey list... This has got to be one of the weirdest posts I have read in here, LOL. But, nonetheless, it hints of pure genious, Flavio. Congrats... Shucks, base 36.... How does anyone think of that? > > AFAICT: PHP(5) can natively count by base 36. > > $min = 'A0A'; > $max = 'A9Z'; > for ($i = $min; $i < $max; ++$i) > { > echo $i, '
'; > } > > -- Alberto dos Santos Consultor em TI IT Consultant http://www.yournway.com A internet ? sua maneira. The Internet your own way. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tedd at sperling.com Wed May 10 17:25:11 2006 From: tedd at sperling.com (tedd) Date: Wed, 10 May 2006 17:25:11 -0400 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> <44624FAD.1080901@n0p.net> Message-ID: At 10:05 PM +0100 5/10/06, Alberto dos Santos wrote: >Hey list... >This has got to be one of the weirdest posts I have read in here, LOL. >But, nonetheless, it hints of pure genious, Flavio. Congrats... >Shucks, base 36.... How does anyone think of that? Basically, there are 10 types of people, those who understand binary and those who don't. :-) tedd -- -------------------------------------------------------------------------------- http://sperling.com From yournway at gmail.com Wed May 10 17:27:20 2006 From: yournway at gmail.com (Alberto dos Santos) Date: Wed, 10 May 2006 22:27:20 +0100 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> <44624FAD.1080901@n0p.net> Message-ID: That one I got! 10 = 2, hehe. On 10/05/06, tedd wrote: > > At 10:05 PM +0100 5/10/06, Alberto dos Santos wrote: > >Hey list... > >This has got to be one of the weirdest posts I have read in here, LOL. > >But, nonetheless, it hints of pure genious, Flavio. Congrats... > >Shucks, base 36.... How does anyone think of that? > > Basically, there are 10 types of people, those who understand binary > and those who don't. :-) > > tedd > -- > > -------------------------------------------------------------------------------- > http://sperling.com > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -- Alberto dos Santos Consultor em TI IT Consultant http://www.yournway.com A internet ? sua maneira. The Internet your own way. -------------- next part -------------- An HTML attachment was scrubbed... URL: From danielc at analysisandsolutions.com Wed May 10 20:10:31 2006 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 10 May 2006 20:10:31 -0400 Subject: [nycphp-talk] MySQL 4 vs. 5 and character encoding (?) In-Reply-To: References: <20060510155358.GA16101@panix.com> Message-ID: <20060511001031.GA16870@panix.com> On Wed, May 10, 2006 at 12:21:34PM -0400, Rahmin Pavlovic wrote: > > On 5/10/06 11:53 AM, "Daniel Convissor" > wrote: > > > How did you do that? ALTER TABLE? If so, that's too late. > > > > Open up the SQL script created by mysqldump. What's the default charset > > defined in the CREATE TABLE statements? > > latin1_swedish_ci. That's the character set you got when dumping from MySQL 5? You said you had the unusual characters working nicely in MySQL 5. But how can that be if you had the character set as latin1? > When I ALTER TABLE, it successfully updates to > utf8_general_ci. Why is it too late? Do I need to re-dump? Because importing to a latin1 table modifies the original UTF-8 data -- assuming it was UTF-8, of course. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From nyphp at n0p.net Wed May 10 21:04:07 2006 From: nyphp at n0p.net (Flavio daCosta) Date: Wed, 10 May 2006 21:04:07 -0400 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> <44624FAD.1080901@n0p.net> Message-ID: <44628D87.5050803@n0p.net> Wow, complements from peers. I'll take em, thanks guys!! flav From mikko.rantalainen at peda.net Thu May 11 04:26:54 2006 From: mikko.rantalainen at peda.net (Mikko Rantalainen) Date: Thu, 11 May 2006 11:26:54 +0300 Subject: [nycphp-talk] MySQL 4 vs. 5 and character encoding (?) In-Reply-To: References: Message-ID: <4462F54E.3030007@peda.net> Rahmin Pavlovic wrote: > On 5/10/06 11:53 AM, "Daniel Convissor" > wrote: > >> On Wed, May 10, 2006 at 10:57:53AM -0400, Rahmin Pavlovic wrote: >>> I already tried setting the charset / collation to utf-8 -- both on tables / >>> fields -- but resaving data produces the same mangled results. >> How did you do that? ALTER TABLE? If so, that's too late. >> >> Open up the SQL script created by mysqldump. What's the default charset >> defined in the CREATE TABLE statements? >> > > latin1_swedish_ci. When I ALTER TABLE, it successfully updates to > utf8_general_ci. Why is it too late? Do I need to re-dump? Since you say that you changed it to utf8, I guess the original data was supposed to be with UTF-8 character set, but because MySQL5 dumped it with latin1_swedish_ci you never did tell MySQL5 about the fact (this happens pretty much automatically if you upgrade from MySQL4 which pretty much didn't have a clue about UTF-8). However, MySQL5 in its infinite wishdom replaces invalid characters in the mysqldump output with a literal "?" (U+003F) instead of leaving those bytes as is. Latin1 doesn't define byte range 128-159 so MySQL5 replaces those bytes with literal "?" if you use mysqldump without correct settings (UTF-8 encoded strings may include bytes in range 128-159 and if you replace those bytes with a literal "?" you'll end up with invalid UTF-8 encoding). You will not notice this problem if you just do INSERT, UPDATE and SELECT from some other application because this modification doesn't happen in that case. In short, yes, you have to re-dump from MySQL5. Hopefully you have the binary table data still available. -- Mikko From b.vamsidhar at hotmail.com Thu May 11 04:54:30 2006 From: b.vamsidhar at hotmail.com (Vamsidhar Bethanabatla) Date: Thu, 11 May 2006 14:24:30 +0530 Subject: [nycphp-talk] $_SESSION in Static function Message-ID: I found a very tricky problem with a wrapper class that I had coded for setting and getting variables in $_SESSION super global array. The class is an utility class having function HttpRequest::GetSessionParm() and HttpRequest::SetSessionParm() to get and set values in $_SESSION resply. I was under the impression that $_SESSION need not be defined as 'global' within class methods but this wrapper class initially failed when the system was deployed on FreeBSD machine. It worked when I added 'global $_SESSION' within the above mentioned static methods. I am not aware of the reason. It worked fine on my machine (windows 2000 professional). Any reason available for the problem will be appreciated. Thanx, Vamsi _________________________________________________________________ Sexy, sultry, sensuous. - see why Bipasha Basu is all that and more. Try MSN Search http://server1.msn.co.in/Profile/bipashabasu.asp From mikko.rantalainen at peda.net Thu May 11 06:03:32 2006 From: mikko.rantalainen at peda.net (Mikko Rantalainen) Date: Thu, 11 May 2006 13:03:32 +0300 Subject: [nycphp-talk] $_SESSION in Static function In-Reply-To: References: Message-ID: <44630BF4.3060103@peda.net> Vamsidhar Bethanabatla wrote: > [...] I was under the impression that $_SESSION > need not be defined as 'global' within class methods but this wrapper class > initially failed when the system was deployed on FreeBSD machine. It worked > when I added 'global $_SESSION' within the above mentioned static methods. I > am not aware of the reason. It worked fine on my machine (windows 2000 > professional). Any reason available for the problem will be appreciated. Did you check PHP version? IIRC, older versions of PHP didn't have super globals at all... -- Mikko From b.vamsidhar at gmail.com Thu May 11 06:12:27 2006 From: b.vamsidhar at gmail.com (Vamsidhar Bethanabatla) Date: Thu, 11 May 2006 15:42:27 +0530 Subject: [nycphp-talk] $_SESSION in static function Message-ID: <52865ad20605110312k5d478bb7y43ba31fa4da087e0@mail.gmail.com> the PHP version is 5.0.2 -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.vamsidhar at gmail.com Thu May 11 06:58:00 2006 From: b.vamsidhar at gmail.com (Vamsidhar Bethanabatla) Date: Thu, 11 May 2006 16:28:00 +0530 Subject: [nycphp-talk] $_SESSION in Static function Message-ID: <52865ad20605110358j573d5565x9db51ba603968a@mail.gmail.com> Here is the code for those two functions /** * returns the value for parameter stored in $_SESSION * if $escaped is true, the returned value is first * escaped using addslashes function before returning */ static function GetSessionParm($param,$escaped=false) { global $_SESSION; if (isset(self::$data["session"])) if (array_key_exists($param, self::$data["session"])) return (($escaped) ? addslashes(self::$data["session"][$param]) : self::$data["session"][$param]); else return null; else return null; } /** * sets a value in session */ static function SetSessionParm($param,$value) { global $_SESSION; $_SESSION[$param] = $value; self::$data["session"] = $_SESSION; } if I remove the global $_SESSION the session data isnot being maintaned from page to page -------------- next part -------------- An HTML attachment was scrubbed... URL: From nyphp at summit7solutions.com Thu May 11 10:11:14 2006 From: nyphp at summit7solutions.com (Jeff Wilhelm) Date: Thu, 11 May 2006 10:11:14 -0400 Subject: [nycphp-talk] [OT] - Computer For Sale w/ 21" widescreen display In-Reply-To: <8d9a42800605101153o24a77dfcu4065622b41eb99b@mail.gmail.com> Message-ID: <000f01c67504$c3da9940$0a7ba8c0@zion> $300 :) _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Joseph Crawford Sent: Wednesday, May 10, 2006 2:53 PM To: NYPHP Talk Subject: Re: [nycphp-talk] [OT] - Computer For Sale w/ 21" widescreen display Make offers people ;) I have to get this thing out of here otherwise it will go into the closet :) On 5/9/06, Joseph Crawford < codebowl at gmail.com > wrote: This is a bit off topic just thought i would see if anyone was interested in this pc, i am switching over to the mac platform and just bought a new G5 with the 23" display ASUS A8V Deluxe Motherboard AMD 64 3500+ 2 x 1GB Geil Ram 2 x 200 GB Western Digital Hard Drives Nvidia 256mb video card (i think it's the 6600 GT would have to check for certain) Plextor 16x +/- DVD RW Drive Gateway FPD2185W 21" HD Widescreen LCD Display. Make Offer Reminder: Respond off list please Thanks, -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ 1-802-671-2021 codebowl at gmail.com -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sailer at bnl.gov Thu May 11 10:22:37 2006 From: sailer at bnl.gov (Tim Sailer) Date: Thu, 11 May 2006 10:22:37 -0400 Subject: [nycphp-talk] [OT] - Computer For Sale w/ 21" widescreen display In-Reply-To: <000f01c67504$c3da9940$0a7ba8c0@zion> References: <8d9a42800605101153o24a77dfcu4065622b41eb99b@mail.gmail.com> <000f01c67504$c3da9940$0a7ba8c0@zion> Message-ID: <20060511142237.GA15894@bnl.gov> On Thu, May 11, 2006 at 10:11:14AM -0400, Jeff Wilhelm wrote: > $300 :) $301.50 -- Tim Sailer Information and Special Technologies Program Northeast Regional Counterintelligence Office Brookhaven National Laboratory (631) 344-3001 From dorgan at optonline.net Thu May 11 10:26:24 2006 From: dorgan at optonline.net (Donald J Organ IV) Date: Thu, 11 May 2006 10:26:24 -0400 Subject: [nycphp-talk] [OT] - Computer For Sale w/ 21" widescreen display In-Reply-To: <20060511142237.GA15894@bnl.gov> References: <8d9a42800605101153o24a77dfcu4065622b41eb99b@mail.gmail.com> <000f01c67504$c3da9940$0a7ba8c0@zion> <20060511142237.GA15894@bnl.gov> Message-ID: <44634990.7020104@optonline.net> $1...thats right the price is right. Tim Sailer wrote: > On Thu, May 11, 2006 at 10:11:14AM -0400, Jeff Wilhelm wrote: > >> $300 :) >> > > $301.50 > > From dmintz at davidmintz.org Thu May 11 11:26:20 2006 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 11 May 2006 11:26:20 -0400 (EDT) Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> <44624FAD.1080901@n0p.net> Message-ID: On Wed, 10 May 2006, tedd wrote: > > Basically, there are 10 types of people, those who understand binary > and those who don't. :-) Hmmmm, if you want to tell this joke out loud, how do you pronounce "10" ? --- David Mintz http://davidmintz.org/ Amendment IV The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no Warrants shall issue, but upon probable cause, supported by Oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. From rolan at omnistep.com Thu May 11 11:51:51 2006 From: rolan at omnistep.com (Rolan Yang) Date: Thu, 11 May 2006 11:51:51 -0400 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> <44624FAD.1080901@n0p.net> Message-ID: <44635D97.6050206@omnistep.com> Real programmers don't pronounce anything out loud. THEY TYPE IN CAPS INSTEAD. David Mintz wrote: > On Wed, 10 May 2006, tedd wrote: > > >> Basically, there are 10 types of people, those who understand binary >> and those who don't. :-) >> > > > Hmmmm, if you want to tell this joke out loud, how do you pronounce "10" ? > > --- > David Mintz > http://davidmintz.org/ > > From rahmin at insite-out.com Thu May 11 12:51:42 2006 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Thu, 11 May 2006 12:51:42 -0400 Subject: [nycphp-talk] MySQL 4 vs. 5 and character encoding (?) In-Reply-To: <20060511001031.GA16870@panix.com> Message-ID: On 5/10/06 8:10 PM, "Daniel Convissor" wrote: >> When I ALTER TABLE, it successfully updates to >> utf8_general_ci. Why is it too late? Do I need to re-dump? > > Because importing to a latin1 table modifies the original UTF-8 data -- > assuming it was UTF-8, of course. > So -- just so I get this straight -- say I ALTER TABLE to set the default character set to be UTF-8, then insert a brand new record filled with high-bit chars, it will still not be able to read certain characters and introduce '?' and whatnot in their stead? From tedd at sperling.com Thu May 11 14:05:04 2006 From: tedd at sperling.com (tedd) Date: Thu, 11 May 2006 14:05:04 -0400 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> <44624FAD.1080901@n0p.net> Message-ID: >On Wed, 10 May 2006, tedd wrote: > >> >> Basically, there are 10 types of people, those who understand binary >> and those who don't. :-) > >Hmmmm, if you want to tell this joke out loud, how do you pronounce "10" ? Ten It's still "ten" regardless of what the dictionary may say. Ten is not defined by the base 10. For example, you don't say "one" is not "one" because it belongs to another base, do you? Or, as in the case of base 16, you don't have another pronunciation for "A", do you? Such as in: 1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,10 10 in any number system is still ten. tedd -- -------------------------------------------------------------------------------- http://sperling.com From tedd at sperling.com Thu May 11 14:06:27 2006 From: tedd at sperling.com (tedd) Date: Thu, 11 May 2006 14:06:27 -0400 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: <44635D97.6050206@omnistep.com> References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> <44624FAD.1080901@n0p.net> <44635D97.6050206@omnistep.com> Message-ID: >Real programmers don't pronounce anything out loud. Instead, they just drool and think about talking. tedd -- -------------------------------------------------------------------------------- http://sperling.com From chsnyder at gmail.com Thu May 11 14:20:03 2006 From: chsnyder at gmail.com (csnyder) Date: Thu, 11 May 2006 14:20:03 -0400 Subject: [nycphp-talk] File Upload Issues on Windows In-Reply-To: References: Message-ID: On 5/9/06, Randal Rust wrote: > I have a file upload class that works everywhere but on the production server. > > The production and development environments are Windows, running > Apache. My test environment is Linux, running Apache. > > The weirdest thing is that in production, I can upload PDF files, but > when I try to upload images, it completely fails. I keep getting the > 'permission denied' message on the image directory. > > Any ideas? > > It's just completely perplexing that I can upload PDF files, but not > images. It's the same code! > > -- > Randal Rust > R.Squared Communications > www.r2communications.com Hey, did you ever solve this? I have no clue why this would happen, so I'm curious if you found the culprit... From dcech at phpwerx.net Thu May 11 14:23:59 2006 From: dcech at phpwerx.net (Dan Cech) Date: Thu, 11 May 2006 14:23:59 -0400 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> <44624FAD.1080901@n0p.net> Message-ID: <4463813F.2040408@phpwerx.net> tedd wrote: >> On Wed, 10 May 2006, tedd wrote: >> >>> Basically, there are 10 types of people, those who understand binary >>> and those who don't. :-) >> Hmmmm, if you want to tell this joke out loud, how do you pronounce "10" ? > > Ten > > It's still "ten" regardless of what the dictionary may say. Ten is > not defined by the base 10. > > For example, you don't say "one" is not "one" because it belongs to > another base, do you? > > Or, as in the case of base 16, you don't have another pronunciation > for "A", do you? > > Such as in: > > 1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,10 > > 10 in any number system is still ten. > > tedd Not exactly. Ten is merely a name we give to the digit sequence 1 0 when representing a number in base 10. If you called 10 base 2 Ten, what would you call 1010 base 2? If you were saying 10 base 2 out loud, you should probably just say Two, though that kind of defeats the purpose of the joke... Dan From randalrust at gmail.com Thu May 11 14:35:58 2006 From: randalrust at gmail.com (Randal Rust) Date: Thu, 11 May 2006 14:35:58 -0400 Subject: [nycphp-talk] File Upload Issues on Windows In-Reply-To: References: Message-ID: On 5/11/06, csnyder wrote: > Hey, did you ever solve this? Yeah, there was a type in the code. Instead of... $newFileName=$this->fname; ...I had... $newFileName=$this->tname; Whe I passed the version with tname to the copy() function, it was failing. It drove me nuts. -- Randal Rust R.Squared Communications www.r2communications.com From 1j0lkq002 at sneakemail.com Thu May 11 15:27:11 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Thu, 11 May 2006 12:27:11 -0700 Subject: [nycphp-talk] [OT] coders do stand up on Monday nights only Re: Alphanumeric Range In-Reply-To: <4463813F.2040408@phpwerx.net> References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> <44624FAD.1080901@n0p.net> <4463813F.2040408@phpwerx.net> Message-ID: <2761-54294@sneakemail.com> Dan Cech dcech-at-phpwerx.net |nyphp dev/internal group use| wrote: >tedd wrote: > > >>>On Wed, 10 May 2006, tedd wrote: >>> >>> >>> >>>> Basically, there are 10 types of people, those who understand binary >>>> and those who don't. :-) >>>> >>>> >>>Hmmmm, if you want to tell this joke out loud, how do you pronounce "10" ? >>> >>> >>Ten >> >>It's still "ten" regardless of what the dictionary may say. Ten is >>not defined by the base 10. >> >>For example, you don't say "one" is not "one" because it belongs to >>another base, do you? >> >>Or, as in the case of base 16, you don't have another pronunciation >>for "A", do you? >> >>Such as in: >> >>1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,10 >> >>10 in any number system is still ten. >> >>tedd >> >> > > >Not exactly. Ten is merely a name we give to the digit sequence 1 0 >when representing a number in base 10. > >If you called 10 base 2 Ten, what would you call 1010 base 2? > >If you were saying 10 base 2 out loud, you should probably just say Two, though that kind of defeats the purpose of the joke... > > which brings us right back to David's question... "Hmmmm, if you want to tell this joke out loud, how do you pronounce "10" ?" and causes this thread be be labeled "OT" :-) From mailinglists at caseysoftware.com Thu May 11 15:34:33 2006 From: mailinglists at caseysoftware.com (Keith Casey) Date: Thu, 11 May 2006 15:34:33 -0400 Subject: [nycphp-talk] [OT] coders do stand up on Monday nights only Re: Alphanumeric Range In-Reply-To: <2761-54294@sneakemail.com> References: <44621457.9080002@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> <44624FAD.1080901@n0p.net> <4463813F.2040408@phpwerx.net> <2761-54294@sneakemail.com> Message-ID: On 5/11/06, inforequest <1j0lkq002 at sneakemail.com> wrote: > which brings us right back to David's question... > > "Hmmmm, if you want to tell this joke out loud, how do you pronounce "10" ?" > > and causes this thread be be labeled "OT" :-) This is just one of those things that can't be said outloud.. it's like Voldemort. -- D. Keith Casey Jr. CEO, CaseySoftware, LLC http://CaseySoftware.com 2006 DC PHP Conference: "PHP In The Federal Enterprise and the World" - http://dcphpconference.com/ From dmintz at davidmintz.org Thu May 11 16:07:13 2006 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 11 May 2006 16:07:13 -0400 (EDT) Subject: [nycphp-talk] [OT] coders do stand up on Monday nights only Re: Alphanumeric Range In-Reply-To: References: <44621457.9080002@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> <44624FAD.1080901@n0p.net> <4463813F.2040408@phpwerx.net> <2761-54294@sneakemail.com> Message-ID: On Thu, 11 May 2006, Keith Casey wrote: > On 5/11/06, inforequest <1j0lkq002 at sneakemail.com> wrote: > > which brings us right back to David's question... > > > > "Hmmmm, if you want to tell this joke out loud, how do you pronounce "10" ?" > > > > and causes this thread be be labeled "OT" :-) > > This is just one of those things that can't be said outloud.. it's > like Voldemort. Like WHAT? ...woa, sorry, nevermind, I am now OOT (-: --- David Mintz http://davidmintz.org/ Amendment IV The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no Warrants shall issue, but upon probable cause, supported by Oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. From tedd at sperling.com Thu May 11 16:50:31 2006 From: tedd at sperling.com (tedd) Date: Thu, 11 May 2006 16:50:31 -0400 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: <4463813F.2040408@phpwerx.net> References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> <44624FAD.1080901@n0p.net> <4463813F.2040408@phpwerx.net> Message-ID: >tedd wrote: >>> On Wed, 10 May 2006, tedd wrote: >>> >>>> Basically, there are 10 types of people, those who understand binary >>>> and those who don't. :-) >>> Hmmmm, if you want to tell this joke out loud, how do you pronounce "10" ? >> >> Ten >> >> It's still "ten" regardless of what the dictionary may say. Ten is >> not defined by the base 10. >> >> For example, you don't say "one" is not "one" because it belongs to >> another base, do you? >> >> Or, as in the case of base 16, you don't have another pronunciation >> for "A", do you? >> >> Such as in: >> >> 1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,10 >> >> 10 in any number system is still ten. >> >> tedd > > >Not exactly. Ten is merely a name we give to the digit sequence 1 0 >when representing a number in base 10. Nope, it's the name I give to any number representing a base placeholder. http://en.wikipedia.org/wiki/Placeholder Follow Free_variables_and_bound_variables link: http://en.wikipedia.org/wiki/Free_variables_and_bound_variables Ten is simply a variable meant to represent the second placeholder in a number. >If you called 10 base 2 Ten, what would you call 1010 base 2? One thousand ten. Thousand is simply a variable meant to represent the fourth placeholder in a number. >If you were saying 10 base 2 out loud, you should probably just say Two, >though that kind of defeats the purpose of the joke... > >Dan What about "ten" in Hex? How do you say that out loud? tedd -- -------------------------------------------------------------------------------- http://sperling.com From 1j0lkq002 at sneakemail.com Thu May 11 16:52:36 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Thu, 11 May 2006 13:52:36 -0700 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> <44624FAD.1080901@n0p.net> <4463813F.2040408@phpwerx.net> Message-ID: <6654-48003@sneakemail.com> tedd tedd-at-sperling.com |nyphp dev/internal group use| wrote: > What about "ten" in Hex? How do you say that out loud? eh? From tedd at sperling.com Thu May 11 16:59:39 2006 From: tedd at sperling.com (tedd) Date: Thu, 11 May 2006 16:59:39 -0400 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: <6654-48003@sneakemail.com> References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> <44624FAD.1080901@n0p.net> <4463813F.2040408@phpwerx.net> <6654-48003@sneakemail.com> Message-ID: >tedd tedd-at-sperling.com |nyphp dev/internal group use| wrote: > >> What about "ten" in Hex? How do you say that out loud? > >eh? > Aha, a Canadian -- commonly known locally as a "frost-back". :-) tedd -- -------------------------------------------------------------------------------- http://sperling.com From admin at tallchild.com Thu May 11 16:59:57 2006 From: admin at tallchild.com (Jon Strong) Date: Thu, 11 May 2006 14:59:57 -0600 Subject: [nycphp-talk] PHP Proxy Message-ID: I am trying to create a proxy server using php, I can view the webpage with just the text but none of the image or flash are there, also when you click on a link it just goes to the site. Can someone point me in the right direction. I am a fairly new php programmer and this is the hardest project i have done so far. Jon Strong From michael.southwell at nyphp.org Thu May 11 17:27:23 2006 From: michael.southwell at nyphp.org (Michael Southwell) Date: Thu, 11 May 2006 17:27:23 -0400 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> <44624FAD.1080901@n0p.net> <4463813F.2040408@phpwerx.net> Message-ID: <6.2.3.4.2.20060511171813.02550a80@mail.optonline.net> At 04:50 PM 5/11/2006, you wrote: >What about "ten" in Hex? How do you say that out loud? The characters "t" and "n" do not exist in the Hex character set, so the string "ten" can't exist there. The character "0" doesn't exist either, so the string "10" also can't exist there. You can't say what doesn't exist. Of course, the concept "ten" (which could also be represented as "10" or as "1010") does exist in Hex, and it would have to be pronounced "ay". So the point of the original joke is that it can only be read, not pronounced, to be effective, because reading it tricks you into mixing up the two bases (if I remember it right). Michael Southwell, Vice President for Education New York PHP http://www.nyphp.com/training - In-depth PHP Training Courses From 1j0lkq002 at sneakemail.com Thu May 11 17:35:07 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Thu, 11 May 2006 14:35:07 -0700 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> <44624FAD.1080901@n0p.net> <4463813F.2040408@phpwerx.net> <6654-48003@sneakemail.com> Message-ID: <26001-59959@sneakemail.com> tedd tedd-at-sperling.com |nyphp dev/internal group use| wrote: >>tedd tedd-at-sperling.com |nyphp dev/internal group use| wrote: >> >> >> >>> What about "ten" in Hex? How do you say that out loud? >>> >>> >>eh? >> >> >> > >Aha, a Canadian -- commonly known locally as a "frost-back". :-) > >tedd > > yeah, living too close to the border these days. But then, were I from "up north", I'd have said : "eh, eh?" From nasir81 at gmail.com Thu May 11 18:26:47 2006 From: nasir81 at gmail.com (Nasir Zubair) Date: Thu, 11 May 2006 18:26:47 -0400 Subject: [nycphp-talk] PHP Proxy In-Reply-To: References: Message-ID: <40fcda730605111526h525fdfe6nff92fb0cc5d86c23@mail.gmail.com> Hi Jon, If I understand correctly, you are making a proxy script (kinda like Anonymizer). If so, you need to process HTML of the page you just processed and update all the links to go through your script. You should take a look at CGIProxy - Nasir On 5/11/06, Jon Strong wrote: > > I am trying to create a proxy server using php, I can view the > webpage with just the text but none of the image or flash are there, > also when you click on a link it just goes to the site. Can someone > point me in the right direction. I am a fairly new php programmer and > this is the hardest project i have done so far. > > Jon Strong > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -- Nasir Zubair http://www.nasir.us/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From admin at tallchild.com Thu May 11 18:50:07 2006 From: admin at tallchild.com (Jon Strong) Date: Thu, 11 May 2006 16:50:07 -0600 Subject: [nycphp-talk] PHP Proxy In-Reply-To: <40fcda730605111526h525fdfe6nff92fb0cc5d86c23@mail.gmail.com> References: <40fcda730605111526h525fdfe6nff92fb0cc5d86c23@mail.gmail.com> Message-ID: <2FA75F17-9EDC-4AEB-A23C-EA8DE65A0FCA@tallchild.com> Thank you Nasir, the cgiproxy looks good, but I was wondering if there is a way to do that with php, I am trying to learn more php and I though this would be a hard project to do. Jon Strong On May 11, 2006, at 4:26 PM, Nasir Zubair wrote: > Hi Jon, > > If I understand correctly, you are making a proxy script (kinda > like Anonymizer). If so, you need to process HTML of the page you > just processed and update all the links to go through your script. > > You should take a look at CGIProxy < http://www.jmarshall.com/tools/ > cgiproxy/> > > - Nasir > > On 5/11/06, Jon Strong < admin at tallchild.com> wrote: > I am trying to create a proxy server using php, I can view the > webpage with just the text but none of the image or flash are there, > also when you click on a link it just goes to the site. Can someone > point me in the right direction. I am a fairly new php programmer and > this is the hardest project i have done so far. > > Jon Strong > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > > -- > Nasir Zubair > http://www.nasir.us/ > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > 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 darkwulf at clan-forsaken.com Thu May 11 23:24:44 2006 From: darkwulf at clan-forsaken.com (DarkWulf) Date: Thu, 11 May 2006 20:24:44 -0700 Subject: [nycphp-talk] PHP Proxy In-Reply-To: References: Message-ID: <4463FFFC.1050002@clan-forsaken.com> You want to somehow rewrite the links/images/etc to point to your proxy. Use regex/str_replace of some sort to scan and replace urls (eg: http://othersite.com/page.htm) with your proxy (eg: http://mysite.com/proxy.php?url=othersite.com/page.htm) and so on. Its actually somewhat tricky (need to parse css, and html doing replacements. And there are many different places to replace.) Best of luck -Hsiu-Fan Jon Strong wrote: > I am trying to create a proxy server using php, I can view the > webpage with just the text but none of the image or flash are there, > also when you click on a link it just goes to the site. Can someone > point me in the right direction. I am a fairly new php programmer and > this is the hardest project i have done so far. > > Jon Strong > From tero.tahtinen at kateetti.fi Fri May 12 01:44:15 2006 From: tero.tahtinen at kateetti.fi (=?iso-8859-1?Q?Tero_T=E4htinen?=) Date: Fri, 12 May 2006 08:44:15 +0300 Subject: [nycphp-talk] PHP Proxy In-Reply-To: <2FA75F17-9EDC-4AEB-A23C-EA8DE65A0FCA@tallchild.com> Message-ID: <002301c67587$1ac63570$6400000a@KTWLAMD64> I've built a PHP proxy few years ago also. Are you using the web proxy with www-client (~Firefox) or are you using it with Curl or some library like that? Because after you have configured the web-proxy to web browser it should use it to all links/images/data files automatically. Have you checked that there ain't any list of sites that should be connected directly? Main problem with my proxy-server was ability to reuse socket connection with following request's from same source. First it would be easiest to add an extra header to content you send to browser (or Curl) with following line: "Connection: close" . I recommend that you build somekind of header parser that can modify received and forwarded headers. For example all kinds of cache headers could be that way disabled (if so wanted). If you make header parser it is quite easy to add for example max image filesizes and conversion from different file formats to another. This way I can now browse web with my mobilephone because all pictures are converted and sent much smaller than they appear at websites. - Tero T?htinen -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Jon Strong Sent: Friday, May 12, 2006 1:50 AM To: NYPHP Talk Subject: Re: [nycphp-talk] PHP Proxy Thank you Nasir, the cgiproxy looks good, but I was wondering if there is a way to do that with php, I am trying to learn more php and I though this would be a hard project to do. Jon Strong On May 11, 2006, at 4:26 PM, Nasir Zubair wrote: Hi Jon, If I understand correctly, you are making a proxy script (kinda like Anonymizer). If so, you need to process HTML of the page you just processed and update all the links to go through your script. You should take a look at CGIProxy < http://www.jmarshall.com/tools/cgiproxy/> - Nasir On 5/11/06, Jon Strong < admin at tallchild.com> wrote: I am trying to create a proxy server using php, I can view the webpage with just the text but none of the image or flash are there, also when you click on a link it just goes to the site. Can someone point me in the right direction. I am a fairly new php programmer and this is the hardest project i have done so far. Jon Strong _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk New York PHP Conference and Expo 2006 http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php -- Nasir Zubair http://www.nasir.us/ _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk New York PHP Conference and Expo 2006 http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php From tedd at sperling.com Fri May 12 07:44:05 2006 From: tedd at sperling.com (tedd) Date: Fri, 12 May 2006 07:44:05 -0400 Subject: [nycphp-talk] Alphanumeric Range In-Reply-To: <6.2.3.4.2.20060511171813.02550a80@mail.optonline.net> References: <44621457.9080002@optonline.net> <446235B3.8010704@phpwerx.net> <44623979.5090301@optonline.net> <446244FD.2050706@phpwerx.net> <446248E2.4080701@optonline.net> <44624FAD.1080901@n0p.net> <4463813F.2040408@phpwerx.net> <6.2.3.4.2.20060511171813.02550a80@mail.optonline.net> Message-ID: >At 04:50 PM 5/11/2006, you wrote: >>What about "ten" in Hex? How do you say that out loud? > >The characters "t" and "n" do not exist in the Hex character set, so >the string "ten" can't exist there. >The character "0" doesn't exist either, so the string "10" also can't >exist there. > >You can't say what doesn't exist. You just did -- you used the word "what". tedd -- -------------------------------------------------------------------------------- http://sperling.com From nyphp at n0p.net Fri May 12 08:21:41 2006 From: nyphp at n0p.net (Flavio daCosta) Date: Fri, 12 May 2006 08:21:41 -0400 Subject: [nycphp-talk] $_SESSION in Static function In-Reply-To: <52865ad20605110358j573d5565x9db51ba603968a@mail.gmail.com> References: <52865ad20605110358j573d5565x9db51ba603968a@mail.gmail.com> Message-ID: <44647DD5.8040608@n0p.net> AFAIK: $_SESSION should be available in the global scope. My wonder would be if there is a logic issue, as looking at the provided code, there could be an issue in the GetSessionParm () call if there wasn't a prior call to SetSessionParm () in the same page request. The 'self::$data["session"] = $_SESSION;' is only set in the SetSessionParm function and thus on a new page hit calling GetSessionParam () would report null. I would also check to make sure session_start() is being called in all cases before accessing your session wrapper. Another note with regards to addslashes. Although it is good that you are doing something, be cautioned that addslases is a _generic_ (if all else fails) kind of safety function. In practice, it is usually best if you properly escape your output specifically for the subsystem it will be handed off to. For example, if you will be passing those variables to a database, use a database escape function pg_escape_string() (postgresql), mysql_escape_string(), etc. [or data binding.] If you are passing it to a command line, use escapeshellcmd()/escapeshellargs(), if you are sending to browser, use htmlentities(). The reason for this is that each subsystem has their own set of metacharacters, and a generic solution like addslashes may not give you the maximum protection PHP offers. Hope that helps flav From danielc at analysisandsolutions.com Fri May 12 08:52:59 2006 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 12 May 2006 08:52:59 -0400 Subject: [nycphp-talk] MySQL 4 vs. 5 and character encoding (?) In-Reply-To: References: <20060511001031.GA16870@panix.com> Message-ID: <20060512125258.GA23633@panix.com> Dude: On Thu, May 11, 2006 at 12:51:42PM -0400, Rahmin Pavlovic wrote: > > So -- just so I get this straight -- say I ALTER TABLE to set the default > character set to be UTF-8, then insert a brand new record filled with > high-bit chars, it will still not be able to read certain characters and > introduce '?' and whatnot in their stead? No. OLD DATA will not magically fixed, which is what you were talking about when you started this thread. NEW DATA will be fine. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From rahmin at insite-out.com Fri May 12 09:44:19 2006 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Fri, 12 May 2006 09:44:19 -0400 Subject: [nycphp-talk] MySQL 4 vs. 5 and character encoding (?) In-Reply-To: <20060512125258.GA23633@panix.com> Message-ID: On 5/12/06 8:52 AM, "Daniel Convissor" wrote: > Dude: > > On Thu, May 11, 2006 at 12:51:42PM -0400, Rahmin Pavlovic wrote: >> >> So -- just so I get this straight -- say I ALTER TABLE to set the default >> character set to be UTF-8, then insert a brand new record filled with >> high-bit chars, it will still not be able to read certain characters and >> introduce '?' and whatnot in their stead? > > No. OLD DATA will not magically fixed, which is what you were talking > about when you started this thread. NEW DATA will be fine. > That's just the thing: new data gets mangled in the exact same way, which is why I thought it wasn't a charset-collation issue. From b.vamsidhar at gmail.com Fri May 12 11:15:33 2006 From: b.vamsidhar at gmail.com (Vamsidhar Bethanabatla) Date: Fri, 12 May 2006 20:45:33 +0530 Subject: [nycphp-talk] $_SESSION in Static Methods Message-ID: <52865ad20605120815w5423473ew3a41d47ec322f91d@mail.gmail.com> Hi Flav, Your views regarding the class have been very helpful to me. I designed this wrapper class in a very absurd manner. I was learning by expermenting in developing wrapper classes and eventually and very regretfully I also implemented it in a live environment (my mistake). Your point is right in case the 'data' member is not filled prior to calling GetSessionParm(). This is how I Use this class There is an Initialization procedure common to all pages in another utility class called page.class.php. Following is a snippet from it. //Set session timeout to 2hrs ini_set('session.gc_maxlifetime', 2*60*60); if (!session_id()) session_start(); self::$formDataObj = new HttpRequest(); The constructor of HttpRequest says function __construct() { $this->SetFormData(); } and the SetFormData is like this /** * This function get the information from * POST,GET,REQUEST and SESSION arrays and stores * it in the object's data attribute */ public function SetFormData($data = null) { global $_SESSION; if(null == $data) { self::$data["post"] = isset($_POST) ? $_POST : null; self::$data["get"] = isset($_GET) ? $_GET : null; self::$data["request"] = isset($_REQUEST) ? $_REQUEST : null; self::$data["session"] = isset($_SESSION) ? $_SESSION : null; } else { self::$data = $data; } } when GetSessionParam is called the session data should have been set into the data member varible. Pl. let me know if there is again any critical prob. in this code. This code has worked without any 'global' declartion on two of our installations one local(windows) and other live (linux) but when the server was shifted somehow the user was not able to login to the system. When I tracked the prob. it came to be that after validating the user the system puts an object in the session indicating the validity and this object is not available on another page using GetSessionParm. The prob. is somewhere in this classs itself because $_SESSION alone works fine. your notes regarding use of addslashes had been very informative for me. I am thankful to you. (I still wonder why I created a constructor to fill static data :) ) Regards, Vamsi -------------- next part -------------- An HTML attachment was scrubbed... URL: From ps at pswebcode.com Fri May 12 11:24:55 2006 From: ps at pswebcode.com (Peter Sawczynec) Date: Fri, 12 May 2006 11:24:55 -0400 Subject: [nycphp-talk] MySQL 4.1.5-gamma-nt Upgrade >> MySQL 5.0.21 Message-ID: <001f01c675d8$39698440$68e4a144@Rubicon> Dear Daniel Convissor or Hans or other Gurus: I want to safely upgrade MySQL on Windows Server 2003. I saw Dan's great tutorial at http://www.analysisandsolutions.com/code/mybasic.htm#installation Based on current practices and issues, can I do the following: Move 1: The Upgrade 1) Grab the "Windows (x86) Installer" to install MySQL 5. 2) NET STOP mysql a) Install MySQL5 into new, unique directories. b) Specify a new name for the mysqld service. c) Listen on a different port. d) Run >> mysql_upgrade --user=root_user --password=user_pwd --basedir=mysql5_basedir --datadir=mysql5_datadir Does moving from 4.1 to 5 introduce a new password encryption style issue like 3.2 to 4.1? Will the above steps give me two safely seperated instances of MySQL on the same box? Move 2: Data Transfer 1) Dump the old MySQL 4.1 data, as Dan suggests. 2) Make the "TYPE=ISAM" to "TYPE=MyISAM" change inside the dump file. 3) Import into MySLQ 5. Will the above steps work and give me a dual MySQL4 and MySQL5? Thanks to any and all who can comment. Warmest regards, Peter Sawczynec, Technology Director PSWebcode _Design & Interface _Ecommerce _Database Management ps at pswebcode.com 718.796.1951 www.pswebcode.com From lists at genoverly.net Mon May 15 09:48:29 2006 From: lists at genoverly.net (michael) Date: Mon, 15 May 2006 09:48:29 -0400 Subject: [nycphp-talk] OT? reverse mod_rewrite Message-ID: <20060515094829.268a6cab@openpad.genoverly.home> I'm trying to keep 'pretty' urls on this small webiste I'm working on. I have a page that presents 'our stores' in the 50 US States, so users can find one. The page opens and there is select box for states. The user selects one and hits GO (form action=post) The stores are listed, grouped by city and ordered by store. The store name are actually links; when clicked it shows store details like address, hours, etc. Those store links are done in 'pretty form'. I wrote the rewrite rules to break up an incoming request like this: /root/find/state/city/store_id ..into.. index.php?NAV=store_finder;STATE=state;CITY=city;SID=store_id Every is working well. My problem is cosmetic.. after selecting a store and viewing the information, the pretty url is in the browser bar. If the user selects a new state, the form works (I capture the post in PHP), but the browser bar still shows the previous request. This was way-to-much info to ask.. How do I capture GET/POST variables in mod_rewrite so I can use them? I know I could change the 'form action=get' and there is a {QUERY STRING} available to me in mod_rewrite, but I could not figure out how to get the vars out of it BEFORE it gets passed along. I need to reverse; ?selected_state=NY ..into.. /root/find/NY .. and let existing rules take over. Can anyone give a nudge in the right direction? -- michael From nyphp at n0p.net Mon May 15 10:31:19 2006 From: nyphp at n0p.net (Flavio daCosta) Date: Mon, 15 May 2006 10:31:19 -0400 Subject: [nycphp-talk] OT? reverse mod_rewrite In-Reply-To: <20060515094829.268a6cab@openpad.genoverly.home> References: <20060515094829.268a6cab@openpad.genoverly.home> Message-ID: <446890B7.1070209@n0p.net> A few suggestions: Have an absolute URI for the form action, and then make all generated store location links with the pretty URI just as you do for the initial landing. Or perhaps checking the $_SERVER['REQUEST_URI'] in the code that processes the "new state" switch. Then issue a header('Location ...') if needed. Hopefully helpful Flav From urb at e-government.com Mon May 15 10:38:04 2006 From: urb at e-government.com (Urb LeJeune) Date: Mon, 15 May 2006 10:38:04 -0400 Subject: [nycphp-talk] upgrading to php5 Message-ID: <7.0.1.0.0.20060515103635.03c7da70@usats.com> Hello, I upgraded to PHP5 and the upgrade went smoothly. There is a major difference with array_merge() in PHP5 if one of the arrays is null. $Array1 = array_merge($Array2,$Array3); If either $Array2 or Array3 is null $Array1 will be null even though the other array is loaded. Is anyone aware of a listing of function containing potential upgrade problems when upgrading to PHP5. I also had a problem with session_register() which I solved by simply assigning variables to the super global $_SESSION Urb From codebowl at gmail.com Mon May 15 13:42:56 2006 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 15 May 2006 13:42:56 -0400 Subject: [nycphp-talk] Zend Studio on Mac OSX Message-ID: <8d9a42800605151042o17058fc5q4d71381518db72ea@mail.gmail.com> Hello all, I am using a windows keyborad on a mac G5 with zend studio, i noticed everytime i hit alt-c to commit the changes to svn it seems to add this charachter to the end of the line. I dont see it harming the code but i dont think i like it adding charachters. ? Any idea what this may be caused by? It doesnt do it if i right click and commit through the zend menu but that is a pain. Thanks, -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonbaer at jonbaer.com Mon May 15 14:20:20 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Mon, 15 May 2006 14:20:20 -0400 Subject: [nycphp-talk] Which "ajax/xhr framework" are you using in PHP5? Message-ID: <54C3AB1A-4424-4F13-A346-790B663938C7@jonbaer.com> Ive become a Japhuby programmer the past few months and switching back and forth, the last PHP bit I used Sajax for simple remote calls but then got seriously hooked on Rails/Prototype/RJS and have to jump back so I may use something w/ CakePHP but I thought Id ask a general .. "what ajax lib" you are using (no explanation needed) as the whole XHR thing is pretty trivial ... - Jon From jack at m5net.com Mon May 15 17:30:13 2006 From: jack at m5net.com (Jack Warner) Date: Mon, 15 May 2006 17:30:13 -0400 Subject: [nycphp-talk] Advice on Cake vs Symfony Message-ID: <11AFDF6416D4F64C928950B680A8163EF9D970@m5dcex.M5NET.local> Greg - I'm essentially in the same situation you are - making the decision between Cake and Symfony. Your post is from January - have you come to a decision since then? I am leaning toward Symfony due primarily to the abundance of documentation and the general 'buzz' I have been noticing on the net, but I'm curious to know which framework you went with. Thanks, Jack -------------- next part -------------- An HTML attachment was scrubbed... URL: From chsnyder at gmail.com Mon May 15 18:32:37 2006 From: chsnyder at gmail.com (csnyder) Date: Mon, 15 May 2006 18:32:37 -0400 Subject: [nycphp-talk] Which "ajax/xhr framework" are you using in PHP5? In-Reply-To: <54C3AB1A-4424-4F13-A346-790B663938C7@jonbaer.com> References: <54C3AB1A-4424-4F13-A346-790B663938C7@jonbaer.com> Message-ID: On 5/15/06, Jon Baer wrote: > Ive become a Japhuby programmer the past few months and switching > back and forth, the last PHP bit I used Sajax for simple remote calls > but then got seriously hooked on Rails/Prototype/RJS and have to jump > back so I may use something w/ CakePHP but I thought Id ask a > general .. "what ajax lib" you are using (no explanation needed) as > the whole XHR thing is pretty trivial ... > > - Jon Prototype is scratching a lot of itch for me right now. I think of it as JavaScript 2.0. Not sure what extra candy you get when using it with Rails, but it sure is useful with php. My only gripe is that there is no API documentation that combines "standard" and Prototype js, so you have to keep at least two tabs open to get the full story: http://www.sergiopereira.com/articles/prototype.js.html and http://www.krook.org/jsdom/ (thanks, Dan!) I have also been using the visual effects and drag-n-drop features in Script.aculo.us, though I hacked that up pretty heavily to support multiple-selection. I want to add Behavior, too, just to get all the