i need file_get_contents

Status
Not open for further replies.

slane

New Member
Messages
33
Reaction score
0
Points
0
Hi,

my site consists of two scripts, both of which get data from the australian bureau of meteorology, do some analysis and updates a page.

But now file_get_contents has been disabled my site may as well not exist!
Can I have file_get_contents back please?
The scripts are samstuff.x10hosting.com/adelaide/water.php
and samstuff.x10hosting.com/adelaide/fire.php

thanks
Samantha
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Have you looked into the cURL PHP library ? You can do most everything with it.
 

slane

New Member
Messages
33
Reaction score
0
Points
0
Thanks Descalo but ..

URL file-access is disabled in the server so I suspect that wont help.
 
Last edited:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Just checked with a friend on Chopin, your server, and file_get_contents works for him.
 

slane

New Member
Messages
33
Reaction score
0
Points
0
Thanks Decalzo, but if your friend getting a remote file with a URL or a local file?
 

slane

New Member
Messages
33
Reaction score
0
Points
0
Umm ... the script seems to be working now, but oh dear someone is running it over and over.
I guess I can just change its name.
 

masshuu

Head of the Geese
Community Support
Enemy of the State
Messages
2,293
Reaction score
50
Points
48
I would recommend putting it in a non public folder, and then using a cron or a second password protected php file to run it.
 

slane

New Member
Messages
33
Reaction score
0
Points
0
I do use cron to run it. I'll put it in an "unpublic" folder. Now other scripts are being run too.
 
Status
Not open for further replies.
Top