Function return the html structured star with both rated and not-rated. Call function to get star ratings echo rating_html(4); //Function for html star rating function …
Read MoreCodeIgniter
Get MIME type from encoded image in php
Get MIME type from encoded image in php Get info from data: image Like: Example:$data_image = ‘data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAA.’; //$data_base64_encoded = Your encoded data: data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAA $data_base64_encoded = …
Read MoreUploading Image from android to PHP server
Uploading Image from android to PHP server: Android Upload Image To Server Using PHP MySQL is showing error. In my app i am uploading an …
Read MoreCan’t access my xampp server remotely
– Can’t access my xampp server remotely – httpd-xampp.conf: How to allow access to an external IP besides localhost? – This 192.168.2.11 page can’t be …
Read MoreUsing PHP mail – setting correct MIME type
# Send Mail format # Using PHP mail – setting correct MIME type $to = “test@gmail.com”; $subject = “Test subject”; $message = “Test message”; // …
Read MoreWhat are \r and \n meaning in PHP?
# What are \r and \n meaning in PHP? # What are r and n meaning in PHP? # What does “/r” “/n” mean \r …
Read MoreSend sms from website in php
#Send sms from website in php public function send_text_message($sms_type = ”, $to = “”, $replace = array()) { $sms_info = sms data; if ((isset($sms_info[‘username’]) && …
Read Moreupload file base64 encoded
if(!empty($_POST)){ if(!empty($_FILES)){ //–on upload file (image) get details & encoding base64 :Starts– $file_name = $_FILES[‘file’][‘name’]; $file_size= $_FILES[‘file’][‘size’]; $file_tmp= $_FILES[‘file’][‘tmp_name’]; $file_ext = strtolower( end(explode(‘.’,$file_name))); …
Read MoreConvert stdClass object to array
#Convert stdClass object to array foreach ($object as $value){ $array[] = $value->post_id; }
Read MoreWhich Version of Codeigniter I am using?
#Which version of CodeIgniter am I currently using? Ans: Yes, the constant CI_VERSION will give you the current CodeIgniter version number. CodeIgniter 2, it’s defined …
Read More