it looks like this is a search engine script of some sort. it is asking for the base dir for the area that you want to start the indexing at. unfortunatly it is looking for something like /usr/htdoc/httpd/my_dir. since the script is held in one location and the directory to be indexed is in another location i don' think that you will be able to pull this off without some fun time coding.
if this is a search engine script i recommend you check out Atomz.com. they have a wonderful free search engine script that is fully customizable to any site.
E-mail me for a 1-1 talk about setting up your dream business.