FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » php url question
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: php url question [message #180572 is a reply to message #180562] Tue, 26 February 2013 22:23 Go to previous message
Olaf S. is currently offline  Olaf S.
Messages: 10
Registered: December 2011
Karma:
Junior Member
Am 26.02.2013 18:28, schrieb Kevin Davis:
> Hi there,
>
> I have a simple question with PHP URL's setup.. Here is the situation I have a page that is based on the urls.. For example, I have a php file that will display based on the following sample url: http://temp.com/t2, however in some cases the url could be http://temp.com/t2?d=temp or something similar. That type of url tend screw up the settings. Is there a way for me to drop the d=temp so the page settings will not get messed up when the url's is read in.
>
> Thank you.
>

$org_url = "http://temp.com/t2";
$url_array = explode("?", $org_url);
echo $url_array[0];
// Prints: http://temp.com/t2


$org_url = "http://temp.com/t2?d=temp";
$url_array = explode("?", $org_url);
echo $url_array[0];
// Also prints: http://temp.com/t2
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: simpletest vs phpunit vs ...
Next Topic: Request for proofreading
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 21 22:16:15 GMT 2024

Total time taken to generate the page: 0.04019 seconds