Jump to content

mkdir with relative url


neridaj

Recommended Posts

Hello,

 

Is it possible to pass mkdir() a relative url instead of an absolute url? My hosting company decided to change the directory name for the root of a client's usr directory and I've had to update the functions accordingly. If possible I would rather not have functions hardwired to the usr root.

 

function create_folder($username)
{
mkdir("/home/.this has been changed/username/domain.com/subdir/$username", 0755);
}

 

Thanks,

 

Jason

Link to comment
https://forums.phpfreaks.com/topic/126005-mkdir-with-relative-url/
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.