Request guidance with writing automation code, and accessing the database.

ICHaps

New member
Hello.

Could I please request some guidance with writing some automation code, as I've not done this before?

At present I've written the cron.php file:
Code:
<?php
/* Root Directory*/
header('Location: '."/Automation/start.php");
die();
?>

and the start.php file:-
Code:
<?php
header('Location: '.'/Automation/crnaccount/accountmnge.php');
header('Location: '.'/Automation/crnentrykeys/seviceentries.php');
die();
?>

I'm unsure if I've written the above correctly, or if I should have used include.

Also may I ask, using the server's cron job, how would I access the database table, and update or delete a record?

Thank You.
 
You cannot use multiple Location header, if you want to execute some php scripts you can create an request to call the file by http:
Code:
<?php
$results1 = file_get_contents('http://.../Automation/crnaccount/accountmnge.php');
$results2 = file_get_contents('http://.../Automation/crnentrykeys/seviceentries.php');
 
Back
Top