You are here: RE: [PHP] Getting current page name without path « PHP « IT news, forums, messages
RE: [PHP] Getting current page name without path

Posted by "George Pitcher" on 09/06/05 10:19

> I want to get the name of current page. I use $PHP_SELF or
> SCRIPT_FILENAME, but it also provides the path name . I just want to
> retrieve the file name with extension. How can I do that?
>

$_SERVER['SCRIPT_NAME'] and $_SERVER['ORIG_SCRIPT_NAME'] will give you the
current filename without the path.

I'm currently using PHP5.1RC so it might differ in your version but check
out phpinfo.php

These things are all displayed in phpinfo.php.

George

 

Navigation:

[Reply to this 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

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