PAULGELO Posted May 31, 2017 Share Posted May 31, 2017 Bonjour, sur les logs j'ai très régulièrement le warning suivant : AH01071: Got error 'PHP message: PHP Warning: file_get_contents(): stream does not support seeking in .../httpdocs/modules/blockrss/blockrss.php on line 159\nPHP message: PHP Warning: file_get_contents(): Failed to seek to position -1 in the stream in .../httpdocs/modules/blockrss/blockrss.php on line 159 Lorsque je regarde dans le blockrss.php la ligne correspond à ceci : if (file_get_contents($image[1], false, $context, -1, 1) !== false) Une idée du problème ? PS 1.6.1.13 Link to comment Share on other sites More sharing options...
PAULGELO Posted June 5, 2017 Author Share Posted June 5, 2017 petit up ! je suis en PHP 7.1.5 Link to comment Share on other sites More sharing options...
olishop Posted June 5, 2017 Share Posted June 5, 2017 c'est normal, la fonction file_get_contents() ne permet pas de saut sur un fichier distant : "Seeking (offset) is not supported with remote files" http://php.net/manual/en/function.file-get-contents.php Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now