How to hide PHP version in the HTTP Headers

In default Apache/PHP configuration, the server sends HTTP Header with the information of which PHP version is running on the server. The HTTP response header “X-Powered-By” displays the version of PHP that is running on the server. This information can be used by hackers to try to exploit any vulnerabilities in the PHP version you […]

How to hide PHP version in the HTTP Headers Read More »

How to apply a function to every array element in PHP

How to apply a function to every array element in PHP Read More »

WordPress $ is not defined even if jQuery is loaded

WordPress $ is not defined even if jQuery is loaded Read More »

MySQL ordering results by specific field values

MySQL ordering results by specific field values Read More »

Sample MySQL table

For my MySQL posts here is a sample MySQL table that I would be using for my examples. I would refer my posts back to this for table structure and sample data. Table structure: +———+————-+——+—–+———+——-+ | Field | Type | Null | Key | Default | Extra | +———+————-+——+—–+———+——-+ | name | varchar(20) | YES

Sample MySQL table Read More »