You Are Viewing Posts Under Category: PHP Codes

How-To-Export-MySQL-Database-Tables-To-Excel-XLS-Using-PHP

How To Export MySQL Database Tables To Excel XLS Using PHP?

Export MySQL Database Tables is a familiar operation for many of us. phpMyAdmin is the go-to choice for a database client in PHP. It provides database administration tools and also allows Exporting MySQL Database Tables. The exported data can be in various formats like SQL, CSV as selected. This tut...
How-To-Export-MySQL-Database-Tables-To-CSV-Format-Using-PHP

How To Export MySQL Database Tables To CSV Format Using PHP?

PHP is widely used for building a wide range of products ranging from web apps to enterprise-level applications. The key to efficient PHP code is to follow proper workflows and automate processes. The result is high quality and bug-free code. In this post, we are going to discuss how can we create a...
How-To-Validate-Identify-Deprecated-HTML-Tags-In-A-WebPage-Using-PHP

How To Validate/Identify Deprecated HTML Tags In A WebPage Using PHP?

Deprecated tags and attributes are those which have been replaced by other, newer, HTML constructs. They are still included in the HTML draft or recommendation but are clearly marked as deprecated. Once deprecated, tags may well become obsolete. The draft “strongly urges” the nonuse of d...
Get-Headers-And-Content-Of-A-URL-Using-Single-CURL-Request-In-PHP

Get Headers And Content Of A URL Using Single CURL Request In PHP

A common question is that Is there any way to get both headers and body for a cURL request using PHP? or Can PHP cURL retrieve response headers AND body in a single request? When an HTTP request has been received by a server, typically the response is sent back to the client. In the […]...
How-To-Parse-A-Remote-URL-WebPage-To-Extract-Desired-Content-Using-PHP

How To Parse A Remote URL WebPage To Extract Desired Content Using PHP?

The domdocument class of Php is a very handy one that can be used for a number of tasks like parsing XML, HTML, and creating XML. It is documented here. In this tutorial, we are going to see how to use this class to parse HTML content. The need to parse HTML happens when are […]...

Get All Resources Like href And src From A WebPage Using PHP

Have you ever wanted to save an online website locally? In most browsers you can do this with a couple of clicks but what if you wanted to do this programmatically? Maybe you want to save all the resources, not just the HTML page, but also the external JavaScript and style sheets and control where [...
How-To-Get-Remote-File-Or-URL-Content,-Size-&-Load-Time-Using-PHP

How To Get Remote File Or URL Content, Size & Load Time Using PHP?

Downloading content at a specific URL is a common practice on the internet, especially due to increased usage of web services and APIs offered by Amazon, Alexa, Digg, etc. PHP’s cURL library, which often comes with default shared hosting configurations, allows web developers to complete this t...