![]() |
Gotta love errors... Help out with require problem?
Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in /home/<snip>/public_html/index.php on line 1
Warning: require_once(http://aetherdesigns.com/include/func_lib.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in /home/<snip>/public_html/index.php on line 1 Fatal error: require_once() [function.require]: Failed opening required 'http://aetherdesigns.com/include/func_lib.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/<snip>/public_html/index.php on line 1 the error happens because I am giving the script an absolute path to the include file... Which is kinda lame because If the path is relative I need to change it for every file. |
There isn't an error, that means you can include complete "urls" in your inclusion path.
If its a complete domain from a different server good luck, its disabled on about all new servers. Try: PHP Code:
|
That means that I need to edit the includes on different files, which is like... a lot of work when the site gets bigger... :(
Is there any way around this? |
you can change it through php.ini
I don't know what option exactly it is, but have a look at it it's well comented. |
I just found something:
Quote:
|
I found a shinier way.
PHP Code:
|
| All times are GMT. The time now is 12:32 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0