How to remove html tags from string using php? We can remove html tags from string by using strip_tags() in php. The strip_tags() function strips a string from HTML, XML, and PHP tags. Syntax : strip_tags(string,allow) The first parameter string is mandatory and it specifies input string which we want to strip. The second parameter […]
Generate QR code using codeigniter
How to generate QR code using codeigniter ? In this tutorial we’ll discuss about generate QR code using codeigniter. QR code is an another form of barcode and the QR stands for Quick response. The difference between QR code and barcode is barcode stores data in horizontal direction where qr code can hold data in […]
Generate barcode in codeigniter using zend library
How to generate barcode in codeigniter? Create display barcode using codeigniter with zend barcode library In this article we’ll discuss how to generate barcode in codeigniter using the zend barcode library Download and copy zend files to application/libraries Controller : Main.php Create a controller Main.php and paste the below code Generate a random number load […]
Highlight and Compare strings with differences and similarities in php
How to compare strings with differences and similarties in php ? In this article we’ll discusshow to compare strings with differences and similarities in php. Usually we can use strcmp() to compare strings but it returns binary as result. Here we want to show the differences and similarities. This is a simple method to compare […]
jQuery validation for confirm password
How to validate password and confirm password using jQuery ? Earlier we have discussed how to validate a form validation with jQuery validate plugin, in this tutorial we’ll check how to validate password and confirm password using the same jquery validate plugin. We can easily validate password and confirm password using jQuery validation plugin. In […]
Validate a form using jQuery
How to validate a form using jQuery or form validation using jQuery plugin ? We can validate a form using jQuery very simply and in an easy way. jQuery provides plugins for validate forms and all we have to do is just include those plugins and specify rules. By this plugin the clientside form validation […]
Disable Mouse Right click
How to disable mouse right click using javascript? Most of the time we may need to disable mouse right click in our website in order to reduce any kind of malfunctions. In javascript we can do this very simply with a single step. HTML : Just design a html page. Copy paste the above code […]
Upload image from URL in codeigniter
How to upload image from url in codeigniter? Rather than selecting a file from drive and uploading into folder we can upload image from URL. For that we just need to specify the url of image. View/uploadimagefromurl.php Declare a form with input type file box and submit button. For styling use the following Bootstrap link. […]
Compress and upload Image using PHP
How to compress and upload image using Php? Uploading large sized files will always take more time and also it will occupy more disk space. To solve this issue better option is reducing the image size and then upload it. Go through the tutorial for compress and upload image using php. HTML : Declare a […]
Scroll to top on button click
How to scroll to top on button click? When we are at the bottom of our page instead of scrolling mouse it is very easy and user-friendly to have a button to scroll to top with a single click. We can accomplish scroll to top on button click with jQuery very easily. HTML : Attach […]