Resolved PHP file_get_contents() no longer working...

Status
Not open for further replies.

sakhalia

New Member
Messages
6
Reaction score
0
Points
1
Hello...

PHP file_get_contents() is no longer working... It does work in my XAMPP environment but not in the website... Have you changed something recently because of migrations or is this a new rule for free hosting?
 

Anna

I am just me
Staff member
Messages
11,751
Reaction score
581
Points
113
There's a lot of things that has changed with the new servers. For one you would automatically have been put on php version 7.2 with a default set of features.

You can change version (and features) under "Extra Features->Select PHP version". For that to work you would need to check that allow_url_fopen is enabled (if I'm not all mistaken as to what it needs), you find that under the "Switch to PHP options" link. Note though with the Native version you can not make any changes, you need to chose anyone of the other versions.
 

sakhalia

New Member
Messages
6
Reaction score
0
Points
1
This is the error that I am getting after following your advice:

file_get_contents(): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden

Does this mean that the third-party website that I am trying to access has blocked this type of requests?
 

Anna

I am just me
Staff member
Messages
11,751
Reaction score
581
Points
113
That would appear to be the case indeed.
 

garrettroyce

Community Support
Community Support
Messages
5,609
Reaction score
250
Points
63
@sakhalia do you need any further assistance on this issue? You may need to speak to the administrators of the outside server you are trying to reach. It doesn't appear that x10 can do anything further at this time.
 

garrettroyce

Community Support
Community Support
Messages
5,609
Reaction score
250
Points
63
@sakhalila I'm closing this thread due to lack of activity. Please create a new thread if the need arises. Thank you.
 
Status
Not open for further replies.
Top