| | |
URL Redirection in PHP
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Is there any other function in PHP that can be used for redirecting a page
I use the following
But it generates the following error:
Is there any alternative in php?
I use the following
PHP Syntax (Toggle Plain Text)
header ("location: index.php");
But it generates the following error:
PHP Syntax (Toggle Plain Text)
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at c:\program files\easyphp1-8\www\admin-right-nav.php:5) in c:\program files\easyphp1-8\www\admin-right-nav.php on line 6
Is there any alternative in php?
Actually this is my code
I get the error
PHP Syntax (Toggle Plain Text)
<? session_start(); echo "Logging out ".$_SESSION['userid']; header("location: tussu.php"); ?>
I get the error
PHP Syntax (Toggle Plain Text)
Logging out admin Warning: Cannot modify header information - headers already sent by (output started at c:\program files\easyphp1-8\www\logout.php:3) in c:\program files\easyphp1-8\www\logout.php on line 6
•
•
Join Date: Apr 2006
Posts: 2
Reputation:
Solved Threads: 0
Try:
(*)
5 <= this will show your "Logging out ".$_SESSION['userid']" for 5 seconds.
PHP Syntax (Toggle Plain Text)
<? session_start(); header("Location: tussu.php"); //or (*) echo "Logging out ".$_SESSION['userid']; ?>
PHP Syntax (Toggle Plain Text)
header("Refresh: 5; URL:http://www.domain.com/path/to/tussu.php");
![]() |
Similar Threads
- URL Rewrite in PHP (PHP)
- PHP URL variables and if statement (PHP)
- CE7.net - Free CPANEL hosting, forum & blog hosting, redirection (no banners/popups) (Web Hosting Deals)
- CE7.net - Free phpBB & IPB forums, blogs and URL redirection & no banners or popups! (Web Hosting Deals)
Other Threads in the PHP Forum
- Previous Thread: Secure MP3 Downloads ?? Help Needed
- Next Thread: Help with jump.php Script
| Thread Tools | Search this Thread |
301 access apache api array autocomplete beginner binary broken button cakephp checkbox class cms code compression cron curl data database date display dropdown dropdownlist duplicates dynamic echo email error execution file files folder form forms function functions google href htaccess html htmlspecialchars httppost image include insert integration ip javascript job joomla jquery limit link links login mail md5 menu methods mlm multiple mysql oop paypal pdf pdfdownload php phpvotingscript problem query radio random recursion remote script search secure server session sessions sms source space sql subscription syntax system table tutorial update upload url validator variable video virus votedown web youtube





