Re: ASCII Art Movie - Player
From Benjamin Schulz <use...@php.cd>
· de.alt.rec.ascii-art
· 10 Feb 2003 01:20 · View full thread
· report
> Und hier der passende player:
und hier der passende player in php :)
wenn das input file in der ersten zeile mit ; beginnt, wird
es als config eingelesen, f�r den porno von Joe Koperski sieht die erste
zeile bei mir so aus:
;1;0.5
also 1 zeile anzeigen und 0.5s pause zwischen den "bildern"
#!/usr/bin/php
<?php
$rows = 1;
$speed = 0.2;
if(!isset($_SERVER['argv'][1]))
die("usage: {$_SERVER[argv][0]} file\n");
if(!file_exists($_SERVER['argv'][1]))
die("file {$_SERVER[argv][1]} not found\n");
if(!$file = @file($_SERVER['argv'][1]))
die("unable to open {$_SERVER[argv][1]}\n");
if($file[0][0] == ';')
{
$conf = substr(trim(array_shift($file)), 1);
list($rows,$speed) = explode(';', $conf);
}
$clear = (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN' ? 'cls' : 'clear');
$speed = $speed * 1000000;
system($clear);
for($i = 0; $i < count($file); $i++) {
echo $file[$i];
if(!(($i+1) % $rows)) {
usleep($speed);
system($clear);
}
}
?>
--
There are 10 types of people: those who understand binary and
those who don't.
http://php.cd/
Original message headers
X-Google-Language: GERMAN,ASCII
X-Google-Thread: f7c81,83306d85625a3479
X-Google-Attributes: gidf7c81,public
X-Google-ArrivalTime: 2003-02-09 17:20:06 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!p508b75ec.dip.t-dialin.NET!not-for-mail
From: "Benjamin Schulz" <use...@php.cd>
Newsgroups: de.alt.rec.ascii-art
Subject: Re: ASCII Art Movie - Player
Date: 10 Feb 2003 01:20:04 GMT
Lines: 50
Message-ID: <b26uo4$19qbqm$1...@ID-96139.news.dfncis.de>
References: <avhjkm$fdk2j$1...@ID-144284.news.dfncis.de> <jpl...@4ax.com> <avj8da$g3ru0$1...@ID-144284.news.dfncis.de> <avjal1$g3ru0$2...@ID-144284.news.dfncis.de> <avkhf7$hv4$07$1...@news.t-online.com>
NNTP-Posting-Host: p508b75ec.dip.t-dialin.net (80.139.117.236)
Mime-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1044840004 43855702 80.139.117.236 (16 [96139])
User-Agent: Microsoft Outlook Express/6.0.2800.1106 OE-Tools/0.9.9a
Xref: archiver1.google.com de.alt.rec.ascii-art:4584
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this message.
This message was posted publicly to the newsgroup
de.alt.rec.ascii-art
in 2003 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked.
The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can.
Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.
Report this message
Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.