Jump to content

Help - php


Guest [B]mX

Recommended Posts

zdravím vás potrebuju pomoc

mam napr

udelany v index.php

 

<?php

include "includes/data.php";

?>

a nahraju to a dam aj na web slosku includes a v ni data.php

 

no a ked to nahraju na web pisu mi taky erorry

 

Warning: include() [function.include]: Unable to access ./includes/data.php in /home/free/testik.cz/x/hms/root/www/index.php on line 4

Warning: include(./incudes/inc.php) [function.include]: failed to open stream: No such file or directory in /home/free/testik.cz/x/hms/root/www/index.php on line 4

Link to comment
Share on other sites

dej místo toho řádku tenhle kousek kódu a napiš sem co ti to napsalo:

 

$dir = "./includes";
if(! is_dir($dir) ) die("Slozka includes ti neexistuje");
else
{
   echo "Soubory ktere vidim v te slozce:";
   $dir = scandir($dir);
   foreach($dir as $file)
   {
       echo "
$file";
   }
   exit;
}

Link to comment
Share on other sites

  • 1 month later...
Guest _dominik_

:-D jestli chces aby ti fakal include tak

<?php include("./include/data.php"); ?>

 

Teda jestli jsem to dobre pochopil,ze ti nefaka jen include

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...