You are here: Re: How point script "snif" to different folder? « All PHP « IT news, forums, messages
Re: How point script "snif" to different folder?

Posted by Arjen on 04/27/06 14:18

Danny Boy wrote:
> Hi,
>
> I am using an excellent script for indexing the content in directories.
> It's called "snif" and is found here:
> http://www.bitfolge.de/snif-en.html (just one file, but so extensive I
> can't copy it here).

Pls link to the source code

> So I wonder if there's a way to point the script to another directory
> than the one where it's residing.

After taking a really quick look I found this:

$baseDirname = $snifServer.htmlentities(dirname($_SERVER["PHP_SELF"]));

Replace it with onother value.

$baseDirname = $snifServer.$yourdir;

Also any other occurences of $_SERVER["PHP_SELF"]) should be altered
into a predefined var (where the server should think you are).

Arjen

 

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

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