Location: PHPKode > projects > Maian Support > maian_support/cron.php


  Script: Maian Support v2.0
  Written by: David Ian Bennett
  E-Mail: hide@address.com
  Software Website: http://www.maiansupport.com
  Script Portal: http://www.maianscriptworld.co.uk

  This File: cron.php
  Description: Cron Override

  If the system fails when you setup a cron, and ioncube returns an error saying the system
  is encoded for another domain, you can bypass the main index file via a trigger.
  1. Enter your full cron path below in the CURLOPT_URL value exactly as you are accessing 
     in your browser. Example:
  2. Change your cron job in your control panel to access this file instead of the index.php
     file. This will send a trigger to the main index.php file.
  Note: CURL must be installed for this to run.


$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.yoursite.com/helpdesk/index.php?pipe=yes");
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
$output = curl_exec($ch);      

echo $output;

Return current item: Maian Support