Reply to Re: Getting an included PHP script to to include a file in the same directory.

Your name:

Reply:


Posted by Daz on 01/10/07 21:43

Thanks William.

I had contemplated doing something similar, but it won't work due to my
directory structure. Yes, I know that some people would say I should
make it work, but my directory structure is deliberately different due
to the way I am creating my new site, which will be completely Ajax
Powered and Ajax modules that I have written. The directory stucture
has been thought out in order to allow consistency, and semi-automation
(like auto detection of new modules, etc...)

I know that many people will think it's a bad idea, but due to the
nature of my site, it doesn't matter as only the front page will need
to be detected by any search engines. I am hoping to give my users an
experience like never before on the web.

Many thanks for your input, however.

william wrote:

> On Tue, 09 Jan 2007 06:58:56 -0800, Daz wrote:
>
> > Hi everyone.
> >
> > I am a little stumped at why when I try to include a file in same
> > directory as the script being processed, it looks in the same directory
> > as the script that included it to begin with. Is there any way I can
> > get around this? Is there anyway to get the name and/or of the script
> > being processed, rather than the name and/or path of the script that
> > was first called?
>
> in order to avoid that you might consider to define a var
> define(FS_DIR,'/path/to/you/www/project')
>
> just a work around

[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

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