• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 496
  • Last Modified:

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

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.
1 Solution
Ray PaseurCommented:
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

rameshitmAuthor Commented:
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 is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now