![]() |
|
Thread Tools |
#1
|
||||||||
|
||||||||
Plugin Error
I am trying to register a variable and use data from a php file to display
hook location: init_startup forumhome > {vb:raw shoutstats}
Unfortunately with this code i get this error PHP Warning: require_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in ..../includes/init.php(351) : eval()'d code on line 4 I have disabled the plugin right now but i would like to get this to work. Ive also tried
instead of require_once & in hook location : global_bootstrap_init_start PHP Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in ..../includes/class_bootstrap.php(103) : eval()'d code on line 2 No members have liked this post.
Last edited by TopFloorDjs; 02 Mar 2017 at 04:32. |
#2
|
||||||||
|
||||||||
You should not use the include/require functions to get data from a remote file.
If you want to get data from a remote file, use file_get_contents:
This will fetch the output of the PHP file. If the file is on your local server, use:
This will execute the PHP code.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com Contact me for custom vBulletin 3/4 work & server/website management. The following members like this post: Lynne
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 03:14.