Hi All,
I have the following code:
<?php
ini_set('allow_url_include', 'On');
ini_set('allow_url_fopen', 'On');
require("http://www.example.co.uk/functions/database.php");
$q = "SELECT * FROM orders";
$result = queryDatabase($q);
?>
I'm trying to use the function "queryDatabase", but when I run this script I get the following error message:
Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in C:\xampp\htdocs\test.php on line 6
Warning: require_once(http://www.example.co.uk/functions/database.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in C:\xampp\htdocs\test.php on line 6
Fatal error: require_once() [function.require]: Failed opening required 'http://www.example.co.uk/functions/database.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\test.php on line 6
I really want to avoid having to duplicate this function! Could anyone help me out with this please?!
Thanks,
dai.hop