/    Sign up×
Community /Pin to ProfileBookmark

Php TV Menagement system

Hi,
I am looking for kind of Management System designed for handling many video files. I want to do sort of tv showing video files located on my server. I could probably write script by myself but i am looking for something like [URL=http://phpadsnew.com/two/]PhpAdNew[/URL] (Ads Management), so I could set all kinds of options like playlist etc. Thanks in advance for all help.

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYDec 07.2005 — 

it's not too common, so i guess you'd have to write it yourself
--



hey, you're the guy from flashroom.com, aren't you?
Copy linkTweet thisAlerts:
@ShrineDesignsDec 07.2005 — sorting the files is fairly simple, example[code=php]<?php
function sort_name($a, $b)
{
return strnatcasecmp($a['name'], $b['name']);
}
function sort_size($a, $b)
{
if($a['size'] > $b['size'])
{
return -1;
}
else if($a['size'] < $b['size'])
{
return 1;
}
return 0;
}
$dir = 'path/to/videos/';
$videos = array();

if($dh = @opendir($dir))
{
while($x = readdir($dh))
{
if($x != '.' && $x != '..')
{
if(is_file($dir . $x))
{
$videos[] = array('name' => $x, 'size' => filesize($dir . $x));
}
}
}
@closedir($dh);
$names = $videos;
uasort($names, 'sort_name');
$sizes = $videos;
uasort($sizes, 'sort_size');
print_r($videos);
print_r($names);
print_r($sizes);
}
?>[/code]
btw, nice avatar the laughing man logo
Copy linkTweet thisAlerts:
@sadekauthorDec 07.2005 — Thx for help, and I am glad You like avatar. Not many people recognize this stuff :-)))
Copy linkTweet thisAlerts:
@ShrineDesignsDec 07.2005 — no problem, i am a big fan of shirow's works
×

Success!

Help @sadek spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.13,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...