how to determin what url has opened file now? (php)

Posted by Ole Jak on Stack Overflow See other posts from Stack Overflow or by Ole Jak
Published on 2010-05-10T23:50:30Z Indexed on 2010/05/10 23:54 UTC
Read the original article Hit count: 203

Filed under:
|

so I want to be able to get informed if my php script file is opened in localhost/myfile.php or in something like 222.22.22.22/myfile.php so I needa php function to determin if url starts with localhost or any other address (I want to get it as string like '22.33.22.33')

How to do such thing?

© Stack Overflow or respective owner

Related posts about php

Related posts about address