•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 401,719 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,143 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1257 | Replies: 3
![]() |
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
header ("location: index.php");But it generates the following error:
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
<?
session_start();
echo "Logging out ".$_SESSION['userid'];
header("location: tussu.php");
?>I get the error
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
Location: -=paradise=-
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
Try:
(*)
5 <= this will show your "Logging out ".$_SESSION['userid']" for 5 seconds.
<?
session_start();
header("Location: tussu.php"); //or (*)
echo "Logging out ".$_SESSION['userid'];
?>header("Refresh: 5; URL:http://www.domain.com/path/to/tussu.php");![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- CE7.net - Free CPANEL hosting, forum & blog hosting, redirection (no banners/popups) (Web Hosting Deals)
- PHP URL variables and if statement (PHP)
- URL Rewrite in PHP (PHP)
- 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


Linear Mode