CodeIgniter Forums
Getting started With Code Igniter tutorial help requested - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Getting started With Code Igniter tutorial help requested (/showthread.php?tid=32249)



Getting started With Code Igniter tutorial help requested - El Forum - 07-17-2010

[eluser]Unknown[/eluser]
Hi all,

I'm trying out the tutorial here : http://www.ibm.com/developerworks/web/library/wa-codeigniter/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/welcome/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


Getting started With Code Igniter tutorial help requested - El Forum - 07-18-2010

[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.


Getting started With Code Igniter tutorial help requested - El Forum - 07-19-2010

[eluser]Unknown[/eluser]
Cheers mate,

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