CodeIgniter Forums
Install Codeigniter in a server online ERROR - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: Install Codeigniter in a server online ERROR (/showthread.php?tid=66281)



Install Codeigniter in a server online ERROR - mirindraulki - 10-03-2016

Hi everybody
I wish to install Codeigniter in a servor on line
It contain no data
step 1 : send files with ftp 
step 2 :
- configuration autoload , route , dababase
- configuration config :  
-----> base_url = www.xxxxxxx.com
----->sess_save_path : BASEPATH.'projet/cache'
----->uri_protocol : REQUEST_URI 
----->index_page : 'index.php' 

htacess : 

RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

Everything  ok but when I add a new function in my main controller ,for exemple 

public function test()

    {
        $this->load->view('test',$data);
    }

it return nothing,i can see the changement in the url : www.xxxxxxx.com/index.php/Controller/test
but the page cannot load,

Can anyone help me

Thank you very much


RE: Install Codeigniter in a server online ERROR - InsiteFX - 10-03-2016

1) Make sure when you save your files in your editor that they are not saved with the BOM encoding mark!

SEEThe byte-order mark (BOM) in HTML

2) Make sure you do not have any white space before the opening php tag.

3) Your online server may be case sensitive and require all lower case filenames.


RE: Install Codeigniter in a server online ERROR - mirindraulki - 10-03-2016

(10-03-2016, 03:49 AM)InsiteFX Wrote: 1) Make sure when you save your files in your editor that they are not saved with the BOM encoding mark!

SEEThe byte-order mark (BOM) in HTML

2) Make sure you do not have any white space before the opening php tag.

3) Your online server may be case sensitive and require all lower case filenames.

thanks for your anwser

while i save my files i think that i 've done forever without the BOM,and all my opening php tag doesn't contain space before and it may be true about the case  sensitive and requires all lower case filenames

but now ,my project doesn't work ,i see many tutorial but it s not htacess,session,or configuration;but i don't know what,it's not too the database because when i change the function in the routes.php,it show me aparts of data in database


RE: Install Codeigniter in a server online ERROR - InsiteFX - 10-03-2016

make sure that your base_url has an ending / slash on it.

Also make sure that your index.php file has the application and system paths set correctly.