473,399 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Embed tags for objects in HTML for PHP

Is there a common library for creating universal <object></objectand
<embed></embedtags 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?

--
Sandman[.net]
Jul 26 '06 #1
2 1624
Sandman wrote:
Is there a common library for creating universal <object></objectand
<embed></embedtags 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?
Sandman,

I haven't seen anything like that. But it sounds like a neat idea. If
someone else has come up with it, I'd like to know about it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 26 '06 #2
Sandman <mr@sandman.netwrote:
Is there a common library for creating universal <object></objectand
<embed></embedtags 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
Jul 26 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Wolfgang Schwanke | last post by:
Dear usenet, I'm having the following small problem. I've been ask to add some Quicktime panoramas to a website. The author of the panoramas has made two versions of each: One in MOV format,...
10
by: Anna | last post by:
Hi all. I don't have a very deep understanding of CSS and this question might sound stupid for you. Sorry for that. Can the overflow CSS property be applied to the embed tag? I have an embed...
2
by: finlab_it | last post by:
I need to build a site with pages based on a common layout. This layout may change in the time. To avoid extra-works and/or lack of quality, It would be interesting to have an embed/include tag...
2
by: dennis.sprengers | last post by:
Ik ben bezig met een eigen UBB editor. Als iemand aan het typen is, zorgt CTRL-B voor een \-tag en nogmaals CTRL-B voor een \ tag. Als je eerst een selectie maakt en dan CTRL-B drukt, wordt de...
4
by: Ming | last post by:
Hi folks, I have a php file, it contains just a few php codes. The php codes I need to use is to construct an object, and use it several times, from html head until the last line of html code. ...
2
polymorphic
by: polymorphic | last post by:
I am no longer good at Javascript and need help. I'm trying to embed pdf files in html then build some sort of navigation between the pdfs via the pdf numbered file name. I can generate the...
1
by: dequadrosi | last post by:
Hi, I found this forum via this thread: http://www.thescripts.com/forum/thread95653.html which shows how to embed a .txt file in to a html page using the OBJECT tag. I've tried it and found...
2
dream party
by: dream party | last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.