You are here: Re: Getting an included PHP script to to include a file in the same directory. « PHP Programming Language « IT news, forums, messages
Re: Getting an included PHP script to to include a file in the same directory.

Posted by william on 01/09/07 16:09

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

 

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

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