瀏覽單個文章
vince5586
Major Member
 

加入日期: Jan 2006
文章: 286
引用:
作者michelle-lai529
如同樓上說的,先把selinux 給 disable 掉試試,只是這個應該不會是運作了一段時間才出問題∼
首要先確定在該檔案下php是可以運作的。


selinux 本來就沒開的 確認過了
about.php在DocumentRoot裡是可以正常顯示<?php echo phpinfo(); ?> 的訊息

原本網頁的內容是這樣
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class About extends CI_Controller {

public function index()
{

$data["sid"] = $this->input->get('sid', TRUE);
if($data["sid"]<1){
$data["sid"] = 1;
}
$this->load->view('v_about' , $data);
}
}
     
      
舊 2021-07-11, 09:12 PM #21
回應時引用此文章
vince5586離線中