Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7813917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:01:53+00:00 2026-06-02T05:01:53+00:00

I am using file_get_contents(‘http://example.com’); I get the error ‘function.file-get-contents’>function.file-get-contents</a>]: URL file-access is disabled in

  • 0

I am using file_get_contents('http://example.com');

I get the error

'function.file-get-contents'>function.file-get-contents</a>]: URL file-access is disabled in the server configuration in 

I know i have to enable allow_url_fopen in php file. The problem is that i am on a shared server am i am having acesss viz ftp but i cant locate where the file is

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T05:01:54+00:00Added an answer on June 2, 2026 at 5:01 am

    Unfortunately, if allow_url_fopen is disabled, there is no way you can enable it. Only the root user can edit the php.ini file which would control that setting.

    You can request your host enable it, or see if cURL is enabled on the shared server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I get the html source code of http://www.example-webpage.com/file.html without using file_get_contents() ?
I'm using file_get_contents() to access a URL. file_get_contents('http://somenotrealurl.com/notrealpage'); If the URL is not real,
I have opened an HTML file using file_get_contents('http://www.example.com/file.html') and want to parse the line
I'm using PHP's function file_get_contents() to fetch contents of a URL and then I
I am using file_get_contents() function to read a URL eg: $html = file_get_contents('www.mydomain.com'); Now
using file_get_contents , I open an Internet URL and get the contents of this
I'm using file_get_contents to get a certain file's contents -- so far that is
I am parsing xml file from url(in code below), using file_get_contents() function, and simpleXML,
I am using System.IO.FIle.ReadAllText() to get the contents of some template files that I
I'm trying to get file contents, replace some parts of it using regular expressions

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.