Reply to Re: [PHP] how to read the path of the current document's url

Your name:

Reply:


Posted by Curt Zirzow on 01/09/05 17:26

* Thus wrote Tim Burgan:
> Hello,
>
> I have a page where the URL is along the lines of
> http://www.example.com/test.php
>
> I've tried using the parse_url() function without success.. I'm trying
> to just get "test.php" returned as a string.

How are you using parse_url()? $_SERVER['REQUEST_URI'] will have
exactly what you need.



Curt
--
Quoth the Raven, "Nevermore."

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация