Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

html to php

Newbie Spellweaver
Joined
Jul 15, 2004
Messages
50
Reaction score
1
hello there
could any1 turn this html into PHP..? i converted it using an html to php converter but something was wrong
thx in advance

Code:
<div align="center">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
 WIDTH=104 HEIGHT=264>
<PARAM NAME=movie VALUE="flat.swf?tarframe=000000&exbackground=B18745&makenavfield0=My Account&makenavurl0=http://www.mg-zone.net/postnuke/html/user.php&makenavfield1=Log-out&makenavurl1=http://www.mg-zone.net/postnuke/html/user.php?module=NS-User&op=logout&makenavfield2=News Archive&makenavurl2=http://www.mg-zone.net/postnuke/html/modules.php?op=modload&name=Topics&file=index&makenavfield3=Submit News&makenavurl3=http://www.mg-zone.net/postnuke/html/modules.php?op=modload&name=Submit_News&file=index&makenavfield4=Flash Games&makenavurl4=http://www.mg-zone.net/postnuke/html/index.php?module=pnFlashGames&func=view&makenavfield5=Gallery&makenavurl5=http://www.mg-zone.net/postnuke/html/index.php?module=My_eGallery&func=main&makenavfield6=WareZone&makenavurl6=http://www.mg-zone.net/postnuke/html/index.php?name=PNphpBB2&file=viewforum&f=1&makenavfield7=TorrentZone&makenavurl7=http://www.mg-zone.net/postnuke/html/index.php?name=PNphpBB2&file=viewforum&f=2&makenavfield8=IRC&makenavurl8=http://www.mg-zone.net/irc/index.htm&makenavfield9=Recommend Us&makenavurl9=http://www.mg-zone.net/postnuke/html/modules.php?op=modload&name=Recommend_Us&file=index&makenavfield10=Rules&makenavurl10=http://www.mg-zone.net/postnuke/html/index.php?name=PNphpBB2&file=viewtopic&t=173&start=0&postdays=0&postorder=asc&highlight=&makenavfield11=Stats&makenavurl11=http://www.mg-zone.net/postnuke/html/modules.php?op=modload&name=Stats&file=index">
<PARAM NAME=loop VALUE=false>
<PARAM NAME=menu VALUE=false>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=scale VALUE=noborder>
<PARAM NAME=salign VALUE=LT>
<PARAM NAME=wmode VALUE=transparent>
<PARAM NAME=bgcolor VALUE=#4B4B4B>

<EMBED src="flat.swf?tarframe=000000&exbackground=B18745&makenavfield0=My Account&makenavurl0=http://www.mg-zone.net/postnuke/html/user.php&makenavfield1=Log-out&makenavurl1=http://www.mg-zone.net/postnuke/html/user.php?module=NS-User&op=logout&makenavfield2=News Archive&makenavurl2=http://www.mg-zone.net/postnuke/html/modules.php?op=modload&name=Topics&file=index&makenavfield3=Submit News&makenavurl3=http://www.mg-zone.net/postnuke/html/modules.php?op=modload&name=Submit_News&file=index&makenavfield4=Flash Games&makenavurl4=http://www.mg-zone.net/postnuke/html/index.php?module=pnFlashGames&func=view&makenavfield5=Gallery&makenavurl5=http://www.mg-zone.net/postnuke/html/index.php?module=My_eGallery&func=main&makenavfield6=WareZone&makenavurl6=http://www.mg-zone.net/postnuke/html/index.php?name=PNphpBB2&file=viewforum&f=1&makenavfield7=TorrentZone&makenavurl7=http://www.mg-zone.net/postnuke/html/index.php?name=PNphpBB2&file=viewforum&f=2&makenavfield8=IRC&makenavurl8=http://www.mg-zone.net/irc/index.htm&makenavfield9=Recommend Us&makenavurl9=http://www.mg-zone.net/postnuke/html/modules.php?op=modload&name=Recommend_Us&file=index&makenavfield10=Rules&makenavurl10=http://www.mg-zone.net/postnuke/html/index.php?name=PNphpBB2&file=viewtopic&t=173&start=0&postdays=0&postorder=asc&highlight=&makenavfield11=Stats&makenavurl11=http://www.mg-zone.net/postnuke/html/modules.php?op=modload&name=Stats&file=index" loop=false menu=false quality=high scale=noborder salign=LT wmode=transparent bgcolor=#4B4B4B  WIDTH=104 HEIGHT=264 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>

</OBJECT>

<a href="http://www.guistuff.com/"><img border="0" src="http://www.guistuff.com/images/11dot.gif" width="1" height="1"></a>
</div>
 
Last edited:
Custom Title Activated
Loyal Member
Joined
Nov 28, 2004
Messages
2,236
Reaction score
0
lol, you can use the same code for HTML and PHP pages without changes.
 
Newbie Spellweaver
Joined
May 17, 2005
Messages
9
Reaction score
0
Yes, what do you think php does? :p
just name the page something.php and it will still work.
just don't put <? in it ;)
 
Newbie Spellweaver
Joined
Nov 16, 2004
Messages
5
Reaction score
0
Or if you really wanted you could do this:

Code:
<?php

echo '<div align="center">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
 WIDTH=104 HEIGHT=264>
