PHP Kid Posted March 5, 2007 Share Posted March 5, 2007 Hi guys I know i might look stupid :-\ but lately i transferred my website to a dedicated server and since then some PHP pages stopped from working as example the change language code, i got it from language.php <?php $ref=getenv("HTTP_REFERER"); $pos=strrpos($ref,"/"); $pos++; $ref=substr($ref,$pos); #if(strstr("news_details",$ref)){ if(strstr($ref,"news_details")){ $goto=$language."/news.php"; }else{ $goto=$language."/".$ref; } header("location: $goto "); ?> i don't know what's the problem? some PHP page works and others not, any body could help please, i think there must be a plugin must be installed. I'm running Windows 2003 with IIS and plesk CP Link to comment https://forums.phpfreaks.com/topic/41326-little-help/ Share on other sites More sharing options...
Caesar Posted March 5, 2007 Share Posted March 5, 2007 My first guess, is always to check whether or not your scripts relied on register_globals being set to "On" (Bad). Where is $language being defined? Link to comment https://forums.phpfreaks.com/topic/41326-little-help/#findComment-200240 Share on other sites More sharing options...
PHP Kid Posted March 5, 2007 Author Share Posted March 5, 2007 @Caesar thank you, thank you, thank you sooooo much it worked like magic you're great, and 1000 thank you again Link to comment https://forums.phpfreaks.com/topic/41326-little-help/#findComment-200282 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.