Jump to content

Passing a variables string into mkdir()


Agold

Recommended Posts

Pretty simple I would think but I'm unsure on the syntax. I have a variable, $ename. It's actually data from a form that I pass to said variable. What I want is to then in turn use this string in a mkdir() function. Something like

 

mkdir("dir/folder/$ename/");

 

Obviously that doesn't work. I'd imagine I have to use some sort of . syntax.

Link to comment
https://forums.phpfreaks.com/topic/232921-passing-a-variables-string-into-mkdir/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.