<PARAM NAME=movie VALUE="flat.swf?tarframe=000000&exbackground=B18745&makenavfield0=My Account&makenavurl0=http://www.mg-zone.net/postnuke/html/user.php&makenavfield1=Log-out&makenavurl1=http://www.mg-zone.net/postnuke/html/user.php?module=NS-User&op=logout&makenavfield2=News Archive&makenavurl2=http://www.mg-zone.net/postnuke/html/modules.php?op=modload&name=Topics&file=index&makenavfield3=Submit News&makenavurl3=http://www.mg-zone.net/postnuke/html/modules.php?op=modload&name=Submit_News&file=index&makenavfield4=Flash Games&makenavurl4=http://www.mg-zone.net/postnuke/html/index.php?module=pnFlashGames&func=view&makenavfield5=Gallery&makenavurl5=http://www.mg-zone.net/postnuke/html/index.php?module=My_eGallery&func=main&makenavfield6=WareZone&makenavurl6=http://www.mg-zone.net/postnuke/html/index.php?name=PNphpBB2&file=viewforum&f=1&makenavfield7=TorrentZone&makenavurl7=http://www.mg-zone.net/postnuke/html/index.php?name=PNphpBB2&file=viewforum&f=2&makenavfield8=IRC&makenavurl8=http://www.mg-zone.net/irc/index.htm&makenavfield9=Recommend Us&makenavurl9=http://www.mg-zone.net/postnuke/html/modules.php?op=modload&name=Recommend_Us&file=index&makenavfield10=Rules&makenavurl10=http://www.mg-zone.net/postnuke/html/index.php?name=PNphpBB2&file=viewtopic&t=173&start=0&postdays=0&postorder=asc&highlight=&makenavfield11=Stats&makenavurl11=http://www.mg-zone.net/postnuke/html/modules.php?op=modload&name=Stats&file=index">
<PARAM NAME=loop VALUE=false>
<PARAM NAME=menu VALUE=false>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=scale VALUE=noborder>
<PARAM NAME=salign VALUE=LT>
<PARAM NAME=wmode VALUE=transparent>
<PARAM NAME=bgcolor VALUE=#4B4B4B>

<EMBED src="flat.swf?tarframe=000000&exbackground=B18745&makenavfield0=My Account&makenavurl0=http://www.mg-zone.net/postnuke/html/user.php&makenavfield1=Log-out&makenavurl1=http://www.mg-zone.net/postnuke/html/user.php?module=NS-User&op=logout&makenavfield2=News Archive&makenavurl2=http://www.mg-zone.net/postnuke/html/modules.php?op=modload&name=Topics&file=index&makenavfield3=Submit News&makenavurl3=http://www.mg-zone.net/postnuke/html/modules.php?op=modload&name=Submit_News&file=index&makenavfield4=Flash Games&makenavurl4=http://www.mg-zone.net/postnuke/html/index.php?module=pnFlashGames&func=view&makenavfield5=Gallery&makenavurl5=http://www.mg-zone.net/postnuke/html/index.php?module=My_eGallery&func=main&makenavfield6=WareZone&makenavurl6=http://www.mg-zone.net/postnuke/html/index.php?name=PNphpBB2&file=viewforum&f=1&makenavfield7=TorrentZone&makenavurl7=http://www.mg-zone.net/postnuke/html/index.php?name=PNphpBB2&file=viewforum&f=2&makenavfield8=IRC&makenavurl8=http://www.mg-zone.net/irc/index.htm&makenavfield9=Recommend Us&makenavurl9=http://www.mg-zone.net/postnuke/html/modules.php?op=modload&name=Recommend_Us&file=index&makenavfield10=Rules&makenavurl10=http://www.mg-zone.net/postnuke/html/index.php?name=PNphpBB2&file=viewtopic&t=173&start=0&postdays=0&postorder=asc&highlight=&makenavfield11=Stats&makenavurl11=http://www.mg-zone.net/postnuke/html/modules.php?op=modload&name=Stats&file=index" loop=false menu=false quality=high scale=noborder salign=LT wmode=transparent bgcolor=#4B4B4B  WIDTH=104 HEIGHT=264 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>

</OBJECT>

<a href="http://www.guistuff.com/"><img border="0" src="http://www.guistuff.com/images/11dot.gif" width="1" height="1"></a>
</div>';
?>

But that would just be silly.
 
Custom Title Activated
Loyal Member
Joined
Sep 7, 2004
Messages
1,886
Reaction score
5
Why would you convert its the same thing. Just name the page something.php remember php extension and thats it
 
Divine Celestial
Loyal Member
Joined
Nov 11, 2004
Messages
810
Reaction score
0
Pssst! I don't think that guy * Points to meggy * knows what PHP is!

[N]asser` ~ Out
 
Custom Title Activated
Loyal Member
Joined
Feb 27, 2004
Messages
1,378
Reaction score
50
here is some code i use when i want to get some html into my php pages without even thouching the .html file

let first say u have a file called. iamhtml.html

i side u a very nicely made layout. now to convert to php

now make a second file called. iamphp.php

inside of iamphp.php put this

PHP:
<?
$htmlfile = "iamhtml.html"; 

/* DONOT EDIT ANYTHING BELOW THIS LINE */
function read_file($filename) {
            $tmpl_file = $filename;
   	    $thefile = implode("", file($tmpl_file));
    	    $thefile = addslashes($thefile);
     	    $thefile = "\$r_file=\"".$thefile."\";";
   	    return $thefile;
**
eval(read_file($htmlfile));
echo $r_file;
?>

note: ** means CLOSE BRACES

explaination.. this is a way to import html files into php...
it will even understand it if u put php variables in ur php document.

if u put like in ur html document. $contents somewer inside it.. and put in the iamphp.php

PHP:
$contents = "this is a sample content";

the php script will evaluate the html to see if there is php variables in it.. then it replaces the $contents in the html file with value in the php file.

TADA.. :)
 
Back
Top