Page 1 of 1

Warning: URL file-access is disabled in the server config

Posted: Sun Jul 05, 2009 7:00 pm
by Krisando
Hello I'm having abit of a problem making a relative directory link to a full URL address

This piece of code:
$layout_name = "layouts/".$layout_name = $config['site']['layout'];;
Needs to be:
$layout_name = "http://frozenstarfire.com/layouts/".$layout_name = $config['site']['layout'];;

If that is possible =/ when I do so these errors pop up:
Warning: parse_ini_file() [function.parse-ini-file]: URL file-access is disabled in the server configuration in C:\xampp\htdocs\config-and-functions.php on line 94

Warning: parse_ini_file(http://frozenstarfire.com/layouts/tibia ... config.ini) [function.parse-ini-file]: failed to open stream: no suitable wrapper could be found in C:\xampp\htdocs\config-and-functions.php on line 94

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\config-and-functions.php on line 95

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\xampp\htdocs\index.php on line 388

Warning: include(http://frozenstarfire.com/layouts/tibiacom/layout.php) [function.include]: failed to open stream: no suitable wrapper could be found in C:\xampp\htdocs\index.php on line 388

Warning: include() [function.include]: Failed opening 'http://frozenstarfire.com/layouts/tibiacom/layout.php' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\index.php on line 388
I need some serious help, i'm using an XAMPP distribution. I tried changing php.ini to:
;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;

; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
allow_url_include = On
I thought allowing URL includes would work =[

Re: Warning: URL file-access is disabled in the server config

Posted: Sun Jul 05, 2009 8:36 pm
by requinix
Krisando wrote:making a relative directory link to a full URL address
Why? What exactly are you trying to change?

Re: Warning: URL file-access is disabled in the server config

Posted: Sun Jul 05, 2009 9:16 pm
by Krisando
$layout_name = "layouts/".$layout_name = $config['site']['layout'];;
Needs to be:
$layout_name = "http://frozenstarfire.com/layouts/".$layout_name = $config['site']['layout'];;

Relitive directory "layouts/" to "http://frozenstarfire.com/layouts/"

Re: Warning: URL file-access is disabled in the server config

Posted: Sun Jul 05, 2009 9:49 pm
by requinix
You're missing the question.

Why are you doing this? What problem are you trying to solve by using an absolute URL?