I've a social network that I'm building a mobile site for. It's pretty much finished although I'm struggling to mkdir when a user creates an account on the mobile site in the overall host root. Is it possible?
I tried this:
mkdir("http://www.domain.com/image/".$mid, 0777);
mkdir("http://www.domain.com/image/".$mid."/temp", 0777);
mkdir("http://www.domain.com/image/".$mid."/preview", 0777);
umask($oldumask);
copy('http://www.domain.com/images/default.png', 'http://www.domain.com/image/'.$mid.'/default.png');
copy('http://www.domain.com/images/default.png', 'http://www.domain.com/image/'.$mid.'/thumb-default.png');
But unsurprisingly it didn't work. How can I go back to the host root of the site, not the domain root? Is it possible? Any suggestions?
See the DIR layout example here: