copy(): Failed to OpenStream problem in PHP using godaddy

Posted on 2011-05-12
Last Modified: 2012-05-11
Am using php coding to copy the file to the particular folder.
Working properly in hostmonster  but in Godaddy says the error -
Warning: copy() failed to open stream: Permission denied
i go to change the php.ini max upload file size also. Any difference to copy the file from server to server.
Question by:rameshitm
    LVL 107

    Accepted Solution

    Your host at GoDaddy may have settings that prevent you from copying files if the file path is a URL.  This has nothing to do with file uploads (although GoDaddy may have screwed those up, too).  Check the settings for "allow_url_fopen" and "safe_mode" to see if any of those are set.  You can use the script in the code snippet to learn a lot about what you're buying from GoDaddy vs HostMonster.
    <?php phpinfo();

    Open in new window


    Author Comment

    Thanks, I got php info from Godaddy. Where i have to get the php.ini file from Godaddy, for changing the file size and etc., . and also how to upload in ftp server.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
    If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn how to count occurrences of each item in an array.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now