The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
I am haveing a problem with the chdir function in php runninhg on a IIS server
I do not know where i should post this but i am running on a windows server 2000 and running IIS and not lynex - i am haveing a problem with the chdir function in php let me explain in detail below.
Here is the problem on my web site i have intergrated the vbulletin forum product and in building my web site i am put on my home page or another page like it and in the process of deguging the script after a great deal of investagating i have come to the clusions that the foloowing does not function the same on a IIS as other web server. Could some one explain why this is and how this problem can be worked around? Here is the php server side script I am working on <?php $curdir = getcwd(); chdir('../forums'); require_once('./global.php'); if (!$vbulletin->userinfo['userid']) { print_no_permission(); } switch ($_POST['blue_lodge']) { case "John T. Heard Lodge": $vbulletin->url = $vbulletin->options['bburl'] . '/forumdisplay.php?f=30'; eval(print_standard_redirect('redirecting to forum', false, true)); break; default: echo "Invalid page"; break; } ?> I have also tried this chdir('./forums/'); require_once('./global.php'); It is when i put this in that the if (!$vbulletin->userinfo['userid']) { print_no_permission(); } but on my testing i found that chdir was the one that does not function as it should i was able to see it for shure by putting in echo stactments after i did a chdir and found that i had not gone to were i should have. It seems to have something to do with the web root and IIS but do not undersatand what might be going one please explain the diff and how to fix this problem - have removed a lot of the php script so one can focus on the real problem. Do any one have a idea what might be going worng here? THANKS Frank H. Shaw |
#2
|
|||
|
|||
Did you change the directory back after you had included the global.php file?
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|