![]() |
Sorry but is this relevant to the hack?
|
Also, where do I input the code to center the banners on the forum home page? Do I just use this code: <div style="text-align:center;">
<a href......>banner</a> </div> ??? PLEASE let me know as well! |
Well I use the phpinclude_start template:
Code:
ob_start(); Code:
$forum_heading |
After a couple of weeks of using this mod, and everything working OK, Today I logged to my forums, and I am getting the following error message at the top of FORUMHOME.
Warning: file_get_contents(): URL file-access is disabled in the server configuration in /index.php on line 59 Warning: file_get_contents(http://www.mydomain.com/forums/banners.php): failed to open stream: no suitable wrapper could be found in /index.php on line 59 |
Sounds like there has been some kind of configuration change.
If you access the URL in your browser rather than in the file_get_contents, does it work? |
Yes, it works.
|
The message
Quote:
If it worked previously, check (with your hosts) whether the configuration of the server has changed in some way. |
Quote:
PHP Code:
|
Adding to my post, above, re URL file-access is disabled in the server configuration:
I found this is because my server has the PHP option allow_url_fopen disabled, thus preventing accessing the file via http. For importing static html, the solution in the above post was fine. But one of my import files was a php file that generated some variable text depending on the date. When accessing this directly instead of as an http import, all I got was the static php code, not the RESULT of running the php code. The support folks at the server suggested using their installed cURL library in place of get_file_contents(). The following modification to this hack in forumdisplay.php is now working for me: PHP Code:
|
Quote:
It seams, this is not the case for my server. I see the text of the .php file, not the results of execution. What I should ask my host to change? |
All times are GMT. The time now is 09:26 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|