RSS Feed/News PHP Scripting - Execute CLI Job With Key

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
27,083
Points
823

Reputation:

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#:

Code:
private static readonly string keyValue = "1234";

public HttpResponse Execute(string key)
{...

Read more

Continue reading...
 
Status
Not open for further replies.
Top