URL

Sometimes we need to get something from current URL or page or we need to check for something (text or variable) in URL which can determine further action in that page. Suppose you want to match any word in the current URL and if that word or text is present in URL, you want to […]

{ 0 comments }

Previously I have mentioned some ways to find out file name at server also. This script tells the exact path of file at server. I have tested it at local host and my sweet wamp server is installed in my D drive of PC.

{ 0 comments }

I have other solutions to find file path at server or file name using PHP. The thing is, some php scripts might not work with some versions of PHP or in some situations. So more methods you learn for each task with PHP, the better. Here goes more solutions; Enjoy! In this example I used […]

{ 0 comments }

I have three solutions here to find current page name or URL of page being displayed. This script can be useful while you want to get page name or send page URL via email. If the page name is url.php and it is in wamp www directory i.e. localhost, then consider this example.

{ 0 comments }

Suppose user submits a form and post data to the other page. We can find out its referrer URL (From where he came?) for redirection or other purpose. Referrer can be used in following ways. Redirection (Redirect back from where the form was posted, lets say after mailing…) To referrer a web page to a […]

{ 0 comments }