Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 

 

getcwd

(PHP 4 , PHP 5)

getcwd -- Retourne le dossier de travail

Description

string getcwd ( void )

getcwd() retourne le nom du dossier courant.

Exemple 1. Exemple avec getcwd()

<?php

// dossier courant
echo getcwd() . "\n";

chdir('cvs');

// dossier courant
echo getcwd() . "\n";

?>

Cet exemple affichera quelque chose comme :

/home/didou
/home/didou/cvs

Voir aussi chdir().

 
 
 
 
Google
  Web Linuxinfor   
 

Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account

Document on this page is part of "Manuel PHP". See Index Page for more info about Authorship and Copyright.

1999-2009 Linuxinfor.com. No rights reserved.