php – Refresh page at time interval


I need to set the goal:

meta http-equiv="refresh" content="30"

However I'm using CodeIgniter and I can't do it. I tried:


Any suggestion?


Put it directly in your View, you can even configure whether you'll need it or not! So

public function index(){
        $data['stsRefresh'] = true;
        $this->load->view('Arquivos/index', $data);

And in your View

<title>Upload Form</title>
    if (isset($stsRefresh)){
        echo '<meta http-equiv="refresh" content="300">';
<form action="/arquivos/do_upload" method="post" enctype="multipart/form-data">
<input type="file" name="userfile" size="20" />

<br /><br />

<input type="submit" value="upload" />




Scroll to Top