Jump to content

Outputting HTML and Text?


Warptweet

Recommended Posts

I was trying to experiment with the "readfile()" function, and I managed to output a .swf flash file.

I needed to do more than just that though, I needed to add a bit of text to it.

 

I was wondering, to use...

 

<embed src='http://www.warptweet.com/outputcode.php'>

 

Would you happen to have any suggestions for make the embedded outputcode.php output this...?

 

<center>
<embed src='http://www.warptweet.com/someflashfile.swf'>
</center>
<br />
<a href='http://www.warptweet.com'>Warptweet.com</a>

 

So basically, wherever outputcode.php is embedded, it outputs the above scrap of HTML?

I could only figure out how to specifically output a flash file, but not a total peice of code. Any suggestions/examples/tutorials on this would be very appreciated!

 

Thanks,

-Warptweet

Link to comment
https://forums.phpfreaks.com/topic/74399-outputting-html-and-text/
Share on other sites

Sorry, but some of the users may not be able to use PHP on their websites. I'd like the visitors to be able to use the basic HTML required for embedding a files contents onto their website.

 

How can you not use php website, and expect a php affect??? PHP is nothing more than a script that creates some affect (Or no affect).  The output just so happens to be one affect someone is looking for.  You can't "Embed" php as its not an object, its an action that occurs. 

Sorry, but some of the users may not be able to use PHP on their websites. I'd like the visitors to be able to use the basic HTML required for embedding a files contents onto their website.

 

Oh, I see what you mean.  Well, php wouldnt work anyway because to the best of my knowledge you cant include files from other servers.

 

If you want people to use the code in their websites, the best thing to do is to put the code in a textbox and ask them copy and paste the code.  Or perhaps use an iframe to "embed" the page (but I hate all kinds of frames so not really advocating this)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.