客户端查看 showmount -e 192.168.33.10 客户端挂载 mount -t nfs 192.168.33.10:/data/www/ /data/www/packages-emao 客户端挂载时候遇到 mount clntudp_create: RPC: Program not registered 执行下 rpc.mountd 就可以了
switch(TRUE){ case email_is_valid($email): // Do something. break; case username_is_valid($user): // Do stuff. break; case pass_too_short($pass) && pass_not_save($pass): // Other stuff. break; }
$objPHPExcel->setActiveSheetIndex(0); // opend it on the first sheet // Redirect output to a client’s web browser (Excel2007) header('Content-Type:application/vnd.openxmlformatsofficedocument.spreadsheetml.sheet'); header('Content-Disposition: attachment;filename="问吧数据.xlsx"'); header('Cache-Control: max-age=0'); // If you're serving to IE 9, then the following may be needed header('Cache-Control: max-age=1'); // If you're serving to IE over SSL, then the following may be needed header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past header('Last-Modified: '. gmdate('D, d M Y H:i:s') . ' GMT'); // always modified header('Cache-Control: cache, must-revalidate'); // HTTP/1.1 header('Pragma: public'); // HTTP/1.0 $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007'); $objWriter->save('php://output'); exit();