How to Display Confirm box when clicking a Link?

Confirm box is more useful to confirm the user action like while deleting data, we can easily set confirm box to a link with onclick attribute and little JavaScript. Look at the following example,i am sure you will easily get it to your projects . <a href="something.html" onclick="return confirm(‘Are you Sure you want to do [...]

HTML5 Force Download

In html5 we can easily set up force download with attribute called download, just check out the fallowing markup. the download attribute allows you to set separate name to download with actual(same) link point extension <a href="link_to_download" download="set new name to download">Html5 download</a>

How to Get Width and Height of The Image Using PHP?

In PHP there is a built in function to get Image Width and Height, its Called getimagesize(),By Using this function we can get the width, height, type of an image and also attribute of an image Just check out this Script and Change image Name to your Image name and check it ! <?php $image [...]

How to Get full web page URL from address bar with php?

In this Tutorial We are Going to get full URL of The Current viewing page from the Address Bar , its Really Easy and simple. Just see the Bellow Script <?php echo ‘http://’.$_SERVER[’HTTP_HOST’].$_SERVER[’REQUEST_URI’]; ?>

Yii Framework Basic Tutorial

Yii Framework Basic Tutorial

Yii is Open Source PHP Framework. Qiang Xue is the founder of yii, He started the development of this open source framework on January 1st, 2008. What is Yii? Yii is fast and Easy,efficient and secure framework Yii is great tool kit for developing Web 2.0 applications. Great documented PHP framework Why Yii? Yii is [...]

How to Flush the DNS cache ?

Flush dns to get a new nameserver resolution for a domain .Rebooting will flush your cache. but there is an easier way. To flush DNS  cache in Windows (Win XP, Win ME, Win 2000, vista, windows7):- – Start -> Run -> type cmd – in command prompt, type ipconfig /flushdns – Done! You Window DNS cache [...]

Enquiry From with CodeIgniter?

This article will show and explain to you , how to create simple Enquiry Form in CodeIgniter. In this Example we will have a Form with Name , E-Mail ID, Phone Number, Enquiry fields. Here in this example we use codeIgniter Form helper[$this->load->helper(‘form’)] and CI Form Validation Library [$this->load->library(‘form_validation’)]. First Create A Form :[application/views/enquiry_view.php] <?php [...]

Twitter Type like Login Box with Jquery and CSS?

Here is the simple tutorial About Twitter Like Login Box Show and Hide effect with JQuery, You can achieve this with less lines of code Using JQuery Events, and require some css to give styles. Html Code : <div id="singin"><a href="#">signin</a></div> <div id="signin_menu" style="display:none"> <form action="" id="signin" method="post"> <p class="textbox"> <label for="username">Username or email</label> <input [...]

Uploading PDF files with CodeIgniter ?

CodeIgniter is a PHP framework, CodeIgniter has a number of helpers and libraries , which will reduce the development time and we can write more reliable and bugs free Code. Here ,This post is about uploading files in CodeIgniter, CodeIgniter has upload library , by using this Class we can upload files on server very [...]

How to Centre a DIV Block Using CSS?

This post is About Centering A div Block Using Css, To Center a Div Block , you need to set left-margin and right-margin either in pixels or em or percentage units. For example if you have a div with class name container, set the margin to container left and right sides auto, set the container [...]

You might also likeclose