The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Chdir
HI folks. I do have little problems with this hack.
https://vborg.vbsupport.ru/showthrea...&pagenumber=10 I do not having probs with get it working on my server ( where the forum is placed) but get it working on another server where the site is placed. It has sometihing to do with the various directions. on the server, where the board is, this code workz perfectly (i have to include the global.php and set the chdir) PHP Code:
Warning: ChDir: No such file or directory (errno 2) in /homepages/45/d72897891/htdocs/vashXT/laststyle2/index2.php on line 2 Fatal error: Failed opening required 'global.php' (include_path='.:/usr/local/lib/php') in /homepages/45/d72897891/htdocs/vashXT/laststyle2/index2.php on line 3 Hope you are able to help. thx |
#2
|
||||
|
||||
The chdir on the other server needs to be
chdir("/homepages/45/d72897891/htdocs/vashXT/laststyle2/forums/"); or something pretty darn similar depending on the subdirectory your forums are in. |
#3
|
||||
|
||||
oh you missunderstood me.
the site and the forums are on different servers. the full path to the forum is is/htdocs/28554/www.mangaboard.com/forums/ and the path to the site is something like /homepages/45/d72897891/htdocs/vashXT/laststyle2/ and that causes the problems |
#4
|
||||
|
||||
so you are installing that hack twice on two different servers? The path is not correct, did you double check it?
You don't have to use full path, if your forums is located in the webroot like: /main root/forums/ then you could do: PHP Code:
I see you have index.php in chdir(); |
#5
|
||||
|
||||
nope. i only install this hack one time. but on different servers.
ah. just have a look. i uploaded the page on the server the forum is placed on for testing: http://www.mangaboard.com/test/animeshock/index2.php nad here is the tets page on the server where the main page is normally placed: http://www.shamanking.org/nokx/laststyle2/index2.php |
#6
|
|||
|
|||
Hi, you can't use chdir if the directories you're changing from and to are on different physical servers. To use the hack on different servers would require a complete rewrite so that it didn't use the vbulletin global.php file.
It would work using the full server path, if you had something like home/htdocs/www.site1.com home/htdocs/www.site2.com as the directories are on the same server. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|