You Are Viewing Posts Under Category: PHP Codes

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...
How-To-Get-Remote-File-Size-Or-URL-Size-In-B,-KB,-MB,-GB-Format-Using-PHP

How To Get Remote File Size Or URL Size In B, KB, MB, GB Format Using PHP?

Do you want to know about how to get external hosted remote file size or URL size is fully formated as Bytes, KiloBytes, MegaBytes, GigaBytes format using pure PHP without having any external class then you are on the right place to find out the code? Before processing the code, here we want to firs...
How-To-Add-Fullcalendar.io-In-PHP-and-MySql

How To Add Fullcalendar.io In PHP and MySql?

FullCalendar.js plugin is a javascript event calendar and this plugin we can use any web technology and it is easy to use any server-side script like PHP, ASP, JSP, etc. It is a JavaScript-based calendar but after a little tweaking, we can use it with PHP with databases like Mysql also. It is a jque...
How-To-Send-Email-With-SMTP-And-Attachment-Using-phpmailer-in-PHP

How To Send Email With SMTP And Attachment Using phpmailer in PHP?

Sending an email is a very common activity in web applications and websites. For example, sending an email when a user wants to contact you from your website, a new user joins your network, sending a newsletter, sending greeting mail, or sending an invoice, etc. We can use the built-in mail() , a fu...