index.php werkt niet krijgt error pagina

Status
Niet open voor verdere reacties.

hitradiofm12

Gebruiker
Lid geworden
26 nov 2006
Berichten
40
Hallo,

ik heb index.php
op mijn webserver
maar als dan naar mijn site gaat
dan komt er een error pagina
wat moet ik doen?
 
Strak dat je er niet bij vertelt welke webserver-programmatuur je gebruikt (Apache, IIS etc.).

Linksom of rechtsom: Je zult in je webserver-configuratie/website-configuratie moeten aangeven dat als er niet expliciet index.php wordt vermeld dat je webserver dan gaat kijken naar een aanwezige index.php om de webpagina te vertonen aan de aanvrager.
Index.html of index.htm is wél standaard voorzien in zo'n beetje alle webserverprogrammatuur, maar index.php niet.

Succes,

Tijs.
 
-

Op mijn eigen webserver werkt het perfect
maar ik heb een website bij webreus
Die ondersteund volledig php
Gisteren deed die het nog wel
hun gebruiken apache en php5
 
Laatst bewerkt door een moderator:
Geef eens een link. Is het een 404-error? Of een PHP error?
 
Ik weet niet of je zelf toegang hebt tot httpd.conf van de Apache software bij webreus, maar normaal staan instellingen daaromtrent in dat bestand:

</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.php index.html index.htm index.shtml
</IfModule>

Of in de sectie van de specifieke website ("<VirtualHost>" sectie in httpd.conf danwel in de aparte file httpd-vhosts.conf). Ook daar kun je een DirectoryIndex sectie hebben, zoals in onderstaand voorbeeld:
<VirtualHost *>
DocumentRoot /webdocs/html/pauls-php/
ServerAdmin myemail@yahoo.com
ServerName paulsite.homelinux.com
DirectoryIndex index.php index.html index.htm index.shtml
</VirtualHost>

Als je dat allemaal bij webreus hebt nagekeken, en aldaar ook nog een keer het Apache webserver proces hebt geherstart en het daarna nóg niet werkt, dan zou ik webreus vragen gaan stellen.

Succes,

Tijs.
 
Post de inhoud van index.php eens.

Daarnaast is je bron niet echt netjes. Code na </html>, <%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>, etc.
 
Post de inhoud van index.php eens.

Daarnaast is je bron niet echt netjes. Code na </html>, <%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>, etc.

je gebruikt zeker firefox? daar geeft hij alleen die fout
de php inhoud klopt wel want gisteren deed hij het nog
 
Ik heb even in Internet Explorer getest, en de links aan de rechterkant werken momenteel ook niet.
Kijk je index.php (+ evt. includes) + je webspace er nog eens goed op na: Als de te klikken links aan de rechterkant wél fysiek bestaan op de website (in de submap streams), kijk dan eens na of 'de wereld' wel leesrechten heeft op de map + de bestanden in die map.

Wellicht een goed idee om je hele webspace nog eens na te kijken op 'te krappe beveiliging', dus o.a. ook in/van de 'hoofdmap' van je webspace.

Verder heb ik geen directe tips. Succes,

Tijs.
 
Ik heb even in Internet Explorer getest, en de links aan de rechterkant werken momenteel ook niet.
Kijk je index.php (+ evt. includes) + je webspace er nog eens goed op na: Als de te klikken links aan de rechterkant wél fysiek bestaan op de website (in de submap streams), kijk dan eens na of 'de wereld' wel leesrechten heeft op de map + de bestanden in die map.

Wellicht een goed idee om je hele webspace nog eens na te kijken op 'te krappe beveiliging', dus o.a. ook in/van de 'hoofdmap' van je webspace.

Verder heb ik geen directe tips. Succes,

Tijs.

check nu eens www.hitradiofm.nl
Ik heb de dns aangepast naar mijn eigen IP adres
De website wordt nu doorgelinkt naar mijn webserver
 
De reden dat ik naar de inhoud van index.php vroeg, omdat ik net als Tijs denk dat een include niet op z'n plek staat.

Daarnaast vraag ik me af wat "<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>" überhaupt in je pagina doet.

Uit je opmerking "je gebruikt zeker firefox? daar geeft hij alleen die fout" maak ik op dat je er wel bekend mee bent, waarom doe je er dan niets aan. FF is over het algemeen (zeg maar 9999 op 10000 gevallen) de juiste weergave heeft. De "juiste" volgorde van handelen is dan ook, zorgen dat het in FF allemaal werkt zoals het hoort, en vervolgens aanpassen voor IE.

Maar als je de inhoud van index.php even post, kunnen we misschien zien welke include niet goed gaat.

(als je PHP bron net zo'n rommeltje is als de HTML ga ik 'm waarschijnlijk niet helemaal doornemen)
 
die fout is bij index.php al weg
maar hier de inhoud

HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Hitradio FM NL. - Muziek Die Jij Verstaat</title>
<style type="text/css"> 
<!-- 
body  {
	/* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
	background-position: 0% 0%;
				font: 100% Verdana, Arial, Helvetica, sans-serif;
				margin: 0;
				padding: 0;
				text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
					color: #000000;
					background-image: none;
				background-repeat: repeat;
				background-attachment: scroll;
}

/* Tips for Elastic layouts 
1. Since the elastic layouts overall sizing is based on the user's default fonts size, they are more unpredictable. Used correctly, they are also more accessible for those that need larger fonts size since the line length remains proportionate.
2. Sizing of divs in this layout are based on the 100% font size in the body element. If you decrease the text size overall by using a font-size: 80% on the body element or the #container, remember that the entire layout will downsize proportionately. You may want to increase the widths of the various divs to compensate for this.
3. If font sizing is changed in differing amounts on each div instead of on the overall design (ie: #sidebar1 is given a 70% font size and #mainContent is given an 85% font size), this will proportionately change each of the divs overall size. You may want to adjust based on your final font sizing.
*/
.thrColElsHdr #container {
	width: 46em;  /* this width will create a container that will fit in an 800px browser window if text is left at browser default font sizes */
	background: #fff;
	margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
	border: 1px solid #000000;
	text-align: left; /* this overrides the text-align: center on the body element. */
} 
.thrColElsHdr #header {
	background: #fff;
	padding: 0 10px;  /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
} 
.thrColElsHdr #header h1 {
	margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
	padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}

/* Tips for sidebar1:
1. Be aware that if you set a font-size value on this div, the overall width of the div will be adjusted accordingly.
2. Since we are working in ems, it's best not to use padding on the sidebar itself. It will be added to the width for standards compliant browsers creating an unknown actual width. 
3. Space between the side of the div and the elements within it can be created by placing a left and right margin on those elements as seen in the ".thrColElsHdr #sidebar1 p" rule.
*/
.thrColElsHdr #sidebar1 {
	float: left;
	width: 11em; /* since this element is floated, a width must be given */
	background: #fff; /* the background color will be displayed for the length of the content in the column, but no further */
	padding: 15px 0; /* top and bottom padding create visual space within this div */
}
.thrColElsHdr #sidebar2 {
	float: right;
	width: 11em; /* since this element is floated, a width must be given */
	background: #fff; /* the background color will be displayed for the length of the content in the column, but no further */
	padding: 15px 0; /* top and bottom padding create visual space within this div */
}
.thrColElsHdr #sidebar1 h3, .thrColElsHdr #sidebar1 p, .thrColElsHdr #sidebar2 p, .thrColElsHdr #sidebar2 h3 {
	margin-left: 10px; /* the left and right margin should be given to every element that will be placed in the side columns */
	margin-right: 10px;
/* Tips for mainContent:
1. If you give this #mainContent div a font-size value different than the #sidebar1 div, the margins of the #mainContent div will be based on its font-size and the width of the #sidebar1 div will be based on its font-size. You may wish to adjust the values of these divs.
2. The space between the mainContent and sidebar1 is created with the left margin on the mainContent div.  No matter how much content the sidebar1 div contains, the column space will remain. You can remove this left margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends.
3. To avoid float drop, you may need to test to determine the approximate maximum image/element size since this layout is based on the user's font sizing combined with the values you set. However, if the user has their browser font size set lower than normal, less space will be available in the #mainContent div than you may see on testing.
4. In the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs that may occur.
*/
.thrColElsHdr #mainContent {
 	margin: 0 12em 0 12em; /* the right margin can be given in ems or pixels. It creates the space down the right side of the page. */
} 
.thrColElsHdr #footer {
	padding: 0 10px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
	background:#fff;
} 
.thrColElsHdr #footer p {
	margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
	padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
	text-align: center;
}

/* Miscellaneous classes for reuse */
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
	float: right;
	margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page */
	float: left;
	margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
	clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
}
body,td,th {
	font-weight: bold;
}
.thrColElsHdr #container #footer p strong {
	text-align: justify;
}
#container #footer p strong {
	text-align: justify;
}
--> 
</style><!--[if IE]>
<style type="text/css"> 
/* place css fixes for all versions of IE in this conditional comment */
.thrColElsHdr #sidebar1, .thrColElsHdr #sidebar2 { padding-top: 30px; }
.thrColElsHdr #mainContent { zoom: 1; padding-top: 15px; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]--></head>

<body class="thrColElsHdr" style="background-color: #336699">

