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
___
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
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
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
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
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.
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
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
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
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
-- 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
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
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
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
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
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
;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
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
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
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
>
>
20 matches
Mail list logo