Date format validation in PHP
In case of date format checking in PHP just use this function: function checkDateFormat($date) { //match the format of the date if (preg_match ("/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/", $date, $parts))...
In case of date format checking in PHP just use this function: function checkDateFormat($date) { //match the format of the date if (preg_match ("/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/", $date, $parts))...
Error on attempt to connect locally to MySQL server DB with PHP on MacOS X Lion 10.7: No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) Solution 1: instead of localhost...
In case of MySQL error 2006 (HY000) at line: ### MySQL server has gone away which may occur while restoring a big DB dump just add (or increase, if exists) max_allowed_packet parameter of MySQL...
Git features The Stash, which is as much as a good place to store uncommitted changes. When you stash you changes, the will be stored, and your working copy will be reverted to HEAD (the last commit...
Error: I have got "Unable to connect to proxy server" error while running IBM Think Vantage System Update. OS is Windows 7. Fix: Internet Explorer: Tools => Internet Options => Connections => Lan...
Configuration identify yourself to git: email and your name git config --global user.name "John Smith" git config --global user.email "abc@mail.com" To view all options: git config --list OR cat...
Problem:How to copy / paste text from git?Text select and Ctrl-C + Ctrl-V does not paste the copied text. And there is no Edit / Copy / Paste menu item.Solution:gitk supports the normal X clipboard,...
At some point, you may have a situation where you want to center multiple elements (maybe <div> elements, or other block elements) on a single line in a fixed-width area. Centering a single element...
You can push the branch up to a remote very simply: git push origin newfeature Where origin is your remote name and newfeature is the name of the branch you want to push up. Deleting is also a pretty...
The most simple way is adding the following new command in the X11-> application -> customize: xterm -geometry 72x34+100+40 -fn *-fixed-*-*-*-20-* &