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 …
Author : Reetesh Gupta
316 posts
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
Redirect / http://www.myphphelper.com/
RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^olddomain\.com$ [NC] RewriteRule ^(.*)$ http://newdomain.com [R=301,L]
RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteEngine on RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]