Skip to content

Instantly share code, notes, and snippets.

View amin3d's full-sized avatar
💭
I may be slow to respond.

Amin Amanpour amin3d

💭
I may be slow to respond.
View GitHub Profile
<?php
/**
* Description of VideoStream
*
* @author Rana
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial
*/
class VideoStream
{
private $path = "";
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* Widget Library
* http://codeigniter.com/forums/viewthread/109584/
*
* @version: 0.21
* $copyright Copyright (c) Wiredesignz 2009-09-07
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$config['views_path'] = APPPATH . 'views/blade/';
$config['cache_path'] = APPPATH . 'cache/blade/';
@amin3d
amin3d / tail.php
Created November 2, 2013 18:56 — forked from deizel/tail.php
<?php
if (isset($_GET['ajax'])) {
session_start();
$handle = fopen('/private/var/log/system.log', 'r');
if (isset($_SESSION['offset'])) {
$data = stream_get_contents($handle, -1, $_SESSION['offset']);
echo nl2br($data);
} else {
fseek($handle, 0, SEEK_END);
$_SESSION['offset'] = ftell($handle);