PHP Scripting - Execute CLI Job With Key

Hi all,

Hopefully someone here can help me out with some PHP scripting. What need is fairly basic, but PHP is still fairly alien to me.

Essentially, I want to be able to have an external service, in my case EasyCron, make a call to a php file and have it execute the xf:run-jobs activity, but I'd like it to be protected by a key so not just anyone can do this.

Psuedo-code below:
C#:

Код:
private static readonly string keyValue = "1234";

public HttpResponse Execute(string key)
{...

Read more

Читать далее...
 
Активность
Пока что здесь никого нет
Назад
Верх Низ