Posted by roby on 01/11/07 21:41
Hello everyone, I'm a beginner in PHP and I want to ask about
directory. How to check correctly if the directory already exist in the
webroot? I've tried with this syntax:
....
bool $state = mkdir( "test" );
if ( $state == false ) chdir( "test" );
....
but on the page there is a warning. How to solve this problem? Thanks
in advance.
[Back to original message]
|