I am a php newbie, and I\'m trying to follow suggestions for how to get the query string. I want the words searched on in a readable format.
Currently I am using parse_url, however the host item of the array also includes the \'WWW\' part which I do not want. How would I go about removing this?
I call a php script http://site.com/process.php that takes a url as one of its parameters. for= http://si开发者_C百科te.com/process.php?for=http://www.anotherwebsite.com
Is there there somethings like parse_url() equivalent in Objective C? I like the simplicity of this function in PHP and need the same thing in an iPhone app. For example:
I\'m passing through a variety of URLs in a global variable called target_passthrough, so the URL of a page might look like:
From my related question here at SO I\'ve come up with the following PHP snippet: $url = parse_url($url);