aminul
aminul

Reputation: 1

fopen permission problem in php

open function working in local server but not working on mail server

Upvotes: 0

Views: 215

Answers (2)

Brian Clozel
Brian Clozel

Reputation: 59076

Like Andrew said, it's probably a file permission problem. If you're trying to open a remote resource (using a network protocol), you should check your phpinfo(): the configuration key allow_url_fopen must be set to on.

Could you copy/paste more details about your problem?

  • PHP version
  • complete error trace
  • file permissions

Upvotes: 1

Andrew Bashtannik
Andrew Bashtannik

Reputation: 972

Very popular trouble:

Your local server works under Windows OS, so you can access your file without any trouble. But when you migrate from Windows to Linux, FreeBSD or other hosting you get "Access denied" error. So, you need to change access permissions to your file with FTP client or SSH.

Google for changing file permission. You will get a lot of step-by-step instructions for chmod linux command, SSH and s.o.

It will be much better, you post here some PHP output, such as warnings or errors.

Upvotes: 2

Related Questions