PHP | htmlentities() The htmlentities() function is used to convert all applicable characters to HTML entities.   <?php $str = '<a href="http://www.studyzone4u.com">Let's GO</a>'; echo htmlentities($str); // output will be (source code) &lt;a href=&quot; http://www.studyzone4u.com &quot;&gt;Let's …

Last updated 7 years, 2 months ago | 3697 views

Tags:- PHP

PHP | file_exists( ) Function The file's existence can be confirmed using the file_exist() function which takes the file name as an argument. file_exist("abc.jpg")   The file_exists() function is an inbuilt function in PHP that …

Last updated 7 years, 1 month ago | 3666 views

Tags:- PHP

strstr() and stristr() strstr() and stristr() both are use to find first occurence of a string, but the differences are strstr( ) is case sensitive where as stristr( ) is case insensitive.   strstr() – …

Last updated 7 years, 2 months ago | 3659 views

Tags:- PHP

Codeigniter | The default URL pattern In CodeIgniter, URLs are designed to be search-engine and user-friendly. CodeIgniter uses a segment-based approach rather than using a "query string" based approach. http://www.example.com/user/edit/rakesh The default URL pattern in …

Last updated 6 years, 11 months ago | 3537 views

Tags:- CodeIgniter

Codeigniter | List Databases supported By Codeigniter Following Databases are supported by Codeigniter Frameworks: Database Name Drivers to support Codeigniter MySQL MySQL (deprecated), MYSQLI and PDO drivers Oracle oci8 and PDO drivers PostgreSQL Postgre and …

Last updated 6 years, 11 months ago | 3512 views

Tags:- CodeIgniter

JQuery | Print HTML page with CSS printThis is a jquery library which can print specific or multiple DOM element without losing css style. Features Print specific & multiple DOM elements Preserve page CSS/styling or add …

Last updated 7 years, 2 months ago | 3474 views

Tags:- JQuery

Codeigniter | Remove index.php from URL in Codeigniter? The file index.php is the root file of Codeigniter. it contains setting code for CodeIgniter. So, when we redirect to other pages the URL comes with index.php …

Last updated 7 years, 2 months ago | 3440 views

Tags:- CodeIgniter

Session in php A session is a global variable which is used to store users/sensitive information on the server. Each session register a unique session id which is use to fetch stored value. Session store …

Last updated 7 years, 9 months ago | 3328 views

Tags:- PHP

Python | Get the first 5 words from a string This can be done by using the `split()` and `join()` methods >>> massage = 'Today is a sunny day but tomorrow it might rain' >>> …

Last updated 5 years, 4 months ago | 3300 views

Tags:- Python

Python | Print prime no between 1 to 100 This is an example of how to print all prime numbers between 1 and 100 using for loop. A prime number is a natural number greater …

Last updated 5 years, 1 month ago | 3300 views

Tags:- Python

When working with PHP, there are situations where you may want to trigger an external URL in the background without affecting the user experience. This can be useful for logging, API calls, or background processing …

Last updated 1 year, 2 months ago | 3251 views

Tags:- PHP

JQuery | Select dropdown item based on the value Change the selected option by value on the select box with jQuery is common nowadays. So let us have a select element with the list of …

Last updated 6 years, 11 months ago | 3213 views

Tags:- JQuery JavaScript

unlink() and unset() The unlink() and unset() function in php have same functionality (i.e.: delete) but the difference is in the type of data on which they are applied to perform such delete functionalities. unlink() …

Last updated 7 years, 9 months ago | 3196 views

Tags:- PHP

PHP | Download pdf file To download a pdf file in PHP, we need to use the header() function. In the header() function, we need to pass "Content-Disposition" which is used to supply a recommended filename …

Last updated 7 years, 9 months ago | 3141 views

Tags:- PHP

PHP | Remove html tags from a string The strip_tags() function is use to remove any HTML, XML, and PHP tags from a string.   <?php echo strip_tags("Hello <b><i>world!</i></b>","<b>"); // Output will be Hello world! …

Last updated 7 years, 2 months ago | 3138 views

Tags:- PHP