downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

posix_getegid> <posix_get_last_error
[edit] Last updated: Fri, 23 Mar 2012

view this page in

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:

  • Okuma ve arama izni yoksa
  • veya mutlak yol artık mevcut değilse
bu işlev başarısız olur.



add a note add a note User Contributed Notes posix_getcwd
phpmanual-getcwd at devin dot com 26-Jul-2000 06:39
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.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites