1
我要上傳的MP3文件,但它顯示的消息:「上傳的文件超過你的PHP配置文件允許的最大大小」上傳文件夾中的mp3文件?
我的文件只有4.5 MB,這是我的控制器:
public function add_audio(){
$config['upload_path'] = './musics/';
$config['allowed_types'] = 'mp3|3gp|mpeg';
$config['max_size'] = '999999999999999999999';
$this->load->library('upload',$config);
chmod('musics/', 0777);
$this->upload->do_upload();
$data['audio'] = $_FILES['userfile']['name'];
if (! $this->upload->do_upload())
{
$data['error'] = $this->upload->display_errors();
print_r($data['error']);
//line of codes that displays if there are errors
}
else
{
$data['audio'] = $_FILES['userfile']['name'];
$this->load->model('main');
$query = $this->main->insert('audio',$data);
if($query == TRUE){
$this->load->view('admin/success');
}
}
}//end add
需要幫助...
有兩種文件名php.int開發和生產 - 我的XAMPP/PHP的內部,哪個文件,你都指向你能說清楚PLZ? –
在'xampp/php /'目錄中應該有'php.ini'。 – sozkul
http://stackoverflow.com/questions/6880749/php-ini-production-vs-development – sozkul