Szövetminták
function showSzovetminta($filePath,$title) { $string = array(); if ($_SERVER['HTTP_HOST'] == 'www.a1karpitos.hu'){ $dir = opendir("../web/szovetmintak/" . $filePath); } else{ $dir = opendir("../../web/szovetmintak/" . $filePath); } while ($file = readdir($dir)) { if (preg_match("/\_th.png/i",$file) || preg_match("/\_th.jpg/i",$file) || preg_match("/\_th.gif/i",$file) ) { $string[] = $file; } } arsort($string); while (sizeof($string) != 0) { $img = array_pop($string); $temp = explode(".", $img); $extension = array_pop($temp); $filename = substr(implode(".", $temp), 0, -3); $kiiras = substr($filename, 3); if (substr($kiiras, 0, 1) == "-") { $kiiras = substr($kiiras, 1); } $kiiras = ucfirst($kiiras); $kiiras = str_replace(".", " ", $kiiras); //$path = substr($filePath, 3); $path = substr($filePath, 1); echo" "; } } ?>Szövetek
Fatal error: Uncaught Error: Call to undefined function showSzovetminta() in /var/www/html/a1karpitos/web/pages_hu/szovetmintak.php:49 Stack trace: #0 /var/www/html/a1karpitos/web/index.php(247): include() #1 {main} thrown in /var/www/html/a1karpitos/web/pages_hu/szovetmintak.php on line 49