Manish Singh

Social, writer

     

Function to Convert HTML to PDF in PHP CodeIgniter using Dompdf lirary

In this tutorial we are cover how to convert HTML to PDF in PHP CodeIgniter using Dompdf, Now we are going to do how toтАж Read More


How to Create custom helper in CodeIgniter PHP

In this Tutorial, we will create a custom helper in your CodeIgniter application. What Is the Helper Function:- Helper functionsтАж Read More


 
Manish Singh | 02-Jul-2019 06:35

If any Query for this article please let me know...  thanks

LAAL RANG Randeep Hooda, SINGER - VIKAS KUMAR, It's my best song

Awsm song...and Randeep...you are GOD...you can pull off any damn role..but this one is a killer. Read More


Prevent sql injection on login page in php codeigniter

In the web application for security, SQL injections play an important role to avoid Hacking┬аand more┬аin PHP orтАж Read More


Visual Studio Code keyboard shortcuts Ubuntu & Linux

Visual Studio Code keyboard shortcuts help programmers to maximize their software products and it allows them to work fasterтАж Read More


Quotes for Girls to Empower

Read More


 
Manish Singh | 08-Jun-2019 11:08

Nice Quote thanks for this.

Splitting integer variable value in limit or put in PHP Array

If Working kind of task to create a PHP array to splitting integer value so you can use this code. Let's start withтАж Read More


Drupal 7 join Query with Limit and orderBy

Use the below code for fetching field values from activity_log table or users table. You can Use Limit in Drupal 7 queriesтАж Read More


Lagdi Lahore Di | Killer Bold Love Story(Latest)

Master Series Present's Lagdi Lahore Di ReMixed By Dj Lucky , a Very powerful voice sung by guru_randhawa , Best singerтАж Read More


create login API in PHP CodeIgniter for android application

We show you how to use PHP CodeIgniter to create a RESTful API for user login with authentication┬аand get user loginтАж Read More


 
michael Thanh | 09-May-2019 06:49

login API by get method?

 
Manish Singh | 09-Aug-2019 13:12

Yes Use PHP get Method to requert API  

$this->input->get('email');
$this->input->get() is reference to php core $_GET['email']┬а;

 

 
Ahmad Aldi | 06-Dec-2019 09:33

where is coding in android studio sir ?

Forgot password using Codeigniter, Ajax, Jquery, and send a password recovery email

Most of the Codeigniter developers will look for forgot password functionality by sending a recovery email to register emailтАж Read More


I do it because I can

'рдореИрдВ рдРрд╕рд╛ рдХрд░ рд╕рдХрддрд╛ рд╣реВрдВ рдХреНрдпреЛрдВрдХрд┐ рдореИрдВ рдХрд░ рд╕рдХрддрд╛ рд╣реВрдВ,┬а ┬ардХреНрдпреЛрдВрдХрд┐ рдореИрдВ рдЪрд╛рд╣рддрд╛ рд╣реВрдВ, рдореИрдВ рдЪрд╛рд╣рддрд╛ рд╣реВрдВ рдХреНрдпреЛрдВрдХрд┐ рдЖрдкрдиреЗ рдХрд╣рд╛ рдерд╛ рдХрд┐тАж Read More


How to create forgot password API in PHP, MySQL and send password on mail

┬аIn this tutorial, we'll show you How to create forgot┬аpassword API in PHP, MySQL and password recovery emailтАж Read More


how can call any REST API with PHP cURL Extension

There are two methods to call REST API one is "GET" or "POST", you can call any type of API urls. UseтАж Read More


Codeigniter projects on GitLab | Manage repository | Codeigniter code version control

In this article I am going to tell you how to manage a Codeigniter project on GitLab version control system. Now weтАЩreтАж Read More


Add multiple Cron Job in Ubuntu 14.04

You can create cron job in your Ubuntu system using following steps here we go. Step 1. Open your terminal using shortcutтАж Read More


рд╢реЗрд░ рд╕рд┐рдВрд╣ рд░рд╛рдгрд╛ рдЕрдлрдЧрд╛рдирд┐рд╕реНрддрд╛рди рдХрд╛ рдЦрддрд░рдирд╛рдХ рдорд┐рд╢рди

