![]() |
Howto include() my.php in Vbulletin if no output Display
I have a php script, it needs to included at the very PHP script this Vbulletin.
Code:
<IfModule mod_php5.c> anyone knows, how to fix this problem. |
$_SERVER['REMOTE_ADDR'] should be available even with register globals turned off. Otherwise some things in vBulletin would also not work.
But if it will work as an auto_prepend_file like you are trying i don't know. |
Quote:
shown me please simply way to inculude() my.php at the very PHP script this Vbulletin and get $_SERVER['REMOTE_ADDR']. I have a test script geschieben. It can get $_SERVER['REMOTE_ADDR']. in browser: http://mysite.com/test.php test script: Code:
<?php Code:
PHP Notice: Undefined index: REMOTE_ADDR in my.php on line XX i have read http://www.vbulletin.com/docs/html/t..._externalfiles if i want only to run a php script at top of every php script this vbulletin. It is nothing with output Display. below code is correct for this thing? Howto test it? Create a Plug-in for global_start Code:
ob_start(); |
Well for one this line will output $ip not xx.xx.xx.xx.
PHP Code:
You might just have found a bug in PHP with php_value auto_prepend_file so you report the bug and see what the PHP developers say. |
Quote:
thank you for response. |
All times are GMT. The time now is 09:07 PM. |
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:
|