S
S
Sergey Titov2016-10-09 16:55:26
PHP
Sergey Titov, 2016-10-09 16:55:26

How to make cron follow a link?

Let's imagine that my token is being updated at the site.ru/ajax&refresh link, how can I make the cron just "follow" this link so that the script works?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
entermix, 2016-10-09
@Nuboskill

Make a GET request on this link, for example:
file_get_contents('site.ru/ajax&refresh');

D
Dimonchik, 2016-10-09
@dimonchik2013

curl
or
or
lynx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question