I am trying to run a file from my local computer calling the files on server. It is giving me this error message. any solution please

Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\text.php on line 4

Warning: require_once(http://url/classes/htmlMimeMail.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\text.php on line 4

    Well, you could change the your PHP config to turn on "allow_url_fopen" and "allow_url_include"; but keep in mind that allowing includes of URLs has a high security risk, as it enables the potential execution of malicious PHP code within your script. And in any case, it likely won't have the desired result anyway, as the remote server will most likely execute the PHP file there, and all your script will receive is the output (which will be nothing if the include file is just function/class definitions).

      Write a Reply...