Portál AbcLinuxu, 12. května 2025 00:44
if(file_exists($this->plugin_root_path)) echo "'{$this->plugin_root_path}'"; if(file_exists($this->plugin_root_path.'/jarcec')) echo "'{$this->plugin_root_path}/jarcec'"; if(file_exists($this->plugin_root_path.'/'.$ID_Pages)) echo "'{$this->plugin_root_path}/$ID_Pages'";Tzn. pokud existuji tito 3 slozky tak zobrazi jejich celou cestu. Script se tvari ze vse existuje a vypise tri cesty:
'/var/www/localhost/htdocs/nhs-ng//plugins/SimpleFotogalery-1' '/var/www/localhost/htdocs/nhs-ng//plugins/SimpleFotogalery-1/jarcec' '/var/www/localhost/htdocs/nhs-ng//plugins/SimpleFotogalery-1/11'Jenze problem je, ze mimo hlavniho adresare ty soubory neexistuji. Ve zkutecnosti jsem se prave je snazil vytvorit pres mkdir(), jenze ten hlasil ze jiz existuji (coz mi zacalo byt divne)... Dalsi zajimavosti je, ze pokud fci predam jen retezec, tedy (file_exists('/var/www/localhost/htdocs/nhs-ng//plugins/SimpleFotogalery-1/jarcec')), tak zahlasi spravne, ze neexistuje. Netusite nekde kde jsem udelal chybu?
file_exists
je cacheovan ... nemuze to na to mit vliv?
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.