Re: [nyphp-talk] REGEXP Solution Needed

2010-09-08 Thread Scott Mattocks
s actually 'size=10'. The last occurrence is the value that will be passed to the server so that's probably the only one you care about. If you want to verify that there is only one occurrence use strpos(...) == strrpos(...) in addition to the checks above. -- Scott Mattocks ___

Re: [nyphp-talk] good language for small GUI app?

2010-03-09 Thread Scott Mattocks
David Mintz wrote: Thanks for the replies. @Scott: I wondered about PHP+Gtk, and will give it a look. Is your book pretty much up-to-date? Not really. It is a few years old. To be perfectly honest, I wouldn't recommend spending money on it unless you are going to continue writing PHP-GTK app

Re: [nyphp-talk] good language for small GUI app?

2010-03-09 Thread Scott Mattocks
ed for the GUI. I can recommend a book on the topic if you'd like :) -- Scott Mattocks ___ New York PHP Users Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/Show-Participation

Re: [nyphp-talk] JPEG Preview of PDFs

2009-05-07 Thread Scott Mattocks
Peter Sawczynec wrote: I need on file upload to grab the uploaded PDF and generate a JPEG preview of page 1 of that PDF. exec('/usr/bin/convert /path/to/pdf.pdf[0] /path/to/image.jpg'); -- Scott Mattocks Author: Pro PHP-GTK http://www.cri

Re: [nyphp-talk] Cookie

2009-03-19 Thread Scott Mattocks
t the function figures out you really meant / to be the path. You have to put something where the expiration value goes. -- Scott Mattocks Author: Pro PHP-GTK http://www.crisscott.com ___ New York PHP User Group Community Talk Mailing List http://lists.ny

Re: [nyphp-talk] Cookie

2009-03-19 Thread Scott Mattocks
ogged in? Yeah, you are missing the expire parameter and assigning a variable where you should just be setting the value (I know it will work, but it isn't a good idea). Try: setcookie('logged_in', 1, 0, '/'); -- Scott Mattocks Author: Pro PHP-GTK http://www.crisscott.

Re: [nyphp-talk] Scour.com invite from Joseph Crawford

2008-07-24 Thread Scott Mattocks
Do you really plan to spam every list you are on with this message? I just want to know now so that I can set up a filter to remove then automatically. Thanks. ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk

Re: [nyphp-talk] mysql slow Internet connection trickery

2008-06-30 Thread Scott Mattocks
rce trying to fix a non-software problem with software? -- Scott Mattocks Author: Pro PHP-GTK http://www.crisscott.com ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations O

Re: [nyphp-talk] About Formalizing an Enterprise PHP and the PHP+Developer

2008-04-22 Thread Scott Mattocks
and become a real defacto standard. Then you can ask someone "Do you belong to group X? Do you have certification Y? Do you use application/repository Z?" Based on their answers you can make the PHP+ determination yourself. -- Scott Mattocks Author: P

Re: [nyphp-talk] About Formalizing an Enterprise PHP and the PHP+ Developer

2008-04-22 Thread Scott Mattocks
ose steps, your dream of a well respected and formally recognized best practices and applications will follow. -- Scott Mattocks Author: Pro PHP-GTK http://www.crisscott.com ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailma

Re: [nyphp-talk] What does this code do?

2008-03-03 Thread Scott Mattocks
-- rada -- wrote: supposedly converts Windows CRLF to Unix LF: $str =~ s/\r\n/\n/g; That's not any PHP that I have ever seen (especially if you didn't mistakenly leave out the quotes). You might be looking at a bit of Perl code there. -- Scott Mattocks Author: Pro PH

Re: [nyphp-talk] html 5

2008-02-01 Thread Scott Mattocks
meone that depends on a certain action to access a site. Scott Mattocks ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New Yor

Re: [nyphp-talk] Callback syntax

2007-12-12 Thread Scott Mattocks
ble to call return as well. Huh? You want to return the value of the callback? Just return the value of call_user_func(). -- Scott Mattocks Author: Pro PHP-GTK http://www.crisscott.com ___ New York PHP Community Talk Mailing List http://lists.nyphp.or

Re: [nyphp-talk] If/else vs Try/catch

2007-11-28 Thread Scott Mattocks
block the code in the catch section will be executed. The two are not interchangeable. You should read up on exception handling if you think you may need to use try/catch. http://us2.php.net/manual/en/language.exceptions.php -- Scott Mattocks Author: Pro PHP-GTK http://www.crisscott.com

Re: [nyphp-talk] SPL - Do you use?

2007-09-27 Thread Scott Mattocks
code alone. The rest of the code still does things like $thing[$key] = $var; but the SOAP interface has the objects it needs. It saved us from a lot of extra work rewriting tons of code. -- Scott Mattocks Author: Pro PHP-GTK http://www.crisscott.com

Re: [nyphp-talk] Followup: Going weekly rate for php developer/coder in NYC these days?

2007-01-18 Thread Scott Mattocks
but the length was longer). For a solid PHP developer with a graduate degree you should be getting more. By the way, shouldn't the recruiter be able to answer that question the best? It's their job to get people the best they can. -- Scott Mattocks Author: Pro PHP-GTK

Re: [nyphp-talk] PHP 4 Constructor Weirdness

2007-01-08 Thread Scott Mattocks
;s constructor. In this case xyz(). If class xyz didn't have a constructor, then you should expect nothing to be returned. Try putting an echo into def() to verify what is and is not being called. Scott Mattocks ___ New York PHP Community Talk Mailin

Re: [nyphp-talk] Help with while loop

2006-11-27 Thread Scott Mattocks
need. -- Scott Mattocks Author of: Pro PHP-GTK http://www.crisscott.com ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New Yor

Re: [nyphp-talk] [OT] slidePresenter (was: live slide-show delivery viabrowser only)

2006-11-06 Thread Scott Mattocks
ny chance you remember the topic of the presentation, day it was > on, or any other details? > > Thanks, > Allen > > Scott Mattocks wrote: >> Disclaimer: I haven't read the entire thread and I don't have exact details. >> >> I was at ZendCon last week

Re: [nyphp-talk] [OT] slidePresenter (was: live slide-show delivery viabrowser only)

2006-11-06 Thread Scott Mattocks
don't remember who exactly or the name of the script he was using. Nor am I really sure if this is what you are looking for because, as I said above, I haven't read the thread. Anyway, the ZendCon site might be able to help you out. Scott Mattocks P Yurt wrote: > Allen > >