Znám jen toto, ale to nefunguje, jelikož to bere mnou zadanou adresu jako jméno souboru.
Kód: Vybrat vše
<?php
if (file_exists('/auta/suv/bmw/cerne.php')) {
echo 'auto existuje';
}else{
echo 'auto neexistuje';
}

Kód: Vybrat vše
<?php
if (file_exists('/auta/suv/bmw/cerne.php')) {
echo 'auto existuje';
}else{
echo 'auto neexistuje';
}





Kód: Vybrat vše
__DIR__Kód: Vybrat vše
C:\wamp\webroot\
Kód: Vybrat vše
$soubor=dirname(__FILE__)."/".$_GET['p'].".php";
Kód: Vybrat vše
/home/users/kapacz/web.cz/web/blog




