Как работи тази функция file_get_contents()
Като я напиша ми дава грешка при 4-тия параметър защо така?
И мога ли примерно да взема код примерно от 10 до 50 ред?
Warning: file_get_contents() [function.file-get-contents]: stream does not support seeking in E:\xampp\htdocs\sa.php on line 3
Warning: file_get_contents() [function.file-get-contents]: Failed to seek to position 21 in the stream in E:\xampp\htdocs\sa.php on line 3
Код:
<?php
// Прочита 14 знака, започвайки от 21-ия знак
$section = file_get_contents('http://сайтта', NULL, NULL, 21, 14);
echo $section;
?>
И мога ли примерно да взема код примерно от 10 до 50 ред?
Warning: file_get_contents() [function.file-get-contents]: stream does not support seeking in E:\xampp\htdocs\sa.php on line 3
Warning: file_get_contents() [function.file-get-contents]: Failed to seek to position 21 in the stream in E:\xampp\htdocs\sa.php on line 3