chdir
(PHP 3, PHP 4, PHP 5)
chdir -- Change directory
Description
bool
chdir ( string directory )
Changes PHP's current directory to
directory.
Parameters
- directory
The new current directory
Return Values
Returnerar TRUE vid framg�ng eller FALSE vid fel.
Exempel
Exempel 1. chdir() example
<?php
// current directory echo getcwd() . "\n";
chdir('public_html');
// current directory echo getcwd() . "\n";
?>
|
The above example will output
something similar to: /home/vincent
/home/vincent/public_html |
|
Notes
Not: N�r s� kallat safe mode �r p�slaget, kontrollerar PHP
om katalogen du f�rs�ker anv�nda har samma UID (�gare) som scriptet som exekveras.