PHP touch(): Unable to create file because of invalid arguments

admin

Administrator
Staff member
I have this following $path:

P:\xampp\htdocs\wordpress/wp-content/_moduletest_tmp_\P:\xampp\htdocs\wordpress/wp-content/<strong>_</strong><em>lock</em>____

but when i ran this code:

Code:
touch($path);

I get this error:

Code:
Warning     touch(): Unable to create file P:\xampp\htdocs\wordpress/wp-content/_moduletest_tmp_\P:\xampp\htdocs\wordpress/wp-content/______lock_____ because Invalid argument on line 733 in file P:\xampp\htdocs\wordpress\wp-content\plugins\module-test.php

line 733 is this:

Code:
touch($path);

Any suggestions how to resolved this? I'm running XAMPP under Windows using PHP 5.4.17.Thanks.