Mkdir() woes

I’m trying to figure out why my script seems to have trouble doing this

echo $primaryKey;
		  mkdir("providers/{$primaryKey}"); 
		  mkdir("providers/{$primaryKey}/bad"); 
		  mkdir("providers/{$primaryKey}/thumbs");

the result

Try error_reporting(-1); because it may give more information.

Try hard coding the parameter.

Try removing the curly brackets.

Try the online “php manual modify” which may give further advice especially in the comments.

I forgot to ad …/ to the path to go up one level in the directory

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.