plodos Posted December 17, 2008 Share Posted December 17, 2008 $opstr="header(\"Location:".$_SERVER["PHP_SELF"]."?wrong_code17=true\");"; Script is not working, it must open the location but it show the output sentence like HTML output header("Location:/reviewer.php?wrong_code17=true"); Why the link is not working ? Quote Link to comment https://forums.phpfreaks.com/topic/137459-solved-how-to-give-link-header-function-problem/ Share on other sites More sharing options...
premiso Posted December 17, 2008 Share Posted December 17, 2008 Use file_get_contents instead. Quote Link to comment https://forums.phpfreaks.com/topic/137459-solved-how-to-give-link-header-function-problem/#findComment-718318 Share on other sites More sharing options...
trq Posted December 17, 2008 Share Posted December 17, 2008 Your code makes little sense. What are you actually trying to do? Quote Link to comment https://forums.phpfreaks.com/topic/137459-solved-how-to-give-link-header-function-problem/#findComment-718326 Share on other sites More sharing options...
plodos Posted December 17, 2008 Author Share Posted December 17, 2008 if i write header("Location:".$_SERVER["PHP_SELF"]."?wrong_code17=true"); it is working. is it possible to open that link with echo $opstr="header(\"Location:".$_SERVER["PHP_SELF"]."?wrong_code17=true\");"; echo $opstr; Quote Link to comment https://forums.phpfreaks.com/topic/137459-solved-how-to-give-link-header-function-problem/#findComment-718331 Share on other sites More sharing options...
flyhoney Posted December 17, 2008 Share Posted December 17, 2008 if i write header("Location:".$_SERVER["PHP_SELF"]."?wrong_code17=true"); it is working. is it possible to open that link with echo $opstr="header(\"Location:".$_SERVER["PHP_SELF"]."?wrong_code17=true\");"; echo $opstr; Nope, you need to use file_get_contents, file, or fopen. Quote Link to comment https://forums.phpfreaks.com/topic/137459-solved-how-to-give-link-header-function-problem/#findComment-718337 Share on other sites More sharing options...
plodos Posted December 18, 2008 Author Share Posted December 18, 2008 thank you, i understood Quote Link to comment https://forums.phpfreaks.com/topic/137459-solved-how-to-give-link-header-function-problem/#findComment-718343 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.