php

/Tag: php

Comment your Code!

By | 2014-01-05T10:17:30+00:00 September 5th, 2012|Code, HTML, JavaScript, jQuery, PHP|

Sure we are all self proclaimed guru’s our code is our kingdom, why should we take notes. We made it we can read it. Well all I can say to that is your logic is flawed. Just cause you write code today into next week does not mean in a month from now after writing [...]

PHP Debug Array or JSON object easily

By | 2014-01-05T10:22:43+00:00 March 8th, 2012|Code, PHP|

As a engineer I work with Arrays of Data, day in and day out. Whether its building them out or pulling them in from somewhere. More often than I’d like to admit something gets lost in translation and I have to see whats going on. Now most people will just simply do a quick debug [...]

PHP Strong Password

By | 2014-01-05T10:23:15+00:00 March 8th, 2012|Code, PHP|

If you want to prompt your users to create password that is a certain length more or less, that is also strong by today’s definition then here is a good example. This can be elaborated on even more but for common use in most practices this is more than enough. You can comment out like [...]

PHP Verify a Dollar Amount

By | 2014-01-05T10:23:29+00:00 March 8th, 2012|Code, PHP|

Just a simple function to see if an input numeric value is actually a US Dollar (USD) format\r\nExample:\r\nTwo Dollar Amounts provided to the script.. 1502.38 and 10O.00\r\n\r\nGood: 1,502.38\r\nBad: 10O.00 came back false. \r\n […]

PHP Validate Credit Card format

By | 2014-01-05T10:23:51+00:00 March 8th, 2012|Code, PHP|

Are you in a bind trying to figure out if that user input credit card number is valid as far as format goes. Not just length but the actual combination of numbers as well? Well then here is a quickie solution. […]

PHP Unix TimeStamp to mySQL DATETIME

By | 2012-03-08T15:50:18+00:00 March 8th, 2012|Code, PHP|

\r\nSometimes you jut want to have a ready need to take a recalculated timestamp from a past/future date and store it in your DB this little function helps achieve that, I notice a lot of people especially newer coders who have a passion for time() timestamps as they are in a sense easier to work [...]