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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Krisando
Forum Newbie
Posts: 2
Joined: Sun Jul 05, 2009 6:55 pm

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

Post 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 =[
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

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

Post by requinix »

Krisando wrote:making a relative directory link to a full URL address
Why? What exactly are you trying to change?
Krisando
Forum Newbie
Posts: 2
Joined: Sun Jul 05, 2009 6:55 pm

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

Post 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/"
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

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

Post by requinix »

You're missing the question.

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