Hi,
When I want to run a php script in cmd, there is a error. Error message is show below.
"Parse error: syntax error, unexpected '?' in C:\wamp64\www\pinterest_3\vendor\seregazhuk\pinterest-bot\src\Api\Providers\User.php on line 180"
`<?php
require_once("vendor/autoload.php");
// Start to develop here. Best regards https://php-download.com/
use seregazhuk\PinterestBot\Factories\PinterestBot;
Hi, When I want to run a php script in cmd, there is a error. Error message is show below. "Parse error: syntax error, unexpected '?' in C:\wamp64\www\pinterest_3\vendor\seregazhuk\pinterest-bot\src\Api\Providers\User.php on line 180"
`<?php require_once("vendor/autoload.php");
// Start to develop here. Best regards https://php-download.com/ use seregazhuk\PinterestBot\Factories\PinterestBot;
$dosyalar = glob("./img/*.jpg"); $dosyalarCount = count($dosyalar);
$username = '--username--'; $password = '--password--'; $comment = '--comment--'; $etsy_link = '--link--';
// bot create $bot = PinterestBot::create();
// Login $result = $bot->auth->login($username,$password);
if ($bot->user->isBanned()) { echo "Account has been banned!\n"; die(); }
try { $random_num = rand(0,$dosyalarCount-1); $path = $dosyalar[$random_num];
} catch(\Exception $e) { echo $e->getMessage(); } `