<div id="container">
  <div id="header">
    <h1><img src="http://hitradiofm.nl/images/header1.JPG" width="721" height="121" /></h1>
  <!-- end #header --></div>
  <div id="sidebar1">
    <h4>&gt; <a href="index.php">Startpagina</a><br />
	&gt; <a href="http://hitradiofm.mygb.nl" target="_blank">Gastenboek</a><br />
	&gt; <a href="nieuws.php">Agenda</a><br />
	&gt; <a href="downloads.php">Downloads</a><br />
	&gt; <a href="links.php">Links<br />
 </a>&gt; <a href="artiest.php">Artiesten</a><br />
	&gt; <a href="playlist.php">Nieuwe nummers</a><br />
	&gt; <a href="sponsors.php">Sponsors </a><br />
	&gt; <a href="Programma.php">Programma</a><br />
	&gt; <a href="over_ons.php">Over Ons...</a><br />
	&gt;<a href="verzoek.php"> Verzoekje</a><br />
	&gt; <a href="contact.php">Contact</a></h4>
	<p>&nbsp;</p>
    <h5> <span class="style1">Sponsors/Partners</span><br />
    - <a href="http://www.visshopdedrait.nl" target="_blank">Visshop De Drait</a><a href="http://www.kika.nl" target="_blank"><br />
      </a>- <a href="mailto:info@hitradiofm.nl?subject=Wordt sponsor !!!">Wordt 
	Sponsor !!!</a><br />
    </h5>
  <!-- end #sidebar1 -->
	<p>&nbsp;</p>
  </div>
  <marquee class="style4" style="width: 360px">Hitradio FM Wenst Iedereen Een Gezond & Muzikaal 2010</marquee><div id="sidebar2" class="style3">
    <p>
	<iframe name="I1" id="I1" style="width: 160px; height: 198px" scrolling="no" border="0" frameborder="0" src="http://hitradiofm.nl/luister.php">
	De browser ondersteunt geen inlineframes of is momenteel zodanig geconfigureerd dat inlineframes niet kunnen worden weergegeven.
	</iframe>
    </p>
    <div class="style3">
    &nbsp;<!-- end #sidebar2 --><span class="style2">Hitradio FM Hyves.</span><br />
					<a href="http://hitradiofm.hyves.nl" target="_blank">
					<img alt="" src="http://www.hitradiofm.nl/images/hyves_logo.png" width="108" height="97" /></a><br />
	<br />
	<!--webbot bot="HTMLMarkup" startspan --><a href="javascript: targetpay(18474, 36105, 'auto', 'auto', '');"><img src="http://www.targetpay.com/gfx/donate_nl.gif" border="0"></a><!--webbot bot="HTMLMarkup" endspan i-checksum="30955" --><!--webbot bot="HTMLMarkup" startspan --><script src="http://www.targetpay.com/send/include.js"> </script><!--webbot bot="HTMLMarkup" endspan i-checksum="55372" --></div>
	</div>
  <div id="mainContent">
    <h4 class="style4">
	<br />
	Welkom op de webiste van Hitradio FM<br />
	Muziek voor jong &amp; oudt het luisteren<br />
	Laat ook even een berichtje achter in het gastenboek<br />
	<br />
	Hitradio FM Draait Ook In 2010 De AlleHitradio FM Draait Ook In 2010 De Allerbeste muziek...<br />
	<br />
	<img alt="" src="http://www.hitradiofm.nl/images/kerstkaart_website.jpg" width="344" height="258" /><br />
	<br />
	</h4>
</div>
	<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats -->
	<!--webbot bot="HTMLMarkup" startspan --><link rel="shortcut icon" href="/favicon.ico" mce_href="/favicon.ico" type="image/x-icon" /><!--webbot bot="HTMLMarkup" endspan i-checksum="4685" --><br class="clearfloat" />
   <div id="footer">
  <p class="style1"><!--webbot bot="HTMLMarkup" startspan --><script language="JavaScript1.2">
copyright=new Date();
update=copyright.getYear();

document.write("Copyright © 2007-"+ update + "    Hitradio FM    All rights Reserved.");
</script><!--webbot bot="HTMLMarkup" endspan i-checksum="44388" --></p>
  <!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>
</STYLE><STYLE type=text/css>

A {
COLOR: #0000FF; FONT: 11pt Arial; TEXT-DECORATION: none
}
A:hover {
COLOR: #FF0000
}
.style1 {
	font-family: "Comic Sans MS";
	text-align: center;
}
.style2 {
				font-weight: normal;
				font-family: "Comic Sans MS";
}
.style3 {
				text-align: center;
}
.style4 {
				text-align: left;
}
</STYLE><SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
 <!--
var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);
win.focus();}
// -->
</script><script type="text/javascript">
<!-- Begin
function right(e)
{
	if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
		return false;
	else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
	{
		alert("Sorry, de rechtermuisknop is geblokkeerd!");
		return false;
	}
	return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
//  End -->
</script>
<p class="style1"><!--webbot bot="HTMLMarkup" startspan --><script type="text/javascript" language="JavaScript" src="http://www.webhelpje.nl/berichtenbalk/bb.php?name=hitradio01">
</script><!--webbot bot="HTMLMarkup" endspan i-checksum="41457" --></p>
PS.
Ik heb de helpdesk van webreus al gemailt maar die zouden vandaag wel vrij zijn
hier mijn stream server http://stream.hitradiofm.nl:20004/
 
Laatst bewerkt door een moderator:
Waarom quote je invredesnaam je eigen post. Daarnaast mag je je code wel even tussen
HTML:
tags zetten. Maakt het wat minder lang en leesbaarder.

Ik vroeg om je PHP bron, je HTML bron kan ik er zelf ook wel bijpakken.
 
Zo werkt het wel (in Internet Explorer althans).

Dit vertelt me niet echt veel: Misschien klopt de code wel, maar staan (op de webreus server) de toegangsrechten verkeerd, zoals ik in mijn vorige poster al als mogelijkheid heb aangedragen.

Tijs.
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan