You are here: what is this: dirname(__FILE__)? « PHP « IT news, forums, messages
what is this: dirname(__FILE__)?

Posted by Sam Smith on 08/01/05 03:04

I don't recognize this something(__SOMETHING__) format. I know what it's
doing but I don't know how it's doing it.

The whole thing is "$fdf_dir=dirname(__FILE__).'/results';" and of course
it's setting that var $fdf_dir to the path to a file.

Is there something significant about the double underscores "__"?

Why the parentheses, it's not a function?

Sorry lame question but I don't know this.

Thanks

 

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

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