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

Vinnie P. Taranto vinniept at dso.ufl.edu
Tue Jan 24 11:49:56 MST 2006


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 6619 bytes
Desc: not available
Url : http://www.iviking.org/pipermail/fx.php_list/attachments/20060124/727d7664/attachment.bin


More information about the FX.php_List mailing list