Орла
Области
Компаний
Пользователи
Галерея
Фиксированные новости
Орла
Отзывы о фирмах
Тарифы
Пользователи
Области
Банкоматы
Торговые точки
Доска объявлений
Курсы валют
Скидки
организации Орла
организации области
товары
сайты
сайты Орел
Данные
Разделы
Поиск
Поиск запросы
Статистика
Показы каталога организаций
Статистика клиенты
Пользователи
Сайты
Управление сайтом
Анкета
Аптеки
Афиша
Афиша новая
Баннеры
Бизнес >
Викторина
Голосование
Гость на сайте
Истории
Календарь событий
Каталоги >
Конкурс красоты
Конкурс аудио
Консультации
Меню
Новое на сайте
Новости >
Организации >
Программа ТВ
Публикации
Разделы сайта
Рассылка
Рестораны
Секрет фирмы >
Сервисы >
Ссылки
Тесты
Файловый менеджер
Форум
Фотогалерея
Обратная связь
Недвижимость
Новый год
Тексты
Пользователи
Юридический рейтинг
Отзывы на товары
Бан пользователей
Жалобы
Новые тесты
Коронавирус
Файловый менеджер
Имя файла
index.php
Содержимое
<?php set_time_limit(0); date_default_timezone_set('UTC'); require __DIR__.'/vendor/autoload.php'; /////// CONFIG /////// $username = 'fcktester'; $password = 'dima15ruzd2'; $debug = true; $truncatedDebug = false; ////////////////////// /////// MEDIA //////// $photoFilename = __DIR__ . '/demo.jpg'; $captionText = ''; ////////////////////// $ig = new \InstagramAPI\Instagram($debug, $truncatedDebug); try { $ig->login($username, $password); } catch (\Exception $e) { echo 'Something went wrong: '.$e->getMessage()."\n"; exit(0); } try { // The most basic upload command, if you're sure that your photo file is // valid on Instagram (that it fits all requirements), is the following: // $ig->timeline->uploadPhoto($photoFilename, ['caption' => $captionText]); // However, if you want to guarantee that the file is valid (correct format, // width, height and aspect ratio), then you can run it through our // automatic photo processing class. It is pretty fast, and only does any // work when the input file is invalid, so you may want to always use it. // You have nothing to worry about, since the class uses temporary files if // the input needs processing, and it never overwrites your original file. // // Also note that it has lots of options, so read its class documentation! $photo = new \InstagramAPI\Media\Photo\InstagramPhoto($photoFilename); $ig->timeline->uploadPhoto($photo->getFile(), ['caption' => $captionText]); } catch (\Exception $e) { echo 'Something went wrong: '.$e->getMessage()."\n"; }
/cron/instagram/
Имя
Дата
Размер
..
2026-10-02
vendor
2019-01-15
composer.json
2019-01-15
174 байт
demo.jpg
2019-01-15
738 кб.
index.php
2019-01-15
2 кб.
/cron/instagram
Загрузить файлы
Файл 1
Файл 2
Файл 3