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 ? 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. 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? 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; 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. 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 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
Archived
This topic is now archived and is closed to further replies.