[PHP] intermittent failure of php date

2010-01-18 Thread John Corry
. There's no pattern I can see. I even tried to force it to show a date by selecting a formatted date and displaying that if the original programmer's strtotime failed. Where do you look for help with intermittent failures of a date field in the DB? -- John Corry PHP developer - 3by400, Inc http

[PHP] Re: intermittent failure of php date

2010-01-18 Thread John Corry
The field in the DB is defined as type date. I've had several event registrations for an upcoming event come through. THe event date is '2010-01-27'. 2 of the 5 event registrations contained empty values for the date. wtf? On Mon, Jan 18, 2010 at 10:23 AM, John Corry jcorry.li...@gmail.com

[PHP] IDE - SVN - dev server - live server

2010-01-14 Thread John Corry
will work. This has got to be a fairly typical workflow and problem. What are some of the strategies you folks use for designing your flow of code from local IDE to SVN to dev server to production server? -- John Corry PHP developer - 3by400, Inc http://www.3by400.com

[PHP] RewriteCond / rule for mod_rewrite

2010-01-12 Thread John Corry
with why? -- John Corry PHP developer - 3by400, Inc http://www.3by400.com

Re: [PHP] POLL: To add the final ? or not...

2010-01-12 Thread John Corry
I leave ? out. I'm pretty careful about my code formatting and whitespace. It's my opinion that if I can eliminate a potential problem by not including an optional closing tag...there's really no reason why I shouldn't. -- John Corry PHP developer - 3by400, Inc http://www.3by400.com

Re: [PHP] Checking for internet connection.

2009-12-19 Thread John Corry
Curl_init() will return a resource or false if it fails, like it would if no Internet connection were present. J Corry Sent from my iPhone On Dec 19, 2009, at 5:36 PM, Angus Mann angusm...@pobox.com wrote: Why can't you put the update on the same LAN server that the app resides? If

[PHP] mod_rewrite...https index page - http index page

2009-12-01 Thread John Corry
with regex and all of my attempts to modify examples I've found have failed. -- John Corry PHP developer - 3by400, Inc http://www.3by400.com

[PHP] sending HTML email

2009-10-05 Thread John Corry
problem as of the server move. Any suggestions which direction to look to try to resolve this? -- John Corry PHP developer - 3by400, Inc http://www.3by400.com

Re: [PHP] get an object property

2009-09-11 Thread John Corry
Wouldn't it be $o[1]-a? J Corry Sent from my iPhone On Sep 11, 2009, at 7:31 PM, Tom Worster f...@thefsb.org wrote: if i have an expression that evaluates to an object, the return value from a function, say, and i only want the value of one of the objects properties, is there a tidy way

[PHP] PHP 5.3 date.timezone

2009-07-17 Thread John Corry
date.default_longitude35.25.2333 date.sunrise_zenith90.5890.58 date.sunset_zenith90.5890.58 date.timezone*no value**no value* -- John Corry PHP developer - 3by400, Inc http://www.3by400.com

[PHP] Google Apps AuthSub = missing $_GET element

2009-02-14 Thread John Corry
{ $pic-redirectToLoginPage('http://twozerowest.com/snowdog%20gallery/admin.php' , 1); } Anyone have ANY idea what's going on? John Corry email: jco...@gmail.com

Re: [PHP] Sorting times

2009-02-14 Thread John Corry
1. convert the string representation of times to timestamps using strtotime() 2. sort the timestamps 3. display the timestamps as strings using date('format', timestamp) Would that work? John Corry email: jco...@gmail.com On Feb 14, 2009, at 4:07 PM, tedd wrote: Hi gang: Anyone have

[PHP] Lightweight Picasa API v3

2009-02-13 Thread John Corry
Anyone using Cameron Hinkle's Picasa API? I'm having a bitch of a time trying to get the AuthSub methods working and would love to trade ideas if anyone is familiar. thanks, John Corry email: jco...@gmail.com

[PHP] pear:Auth invalid username/password

