Jump to content


Photo

HTML Document Embed?


  • Please log in to reply
5 replies to this topic

#1 JustinMs66@hotmail.com

JustinMs66@hotmail.com
  • Members
  • PipPipPip
  • Advanced Member
  • 138 posts

Posted 18 August 2006 - 11:43 PM

what is the PHP code for embedding a HTML document.
cuz i'm technically trying to make this code (this is html)  :

<iframe src="http://www.game-moni...r=8F9DB4&body=" allowtransparency="true" background-color="transparent" width="200" height="210" frameborder="0" scrolling="no"></iframe>

but that won't work with PHP. it HAS to be PHP. (long story)
so i figured i'd just embed the HTML document with that code into the PHP document and it would work. am i rite?



#2 Jeremysr

Jeremysr
  • Members
  • PipPipPip
  • Advanced Member
  • 199 posts
  • LocationSaskatchewan, Canada

Posted 18 August 2006 - 11:48 PM

include()?

include ("something.html");


Or echo?

echo '<iframe src="http://www.game-monitor.com/server-stat.php?ip=8.6.3.213:27015&style=1&text=000000&link=0000FF&back=F2F6FC&border=8F9DB4&body=" allowtransparency="true" background-color="transparent" width="200" height="210" frameborder="0" scrolling="no"></iframe>';


#3 ryanlwh

ryanlwh
  • Staff Alumni
  • Advanced Member
  • 511 posts

Posted 18 August 2006 - 11:50 PM

hmm i guess you're talking about 'include' or 'file_get_contents'

make sure you strip away the header codes... it probably will output correctly, but sometimes you might get unexpected results.
Please use EDIT * 100...
Please use
or [php] * 1000...

PLEASE READ THE POSTED SOLUTIONS CAREFULLY * 1000000...

#4 JustinMs66@hotmail.com

JustinMs66@hotmail.com
  • Members
  • PipPipPip
  • Advanced Member
  • 138 posts

Posted 19 August 2006 - 12:26 AM

you mean the <head> codes? they arent in there at all. or did you mean all of the ">" and "<" ?

cuz when i do this, it dosn't work:

  echo "<iframe src="http://www.game-moni...r=8F9DB4&body=" allowtransparency="true" background-color="transparent" width="200" height="210" frameborder="0" scrolling="no"></iframe>";

#5 Jeremysr

Jeremysr
  • Members
  • PipPipPip
  • Advanced Member
  • 199 posts
  • LocationSaskatchewan, Canada

Posted 19 August 2006 - 12:32 AM

That's because you're using double-quotes inside of what you're echoing. Use single-quotes to echo it:

echo '<iframe src="http://www.game-monitor.com/server-stat.php?ip=8.6.3.213:27015&style=1&text=000000&link=0000FF&back=F2F6FC&border=8F9DB4&body=" allowtransparency="true" background-color="transparent" width="200" height="210" frameborder="0" scrolling="no"></iframe>';


#6 JustinMs66@hotmail.com

JustinMs66@hotmail.com
  • Members
  • PipPipPip
  • Advanced Member
  • 138 posts

Posted 19 August 2006 - 01:05 AM

awesome. that worked. thanks!!!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users