[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 wrote:

[PHP] intermittent failure of php date

2010-01-18 Thread John Corry
nt_date. There are no other references to the variable $event_date. It works most of the time. 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 hel

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

2010-01-14 Thread John Corry
cript files. JS question: is there a js way to do the same thing? Evaluate the js equivalent of PHP's $_SERVER['HTTP_HOST']? If there is, I think this solution 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

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

[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] 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" wrote: Why can't you put the update on the same LAN server that the app resides? If that is not possible,

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

2009-12-01 Thread John Corry
n. I suck 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
s is a new 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 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 to get it withou

[PHP] PHP 5.3 date.timezone

2009-07-17 Thread John Corry
al ValueMaster Value date.default_latitude31.766731.7667 date.default_longitude35.25.2333 date.sunrise_zenith90.5890.58 date.sunset_zenith90.58333390.58 date.timezone*no value**no value* -- John Corry PHP developer - 3by400, Inc http://www.3by400.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: A

[PHP] Google Apps AuthSub = missing $_GET element

2009-02-14 Thread John Corry
en()); echo 'inside try/catch :' . $_GET['token']; #this echo statement inside the try/catch DOES happen...WTF!? } } catch (Picasa_Exception_FailedAuthorizationException $e){ $firephp->log($e, 'error'); } } else { $pic->redirectToLoginPage('http://twozerowest.com/snowdog%20gallery/admin.php' , 1); } Anyone have ANY idea what's going on? John Corry email: jco...@gmail.com

[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
sort of expect 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 sit

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

2009-01-14 Thread John Corry
due to schedule 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 tim

Re: [PHP] Couple of beginner questions

2009-01-11 Thread John Corry
sses to generate basic HTML elements, then tables, then forms, then images. It saved me a bunch of time and taught me to see the website as an application...not as a web-page with pieces of data in it. Somehow, coming to that bit of knowledge was very helpful to my life as a programmer. Good luck,

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

2009-01-09 Thread John Corry
p;hl=en Without looking at any of their code, I do notice that some class descriptions look promising. John Corry On Fri, Jan 9, 2009 at 8:03 PM, Shawn McKenzie wrote: > c...@l-i-e.com wrote: >> Short Answer: >> >> You can't. >> :-) >> >> http://en.wiki

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

2009-01-08 Thread John Corry
ny other 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 wrote: > Ross McKay wrote: >> >> You should also check out editors and IDEs - STFW for pr

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 authe

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 e

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] 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 lit

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

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 wrote: > ht-dig (or digg) > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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.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 find out! >

Re: [PHP] PHP Help Needed

2008-12-27 Thread John Corry
#x27;s a lengthy, complicated process 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 (htt