4,250
社区成员




<b>Warning</b>: opendir(storage_newegg/) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: Arg list too long in <b>D:\wwwroot\pcnp\include\competitor\ocr.php</b> on line <b>44</b><br />
function getChars($domain)
{
$path = 'storage/';
$a = array();
if($dir = opendir($path)) {
while($filename = readdir($dir)) {
// if($filename == '.' || $filename == '..')continue;
//在这里添加过滤非图像文件
if(!preg_match('/.*\.char$/',$filename))continue;
//这里生成对象
$sel = file_get_contents($path.'/'.$filename);
$this->chars[] = unserialize($sel);
}
closedir($dir);
}
路径没问题