Even iets proberen, ben er niet zeker van.
Stel dat dit je code is(want ik heb de volledige code niet)
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]//ben geen fan van forwardslashes ;) //[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Welkom bezoeker, hieronder het menu:<br />"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<div id=menu>"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<a href=index.php?p=1>Pagina 1</a><br />"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<a href=index.php?p=2>Pagina 2</a><br />"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<a href=index.php?p=3>Pagina 3</a><br />"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<a href=index.php?p=5>Blabla</a><br />"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"</div>"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"We hopen dat je iets vindt in het menu!"[/COLOR][COLOR= #007700];[/COLOR]
?>
Dan wordt dat in je HTML zoiets:
Welkom bezoeker, hieronder het menu:<br />
<div id="menu">
<a href="index.php?p=2">Pagina 2</a><br />
<a href="index.php?p=3">Pagina 3</a><br />
<a href="index.php?p=5">Blabla</a><br />
</div>
We hopen dat je iets vindt in het menu!
Dus je php code voor het op te halen wordt dan:
(er zit wat onnodige code in mrja haal je er maar uit)
[COLOR= #0000BB]<?php
$url[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"http://www.website.nl/"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$file[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$url[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$split[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]<div id="menu">[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$file[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$onder[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$split[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]1[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$split2[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]</div>[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$onder[/COLOR][COLOR= #007700])[/COLOR] [COLOR= #FF8000]//je bent zeker dat het deze </div> is want die staat zowiezo eerst//
//even verzamelen//[/COLOR]
[COLOR= #0000BB]$boven[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$split[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]0[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$menu[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$split2[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]0[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$onder[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$split2[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]1[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #FF8000]//als je nu het menu wil tonen doe je//[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$menu[/COLOR][COLOR= #007700];[/COLOR]
?>
Als het niet werkt, weet ik het ook niet
