just now I learnt how to create new directory in the server. So my question is it possible to copy a PHP file to the new directory created ?
Here's what i come up with
mkdir('/home/user/public_html/ref/' . $cid . "_" . $gid, 0777);
copy('/home/user/public_html/ref/index.php' ,'/home/user/public_html/ref/' . $cid . "_" . $gid);