Welcome Guest, Not a member yet? Register   Sign In
passing parameter in function call with dot
#1

[eluser]Ajaxian64[/eluser]
Hello,

I call a controller method trought the URL website.com/myownjob/25.120.264/otherthing

the method of my controller is myownjob($ip, $other)

When i have a look on the $ip it is not 25.120.264 that I receive but 25_120_264

Do you know the reason why and how could I get the dot instead of '_' ?

Many thanks
#2

[eluser]Ajaxian64[/eluser]
Is my question stupid ?
do not hesitate to tell me if so.

:red:
#3

[eluser]pistolPete[/eluser]
Have a look at http://ellislab.com/forums/viewreply/476526/.
#4

[eluser]Ajaxian64[/eluser]
Thanks pistolPete
I change in config.php $config['uri_protocol'] = "AUTO"; to $config['uri_protocol'] = "QUERY_STRING";
ans it works fine.
(I'm on wampserver not in production server)

re-thanks




Theme © iAndrew 2016 - Forum software by © MyBB