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

[eluser]slowgary[/eluser]
But that code makes some assumptions, such as the existence of a question mark in the url. Couldn't you just enable query strings in CodeIgniter and then choose a delimiter to wrap the URL in? Something like:
Code:
http://myapp.com/controller/get_thumbnail/{http://www.somedomain.com/index.php?234aqwf=asdf&acvd=q23f}
Then you could just use a regex on the full URL in your get_thumbnail function to extract the string between the curly braces {}. Or if curly braces don't work for you, maybe something like this would work:
Code:
http://myapp.com/controller/get_thumbnail/http://www.somedomain.com/index.php?234aqwf=asdf&acvd=q23f/get_thumbnail
Then you could use 'get_thumbnail' to just read between the lines.


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