You are here: Re: www.somesite.com/123213 type pages « All PHP « IT news, forums, messages
Re: www.somesite.com/123213 type pages

Posted by Krustov on 07/13/06 16:50

<alt.php>
<Kentor>
<13 Jul 2006 08:57:52 -0700>
<1152806272.243147.49310@75g2000cwc.googlegroups.com>

> is it possible to have these kinds of pages with php?
> www.somesite.com/123213
>

Assume you mean to put .php/.jpg/.etc at the end of it .

Although mod rewrite is best - you can do a makeshift version of it
using a custom 404 page .

The usual referer stuff doesnt work and you need to use the following .

$grab=$_SERVER['QUERY_STRING'];

# $grab="404;http://www.somesite.com:80/123213/";

Basically trim everything except 123213 from the string and do whatever
you want with it .


--
Encrypted email address
www.emailuser.co.uk/?name=KRUSTOV

 

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

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