First, check your PHP file with this code and then enable the fopen in your php.ini file
<?php if( ini_get('allow_url_fopen') ) { die('allow_url_fopen is enabled. file_get_contents should work well'); } else { die('allow_url_fopen is disabled. file_get_contents would not work'); } ?>
Edit the php.ini file and enable using below code
allow_url_fopen = 1 //0 for Off and 1 for On Flag allow_url_include = 1 //0 for Off and 1 for On Flag
Related Posts:
- Visual list of all installed fonts with respective pangram phrase?
- How to log in to phpMyAdmin with WAMP, what is the username and password?
- count() parameter must be an array or an object that implements countable in laravel
- Fatal error: Call to undefined function mysql_connect()
- Mysql query- How to use contains?
- PDOException: SQLSTATE[HY000] [2002] No such file or directory
- How do I get a file extension in PHP?
- what does PHP die() return
- Invalid column count in CSV input on line 1 Error
- how to replace quotation marks with \”
- mcrypt is deprecated, what is the alternative?
- How to echo or print an array in PHP?
- How to parse a CSV file using PHP
- Cannot use object of type stdClass as array?
- Is a new line = \n OR \r\n?
- Resize image in PHP
- How to replace “if” statement with a ternary operator ( ? : )?
- why use 0xffff over 65535
- .rar, .zip files MIME Type
- PDO bindParam() with prepared statement isn’t working
- HTML Element Array, name=”something[]” or name=”something”?
- Why use $_SERVER[‘PHP_SELF’] instead of “”
- Setting up a PHP interpreter in PhpStorm
- PHP: $_SERVER variables: $_SERVER[‘HTTP_HOST’] vs $_SERVER[‘SERVER_NAME’]
- Illegal string offset Warning PHP
- mysqli_real_connect(): (HY000/2002): No such file or directory
- Fatal error: Call to undefined function mysqli_connect()
- Deleting an element from an array in PHP
- Converting string to Date and DateTime
- Could not open input file: artisan
- How can I do ‘insert if not exists’ in MySQL?
- Why php tag is not working in html file?
- What’s the use of ob_start() in php?
- PHP: variables in strings without concatenation
- PHP mail not working for some reason
- Get Root Directory Path of a PHP project
- How to reformat date in PHP?
- Returning JSON from PHP to JavaScript?
- Cannot simply use PostgreSQL table name (“relation does not exist”)
- How to create cron job using PHP?
- How do I expire a PHP session after 30 minutes?
- In_array not working
- How to make a countdown using PHP
- Imploding an associative array in PHP
- curl POST format for CURLOPT_POSTFIELDS
- Package php5 have no installation candidate (Ubuntu 16.04)
- Can’t use method return value in write context
- PHP get domain name
- How to solve “Fatal error: Class ‘MySQLi’ not found”?
- Running a Python script from PHP
- Object of class DateTime could not be converted to string
- HTTP Error 411, The request must be chunked or have a content length
- mysqli::query(): Couldn’t fetch mysqli
- Fatal error: Call to undefined function sqlsrv_connect()
- Call to a member function on null?
- how to ping ip addresses in php and give results
- do_shortcode not working
- No Application Encryption Key Has Been Specified
- PHP reindex array?
- Only variable references should be returned by reference – Codeigniter
- proper way to logout from a session in PHP
- PHP json_decode() returns NULL with valid JSON?
- Why do I have to run “composer dump-autoload” command to make migrations work in laravel?
- file_get_contents(“php://input”) or $HTTP_RAW_POST_DATA, which one is better to get the body of JSON request?
- file_get_contents( ) not working
- How can I fetch all items from a DynamoDB table without specifying the primary key?
- How to extract and access data from JSON with PHP?
- How to convert array to SimpleXML
- WordPress query single post by slug
- TCPDF ERROR: Some data has already been output, can’t send PDF file
- Authenticating in PHP using LDAP through Active Directory
- What is /var/www/html? [closed]
- What is wrong in chrome “net : Failed to load resource: net::ERR_SPDY_PROTOCOL_ERROR”?
- Formatting Phone Numbers in PHP
- Limit String Length
- Array of PHP Objects
- “End of script output before headers” in Apache + PHP
- What is unexpected T_VARIABLE in PHP?
- How to close Browser Tab After Submitting a Form?
- How to make DROP INDEX IF EXISTS for mysql?
- get type in php returns “object” and not the object type
- How to find out if you’re using HTTPS without $_SERVER[‘HTTPS’]
- Returning JSON from a PHP Script
- Paypal IPN Verification Postback with HTTPS
- Using PHP 7 with WAMP
- How to force Laravel Project to use HTTPS for all routes?
- Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given… what I do wrong?
- The difference between \n and
in php - PHP: bootstrap.php
- PHP Warning: PHP Startup: Unable to load dynamic library
- Do I need a !DOCTYPE declaration in a php file with html?
- How get value from URL
- How can I parse a JSON file with PHP? [duplicate]
- Object of class stdClass could not be converted to string
- How to get URL of current page in PHP
- WordPress visual composer not loading
- What does “zend_mm_heap corrupted” mean
- Start and stop a timer PHP
- PHP variables don’t evaluate in the query [duplicate]
- Adding days to $Date in PHP