getcwd

(PHP 4 , PHP 5)

getcwd -- gets the current working directory

Description

string getcwd ( void )

Returns the current working directory.

Example 1. getcwd() example

<?php

// current directory
echo getcwd() . "\n";

chdir('cvs');

// current directory
echo getcwd() . "\n";

?>

This example will output something like:

/home/didou
/home/didou/cvs

See also chdir().


Sites of interest: Web Hosting : Reseller Hosting : Website Hosting : HTML Editor : Web Design Templates : Free Web Hosting : ASP code examples : PHP & MySQL Code Examples
  Copyright © 2004 Evrsoft Developer Network. Privacy policy - Link to Us

Contact Evrsoft