Ik heb een klein probleem in m'n script, firefox geeft namelijk een fout:
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
ik gebruik php5 parser!Code:<?php /*---------------------------------------------*\ | BEcome | | File: header.php | | Version: 0.0.2 beta | | | | @Software: BEcome | | @authors: Tim De Smedt & Pieter Maene | | @copyright: Cameleon Software | | @license: GNU Public Licence | | @since: 2006 | \*---------------------------------------------*/ //include the config include("config.php"); //connect to db mysql_connect($host,$dbuser,$dbpass); mysql_select_db($db); // scanning for some files and try to connect mysql server if ( file_exists("setup.php") || !mysql_connect($host, $dbuser, $dbpass) || !mysql_select_db($db) ) { header("Location: setup.php"); } else { header("location: index.php"); } //general XHTML document echo('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">'); //begin head echo ('<head>'); //meta header info //RSS feeds //title echo ('<title>testing</title>'); //end head echo ('</head> '); //begin body echo ('<body> '); //end of this document /*<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="generator" content="' . $meta_gen. '" /> <meta name="robots" content="' . $meta_bots. '" /> <meta name="author" content="' . $meta_author. '" /> <meta name="publisher" content="' . $meta_publisher. '" /> <meta name="copyright" content="' . $meta_copyright. '" /> <meta name="rating" content="' . $meta_rating. '" /> <meta name="title" content="' . $meta_title. '" /> <meta name="revisit-after" content="' . $meta_revisit Days. '" /> <meta name="language" content="' . $meta_language. '" /> <meta name="keywords" content="' . $meta_keywords. '" /> <meta name="description" content="' . $meta_description. '" /> */ ?>
- header location
-
20-07-2006, 15:38 #1
- Berichten
- 143
- Lid sinds
- 19 Jaar
header location
Laatst aangepast door Tim De Smedt : 20-07-2006 om 15:41
-
-
20-07-2006, 16:59 #2
- Berichten
- 625
- Lid sinds
- 19 Jaar
Ik ga er even van uit dat dit code is van (of included in) index.php
De volgende regel:Code:header("location: index.php");
-
20-07-2006, 17:38 #3
- Berichten
- 12
- Lid sinds
- 18 Jaar
Ik weet niet precies hoe deze software is opgebouwd. Echter vermoed ik dat dit bestand als header in je index.php wordt geinclude, waar dit script weer naar redirect en je dus een infinite loop krijgt. Volgens mij is dit een bug, tenzij dit niet als header bestand wordt geinclude in index.php.
Plaats een
- + Advertentie
- + Onderwerp
Marktplaats
Webmasterforum
- Websites algemeen
- Sitechecks
- Marketing
- Domeinen algemeen
- Waardebepaling
- CMS
- Wordpress
- Joomla
- Magento
- Google algemeen
- SEO
- Analytics
- Adsense
- Adwords
- HTML / XHTML
- CSS
- Programmeren
- PHP
- Javascript
- JQuery
- MySQL
- Ondernemen algemeen
- Belastingen
- Juridisch
- Grafisch ontwerp
- Hosting Algemeen
- Hardware Info
- Offtopic