[FX.php List] Running a FM script in FM 7 Server Adv ?

Ankur Goyal goyal at biodiversity.unr.edu
Wed Jan 25 12:02:17 MST 2006


Yes, it works really good.

Thank you so much for your help.

Ankur


On Jan 24, 2006, at 11:40 AM, DC wrote:

> yes,
>
> first (as a test) run this in terminal from the machine where the  
> cron job will reside:
>
> curl "http://domain.com/file.php"
>
> if you get the source of the web page back, you're set for the next  
> step.
>
> next try this command in cronnix:
>
> curl -s "http://domain.com/file.php" > /dev/null
>
> -s flag tells curl to be silent and the > /dev/null part tells cron  
> not to send annoying emails about the success of a particular run  
> of this script.
>
> enjoy!
> dan
>
> Vinnie P. Taranto had written:
>> I have not tried it myself but you might be able to set up a cron  
>> job to run that php periodically. Since your using macs there is a  
>> pretty easy to use GUI to cron called cronnix. Let us know if this  
>> works.
>>  Vinnie Taranto
>> Technology Specialist & Database Engineer
>> Dean of Students Office
>> University of Florida
>> MAIN: (352) 392-1261
>> FAX: (352) 392-5566
>> TOLLFREE: (877) 9UF-DEAN
>> WEB: http://www.dso.ufl.edu
>> EMAIL: vinniept at dso.ufl.edu
>> ________________________________
>> From: fx.php_list-bounces at mail.iviking.org on behalf of Ankur Goyal
>> Sent: Mon 1/23/2006 5:04 PM
>> To: Derrick Fogle
>> Cc: FX.php Discussion List
>> Subject: Re: [FX.php List] Running a FM script in FM 7 Server Adv ?
>> Thanks for your help, I think, I got a working prototype with  
>> PHP.....:) it works fine also I can mark whether the email has  
>> been sent or not !
>> A quick question: Is there a way to make this PHP code run  
>> automatically, without clicking anywhere on any web page ?
>> Thanks !
>> Ankur
>> On Jan 23, 2006, at 11:22 AM, Derrick Fogle wrote:
>>>>>    if($searchData2['Day1'][0]<7)) {
>>>>>            $mailresult = mail($to, $subject, $message, $headers);
>>>>>    }
>>>
>>> Once you've got your logic worked out to identify those records  
>>> that need emailed, you can use PHP to update the files to mark  
>>> that the email was sent:
>>>
>>> if($mailresult) {
>>>      # send mail was successful
>>>
>>>      $q3 = new FX( '****', '80' );
>>>      $q3->SetDBData('Test.fp7','Test','all');
>>>      $q3->SetDBPassword('***','Admin');
>>>      $q3->AddDBParam('Eflag1','2');
>>>      $q3->AddDBParam('-recid',$recid);
>>>      $r3 = $q3->FMEdit();
>>> }
>>>
>>> Get the recid by exploding the $key value in the foreach loop and  
>>> taking the first value; I think examples are in the sample files,  
>>> here's what I usually do:
>>>
>>>      $keyParts = explode(".",$key);
>>>      $recid = $keyParts[0];
>>>
>>>
>>> Derrick Fogle
>>> derrick at fogles.net
>>>
>>>
>>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>> --------------------------------------------------------------------- 
>> ---
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list