The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Including php file in FORUMHOME not working
Hello,
I am trying to add a php file into FORUMHOME, and this is what I did. I created a plugin with global_start and pasted the following code: Code:
ob_start(); include('my/server/path/file.php'); $includedphp = ob_get_contents(); ob_end_clean(); Warning: include(my/server/path/file.php) [function.include.html]: failed to open stream: No such file or directory in [path]/global.php(405) : eval()'d code on line 2 Warning: include() [function.include.html]: Failed opening 'my/server/path/file.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in [path]/global.php(405) : eval()'d code on line 2 Any ideas? |
#2
|
||||
|
||||
You didn't literally put in 'my/server/path/file.php' did you? Make sure the file is in the location you put and that it is readable (that you don't get a no permission error).
|
#3
|
|||
|
|||
No I put the actual path of my server and the file. The file is in a folder that is chmoded 777. Not sure why it is not working.
|
#4
|
||||
|
||||
And the path is correct from the location of the file 'calling' it? And can you access the file via a browser?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|