Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 04-07-2009
Member
 
Join Date: Apr 2008
Posts: 51
How to display a URL of a page in PHP?

Hi,

How to display a URL of a page in PHP?
In simple I want to do is to show a page instead of URL
In short I want to display
www.myweb.com/page1.php

to

[www.myweb.com/page1.php]
Please help me do this.
Reply With Quote
  #2  
Old 04-07-2009
Member
 
Join Date: May 2008
Posts: 1,144
Re: How to display a URL of a page in PHP?

I dont understand what you exactly want to do?
where you want to display the URL in?
In a status bar or in web page?
You can echo it if you set a target url as variable.
Reply With Quote
  #3  
Old 04-07-2009
Member
 
Join Date: May 2008
Posts: 38
Re: How to display a URL of a page in PHP?

Try this:

Code:
echo $_SERVER['SCRIPT_URI'];
Hope this is what you want to do.
Reply With Quote
  #4  
Old 04-07-2009
Member
 
Join Date: Apr 2008
Posts: 240
Re: How to display a URL of a page in PHP?

How do you make your server recognize that new form of url and serve the proper content in response?
How to change dynamic to static URLs

IS this what you are asking for?
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to display a URL of a page in PHP?"
Thread Thread Starter Forum Replies Last Post
How to display a php page for test KAMANA Software Development 4 30-10-2009 06:48 PM
How to display hidden Div anywhere on the page TechPredator Software Development 3 27-07-2009 02:24 PM
IE 7 cannot display the web page JoClarke Technology & Internet 2 22-01-2009 11:17 AM
How to display image in PHP Page Aaquib Software Development 2 21-01-2009 07:08 PM
IE7 cannot display the web page Paul Windows XP Support 2 28-01-2008 07:17 AM


All times are GMT +5.5. The time now is 12:49 AM.