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.
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.