Warptweet Posted October 23, 2007 Share Posted October 23, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/74399-outputting-html-and-text/ Share on other sites More sharing options...
sanfly Posted October 23, 2007 Share Posted October 23, 2007 look at include() in the PHP MANUAL Quote Link to comment https://forums.phpfreaks.com/topic/74399-outputting-html-and-text/#findComment-375923 Share on other sites More sharing options...
Warptweet Posted October 23, 2007 Author Share Posted October 23, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/74399-outputting-html-and-text/#findComment-375946 Share on other sites More sharing options...
cooldude832 Posted October 23, 2007 Share Posted October 23, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/74399-outputting-html-and-text/#findComment-375959 Share on other sites More sharing options...
sanfly Posted October 23, 2007 Share Posted October 23, 2007 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) Quote Link to comment https://forums.phpfreaks.com/topic/74399-outputting-html-and-text/#findComment-375981 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.