Welcome Guest, Not a member yet? Register   Sign In
ID not read on live server. Works fine on localhost
#1

[eluser]Unknown[/eluser]
I have been working on this application where I read the :id which is the last segment of the URL and passing it to my controller.

When I try the code on localhost it works fine. But on the LIVE server it does not seem to work.

How can I get around the issue.

Thanks for your time.

Sunil
#2

[eluser]stommert[/eluser]
Hi,

Are there differences in operating system, server version, php version, database version. have you checked your config file. Are there any error messages?

maybe you can give us some more details...

good luck...
#3

[eluser]Unknown[/eluser]
Yes, The live server runs on Linux and i am developing on Mac OS X. There seem to be no error in the config file.

Thanks
#4

[eluser]stommert[/eluser]
I still don't know what you're error is. Do you get a blank page? 404? what do you see on your screen.?
#5

[eluser]Sarfaraz Momin[/eluser]
I understand from what you have mentioned is that you have a controller setup and you are trying to get the id which is the next segment of the controller e.g: www.domain.com/controller/method/id and its not getting you the ID in the method online. It does get you the ID locally though. If this is true check the following.

Is you method setup the following way ?
Code:
function abc($id){

}

There isn't any special routes created to handle the specific URL ?
Try E_ALL in index.php so it will get any errors if exists.
Bump the log to 4 in your config.

Give us more info so we can help you better

-Sarfaraz




Theme © iAndrew 2016 - Forum software by © MyBB