Reply to Re: [PHP] Dynamic sub directory listing without redirect

Your name:

Reply:


Posted by "Richard Lynch" on 10/11/05 01:15

On Fri, October 7, 2005 10:19 pm, Terence wrote:
> I am trying to allow dynamic URL's for my users to remember similiar
> to:
>
> www.mysite.com/joesoap
>
> So I want to use "joesoap" in a PHP script to pick up the user's
> details
> from a MySQL database. If the "joesoap" does not exist in the table
> I will handle that.
>
> So basically I have one file www.mysite.com/index.php which should do
> all the processing.
>
> I have tried with the apache .htaccess mod_rewrite, however when I
> echo
> $_SERVER['PHP_SELF'] I can't detect the "joesoap". It returns
> /index.php.

No need to get all complicated with mod_rewrite and .htaccess
ForceType/Action:

echo $_SERVER['PATH_INFO'];

Just in case I mis-remember the key:

var_dump($_SERVER);

It's in there somewhere.

--
Like Music?
http://l-i-e.com/artists.htm

[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

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