# LIST IMAGE INFO list($width, $height, $type, $attr) = getimagesize($_FILES[“img”][‘tmp_name’]); echo $width; // shows width echo $height; // shows height
Read MoreMonth: December 2016
Php – How to add day,month,year with current date
## ADD DAYS, MONTHS, YEAR WITH CURRENT MONTHS:: FORMAT:: date(‘Y-m-d’, strtotime(‘+2 months’)); EXAMPLE:: $duration = 5; if($calas == “days”) { $plus = ‘+’.$duration.’ …
Read MorePhp – How to use form Validation in CodeIgniter
## MAKE REQUIRED AND UNIQUE IN CODEIGNITER // ONLY REQUIRED FIELDS $this->form_validation->set_rules(‘answer4’, ‘Answer Four’, ‘required’); // ONLY REQUIRED WITH DATABASE UNIQUE VALUE $this->form_validation->set_rules(‘title’, ‘Question …
Read MorePayUMoney – Testing Credentials for payumoney
## PayUMoney Payment Gateway Testing Credentials:: Below is the test card details for doing a test transaction in the testing mode. Credit Card Number …
Read MorePhp- Show any text only 100 letters
## In a particular div by using this we can show only 100 letters and then … in php by removing tags. $product_description = html_entity_decode($product_description); …
Read MorePhp: decode html data in php
## HTML DECODE :: varible $product_offer_decsription; html_entity_decode($product_offer_decsription);
Read MorePhp: How to show star rating
## Showing Rating in Php using star & blank rating $ProductId = 1; $product_rating_qu = mysql_query(“select avg(rating) as star_rate from ratings where ratedto='” . $ProductId …
Read MoreJavaScript: show confirm alert on click
## By calling this function on form submit, will confirm for submit <script> function confirmme() { var r = confirm(“Want To Submit this..??”); if(r) …
Read MorePhp: show number with two decimal point
## make number format upto 2 decimal point here we can use, number_format(): echo number_format((float)$number, 2, ‘.’, ”); ## Example: $foo = “105”; echo number_format((float)$foo, …
Read More