Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Issue creating path when testing using virtual path (~username)

Discussion in 'General Discussion' started by ggriffit, May 2, 2007.

  1. ggriffit

    ggriffit Registered

    Joined:
    Feb 13, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    151
    We are trying to run the following script on a website that we do not have live yet. Therefore we are viewing the site using www.servername.com/~username

    The issue is that the folder does not get created.

    I am thinking this is due to either a permission issue or something. Can someone give me an idea on how to get this resolved? I would think it should work just as if they were running with a domain name???

    Code sniplet:
    PHP:
    //    CREATE FOLDER FOR PHOTOS
    $dir_name getcwd() . "/../" "photos$nextHighest";
    mkdir$dir_name0755 );
    echo 
    "&status=ok&";
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice