Beste PHP-ers,
Binnen een php website krijg ik de volgende foutmelding te zien in mijn error_log.
Call to a member function on a non-object ....[path]/html.php on line 900
Regel 900 is de regel while ($file = $dir->read())
Zie onderstaande function.
function createFileList()
{
$this->clear();
$this->addOption($this->emptyEntry);
$dir = dir($this->filePath);
while ($file = $dir->read())
{
if ($file != "." && $file != ".." && $file != "database.txt" && ($this->private_isAccordingToFilter($file)))
{
$this->addOption($file, $file);
}
}
$dir->close();
}
Mijn vraag is: Gaat deze nu fout op de read() ?
Binnen een php website krijg ik de volgende foutmelding te zien in mijn error_log.
Call to a member function on a non-object ....[path]/html.php on line 900
Regel 900 is de regel while ($file = $dir->read())
Zie onderstaande function.
function createFileList()
{
$this->clear();
$this->addOption($this->emptyEntry);
$dir = dir($this->filePath);
while ($file = $dir->read())
{
if ($file != "." && $file != ".." && $file != "database.txt" && ($this->private_isAccordingToFilter($file)))
{
$this->addOption($file, $file);
}
}
$dir->close();
}
Mijn vraag is: Gaat deze nu fout op de read() ?
Incredible