Jump to content

include_once(); not having source variable values :(


karthikeyan_coder

Recommended Posts

hello,

I am using php/IIS

include('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.php

i am trying to use $nspl_path inside skin.php ... but i cannt.

why this problem?
additionally all of my urls are ending with ?PHPSESSID=77e2692e212b9c4d0333405f03ff493b
is thie cause problem? if yes then let me know how to fix this in php/IIS

Thank you.
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.php

As for your url having the session id appended. This is a sessions setting that can be adjusted through your php.ini.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.