[ka-Map-users] Mkdir errors
Wei Yang, Ng - Wayne
wayne at datalinktech.com.au
Sun Jun 4 19:43:50 EDT 2006
Hi all,
I was wondering if anybody noticed this error shown in their Apache logs:
[01-Jun-2006 14:38:41] PHP Warning: mkdir() [<a
href='function.mkdir'>function.mkdir</a>]: File exists in
/usr/local/ka-map-cvs/ka-map/include/config.php on line 250
I get this every now and then and I was wondering if its because there
is a double slash "//" in the directory that
is getting created.
To see what gets created in the cache directory, add this line in
config.php.
function makeDirs($strPath, $mode = 0777)
{
error_log("MAKEDIR invoked: ".$strPath."\n", 3,
"/usr/local/apache2/logs/php_errors"); //added line
return is_dir($strPath) or ( makeDirs(dirname($strPath), $mode) and
mkdir($strPath, $mode) );
}
This is what I am getting in my log file. Note the double slash between
the map name and the scale.
MAKEDIR invoked:
/usr/local/ka-map-cvs/ka-map/htdocs/tmp/australia//610000/__base__/def/t19440l74520
MAKEDIR invoked:
/usr/local/ka-map-cvs/ka-map/htdocs/tmp/australia//610000/__base__/def
MAKEDIR invoked:
/usr/local/ka-map-cvs/ka-map/htdocs/tmp/australia//610000/__base__/def/t19440l74520/meta
MAKEDIR invoked:
/usr/local/ka-map-cvs/ka-map/htdocs/tmp/australia//610000/__base__/def/t19440l74520
Cheers,
Wayne
More information about the ka-Map-users
mailing list