thank you for replying but nothing happened it gives me this error
Warning: include(C:\\AppServ\\www\\myscript\\404.html) [function.include]: failed to open stream: Invalid argument in C:\\AppServ\\www\\myscript\ est.php on line 15
Warning: include() [function.include]: Failed opening 'C:\\AppServ\\www\\myscript\\404.html' for inclusion (include_path='.;C:\\php5\\pear') in C:\\AppServ\\www\\myscript\ est.php on line 15
It might be that your system is refusing the PHP application access to that file.
Have you tried relative addressing correctly? The error message indicates the files are in the same directory, so it would be… ( include(‘404.html’); )
well thank you all for your support
i’ve installed Xampp Server instead of Appserv and the script is working
but on the free hosting file still the same problem guess the problem with the server maybe they’re not turning the “allow_url_include” Off
so thank you i really appreciate your support <3
Yes It’s is i’ve uploaded a file with the “phpinfo();” function in it and found
allow_url_fopen Off
allow_url_include Off
my final question : is there any function that allows me to allow the url include in a specific page only or it must be configured from the server only ??
it was a problem with the Appserv Server that it wasn’t compatible with Windows 7
so i’ve installed Xampp Server and it’s working on both of the include methods
this one
include("/myscript/404.html");
and this one
include("http://localhost/myscript/404.html");
that’s on the localhost server but on the free hosting server the problem was that the “allow_url_include” was switched off.