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 #180567 is a reply to message #180566] Tue, 26 February 2013 20:30 Go to previous messageGo to previous message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma:
Senior Member
Am 26.02.2013 20:41, schrieb Kevin Davis:
> On Tuesday, February 26, 2013 11:45:47 AM UTC-6, Jerry Stuckle wrote:
>> On 2/26/2013 12:28 PM, Kevin Davis wrote:
>>
>>
>>> 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.
>>
>>
>> What have you tried?
>>
>
> One option that I'm trying is $_SERVER['PATH_INFO'] instead of $_SERVER['REQUEST_URI']
>

Just put into your script:

var_dump($_SERVER);

and see what the variables contain.

/Str.
[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:09:08 GMT 2024

Total time taken to generate the page: 0.37583 seconds