You Are Viewing Posts Under Category: HTML-CSS-PHP-JavaScript

How-To-Remove-Or-Strip-All-HTML-Tags-In-Content-Using-Pure-JavaScript

How To Remove Or Strip All HTML Tags In Content Using Pure JavaScript?

Normally on the server-side, you could use a series of PHP functions (such as strip_tags) and remove HTML and ugly formatting. However, if you’re unable to use the server (or you use Node.js) to achieve this task, then you can still use Javascript to do it. In this article, you will find 3 way...
How-To-Set-Or-Specify-Referring-Page-Using-Pure-JavaScript

How To Set Or Specify Referring Page Using Pure JavaScript?

Like you are making a web app or writing any program where you need to know that from which page your visitor or use came to the current page then it is possible via pure plain vanilla javascript. The reason will be many behind implementing this logic like to display the personalized experience to t...
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...