TANYA Permasalahan CODEIGNITER DI LINUX

Aplikasi-aplikasi diubuntu: • Aplikasi Grafis •
Aplikasi Internet •
Aplikasi Office •
Aplikasi Sound & Video •
Aplikasi Programming
User avatar
Azay_Khan
Posts: 1
Joined: 12 Feb 2014, 15:37
Location: Jakarta, INA

TANYA Permasalahan CODEIGNITER DI LINUX

Postby Azay_Khan » 12 Feb 2014, 16:12

Maaf agan-agan semua sy mau tanya neh, baru ja pakai Ubuntu+Codeigniter dah da masalah ni. googling sana sini belum ketemu jawaban. ini tentang upload image menggunakan Codeigniter. sy liat conto upload_clas di userguidenya dan mempraktekannya. tetapi mentok saat upload dan ada tulisan "The upload path does not appear to be valid." muncul seperti itu pas execute function do_upload(). biar lebih jelas sy lampirkan nih..

CONTROLLERNYA, nama "upload_file"
[color:#FF0000]load->helper(array('form', 'url'));
}

function index()
{
$this->load->view('form_upload', array('error' => ' ' ));
}

function do_upload()
{
[color:#000099]$config['upload_path'] = realpath('images');[/color]
$config['allowed_types'] = 'ggif|jpg|png';
$config['max_size'] = '100';
$config['max_width'] = '1024';
$config['max_height'] = '768';

$this->load->library('upload', $config);

if ( ! $this->upload->do_upload())
{
$error = array('error' => $this->upload->display_errors());

$this->load->view('form_upload', $error);
}
else
{
$data = array('upload_data' => $this->upload->data());

$this->load->view('view_upload', $data);
}
}
}
?>[/color]

VIEW, nama "form_upload.php"
[color:#CC0000]

Upload Form


















[/color]

VIEW, nama "view_upload.php"
[color:#CC0000]

Upload Form



Your file was successfully uploaded!


$value):?>
:







[/color]

yg warna biru sblumnya adalah "$config['upload_path'] ='/.images/';", tetap errornya seperti yang di atas.
sy tempatin localhostnya di
-/var/www/namaCI/images

Menurut agan-agan gimana??? mohon pencerahannya buat di linux neh. biar sy semangat coding.
User avatar
abu_unaisah
Posts: 1621
Joined: 24 Nov 2011, 14:07

Re: TANYA Permasalahan CODEIGNITER DI LINUX

Postby abu_unaisah » 12 Feb 2014, 16:28

ane belom pernah pake CI
mungkin masalah permission file di folder /var/www/namaCI/images

Return to “Aplikasi Ubuntu”

Who is online

Users browsing this forum: No registered users and 7 guests