addressalign-toparrow-leftarrow-leftarrow-right-10x10arrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcredit-cardcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobe--smallglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1languagelaunch-new-window--smalllight-bulblightning-boltlinklocation-pinlockm-swarmSearchmailmediummessagesminusmobilemoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstar-shapestartickettrashtriangle-downtriangle-uptwitteruserwarningyahooyoutube

Re: [php-46] PHP Scheduled / Timer Triggered execution

From: Flame
Sent on: Wednesday, December 31, 2008, 1:47 PM
Hi Murray,

Glad to hear it worked out.
Now you should do a presentation at the PHP user group and show people
how they can make their own php extensions.

--
Flame



On Wed, Dec 31, 2008 at 2:24 AM, Murray Collingwood
<[address removed]> wrote:
> Thanks for all your suggestions, however in the end I went with Flame's idea
> of writing a php extension.  Not something I ever thought I would do, but I
> did it.
>
> 1:09am - just finished debugging my new PHP extension: "ScriptAt"
>
> I now have a php function I can call eg: scriptat("checkBooks­Returned.php -b
> 27", "now + 60 minutes");
>
> It can only run php scripts so all of my standard php security is preserved,
> yet I have all of the functionality of php including the ability to pass
> parameters.  All of this and I know it will run in exactly 60 minutes (or
> whenever), not 5 minutes early or 5 minutes late.
>
> Thanks for the encouragement Flame.
>
> I'm happy to share my very basic code with whoever - just write me and ask.
>
> Cheers
> mc
>
> PS The code is Linux/Unix generic but is not compatible with Windows (plus
> Windows version of the 'at' command is different - of course)
>
> PPS I had a number of hurdles to overcome:
> a) I didn't have php-dev installed, had to go looking for it.
> b) 'yum' failed - it seems my Fedora Core 4 is getting very dated and the
> repository has gone.  Had to go hunting and finally found an archive site.
> Learned lots about 'yum' that I never intended to know.
> c) Managed to install php-dev from this archive site.
> d) Found this site very helpful: https://devzone.ze...­
> e) Had to open up my 'C' manual which was very dusty.
>
>
>
> 2008/12/30 flame <[address removed]>
>>
>> Hi Murray
>>
>> On Mon, Dec 29, 2008 at 7:17 PM, Murray Collingwood
>> <[address removed]> wrote:
>> > I have installed the "AT" command on my Linux server and it is working
>> > fine.  I'm familiar with this, and essentially the AT command is what I
>> > need
>> > to utilise, but getting access to this safely from PHP is the my
>> > problem.
>>
>> Write your own php extension to access the "at" command.
>>
>> --
>> Flame
>>
>>
>>
>> --
>> Please Note: If you hit "REPLY", your message will be sent to everyone on
>> this mailing list ([address removed])
>> https://php.meetup...­
>> This message was sent by flame ([address removed]) from The Brisbane PHP
>> User Group.
>> To learn more about flame, visit his/her member profile:
>> https://php.meetup...­
>> To unsubscribe or to update your mailing list settings, click here:
>> https://www.meetup...­
>> Meetup Support: [address removed]
>> 632 Broadway, New York, NY 10012 USA
>>
>
>
>
> --
> Murray Collingwood
> Focus Computing
> p [masked]
> https://www.focus-...­
>
>
>
>
> --
> Please Note: If you hit "REPLY", your message will be sent to everyone on
> this mailing list ([address removed])
> This message was sent by Murray Collingwood ([address removed])
> from The Brisbane PHP User Group.
> To learn more about Murray Collingwood, visit his/her member profile
> To unsubscribe or to update your mailing list settings, click here
>
> Meetup Support: [address removed]
> 632 Broadway, New York, NY 10012 USA

People in this
group are also in: