Menambah Kapasitas Limit File Upload di Apache

4:44 PM | , , , , , ,


Untuk menambah kapasitas limit file upload di webserver yang menggunakan apache maka kita harus mengubah file konfigurasi php.ini di komputer kita.

Langkah yang harus dilakukan
1. Buka file konfigurasi php.ini

sudo gedit  /etc/php5/apache2/php.ini
2. Setelah itu ubah konfigurasinya cari settingan memory_limit, upload_max_filesize dan post_max_sizenya.

memory_limit = 32M
upload_max_filesize = 10M
post_max_size = 20M
3. Restart apache

sudo service apache2 restart

Read More

Menampilkan Video pada Website Menggunakan Video-JS

12:48 PM | , , , , ,


<!DOCTYPE html>
<html>
<head>
  <title>Video.js | HTML5 Video Player</title>

  <!-- Chang URLs to wherever Video.js files will be hosted -->
  <link href="video-js.css" rel="stylesheet" type="text/css">
  <!-- video.js must be in the <head> for older IEs to work. -->
  <script src="video.js"></script>

  <!-- Unless using the CDN hosted version, update the URL to the Flash SWF -->
  <script>
    videojs.options.flash.swf = "video-js.swf";
  </script>


</head>
<body>

  <video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="640" height="264"
      poster="http://video-js.zencoder.com/oceans-clip.png"
      data-setup="{}">
    <source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4' />
    <source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm' />
    <source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg' />
    <track kind="captions" src="demo.captions.vtt" srclang="en" label="English"></track><!-- Tracks need an ending tag thanks to IE9 -->
    <track kind="subtitles" src="demo.captions.vtt" srclang="en" label="English"></track><!-- Tracks need an ending tag thanks to IE9 -->
  </video>

</body>
</html>

Plugin video-js bisa anda download di sini atau di sini.
Read More