Server signature is one of the easiest way to find what type of operating system and Apache version is used in a web server. But this is also dangerous when coming to security,
Author: DevOpsTechie
Get all href links from a html content in PHP
TO get all href links from a html content in PHP using DOMDocument.
Here is the simple code snippet.
Create User In MySQL With ReadOnly Access
To create a user in mysql with readonly access, following is the useful command.
Login with root access and use following commands.
CREATE USER ‘use’@’localhost’ IDENTIFIED BY ‘password’;
GRANT SELECT ON database.* TO user@’localhost’ IDENTIFIED BY ‘password’;
How to add a block in Drupal and how to configuring a block in Drupal
Blocks are the boxes of content that can be displayed in regions (such as footer or sidebar) on your page. Depending on your themes regions you may have the ability to include blocks in your right,
Syntax Highlighting in Drupal WordPress post and comments
If you want to highlight the code/syntax when making yor comments/post in Drupal and WordPress, just wrap it with the following tag.
[sourcecode language=php]
// Your Code Here
[/sourcecode]
The above piece of code will be highlighted with PHP code format.
jQuery & Cookies – How to get/set/delete cookies in jQuery
To get/set/delete cookies in jQuery, for this you can use jQuery Cookie plugin
Here is how to use jQuery Cookie plugin in your code:
How to get tables statistics / tables status in MySQL
MySQL tables statistics / MySQL tables status
To get the MySQL table status and to get more information about table (size, engine, no. of rows etc.), following is the very useful command.
Popular Drupal Modules / Popular Modules In Drupal
Drupal Modules
The most popular Drupal modules
Here you will find a list of the most popular Drupal modules, a short description of what they do, a download link plus how to install instructions.