You are here: Re: How can I reliably get an html path with .htaccess 'RewriteBase' « PHP Programming Language « IT news, forums, messages
Re: How can I reliably get an html path with .htaccess 'RewriteBase'

Posted by fel on 04/27/07 14:48

use fopen, fread fclose and a write a simp0le .htaccess parser.

On Apr 27, 6:19 am, FFMG <FFMG.2pp...@no-mx.httppoint.com> wrote:
> Toby A Inkster;62002 Wrote:
>
>
>
> > FFMG wrote:
>
> > > htt://www.example.tdl/folder1/folder2/page.html
>
> > > I want to get the folders from the root, so the folder would be
> > > $f = './folder1/folder2/'
> > > and the page
> > > $p = 'page.html'
>
> > Something like this?
>
> > <?php
> > $components = explode('/', $_SERVER['REQUEST_URI']);
> > $p = array_pop($components);
> > $components[] = '';
> > $f = implode('/', $components);
> > ?>
>
> I guess that would work solving the first problem.
> but how can I fix the second problem?
>
> I can I tell what the value of 'RewriteBase' in my .htaccess is?
>
> FFMG
>
> --
>
> 'webmaster forum' (http://www.httppoint.com) | 'webmaster Directory'
> (http://www.webhostshunter.com/) | 'Recreation Vehicle insurance'
> (http://www.insurance-owl.com/other/car_rec.php)
> 'Free URL redirection service' (http://urlkick.com/)
> ------------------------------------------------------------------------
> FFMG's Profile:http://www.httppoint.com/member.php?userid=580
> View this thread:http://www.httppoint.com/showthread.php?t=14214
>
> Message Posted via the webmaster forumhttp://www.httppoint.com, (Ad revenue sharing).

 

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

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