Welcome Guest, Not a member yet? Register   Sign In
Codeigniter 1.7.2 get param URL PHP version 5.2.14 >
#1

[eluser]nhantam[/eluser]
URI problem PHP version > 5.2.13

I have use Codeigniter 1.7.2 to develope my application. But my Application not run in the morning. I was debug and see problem at URI.php (libraries/URI.php)

if your application have url such as: http://domain.com/myclass/function/?param=other

param=other not recognize

Repair: libraries/URI.php

search line: function _fetch_uri_string()

Code:
$path = (isset($_SERVER['PATH_INFO'])) ? $_SERVER['PATH_INFO'] : @getenv('PATH_INFO');
change
Code:
$path = (isset($_SERVER['ORIG_PATH_INFO'])) ? $_SERVER['ORIG_PATH_INFO'] : @getenv('ORIG_PATH_INFO');
#2

[eluser]jrtashjian[/eluser]
If your configuration file (/system/application/config/config.php) is set:

Code:
$config['enable_query_strings'] = FALSE;

Your urls need be be constructed as so:

Code:
http://domain.com/myclass/function/param1/param2/param3

Otherwise if it set to TRUE, then you can use query strings:

Code:
http://domain.com/index.php?c=myclass&f=function&param1=value&param2=value&param3=value




Theme © iAndrew 2016 - Forum software by © MyBB