blueman378 Posted December 25, 2007 Share Posted December 25, 2007 hi guys, well heres my code, header("Location: ../ . str_replace ('/', '_', $cat ) . .php?run=y"); unfortunatially it doesnt work, any ideas? The requested URL / . str_replace ('/', '_', Beat em up ) . .php was not found on this server. Quote Link to comment https://forums.phpfreaks.com/topic/83124-solved-header-redirect-str-replace/ Share on other sites More sharing options...
redarrow Posted December 25, 2007 Share Posted December 25, 2007 you can not use php statements in the header rederect statement try it with indivigal coding example <?php $x=str_replace ('/', '_', $cat ); header("Location: ../ $x.php?run=y"); ?> Quote Link to comment https://forums.phpfreaks.com/topic/83124-solved-header-redirect-str-replace/#findComment-422815 Share on other sites More sharing options...
blueman378 Posted December 25, 2007 Author Share Posted December 25, 2007 a thanks alot Quote Link to comment https://forums.phpfreaks.com/topic/83124-solved-header-redirect-str-replace/#findComment-422819 Share on other sites More sharing options...
redarrow Posted December 25, 2007 Share Posted December 25, 2007 MORE THEN WELCOME HAVE A REEL GOOD XMAS MATE.... Quote Link to comment https://forums.phpfreaks.com/topic/83124-solved-header-redirect-str-replace/#findComment-422821 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.