You are here: Re: [PHP] url vs dirname(__FILE__) « PHP « IT news, forums, messages
Re: [PHP] url vs dirname(__FILE__)

Posted by Chris Shiflett on 11/30/05 06:16

Chris wrote:
> I trying to create an absolute path to include scripts and images
> in another directory.

These are two different things, but there is a relationship in the sense
that URLs are translated to filesystem paths using document root:

http://host/path/to/script.php => [document root]/path/to/script.php

I think it's pretty important to understand the difference as well as
the relationship. Once you do, your question might go away.

Hope that helps.

Chris

--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/

 

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

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