Re: PHP script to only be accessed by cron [message #175305 is a reply to message #175303] |
Thu, 01 September 2011 23:30 |
The Natural Philosoph
Messages: 993 Registered: September 2010
Karma:
|
Senior Member |
|
|
Luuk wrote:
> On 01-09-2011 21:25, The Natural Philosopher wrote:
>> Luuk wrote:
>>> On 31-08-2011 21:49, The Natural Philosopher wrote:
>>>> Luuk wrote:
>>>> > On 31-08-2011 10:20, The Natural Philosopher wrote:
>>>> >> jwcarlton wrote:
>>>> >>> I'm writing a PHP script that I want to ONLY be accessed by a
>>>> >>> predefined cron. Can you guys suggest a way to prevent non-cron
>>>> >>> accesses?
>>>> >>>
>>>> >> 1/. Write it in a proper language for this purpose, C, not php
>>>> > The purpose of this script is not give, at least not by the OP.
>>>> > Can you tell here why PHP would not be the 'proper language'?
>>>> >
>>>> the main thinking Luuk was that to do what he wanted would invove a lot
>>>> of calls to libraries that are not a standard part of PHP but are a part
>>>> of the C library
>>>>
>>>
>>> i dont see this part:
>>> "to do what he wanted would invove a lot of calls to libraries"
>>>
>>> but it can be caused by my lack of understanding English.... ;)
>>>
>> Or ..programming languages...and computer software architecture..
>>
>
> sorry,
> i still dont get what the OP's question has to do with 'a loc of calls
> to libraries'
>
> I know enough about programming languages and/or computer software
> architecture ..... (enough=enough)
>
The solution involves accessing the process list.
There are less tools in PHP libraries than in C ones.
|
|
|