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 Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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.