Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Page Redirection Warning ( header location )
Index -> Programming, PHP -> PHP Tutorials
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
alpesh




PostPosted: Wed Aug 01, 2018 11:27 pm   Post subject: Page Redirection Warning ( header location )

When You use

header("location:url");

in PHP ... On server it Display warning and page does not redirect.

Very Happy Very Happy Very Happy

Here is the solutiion

<?php
ob_start();

....
logic
.........

ob_end_flush();
?>


OR


Try replacing header("Location:order_sell.php"); with

echo '<META HTTP-EQUIV="Refresh" Content="0; URL=filename.php">';
exit;
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, PHP -> PHP Tutorials
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: