Welcome Guest, Not a member yet? Register   Sign In
Help Please----Install / Configuration Codeigner
#1

[eluser]HelpGame[/eluser]
Hello,

I am new to Codeigniter.

It sounds extremely cool!


I want to install / configure it.

________________________________________________


My folders look like this:

helpgamexxx.justfree.com/CI3057/system/application/config/

________________________________________________


I am at the very first step: set BASEURL.

$config['base_url'] = “AAAAAA://helpgamexxx.justfree.com/CI3057/” ;

(AAAAA stands for http)

________________________________________________


I put this in the browser:

helpgamexxx.justfree.com/CI3057/


I get this error message:


Parse error: syntax error, unexpected >>> ':' <<< in /jotun1/justfree.com/h/e/l/helpgamexxx/htdocs/CI3057/system/application/config/config.php
>>>on line 81<<<<
(UNEXPECTED ':' ON LINE 81)


This is line 81:
$config['base_url'] = “AAAA://helpgamexxx.justfree.com/CI3057/” ;


(AAAAA stands for http)

_________________________________________________

What is the problem?

Do I need to create an .htaccess file?

If so what should it be?

The web has various versions.

_________________________________________________

Thanks a lot for your help!

I really appreciate it!

David
#2

[eluser]Đaяк Đaηтє[/eluser]
mmm are you sure that line 81 ends in ";" if you will use the framework for all site why you don't put the system folder in the root site?

And you can try with this code in your .htacces file

Code:
<IfModule mod_rewrite.c>  
     RewriteEngine on  
  
     RewriteCond %{REQUEST_FILENAME} !-f  
     RewriteCond %{REQUEST_FILENAME} !-d  
     RewriteRule ^(.*)$ index.php?/$1 [L]  
</IfModule>  
  
<IfModule !mod_rewrite.c>  
     ErrorDocument 404 /index.php  
</IfModule>

You need to be more specific about what do you want to do with htacess file
#3

[eluser]HelpGame[/eluser]
Hello SAC,

Thanks for your reply.

All I am trying to do is get the WELCOME screen to come up!

Then I want to define the database settings.
________________________________________________

I want to use CI for many projects.

So I put CI in a subfolder.

helpgamexxx.justfree.com/CI3057/

Is that an OK place to put it?

________________________________________________


The only code I have changed is line 81:

$config[‘base_url’] = “AAAA://helpgamexxx.justfree.com/CI3057/” ;

(AAAAA stands for http)

_________________________________________________


When I put this in the browser:

helpgamexxx.justfree.com/CI3057/


I get this error message:


Parse error: syntax error, unexpected ':' in /jotun1/justfree.com/h/e/l/helpgamexxx/htdocs/CI3057/system/application/config/config.php
>>>on line 81<<<<

NOTE: It is finding something wrong with a ':' (COLON) (Smile on line 81!

This is line 81:
$config['base_url'] = “AAAA://helpgamexxx.justfree.com/CI3057/” ;

(AAAAA stands for http)

The only ':' is near helpgame.

_________________________________________________


The only reason I mentioned HTACCESS is that on the web it seems
that sometimes people have to define HTACESS to get CI working.

Is that true?

Or is it only true for some webservers?

Thanks for your help!

David




Theme © iAndrew 2016 - Forum software by © MyBB