Welcome Guest, Not a member yet? Register   Sign In
URL as query segment
#1

[eluser]d910qf[/eluser]
Hi all,

I've done some reading and searching but not found an adequate solution yet.

I need to be able to pass a full URL (which could contain any of ? & / : etc) to a controller as myapp.com/controller/function/<encodedurlhere>

I have tried to both urlencode and base64_encode the url before passing it but neither is working - urlencode get's decoded before the function gets called it seems and base64_encode seems to work but the function doesn't like it.

I've read you can use CodeIgniters internal encrypt class to do it but this is for people outside of the site to request thumbnail images of the URL so that is not an option (it has to be a standard php function).

Does anyone have any ideas? I can't even find out how you can pass a query paramater to a function like myapp.com/controller/function/?url=encodedurlhere (without using myapp.com?c=asdas&m=sdfsdf&url=asdfsadf which would be a last resort).

Cheers,

Chris.


Messages In This Thread
URL as query segment - by El Forum - 06-27-2009, 07:48 PM
URL as query segment - by El Forum - 06-27-2009, 09:08 PM
URL as query segment - by El Forum - 06-27-2009, 09:51 PM
URL as query segment - by El Forum - 06-27-2009, 11:56 PM
URL as query segment - by El Forum - 06-28-2009, 05:23 AM
URL as query segment - by El Forum - 06-28-2009, 06:33 AM
URL as query segment - by El Forum - 06-28-2009, 07:02 AM
URL as query segment - by El Forum - 06-28-2009, 07:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB