[php:1:09d7a72fb7]<?php
function Pliki ($dir = 'pliki/') {
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while ($file = readdir($dh)) {
if ($file !== '.' || $file !== '..') {
if (filetype($dir . $file) == 'dir')
Pliki($dir . $file);
else
echo "Nazwa: $file : Typ: " . filetype($dir . $file) . "<br>n";
}
}
closedir($dh);
return TRUE;
}
else {
return FALSE;
}
}
else {
return FALSE;
}
}
?>[/php:1:09d7a72fb7]
otwieram w przegladarce - nic. odswiezam - nie mozna polaczyc z serwerem. pozniej nie moge juz otworzyc zadnej strony/skryptu z locala, chociaz apache chodzi.
w error.log widze:
Kod
[Sat Apr 24 11:44:23 2004] [notice] Parent: child process exited with status 128 -- Restarting.
[Sat Apr 24 11:44:23 2004] [notice] Parent: Created child process 4844
[Sat Apr 24 11:44:24 2004] [notice] Child 4844: Child process is running
[Sat Apr 24 11:44:24 2004] [notice] Child 4844: Acquired the start mutex.
[Sat Apr 24 11:44:24 2004] [notice] Child 4844: Starting 250 worker threads.
[Sat Apr 24 11:44:23 2004] [notice] Parent: Created child process 4844
[Sat Apr 24 11:44:24 2004] [notice] Child 4844: Child process is running
[Sat Apr 24 11:44:24 2004] [notice] Child 4844: Acquired the start mutex.
[Sat Apr 24 11:44:24 2004] [notice] Child 4844: Starting 250 worker threads.
po wyrzuceniu z kodu linijki z rekurencyjnym wykonaniem funkcji wszystko smiga
to jest serwer na winxp, apache 2.0.49, php 4.3.6 final, any idea?