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
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. 

Link to comment
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.

 

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)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.