Get basename and file extension with PHP

Webserveglobal Admin
0 Comments
Get basename and file extension with PHP
Getting file extension and basename using PHP internal function pathinfo is very useful. But, Windows paths will not work correctly on Linux servers and vice versa. In this case you may use the alternative way.  Get file extension1) Using pathinfo (recommended): $file_ext ...
Continue Reading

Browser detection using Javascript

Webserveglobal Admin
1 Comment
Browser detection using Javascript
Detection of browser is a very common task that we need to perform in our regular web application development. There are lot of plugins available on the web to extract browser information. Browser detection using Javascript is so simple, we have a small javascript code which extracts browser name b...
Continue Reading

How to compress CSS on the fly using php

Webserveglobal Admin
0 Comments
How to compress CSS on the fly using php
How to minify JS and CSS on the fly / runtime, so that I can keep the original code structure in my servers if its minified on the runtime / fly. Using a little PHP you can combine & minify all of your CSS files This not only reduces the overall filesize, but also minimises HTT...
Continue Reading

Difference Between include, include_once in php

Webserveglobal Admin
0 Comments
Difference Between include, include_once in php
The include and require statements are identical, except upon failure:     - If file not found require will produce a fatal error (E_COMPILE_ERROR) and stop the script     - If file not found include will only ...
Continue Reading

How to send a attachment with PHP Mail

Webserveglobal Admin
0 Comments
How to send a attachment with PHP Mail
PHPMailer is one of the most popular open source PHP libraries to send emails. so in this tutorial I am going to show you how to send email with attachment in PHP. PHPMailer library 1) Download the PHPMailer library at https://github.com/PHPMailer/PHPMailer ...
Continue Reading

How to setup a cron job command to execute an URL?

Webserveglobal Admin
0 Comments
How to setup a cron job command to execute an URL?
A cron job allows you to run a certain command at times set by the job. For example, you could set a cron job to delete temporary files every week so that your disk space is not being used up by those files.To access the Cron Jobs Menu, click on the corresponding icon located in the Advanced section...
Continue Reading

Understand the Data URIs

Webserveglobal Admin
0 Comments
Understand the Data URIs
Data URI is a new URI ( Uniform Resource Locator ) format, which allows small files to be embedded inlined in an HTML document. This doesn't require any absolute or relative path to the resource which is physically placed on the server. URLs prefixed with data: allows embed small files in the docume...
Continue Reading

How to Clear the Facebook Share Cache

Webserveglobal Admin
0 Comments
How to Clear the Facebook Share Cache
The problem that I often encounter is that Facebook has already cached the post, and the updates I make — specifically the title and description — don’t show when I go to share the post. Facebook DebuggerThe first step is access the Debugger tool that Facebook makes availabl...
Continue Reading

How to convert hex code to rgb

Webserveglobal Admin
2 Comments
How to convert hex code to rgb
Covert Hex code to RGB is the color code conversion. A JavaScript code to convert Hex code to RGB which takes Hex color code as input and return the RGB color code as output. Please find the code below to create a simple Hex code to RGB color code convertor. HTML <!--Input for Hex color code...
Continue Reading

Close dropdown on click outside anywhere on body

Webserveglobal Admin
0 Comments
Close dropdown on click outside anywhere on body
It is a very common situation where we have to create dropdowns for web applications. Dropdown use to have hidden actionable links which use to reveal on clicking on dropdown link or button. There is a most common issue we face when we create a dropdown is close dropdown on click outside anywhere o...
Continue Reading
Showing 11 to 20 of 44 (5 Pages)
my ad

Website in ₹4999*

Get your own website in ₹4999*

Latest Blogs

Advertise Here

For more details about advertisements and how to advertise with us

Contact us