Include Problem
Posted: Mon Aug 12, 2002 2:32 pm
<?php
$dirname = "produkter";
$dh = opendir( $dirname );
while( $file = readdir( $dh ) )
{
include("$file");
}
?>
Why want his work?
This is what I see when running this code:
Warning: Failed opening '.' for inclusion (include_path='.;c:\php4\pear') in D:\inc shop\index.php on line 29
Warning: Failed opening '..' for inclusion (include_path='.;c:\php4\pear') in D:\inc shop\index.php on line 29
Warning: Failed opening 'produkt1.php' for inclusion (include_path='.;c:\php4\pear') in D:\inc shop\index.php on line 29
Warning: Failed opening 'produkt2.php' for inclusion (include_path='.;c:\php4\pear') in D:\inc shop\index.php on line 29
Warning: Failed opening 'produkt3.php' for inclusion (include_path='.;c:\php4\pear') in D:\inc shop\index.php on line 29
I've tried what I know, but nothing seams to work. Please help
$dirname = "produkter";
$dh = opendir( $dirname );
while( $file = readdir( $dh ) )
{
include("$file");
}
?>
Why want his work?
This is what I see when running this code:
Warning: Failed opening '.' for inclusion (include_path='.;c:\php4\pear') in D:\inc shop\index.php on line 29
Warning: Failed opening '..' for inclusion (include_path='.;c:\php4\pear') in D:\inc shop\index.php on line 29
Warning: Failed opening 'produkt1.php' for inclusion (include_path='.;c:\php4\pear') in D:\inc shop\index.php on line 29
Warning: Failed opening 'produkt2.php' for inclusion (include_path='.;c:\php4\pear') in D:\inc shop\index.php on line 29
Warning: Failed opening 'produkt3.php' for inclusion (include_path='.;c:\php4\pear') in D:\inc shop\index.php on line 29
I've tried what I know, but nothing seams to work. Please help