The Artima Developer Community
Sponsored Link

PHP Buzz Forum
How to find the full URL of the page in PHP in a platform independent and configuration...

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Angsuman Chakraborty

Posts: 19816
Nickname: angsuman
Registered: Dec, 2003

Angsuman Chakraborty is the CEO and Chief Architect at Taragana
How to find the full URL of the page in PHP in a platform independent and configuration... Posted: Jun 3, 2005 6:22 AM
Reply to this message Reply

This post originated from an RSS feed registered with PHP Buzz by Angsuman Chakraborty.
Original Post: How to find the full URL of the page in PHP in a platform independent and configuration...
Feed Title: Simple Thoughts on PHP
Feed URL: http://sedoparking.com/search/registrar.php?domain=®istrar=sedopark
Feed Description: News and views as a Software Architect and Entrepreneur on PHP.
Latest PHP Buzz Posts
Latest PHP Buzz Posts by Angsuman Chakraborty
Latest Posts From Simple Thoughts on PHP

Advertisement
Without much ado, I present the script. It handles http and https URL's and should work across platforms and configurations (like using htaccess for clean url's etc.). To understand more about the issues involved read - Understanding $_SERVER[’PHP_SELF’], $PHP_SELF, $_SERVER[’REQUEST_URI’] and $_SERVER[’SCRIPT_NAME’] in PHP and when to use what $_SERVER['FULL_URL'] = 'http'; $script_name = ''; if(isset($_SERVER['REQUEST_URI'])) { [...]

Read: How to find the full URL of the page in PHP in a platform independent and configuration...

Topic: 15 Handcrafted Handhelds 11 Previous Topic   Next Topic Topic: Programming: PHP

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use