Posted by Miguel Cruz on 07/26/06 18:30
Sandman <mr@sandman.net> wrote:
> Is there a common library for creating universal <object></object> and
> <embed></embed> tags for different kinds of files for PHP?
>
> What I'd like is feed a function with info about the file, and it
> would output correct HTML data for embedding that object into the web
> page.
>
> like this:
>
> <?
> $object = new embed("/path/to/file/movie.3gp");
> ?>
>
> And, optionally it could take arguments:
>
> <?
> $object = new embed("/path/to/file/movie.3gp");
> $object->width = 400;
> $object->autoplay = false;
>
> $object->output();
> ?>
>
> Or something like that.
>
> Anyone has any ideas?
Couldn't you write what you're after in 2 or 3 minutes? In less time
than it took to post the question certainly?
miguel
--
Photos from 40 countries on 5 continents: http://travel.u.nu
Latest photos: Malaysia; Thailand; Singapore; Spain; Morocco
Airports of the world: http://airport.u.nu
Navigation:
[Reply to this message]
|