我有问题:在我的插件目录中,我有两个文件:
当我从
gen.php
到
open.php
我在中使用select
open.php
$myrows = $wpdb->get_results("SELECT * FROM wp_ogloszenia_kupione");
无法打开我的文件我使用:
$fp = fopen(trim(trim($id)),"wb");
fwrite($fp,$content);
fwrite($fp, pack("CCC",0xef,0xbb,0xbf));
fopen(trim(trim($id)),"r");
fclose($fp);
//End 4
//5 - Otwarcie pliku
if (file_exists(trim($id))) {
header(\'Content-Description: File Transfer\');
header(\'Content-Type: application/octet-stream\');
header(\'Content-Disposition: attachment; filename=\'.basename(trim($id)));
header(\'Content-Transfer-Encoding: binary\');
header(\'Expires: 0\');
header(\'Cache-Control: must-revalidate\');
header(\'Pragma: public\');
header(\'Content-Length: \' . filesize(trim($id)));
ob_clean();
flush();
readfile(trim($id));
exit;
}
但当我删除时,选择一切都很好。
那么,为什么select会造成这种混乱呢?