BLog
Want to Learn About Coding?
Remove dashboard widgets for user-id
The way to remove dashboard widgets from the specific user/users. function remove_dashboard_widgets() { global $current_user; $user_id = get_current_user_id(); // echo "user:".$user_id; // Use this to find your user id quickly if( $user_id == '3'){ global...
Upload file directly from URL with just FTP
Create index.php file in the folder that you want to upload file from the web address. Go to that web address that you just have made <?php exec("wget http://domain.com/path-to-file.zip"); ?> OR <?php define('BUFSIZ', 4095); $url =...
Remotely Extract Uploaded ZIP Archives Online FTP
The Unzipper The Unzipper is a PHP script that can extract ZIP and GZIP archives on webservers. All you need to do is upload a PHP file and access the file from your web browser. The Unzipper will only list any ZIP/GZIP files that are located in the same directory as...
Host Google fonts locally
Plugin Host Google Fonts Locally
htaccess Serve static assets with an efficient cache policy
# BEGIN Serve static assets with an efficient cache policy <IfModule mod_headers.c> <FilesMatch "\.(ico|jpe?g|png|gif|swf|css|gz)$"> Header set Cache-Control "max-age=2592000, public" </FilesMatch> <FilesMatch "\.(js)$"> Header set Cache-Control...
.htaccess Add expire headers
<IfModule mod_expires.c> ExpiresActive on ExpiresDefault "access plus 1 month" ExpiresByType image/gif "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/jpg "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month"...