Click to See Complete Forum and Search --> : inclusion error???
snoopy0877
09-25-2003, 02:33 AM
My phpnuke in index.php page have notice this warning:
Warning: Failed opening 'xdmp.php' for inclusion (include_path='') in D:\Webs\learn-php\PHP-Nuke-6.8\html\modules\News\index.php on line 24
How can solve for this warning??? Pls help, thanks
Gweilo
09-25-2003, 11:43 AM
check if the file exists, or the path to it is correct.
Check the Fileflag, if the path is correct (and the file exists).
snoopy0877
09-25-2003, 09:19 PM
The file is exist and 'xdmp.php' file is same dir with D:\Webs\learn-php\PHP-Nuke-6.8\html\modules\News\index.php
I tried to change include('xdmp.php') => require('xdmp.php');
But I still have the error: Fatal error: Failed opening required 'xdmp.php' (include_path='') in D:\Webs\learn-php\PHP-Nuke-6.8\html\modules\News\index.php on line 24
You might want to try this (not sure if it will help):
<?=include("xdmp.php");?>
[J]ona
Gweilo
09-26-2003, 02:22 AM
Very odd!
Try this:
chmod ("xdmp.php",0777);
include("xdmp.php");
snoopy0877
09-26-2003, 11:14 PM
Thanks but It still warning:
Warning: chmod failed: No such file or directory in D:\Webs\learn-php\PHP-Nuke-6.8\html\modules\News\index.php on line 25
Warning: Failed opening 'xdmp.php' for inclusion (include_path='') in D:\Webs\learn-php\PHP-Nuke-6.8\html\modules\News\index.php on line 26
the file xdmp.php already in this directory.
Gweilo
09-27-2003, 03:04 AM
ok, there must be something wrong with the path! I can't think of anything else.
Try adding the absolute pathes, like this:
include("http://www.bla.com/dir/xdmp.php");
or
include("http://localhost/dir/xdmp.php");
or
include("D:\dir1\dir\xdmp.php");
or
include("www/home/dir/xdmp.php");
Yes, since it seems to be on a Windows server, you might need to escape the backslashes...
include("D:\\dir\\xdmp.php");
[J]ona