Do you want to calculate difference between two dates in PHP? I mean difference between two dates in days, months, years using php. if yes than i will show you to PHP get difference between two dates using strtotime(), abs() and floor(). We may sometime require to get difference between in PHP for your application, …
Author : Reetesh Gupta
310 posts
Git Commands git config Usage: git config –global user.name “[name]” Usage: git config –global user.email “[email address]” This command sets the author name and email address respectively to be used with your commits. ———————————————————- git init Usage: git init [repository name] This command is used to start a new repository. ————————————————– git clone Usage: git …
git config Usage: git config –global user.name “[name]” Usage: git config –global user.email “[email address]” This command sets the author name and email address respectively to be used with your commits.
Open crontab in your terminal:EDITOR=gedit crontab -e Add your cron settings at the end of your file (we are setting cron to be execute in every 2 minute in our example):*/2 * * * * /usr/bin/php -q /path/to/phpfile.php > /dev/null Save your cron file and run:sudo service cron restart
Definition and Usage The date() function formats a local date and time, and returns the formatted date string. Syntax -: date(format,timestamp); Parameter Description format Required. Specifies the format of the outputted date string. The following characters can be used: d – The day of the month (from 01 to 31) D – A textual representation …
sort() – sort arrays in ascending order. asort() – sort associative arrays in ascending order, according to the value. ksort() – sort associative arrays in ascending order, according to the key. arsort() – sort associative arrays in descending order, according to the value. rsort() – sort arrays in descending order. krsort() – sort associative arrays …
order allow,deny deny from xxx.xxx.xxx.xxx #specify a specific address allow from all
php_value upload_max_filesize 32M
SetEnv APPLICATION_ENV development
Redirect /olddir /newdir