Posts

Showing posts with the label How to display image and video from folder using PHP

How to display image and video from folder using PHP or Codeigniter

Image
How to display image and video from folder using PHP or Codeigniter You need to create a directory for upload image and videos .This tutorial will show directory path is template/uploads/ . <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title> Sample </title> <link rel="stylesheet" href="<?php echo base_url(); ?>template/css/bootstrap.min.css"> <script src="<?php echo base_url(); ?>template/js/jquery.min.js"></script> <script src="<?php echo base_url(); ?>template/js/bootstrap.min.js"></script> <style> .img{    padding:10px; } </style> </head> <body> <div class="col-md-12 col-xs-12 col-sm-12">     <div class="row">         <div class="col-xs-12 col-md-12 col-sm-12">             <h3 class="main-t