karthikeyan_coder Posted January 16, 2007 Share Posted January 16, 2007 hello,I am using php/IISinclude('someconfig.php');echo($nspl_path); include_once($nspl_path."/inc/skin.php"); echo($nspl_path);above code prints $nspl_path...$nspl_path = "http://asfd.asdf"; in someconfig.phpi am trying to use $nspl_path inside skin.php ... but i cannt.why this problem?additionally all of my urls are ending with ?PHPSESSID=77e2692e212b9c4d0333405f03ff493bis thie cause problem? if yes then let me know how to fix this in php/IISThank you. Quote Link to comment Share on other sites More sharing options...
trq Posted January 16, 2007 Share Posted January 16, 2007 You rpost is pretty vague but It lloks like it should be working. If $nspl_path is available to actually include the file...[code=php:0]include_once($nspl_path."/inc/skin.php");[/code]then it should also be available within skin.phpAs for your url having the session id appended. This is a sessions setting that can be adjusted through your php.ini. Quote Link to comment Share on other sites More sharing options...
karthikeyan_coder Posted January 16, 2007 Author Share Posted January 16, 2007 it is including skin.php well. but i cannt echo($nspl_path); inside skin.php Quote Link to comment Share on other sites More sharing options...
karthikeyan_coder Posted January 16, 2007 Author Share Posted January 16, 2007 i have closer look now..i tried include_once('../temp/test.php'); instead of include_once('http://url.ext/temp/test.php');now i can print the variables while using relative path. but not in absolute path. 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.