Tag: PHP

what is php 3 1 - Using PHP DOM Functions to Parse PHP and Find Links

Using PHP DOM Functions to Parse PHP and Find Links

When developing websites, there are a million and one reasons that you will find yourself needing to parse some HTML to find snippets of information. On the face of it, most of the time a simple regular expression will do the trick, particularly...

what is php 3 1 - Simple PHP & MySQL Pagination

Simple PHP & MySQL Pagination

When looking at MySQL output, it is sometimes more convenient to split up the number of records returned into separate pages and include hyperlinks to further pages in the result set, a layout often referred to as pagination. The following is an...

what is php 3 1 - HTTP Fetching in PHP Without cURL

HTTP Fetching in PHP Without cURL

On some shared hosting accounts, cURL, fopen or file_get_contents functions may be disabled ‘for security reasons’, yet you can still achieve HTTP fetching using socket functions. This simple class of code will allow you to do a wide...

what is php 3 1 - Simple PHP .htpasswd 🔑 Manager

Simple PHP .htpasswd 🔑 Manager

Sometimes simplicity is also convenient, and in the case of authentication on the most popular web server, Apache, .htpasswd fits the bill You may opt for a PHP/MySQL login which in itself is simple enough, but requires the availability of MySQL. If...