You are here: Re: Redirection script « All PHP « IT news, forums, messages
Re: Redirection script

Posted by Raj on 10/19/05 01:50

On Tue, 18 Oct 2005 22:09:18 +0100, Rik wrote
(in article <dj3o9r$v4q$1@netlx020.civ.utwente.nl>):

> Raj wrote:
>> I have a website that redirects users to the "intro_page" via the
>> start page if they enter the website anywhere except the start page.
>> ....
>> Here's the script. It doesn't go to intro_page.php. It just sits on
>> start.php.
>> ....
>> include("./general_scripts_etc/header1.php");
>
> What's in this include?
> www.php.net: "Remember that header() must be called before any actual output
> is sent, either by normal HTML tags, blank lines in a file, or from PHP. It
> is a very common error to read code with include(), or require(), functions,
> or another file access function, and have spaces or empty lines that are
> output before header() is called. The same problem exists when using a
> single PHP/HTML file"
>
> Further: without the redirect, does the mysql_query work?
> Try to just echo "0" or "1", does this work?
>
> Grtz,
>
> Rik
>
>

Here are the 2 include files in the original script


(in header1.php)

<?php
ob_start();
session_start();
include('../outer/mysql_connect_fdd.php');

//limit is number of users listed per search page
$limit=10;

//live_limit is time to wait till offline
$live_limit=15*60;

//the limit to the number of pages appearing on the bottom of pages
$menu_max=25;

//log refrsh time
$log_refresh=30;

//time to wait till wipe instant message - seconds
$instant_message_wipe=15*60;

//time to wait till wipe old other - seconds
$other_points_wipe=30*24*60*60;

//address to send photos for verification
$photo_verify_address="http://www.freedatingdatabase.com/admin777/photo_verifi
cation.php?user_id="
?>


(in footer1.php)

<?php
ob_end_flush();
?>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация