First, write your HTML code like this, and don’t forget to add enctype=”multipart/form-data” <form action=”upload.php” method=”post” enctype=”multipart/form-data”> <input type=”file” name=”fileToUpload” id=”fileToUpload”> <input type=”submit” value=”Upload Image” name=”submit”> </form> Then create a file name called upload.php <?php $path = “form/”; $target_file = $path.basename($_FILES[“fileToUpload”][“name”]); $file=$_FILES[‘fileToUpload’][‘name’]; $result = move_uploaded_file($_FILES[‘fileToUpload’][‘tmp_name’],$target_file.$file); if ($result) { echo “file successfully uploaded”; } else { echo “please select your file”; }

How To Install Django 2 In Mac First, we need to install python3 in our system -> brew install python3 Now check the version of python -> python3 Install pip package management system. -> sudo easy_install pip Install virtualenv for python. -> sudo pip install virtualenv -> virtualenv ven -> cd venv -> source bin/activate Install Django 2 -> pip install django==2.0.3 check django2 version -> python -m django –version Create the Django project with…

1) What is Laravel? Laravel is a free open source “PHP framework” based on MVC design pattern. Laravel has inbuilt features like Eloquent ORM, Blade Template engine, Built-in command-line tool “Artisan”, database structure and build their migration. 2) What are the pros and cons of using the Laravel Framework? Built-in command-line tool “Artisan” for creating a code skeleton, database structure and build their migration.Laravel Framework has in-built lightweight blade template engine to speed up compiling…

change your application->config->config.php and set $config[‘sess_driver’] = ‘database’; $config[‘sess_cookie_name’] = ‘ci_session’; $config[‘sess_expiration’] = 7200; $config[‘sess_save_path’] = ‘ci_sessions’; $config[‘sess_match_ip’] = FALSE; $config[‘sess_time_to_update’] = 300; $config[‘sess_regenerate_destroy’] = FALSE; & Run SQL query CREATE TABLE IF NOT EXISTS `ci_sessions` ( `id` varchar(40) NOT NULL, `ip_address` varchar(45) NOT NULL, `timestamp` int(10) unsigned DEFAULT 0 NOT NULL, `data` blob NOT NULL, PRIMARY KEY (id), KEY `ci_sessions_timestamp` (`timestamp`) );