From the GNU getcwd(3) manpage, paraphrased: returns the absolute pathname of the current working directory. Fails when the current directory is not eradable. Complies with POSIX.1 spec.
posix_getcwd
(PHP 4, PHP 5)
posix_getcwd — Çalışılan dizinin tam yolunu döndürür
Açıklama
string posix_getcwd
( void
)
Betiğin çalışma dizininin mutlak yolunu döndürür. Hata durumunda atanan hata numarasına posix_get_last_error() işlevi ile erişilebilir.
Dönen Değerler
İşlem sırasında bir hata oluşursa posix_get_last_error()
işlevi ile öğrenilmek üzere bir hata numarası atanır ve FALSE döner,
yoksa mutlak dizin yolunu içeren bir dizge döner.
Örnekler
Örnek 1 - posix_getcwd() örneği
Bu örnek, betiğin çalıştığı dizinin tam yolunu göstermektedir.
<?php
echo 'Çalışma dizinim: '.posix_getcwd();
?>
Notlar
Bilginize:
bu işlev başarısız olur.
- Okuma ve arama izni yoksa
- veya mutlak yol artık mevcut değilse
phpmanual-getcwd at devin dot com
26-Jul-2000 06:39
