The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
If i have a directory in my forum directory like so:
forums/mydir And i want to include global.php from the forums directory and use its values in my index.php in mydir what code do I use. I've tried using chdir but to no effect. Any ideas on how I can get it ![]() - miSt |
#2
|
|||
|
|||
![]() PHP Code:
|
#3
|
||||
|
||||
![]() PHP Code:
![]() |
#4
|
|||
|
|||
![]()
Does that give you an error? It should if it can't include it (may have to comment out the error reporting line to see)...
Perhaps ../forum/config.php ? if not... you may need to use the real path - ie /home/users/public_html/forum/ |
#5
|
||||
|
||||
![]()
Using the full path wont work, i've tried it (many times)
|
#6
|
|||
|
|||
![]()
Try combinations of chdir'ing and then require'ing.
![]() |
#7
|
||||
|
||||
![]()
/forums/mydir
|
#8
|
|||
|
|||
![]() Quote:
I meant the real server path... not http://www.example.com/forum/config.php because more than likely it will give you a seeking not allowed error in that case ![]() |
#9
|
||||
|
||||
![]()
Make a directory in your forums directory called 'moo'.
Then upload this as your index.php file: PHP Code:
I see nothing ![]() |
#10
|
|||
|
|||
![]()
Ah I see what it's doing. It is trying to include ./admin/config.php relative to the /forum/folder/ directory... not sure if I have a solution for that unless you just copy paste the global.php file into your new directory and alter the line where it includes config.php to point.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|