рдЕрдлрдЧрд╛рдирд┐рд╕реНрддрд╛рди ┬ардХреЗ рдЦрддрд░рдирд╛рдХ ┬ардорд┐рд╢рди ┬ардХреЛ рдХреИрдорд░реЗ ┬ардореЗрдВ рдХреИрдж ┬ардХрд┐рдпрд╛ рд╢реЗрд░ рд╕рд┐рдВрд╣ рд░рд╛рдгрд╛ ┬ардиреЗ рдФрд░ рднрд╛рд░рдд рд▓реЗ рдЖрдпреЗ рдереНрд╡реАрд░рд╛рдЬтАж Read More


рд╢реЗрд░ рд╕рд┐рдВрд╣ рд░рд╛рдгрд╛ рдХреА рд╣реИрд░рдд рдЕрдВрдЧреЗрдЬрд╝ рдХрд╣рд╛рдиреА рдЬреЛ рдЬреБрдбреА рд╣реИ рдкреГрдереНрд╡реАрд░рд╛рдЬ рдЪреМрд╣рд╛рди рд╕реЗ

рдпреЗ рдХрд╣рд╛рдиреА рд╣реИ рднрд╛рд░рдд рдХреЗ рдПрдХ рд░рд╛рдЬрдкреВрдд рдХреЗ рдЕрджрдореНрдп рд╕рд╛рд╣рд╕ рдХреА рдЬрд┐рд╕реЗ рдбрдХреИрдд рд╕реЗ рдмрд╛рдиреА рд╕рд╛рдВрд╕рдж рдлреВрд▓рди рджреЗрд╡реА рдХрд╛ рд╣рддреНрдпрд╛рд░рд╛ рдорд╛рдирд╛ рдЧрд╛рдп рдФрд░ рдЖрдЬреАрд╡рди рдХрд╛рд░рд╛рд╡рд╛рд╕ рджрд┐рдпрд╛тАж Read More


how to upload image using rest API in PHP codeigniter

For uploading image from android┬аapplication using REST API most preferable method is to pass base64 encoded imageтАж Read More


 
swetha karimsetti | 27-May-2019 17:01

public function upload(){
    $image = base64_decode($this->input->post("p_image"));
    $image_name = md5(uniqid(rand(), true));
    $filename = $image_name . '.' . 'png';
    //rename file name with random number
    $path = "./uploads/images/".$filename;
    //image uploading folder path
    file_put_contents($path . $filename, $image);
    // image is bind and upload to respective folder

    $data_insert = array('p_image'=>$filename);
    if(!empty($data_insert )){
    $success=$this->db->insert('projects', $data_insert);
    
    }else{ } 
    if($success){
        $b = "User Registered Successfully..";
    }
    else
    {
        $b = "Some Error Occured. Please Try Again..";
    }
    echo json_encode($b);
     
}

In the above code i can't understand why it is uploading 2 times in the db with 2 different paths and also in the upload folder the path of the image is taking 2 times ,iam not getting what's wrong with this code...

 
swetha karimsetti | 27-May-2019 17:05

iam new to this ,plz help me to get out of this.

 
Manish Singh | 09-Aug-2019 13:02

Use this core php code  to move image into folder..

    $image = base64_decode($this->input->post("p_image"));
    $image_name = md5(uniqid(rand(), true));
    $filename = $image_name . '.' . 'png';
    //rename file name with random number
    $path = "./uploads/images/".$filename;
    //image uploading folder path
    file_put_contents($path . $filename, $image);
    // image is bind and upload to respective folder

 
rakesh sapariya | 19-Sep-2019 12:10

in this above code in the folder image file format not supported.
i mean file upload in the folder but not display view

 
Mayu More | 25-Jan-2020 14:00

$data_image = $_POST['data_image'];

list($type, $data_image) = explode(';', $data_image);

list(, $data_image) = explode(',', $data_image);

$data_image = base64_decode($data_image);

//rename file name with random number text

$image_name = time().'_mad_x_'.rand(1,100);

$filename = $image_name.'.'.'png';

(making folder just in case(not present))

$upload_path = './assets/img/upload/';

if(!is_dir($upload_path)) mkdir($upload_path, 0777, TRUE);

$path = "./assets/img/upload/".$filename;

// image is bind and upload to respective folder

file_put_contents($path, $data_image);

//final value to store in database

$image_upload_full_path = 'assets/img/upload/'.$filename;

Working Code

рд╕реНрдЯреАрдлрди рд╣реЙрдХрд┐рдВрдЧ рдХреЗ рд╡рд┐рдЪрд╛рд░

