Have php versions changed?

Status
Not open for further replies.

slane

New Member
Messages
33
Reaction score
0
Points
0
Hi,

my scripts have started failing, first of all because put_env was disabled and then because file_get_contents was banned so i requested an upgrade to my php which was denied.

But now I'm wondering, since there don't seem to be any other complaints on this site, that its just me.

Now it looks as though mail is disabled as well!
According to my login screen, I have intermediate php which includes mail, but the output from the scripts tells me mail is disabled!



here are the error messages I get from my cron job

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/slane/public_html/adelaide/water.php on line 121



Warning: file_get_contents(http://www.bom.gov.au/products/IDS60901/IDS60901.94675.shtml) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/slane/public_html/adelaide/XXX.php on line 121



Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/slane/public_html/adelaide/XXX.php on line 187



Warning: file_get_contents(http://www.bom.gov.au/products/IDS60901/IDS60901.94675.shtml) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/slane/public_html/adelaide/XXX.php on line 187

ALERT - function within blacklist called: mail() (attacker 'REMOTE_ADDR not set', file '/home/slane/public_html/adelaide/XXX.php', line 226)


Warning: mail() has been disabled for security reasons in /home/slane/public_html/adelaide/XXX.php on line 226
 

DefecTalisman

Community Advocate
Community Support
Messages
4,148
Reaction score
5
Points
38
I will move this to level 2 support so a admin can take a look at it.
 

slane

New Member
Messages
33
Reaction score
0
Points
0
hmm .. someone ran one of the scripts without error .. it sends me an email. Hopefully this evening I'll see the error free results of the cron.
 

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
Yes, I did it for testing.
Let me know if the next time you receive it (from the cron job)without errors.
 

slane

New Member
Messages
33
Reaction score
0
Points
0
just got the cron output .. full of the same errors. :(
Edit:
oooohh .. just ran it manually from the browser and it runs properly! :eek:
 
Last edited:

slane

New Member
Messages
33
Reaction score
0
Points
0
could it be the way I'm callign the script? (It failed again today)
php -q /home/slane/public_html/adelaide/water.php

that's the way I've always called it but maybe somethings changed??

The top line in the script is
#!/usr/local/bin/php -q
which is probably redundant I guess.
Edit:
I've set one of the scripts to be run with php-cron. I'll see what happens tomorrow.
 
Last edited:

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
Let us know if it worked or not.
 

slane

New Member
Messages
33
Reaction score
0
Points
0
yep thanks. funny that it didn't need php-cron before but there we are!
you can close this thread now and thanks again!
 

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
No problem.
Feel free to re-open this thread if you need further assistance.
 
Status
Not open for further replies.
Top