Hi
<? require_once("include/url.php") ?>
Warum kann ich das nicht so machen?
<? require_once("http://meinwebhost.de/include/url.php") ?>
So kannst du es auch machen, nur anderst ist einfacher. die erste zeile sagt einfach nur das sich der ordner "include" in dem aktuellen pfad befindet, beim 2 rufst du halt die ganze url wieder auf. ist einfach nur mehr schreibarbeit :-) und progger sind schreibfaul *g*
ANsonsten ein kleiner auszug:
<?
SeitenLeiste
$news = array("<a href="http://localhost/sites/new_schrecknet/index.php"><img border=0 onMouseOut=nereidFade(this,50,50,5) onMouseOver=nereidFade(this,100,30,4) src="http://localhost/sites/new_schrecknet/images/navigation/buttons/news.gif" style="FILTER: alpha(opacity=50)" width="130" height="20"></a>",);
$storys = array("<a href="http://localhost/sites/new_schrecknet/content/storys/index.php"><img border=0 onMouseOut=nereidFade(this,50,50,5) onMouseOver=nereidFade(this,100,30,4) src="http://localhost/sites/new_schrecknet/images/navigation/buttons/geschichten.gif" style="FILTER: alpha(opacity=50)" width="130" height="20"></a>",);
$forum = array("<a href="http://localhost/sites/new_schrecknet/content/community/forum/index.php"><img border=0 onMouseOut=nereidFade(this,50,50,5) onMouseOver=nereidFade(this,100,30,4) src="http://localhost/sites/new_schrecknet/images/navigation/buttons/forum.gif" style="FILTER: alpha(opacity=50)" width="130" height="20"></a>",);
## Headlines
$headline1_intro = array("<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="200"><img src="http://localhost/sites/new_schrecknet/images/navigation/headlines/headline_introduction.gif" width="200" height="20"></td><td background="http://localhost/sites/new_schrecknet/images/navigation/headlines/headline_1.gif" width="100%"><img src="http://localhost/sites/new_schrecknet/images/bg/20x20.gif" width="1" height="20" border="0"></td><td width="50"><img src="http://localhost/sites/new_schrecknet/images/navigation/headlines/headline_2.gif" width="50" height="20"></td></tr></table>");
$headline1_news = array("<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="200"><img src="http://localhost/sites/new_schrecknet/images/navigation/headlines/headline_news.gif" width="200" height="20"></td><td background="http://localhost/sites/new_schrecknet/images/navigation/headlines/headline_1.gif" width="100%"><img src="http://localhost/sites/new_schrecknet/images/bg/20x20.gif" width="1" height="20" border="0"></td><td width="50"><img src="http://localhost/sites/new_schrecknet/images/navigation/headlines/headline_2.gif" width="50" height="20"></td></tr></table>");
$headline1_storys = array("<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="200"><img src="http://localhost/sites/new_schrecknet/images/navigation/headlines/headline_storys.gif" width="200" height="20"></td><td background="http://localhost/sites/new_schrecknet/images/navigation/headlines/headline_1.gif" width="100%"><img src="http://localhost/sites/new_schrecknet/images/bg/20x20.gif" width="1" height="20" border="0"></td><td width="50"><img src="http://localhost/sites/new_schrecknet/images/navigation/headlines/headline_2.gif" width="50" height="20"></td></tr></table>");
?>
Geht das einfacher?
Kommt drauf an was du machen willst. wenn es nur darum geht die links aus einer anderen datei zu hohlen würde ich so machen.
<? require("include/url.php");
$headline1_intro = array($deinlink1,$deinlink2,...);
echo "<a href=$headline1_intro[0]>Link</a>";
usw.
ist vielleicht nicht direkt einfacher aber übersichtlicher.
ich hoffe das hat dir weitergeholfen.
gruss
ralf