рд╕реНрдЯреАрдлрди рд╣реЙрдХрд┐рдВрдЧрдЬрд┐рдВрджрдЧреА рдореЗрдВ рдХреЛрдИ рднреА рдХрд╛рдо рдЫреЛрдЯрд╛ рдирд╣реАрдВ рд╣реЛрддрд╛ рд╣реИ| рдмрд▓реНрдХрд┐ рдХрд╛рдо рд╣реА рдЖрдкрдХреЛ рдЬреАрдиреЗ рдХрд╛ рдордХрд╕рдж рджреЗрддрд╛ рд╣реИ |рдЕрдЧрд░ рдХрд┐рд╕реА рдЖрджрдореА рдХреЗ рдЬрд┐рдВрджрдЧреА рдореЗрдВтАж Read More


Sunil Grover as professor and Dr. Gulati honeymoon night, New tv serial

рд╕реБрдиреАрд▓ рдЧреНрд░реЛрд╡рд░ рдЙрд░реНрдл тАЛтАЛрдкреНрд░реЛ рдПрд▓рдмреАрдбрдмреНрд▓реНрдпреВ рдХреА рдкрддреНрдиреА рдХреЗ рд░реВрдк рдореЗрдВ рд╢рд┐рд▓реНрдкрд╛ рд╢рд┐рдВрджреЗ рдЖрдЬрдХрд▓ рдпреЗ рджреЛрдиреЛрдВ рджреЛрдиреЛ рдирд┐рдХрд▓ рдЧрдпреЗ рд╣реИ рдЕрдкрдирд╛ рд╣рдиреАрдореВрди рдордирд╛рдиреЗ редтАж Read More


The pregnant elephant accident by indian train 2018

рдЗрдВрдбрд┐рдпрди рдЯреНрд░реИрди рдЖрдЬ рддрдХ рдРрд╕реЗ рд╣реА рдХрд░рддреЗ рдЖрдП рд╣реИ рдЯреНрд░реИрди рдХреЛ рдХрд╛рд░ рдФрд░ рдмрд╛рдЗрдХ рдкреЗ рд╕рд╡рд╛рд░ рд▓реЛрдЧреЛ рдкреЗ рдЪреЭрд╛ рджреЗрддреЗ рд╣реИ рддреЛ рдХрднреА рдЬрдВрдЧрд▓ рдХреЗ рдЬрд╛рдирд╡рд░реЛрдВ рдкреЗ редрдЖрдк рдЗрд╕ рд╡реАрдбрд┐рдпреЛтАж Read More


 
Bablu Tiwari | 18-Jun-2018 15:33

????????????????????

 

рд╣рд┐рдиреНрджреВ рдирд╡ рд╡рд░реНрд╖ 18 рдорд╛рд░реНрдЪ 2018 рдкрд░ рд╕реНрд▓реЛрдЧрди, рдореИрд╕реЗрдЬ рдФрд░ рдХреНрд╡реЛрдЯреНрд╕

рд╣рд┐рдиреНрджреВ рдирд╡ рд╡рд░реНрд╖ рдХрд╛ рдЖрд░рдореНрдн рд╣реЛ рдЧрдпрд╛ рд╣реИ 18 рдорд╛рд░реНрдЪ 2018 рднрд╛рд░рддреАрдп рдирд╡ рд╡рд░реНрд╖ - рдпреЗ рджрд┐рди рдЧреБрдбреА рдкрдбрд╡рд╛ рдХреЗ рдирд╛рдо рд╕реЗ рднреА рд▓реЛрдЧ рдЬрд╛рдирддреЗ рд╣реИ, рдЗрд╕ рдкреНрд░рдХрд╛рд░ рдЗрд╕реЗтАж Read More


How to submit a form or image using codeigniter, ajax with load button

We can pass all form data using jquery on submit and get all value in codeigniter controller Step:1 Create an HTML formтАж Read More


View all data on Google Map with image, using PHP,SQL, and XML

In this tutorial shows you how to put database table data on Google Map using the PHP SQL and XML. is very simple 1st youтАж Read More


How to load View in helper using PHP, Codeigniter?

Yes, you can load any view TPL file into your custom Helper, now create┬аa Helper file into application/helper folderтАж Read More


PHP CSV file export function with custom headers

In this tutorial, we are going to create a custom PHP function to export MySQL records in the CSV file. Many developersтАж Read More


How to Create own helper function in CodeIgniter

You can Create Helper function in application helpers folder, it is a PHP file with multiple functions. It is not a classтАж Read More


Who to follow View all

 
leathergaze Social, writer
 
Jonson Social, writer
 
john Social, writer
 
Andre Social, writer
 
crossfell225 Social, writer

Newsletter

Subscribe to our newsletter. Get the latest updates!