Reply to Why is dirname(__FILE__) returning different results?

Your name:

Reply:


Posted by laredotornado@zipmail.com on 06/23/07 16:12

Hi,

On my php 4.4.4 environment, the call

$dir = dirname(__FILE__);

returns the full path of the directory. However, when I upload the
above code to my hosting company's server, the call returns ".". What
is the setting to force dirname(__FILE__) to alwasy return a full path
instead of a "."?

Thanks, - Dave

[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

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