|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-09-15 09:19 UTC] atz at atz dot msk dot ru
Get any file .SWF that writed in Flash 6 (new) format.
for example: flash.swf in Flash 6 format
then in PHP 4.2.3
<?
$info = GetImageSize('flash.swf');
if ($info[2] == 4) { echo "This is the flash-file"; }
else { echo "not flash file"; }
?>
also in this code $info[0] == null and $info[1] == null
Sorry for my english.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 00:00:02 2025 UTC |
I have downloaded and install php4-latest.tar.gz but nothing have changed. I forget to tell that my Flash 6 in the compressed format. In this case $ar = GetImageSize('flash.swf') return array with following elements: $ar[2] == 13; # it's true, it's mean that file format is SWC (as i understand SWC = SWF-compressed) $ar[0] == 0 && $ar[1] == 0; # it's wrong :( my flash is not 0x0px size. Is this bug? for example: you can get my flash on the following URL http://www.atz.msk.ru/php/flash6.swf) and example worked code on http://www.atz.msk.ru/php/index.php also you cat see the source code on http://www.atz.msk.ru/php/index.phps (this is symbolic link to index.php)