PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : HTML Datei => PHP



scara
10-11-2003, 19:20
ich möchte meine html datei in eine php datei umfunktionnieren, aber es funzt nicht ;(


<?php

echo '



<html>

<head>
<title>www.ibizatips.de</title>

<!- SCROLLBARS -->
<STYLE>
<!--BODY
{scrollbar-DarkShadow-Color:silver;
scrollbar-Track-Color:#000000;
scrollbar-Face-Color:black;
scrollbar-Shadow-Color:blue;
scrollbar-Highlight-Color:blue;
scrollbar-3dLight-Color:black;
scrollbar-Arrow-Color:red }
-->
</STYLE>


</head>

<body bgcolor="#000000" text="#000000" background="006.jpg" link="yellow" alink="orange" vlink="yellow">

<p>

<center>
<table width="100%">
"
?>


<tr><td><h1>Ibiza</h1></td></tr>


<tr height="100%">

<td><a href="daylife.htm" target="_blank">
<h2>Ibiza - Daylife</h2></td>

<td></td>

<td><a href="gallerie1.htm" target="_blank">
<h2>Ibiza - Fotos</h2></td>

<td><a href="impressum.htm">
<h2>Impressum</h2></td>


</tr>


<!- 2te spalte -->

<tr height="100%">

<td><a href="http://home.arcor.de/scara/nl/" target="_blank">
<h2>Ibiza - Nightlife</h2></td>

<td></td>

<td><a href="http://ibiza.kerneln.de/cms/html/modules.php?op=modload&name=Web_Links&file=index&req=viewlink&cid=15" target="_blank">
<h2>Ibiza - Disco & Bar</a></h2></td>

<td><a href="http://ibiza.kerneln.de/cms/html/modules.php?op=modload&name=Web_Links&file=index&req=viewlink&cid=16" target="_blank">
<h2>Ibiza - Party & Event</h2></td>

<td></td>
</tr>





<tr><td><h1>Community</h1></td></tr>

<!- 3te spalte -->

<tr height="100%">

<td><a href="http://www.ibizatips.de/com" target="_blank">
<h2>Community</h2></a></td>

<td><a href="http://ibiza.kerneln.de/cms/html/index.php?module=Guestbook" target="_blank">
<h2>Gästebuch</h2></td>

<td><a href="http://ibiza.kerneln.de/cms/html/modules.php?op=modload&name=DB_phpBB2&file=index" target="_blank">
<h2>Foren</a></h2></td>

<td><a href="http://ibiza.kerneln.de/cms/html/index.php?module=SPChat" target="_blank">
<h2>Chat</h2></td>


<td><a href="http://www.ibizatips.de/shop" target="_blank">
<h2>Shop</h2></a></td>
</tr>

</table>


</center>
</body>
</html>
;
?>




jemand eine idee??

ohcibi
10-11-2003, 19:44
du hast oben den echo mit ' eroeffnet und hier

<table width="100%">
"
?> mit " und ohne ; geschlossen.... ganz unten sieht man dann nochn einzelnes ; was aber da falsch is.... so siehts richtig aus...


<?php

echo '



<html>

<head>
<title>www.ibizatips.de</title>

<!- SCROLLBARS -->
<STYLE>
<!--BODY
{scrollbar-DarkShadow-Color:silver;
scrollbar-Track-Color:#000000;
scrollbar-Face-Color:black;
scrollbar-Shadow-Color:blue;
scrollbar-Highlight-Color:blue;
scrollbar-3dLight-Color:black;
scrollbar-Arrow-Color:red }
-->
</STYLE>


</head>

<body bgcolor="#000000" text="#000000" background="006.jpg" link="yellow" alink="orange" vlink="yellow">

<p>

<center>
<table width="100%">



<tr><td><h1>Ibiza</h1></td></tr>


<tr height="100%">

<td><a href="daylife.htm" target="_blank">
<h2>Ibiza - Daylife</h2></td>

<td></td>

<td><a href="gallerie1.htm" target="_blank">
<h2>Ibiza - Fotos</h2></td>

<td><a href="impressum.htm">
<h2>Impressum</h2></td>


</tr>


<!- 2te spalte -->

<tr height="100%">

<td><a href="http://home.arcor.de/scara/nl/" target="_blank">
<h2>Ibiza - Nightlife</h2></td>

<td></td>

<td><a href="http://ibiza.kerneln.de/cms/html/modules.php?op=modload&name=Web_Links&file=index&req=viewlink&cid=15" target="_blank">
<h2>Ibiza - Disco & Bar</a></h2></td>

<td><a href="http://ibiza.kerneln.de/cms/html/modules.php?op=modload&name=Web_Links&file=index&req=viewlink&cid=16" target="_blank">
<h2>Ibiza - Party & Event</h2></td>

<td></td>
</tr>





<tr><td><h1>Community</h1></td></tr>

<!- 3te spalte -->

<tr height="100%">

<td><a href="http://www.ibizatips.de/com" target="_blank">
<h2>Community</h2></a></td>

<td><a href="http://ibiza.kerneln.de/cms/html/index.php?module=Guestbook" target="_blank">
<h2>Gästebuch</h2></td>

<td><a href="http://ibiza.kerneln.de/cms/html/modules.php?op=modload&name=DB_phpBB2&file=index" target="_blank">
<h2>Foren</a></h2></td>

<td><a href="http://ibiza.kerneln.de/cms/html/index.php?module=SPChat" target="_blank">
<h2>Chat</h2></td>


<td><a href="http://www.ibizatips.de/shop" target="_blank">
<h2>Shop</h2></a></td>
</tr>

</table>


</center>
</body>
</html>
';
?>

sixfriends
10-11-2003, 22:28
Muss aber gar nicht sein, denn alles, was nicht in "<?php ?>" eingeschlossen wird so oder so als HTML interpretiert, z.B.:



<html>
<head>
<?php
$title = 'Was weiß ich';
echo '<title>' . $title . '</title>';
?>
</head>
<body>
<?php
//Irgendein Code
?>
</body>
</html>

ohcibi
11-11-2003, 05:52
Original geschrieben von sixfriends
Muss aber gar nicht sein, denn alles, was nicht in "<?php ?>" eingeschlossen wird so oder so als HTML interpretiert, z.B.:



<html>
<head>
<?php
$title = 'Was weiß ich';
echo '<title>' . $title . '</title>';
?>
</head>
<body>
<?php
//Irgendein Code
?>
</body>
</html>


jenau... und anstatt
<? echo 'lala'; ?> kannste auch
<?
echo <<<END

<html>
<head>
<title>$title</title>
</head>
<body>
$text
</body>
</html>

END;
?>


schreiben......