Welcome Guest, Not a member yet? Register   Sign In
Getting started With Code Igniter tutorial help requested
#1

[eluser]Unknown[/eluser]
Hi all,

I'm trying out the tutorial here : http://www.ibm.com/developerworks/web/li...index.html

and am running into some problems.

I downloaded the source files to check first and not even they are working. I'm using Wamp so I extracted the files into the www folder. I changed the config.php file to

$config['base_url'] = "http://localhost/";

and updated the necessary fields in the database.php file as per the tutorials instructions.

When I point my browser to http://localhost/CodeIgniter/

I get the form displayed correctly but with the following errors above.

Quote:Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\CodeIgniter2\system\codeigniter\Common.php on line 123

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\CodeIgniter2\system\codeigniter\Common.php on line 129

Quote:A PHP Error was encountered

Severity: 8192

Message: Function set_magic_quotes_runtime() is deprecated

Filename: codeigniter/CodeIgniter.php

Line Number: 60

Quote:A PHP Error was encountered

Severity: 8192

Message: Assigning the return value of new by reference is deprecated

Filename: libraries/Loader.php

Line Number: 248

When I fill out the form it redirects my browser to

http://localhost/index.php/welcome/contactus

which shows the Wamp welcome screen.

So then I changed the config.php file to

$config['base_url'] = "http://localhost/CodeIgniter";

I get the same start page as before, including errors, and when I fill in the form it redirects to http://localhost/CodeIgniter2/index.php/.../contactus (which I'm assuming is correct), with the following messages at the top

Quote:Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\CodeIgniter2\system\codeigniter\Common.php on line 123

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\CodeIgniter2\system\codeigniter\Common.php on line 129
Quote:A PHP Error was encountered

Severity: 8192

Message: Function set_magic_quotes_runtime() is deprecated

Filename: codeigniter/CodeIgniter.php

Line Number: 60

With this underneath:

Quote:The URI you submitted has disallowed characters.

Any help would be much appreciated, as I'm pretty new to PHP, so please excuse the ignorance,

Cheers

Kabukiman
#2

[eluser]KingSkippus[/eluser]
Offhand, it sounds like you're using an old version of CodeIgniter with a new version of Php.

To get the version of CodeIgniter you're running, do an echo CI_VERSION somewhere in your code. For Php, type on the command line:

Code:
php --version

If Php is 5.3.something and CodeIgniter is <1.7.2, download the latest version of CodeIgniter and install it.
#3

[eluser]Unknown[/eluser]
Cheers mate,

that was the problem, I new it was going to be something simple.




Theme © iAndrew 2016 - Forum software by © MyBB