2009-02-02 Thread John Corry
it to be included. Anyone know of such a thing? John Corry

Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-01-30 Thread John Corry
Same here. They're just extraneous elements and can hide whitespace. I leave them open in all applcation files and close them only in templates. I only close tags inside templates. All of my logic code is outside of markup though so those files never have a closing ? for exactly the

Re: [PHP] To check for existing user in database

2009-01-15 Thread John Corry
You might want to (seriously) look at the PEAR Auth class. It can save you a TON of time...all the stuff you're trying to do with this code (that you were just told you're going to have to rewrite) is already done for you. It's very handy for registering/tracking users of your sites. John Corry

Re: [PHP] Zend (or other) Framework...where to start?

2009-01-14 Thread John Corry
and commitments, this 'playing around' is going to have to take place in the production, for-hire context. Surely we're all familiar with 'on the job training', right? ; ) John Corry ZF isn't going to save you any time on a single project. The time savings is over time with multiple projects where

Re: [PHP] Couple of beginner questions

2009-01-11 Thread John Corry
. Good luck, John Corry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Convert CMYK values to RGB values?

2009-01-09 Thread John Corry
notice that some class descriptions look promising. John Corry On Fri, Jan 9, 2009 at 8:03 PM, Shawn McKenzie nos...@mckenzies.net wrote: c...@l-i-e.com wrote: Short Answer: You can't. :-) http://en.wikipedia.org/wiki/CMYK Long Answer: You probably can, but not in some way that makes sense

Re: [PHP] First steps towards unix and php

2009-01-08 Thread John Corry
Ubuntu linux has been really easy to set up, administrate and install/run programs. It has a huge user base, really good support forums and supports a large variety of hardware configurations. I'm running it on my Thinkpad T40, which I use for PHP development when travelling. It's rock solid and

Re: [PHP] [SOLVED] Re: can a session be used in a query?

2009-01-08 Thread John Corry
I read (well, skimmed anyway) this thread and saw that the original poster's issue was resolved. For the archives though, I'd like to mention that the PEAR Auth and MDB2 packages would make all of the things that are being done by this code much easier for the programmer. Auth allows you to

Re: [PHP] Re: First steps towards unix and php

2009-01-08 Thread John Corry
included classes/files), code explorer views/trees, SVN/CVS support, debugging...very capable IDEs. Zend costs $$, Eclipse/PDT is free. John Corry On Thu, Jan 8, 2009 at 6:33 PM, Skip Evans s...@bigskypenguin.com wrote: Ross McKay wrote: You should also check out editors and IDEs - STFW for previous

Re: [PHP] Search functionality in website.

2008-12-29 Thread John Corry
Or even a google search widget... Miles Thompson wrote: On Mon, Dec 29, 2008 at 10:47 AM, Tiji varghese tij...@yahoo.co.in wrote: ht-dig (or digg) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Php mysql update

2008-12-29 Thread John Corry
Wouldn't it be: mysql_query(UPDATE database set Field = Field+1 WHERE Criteria='Criteria'); Note: no '' around +1, = operator John Corry ad...@buskirkgraphics.com wrote: Okay maybe i have just forgot. I am trying to update the database and do a +1 to a int field without pulling the data

Re: [PHP] Need Help

2008-12-29 Thread John Corry
1. It's generally considered poor etiquette to send that much code to a mailing list. How about snipping the relevant section next time? 2. the error says: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result. There's your clue. Is the query good? Is the connection good? I'm getting a

Re: [PHP] Need Help - apology

2008-12-29 Thread John Corry
That was too heavy handed. I'm sorry. Please forgive my harshness. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Help Needed

2008-12-27 Thread John Corry
that is going to demand a little more of you than just reducing your app to 2 steps and asking a mailing list how to do it. Good luck, let us know how it goes and how we can help you take (much smaller) steps. John Corry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Webhotel structure

2008-12-27 Thread John Corry
+1 Is it me or has the php mailing list kind of dumbed itself down in the last 5 years? What? -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to