Welcome Guest, Not a member yet? Register   Sign In
File Helper
#1

[eluser]j4zzyh4ck3r[/eluser]
Code:
public function test()
        {
            $this->_data['online'] = read_file(base_url() . 'assets/data/online.txt');
            echo ($this->_data['online']) ? $this->_data['online'] : 'FALSE';
        }

Is there anything wrong with that code ? Because I tried to echo the path and add it as url, the file is shown... Thanks
#2

[eluser]vrencianz[/eluser]
The problem is the base_url()
Code:
read_file('assets/data/online.txt');




Theme © iAndrew 2016 - Forum software by © MyBB