I want to check Browser's url and set a if--else condition. can anybody write the code for me? Thanks.
do a var_dump($_SERVER); Code (markup): and check the output. It will give you a stack of information. however if you are trying to see if your page is appearing in a frame from another site then you'll need javascript.