FUDforum - خوراک RDF
http://fudforum.org/forum/index.php
query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185862&th=123514#msg_185862
utilities, other? Are they command-line or do they have fullscreen
interfaces?]]>crankypuss2014-05-13T08:17:30-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185863&th=123514#msg_185863
> What kinds of linux scripts do you write in PHP? Are they applications,
> What kinds of linux scripts do you write in PHP? Are they applications,
> utilities, other? Are they command-line or do they have fullscreen
> interfaces?
None. I write them for OS X.
--
"People don't buy Microsoft for quality, they buy it for compatibility
with what Bob in accounting bought last year. Trace it back - they buy
Microsoft because the IBM Selectric didn't suck much" - P Seebach, afc]]>Tim Streater2014-05-13T10:52:23-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185865&th=123514#msg_185865
> What kinds of linux scripts do you write in PHP? Are they applications,
> utilities, other? Are they command-line or do they have fullscreen
> interfaces?
My only PHP scripts are for the www.
--
No main() No Gain!]]>Auric__2014-05-13T13:28:59-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185866&th=123514#msg_185866
> crankypuss wrote:
>
>> What kinds of linux scripts do you write in PHP? Are they applications,
>> utilities, other? Are they command-line or do they have fullscreen
>> interfaces?
>
> My only PHP scripts are for the www.
>
Although you can CLI PHP for system scripts yes historically WWW is its
origin. Shell, Python, and Perl are typically used for "linux" scripts.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO http://www.LittleWorksStudio.com]]>Jonathan N. Little2014-05-13T14:29:56-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185867&th=123514#msg_185867
> What kinds of linux scripts do you write in PHP? Are they applications,
> utilities, other? Are they command-line or do they have fullscreen
> interfaces?
I've never used PHP for actual scripting outside of CGI. If I have to
write a script, I almost always use either Perl or shell script.
--
Collin Pruitt http://binenv.com/
"With the first link, the chain is forged. The first speech censored,
the first thought forbidden, the first freedom denied, chains us all
irrevocably." - Jean-Luc Picard, TNG "The Drumhead"]]>Collin Pruitt2014-05-13T15:00:55-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185876&th=123514#msg_185876
> On 5/13/2014 4:17 AM, crankypuss wrote:
>> What kinds of linux scripts do you write in PHP? Are they applications,
>> utilities, other? Are they command-line or do they have fullscreen
>> interfaces?
>
> I've never used PHP for actual scripting outside of CGI. If I have to
> write a script, I almost always use either Perl or shell script.
>
When you write a "script", what is it? Command-line only, fullscreen
interface, simple abbreviation of some common task, fullblown
applications, what?]]>crankypuss2014-05-13T16:05:38-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185877&th=123514#msg_185877
> What kinds of linux scripts do you write in PHP? Are they applications,
> utilities, other? Are they command-line or do they have fullscreen
> interfaces?
None. I use C.
--
Ineptocracy
(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.]]>The Natural Philosoph2014-05-13T16:26:49-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185878&th=123514#msg_185878
> On 05/13/2014 09:00 AM, Collin Pruitt wrote:
>> On 5/13/2014 4:17 AM, crankypuss wrote:
>>> What kinds of linux scripts do you write in PHP? Are they applications,
>>> utilities, other? Are they command-line or do they have fullscreen
>>> interfaces?
>>
>> I've never used PHP for actual scripting outside of CGI. If I have to
>> write a script, I almost always use either Perl or shell script.
>>
>
> When you write a "script", what is it? Command-line only, fullscreen
> interface, simple abbreviation of some common task, fullblown
> applications, what?
Linux Shell Scripting Tutorial v1.05r3
A Beginner's handbook
http://www.freeos.com/guides/lsst/]]>Johnny2014-05-13T16:32:25-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185879&th=123514#msg_185879
> On 05/13/2014 11:05 AM, crankypuss wrote:
>> On 05/13/2014 09:00 AM, Collin Pruitt wrote:
>>> On 5/13/2014 4:17 AM, crankypuss wrote:
>>>> What kinds of linux scripts do you write in PHP? Are they
>>>> applications,
>>>> utilities, other? Are they command-line or do they have fullscreen
>>>> interfaces?
>>>
>>> I've never used PHP for actual scripting outside of CGI. If I have to
>>> write a script, I almost always use either Perl or shell script.
>>>
>>
>> When you write a "script", what is it? Command-line only, fullscreen
>> interface, simple abbreviation of some common task, fullblown
>> applications, what?
>
> Linux Shell Scripting Tutorial v1.05r3
> A Beginner's handbook
>
> http://www.freeos.com/guides/lsst/
Prezactly. PHP is optimised for HTML work really.
There are far better languages to do other stuff in, though I have to
say I dislike scripting langauges really and prefer to use C wherever
possible.
If I HAD to pick an interpreted GP language it would probably be Python
though I have never written a single line of it..
--
Ineptocracy
(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.]]>The Natural Philosoph2014-05-13T18:09:14-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185880&th=123514#msg_185880
> On 05/13/2014 11:05 AM, crankypuss wrote:
>> On 05/13/2014 09:00 AM, Collin Pruitt wrote:
>>> On 5/13/2014 4:17 AM, crankypuss wrote:
>>>> What kinds of linux scripts do you write in PHP? Are they
>>>> applications,
>>>> utilities, other? Are they command-line or do they have fullscreen
>>>> interfaces?
>>>
>>> I've never used PHP for actual scripting outside of CGI. If I have to
>>> write a script, I almost always use either Perl or shell script.
>>>
>>
>> When you write a "script", what is it? Command-line only, fullscreen
>> interface, simple abbreviation of some common task, fullblown
>> applications, what?
>
> Linux Shell Scripting Tutorial v1.05r3
> A Beginner's handbook
>
> http://www.freeos.com/guides/lsst/
Do you always post irrelevancies, or is this a special occasion; nevermind.]]>crankypuss2014-05-13T18:20:05-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185881&th=123514#msg_185881
> On 05/13/2014 10:32 AM, Johnny wrote:
>> On 05/13/2014 11:05 AM, crankypuss wrote:
>>> On 05/13/2014 09:00 AM, Collin Pruitt wrote:
>>>> On 5/13/2014 4:17 AM, crankypuss wrote:
>>>> > What kinds of linux scripts do you write in PHP? Are they
>>>> > applications,
>>>> > utilities, other? Are they command-line or do they have fullscreen
>>>> > interfaces?
>>>>
>>>> I've never used PHP for actual scripting outside of CGI. If I have to
>>>> write a script, I almost always use either Perl or shell script.
>>>>
>>>
>>> When you write a "script", what is it? Command-line only, fullscreen
>>> interface, simple abbreviation of some common task, fullblown
>>> applications, what?
>>
>> Linux Shell Scripting Tutorial v1.05r3
>> A Beginner's handbook
>>
>> http://www.freeos.com/guides/lsst/
>
> Do you always post irrelevancies, or is this a special occasion; nevermind.
I thought you were ignorant, and I was trying to help. Now I see you
are stupid, and can't be helped.]]>Johnny2014-05-13T18:35:14-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185883&th=123514#msg_185883
1@news.albasani.net>, The Natural Philosopher
<tnp@invalid.invalid> wrote:
> On 13/05/14 17:32, Johnny wrote:
>> Linux Shell Scripting Tutorial v1.05r3
>> A Beginner's handbook
>>
>> http://www.freeos.com/guides/lsst/
> Prezactly. PHP is optimised for HTML work really.
Who cares.
> There are far better languages to do other stuff in, though I have to
> say I dislike scripting langauges really and prefer to use C wherever
> possible.
I can't be arsed to fiddle around with C these days. Too much faffing
around with declarations - and no string handling to speak of either.
Non-issues in PHP.
--
Tim
"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689]]>Tim Streater2014-05-13T20:35:20-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185885&th=123514#msg_185885
timstreater@greenbee.net> wrote:
> In article <lktn4a$n8q$1@news.albasani.net>, The Natural Philosopher
> <tnp@invalid.invalid> wrote:
>
>> On 13/05/14 17:32, Johnny wrote:
>
>>> Linux Shell Scripting Tutorial v1.05r3
>>> A Beginner's handbook
>>>
>>> http://www.freeos.com/guides/lsst/
>> Prezactly. PHP is optimised for HTML work really.
>
> Who cares.
>
>> There are far better languages to do other stuff in, though I have to
>> say I dislike scripting langauges really and prefer to use C wherever
>> possible.
>
> I can't be arsed to fiddle around with C these days. Too much faffing
> around with declarations - and no string handling to speak of either.
>
> Non-issues in PHP.
PHP is fine if you're working with the web, kind of pointless otherwise.
--
Apple: Because the individual is not statistically meaningful. |||
/ | \]]>JEDIDIAH2014-05-13T21:10:33-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185884&th=123514#msg_185884
> On 13/05/14 17:32, Johnny wrote:
>> On 05/13/2014 11:05 AM, crankypuss wrote:
>>> On 05/13/2014 09:00 AM, Collin Pruitt wrote:
>>>> On 5/13/2014 4:17 AM, crankypuss wrote:
>>>> > What kinds of linux scripts do you write in PHP? Are they
>>>> > applications, utilities, other? Are they command-line or
>>>> > do they have fullscreen interfaces?
>>>>
>>>> I've never used PHP for actual scripting outside of CGI. If I have to
>>>> write a script, I almost always use either Perl or shell script.
>>>
>>> When you write a "script", what is it? Command-line only, fullscreen
>>> interface, simple abbreviation of some common task, fullblown
>>> applications, what?
>>
>> Linux Shell Scripting Tutorial v1.05r3
>> A Beginner's handbook
>>
>> http://www.freeos.com/guides/lsst/
> Prezactly. PHP is optimised for HTML work really.
>
> There are far better languages to do other stuff in, though I have to
> say I dislike scripting langauges really and prefer to use C wherever
> possible.
>
> If I HAD to pick an interpreted GP language it would probably be Python
> though I have never written a single line of it..
Horses. Courses. REXX
Jonesy]]>Allodoxaphobia2014-05-13T21:23:36-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185886&th=123514#msg_185886
slrnln52i9.nki.jedi@nomad.mishnet>, JEDIDIAH
<jedi@nomad.mishnet> wrote:
> On 2014-05-13, Tim Streater <timstreater@greenbee.net> wrote:
>> In article <lktn4a$n8q$1@news.albasani.net>, The Natural Philosopher
>> <tnp@invalid.invalid> wrote:
>>
>>> On 13/05/14 17:32, Johnny wrote:
>>
>>>> Linux Shell Scripting Tutorial v1.05r3
>>>> A Beginner's handbook
>>>>
>>>> http://www.freeos.com/guides/lsst/
>>> Prezactly. PHP is optimised for HTML work really.
>>
>> Who cares.
>>
>>> There are far better languages to do other stuff in, though I have to
>>> say I dislike scripting langauges really and prefer to use C wherever
>>> possible.
>>
>> I can't be arsed to fiddle around with C these days. Too much faffing
>> around with declarations - and no string handling to speak of either.
>>
>> Non-issues in PHP.
>
> PHP is fine if you're working with the web, kind of pointless otherwise.
Depends what you're doing. My app has 74 PHP scripts, some of which do
things like communicate with remote hosts, rotate logs, move files
around, read/write a variety of SQLite databases. Doubtless all this
could be done in C, but why should I bother.
--
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf]]>Tim Streater2014-05-13T22:03:03-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185888&th=123514#msg_185888
knock_yourself_out@example.net> has declared...
> On Tue, 13 May 2014 19:09:14 +0100, The Natural Philosopher wrote:
>> On 13/05/14 17:32, Johnny wrote:
>>> On 05/13/2014 11:05 AM, crankypuss wrote:
>>>> On 05/13/2014 09:00 AM, Collin Pruitt wrote:
>>>> > On 5/13/2014 4:17 AM, crankypuss wrote:
>>>> >> What kinds of linux scripts do you write in PHP? Are they
>>>> >> applications, utilities, other? Are they command-line or
>>>> >> do they have fullscreen interfaces?
>>>> >
>>>> > I've never used PHP for actual scripting outside of CGI. If I have to
>>>> > write a script, I almost always use either Perl or shell script.
>>>>
>>>> When you write a "script", what is it? Command-line only, fullscreen
>>>> interface, simple abbreviation of some common task, fullblown
>>>> applications, what?
>>>
>>> Linux Shell Scripting Tutorial v1.05r3
>>> A Beginner's handbook
>>>
>>> http://www.freeos.com/guides/lsst/
>> Prezactly. PHP is optimised for HTML work really.
>>
>> There are far better languages to do other stuff in, though I have to
>> say I dislike scripting langauges really and prefer to use C wherever
>> possible.
>>
>> If I HAD to pick an interpreted GP language it would probably be Python
>> though I have never written a single line of it..
> Horses. Courses. REXX
In VM/CMS and MVS I use REXX and for Linux I prefer shell
scripting or perl. As is indicated by its name (a recursive
acronym - PHP Hypertext Preprocessor) it's intended use is web
pages.
Mike "mostly hand signals for the dog" Yetto
--
"Give a man a fish, and you`ll feed him for a day. Teach a man to
fish, and he`ll buy a funny hat. Talk to a hungry man about fish,
and you`re a consultant."
- Scott Adams]]>Mike Yetto2014-05-13T23:02:58-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185887&th=123514#msg_185887
johnny@invalid.net> has declared...
> On 05/13/2014 01:20 PM, crankypuss wrote:
>> On 05/13/2014 10:32 AM, Johnny wrote:
>>> On 05/13/2014 11:05 AM, crankypuss wrote:
>>>> On 05/13/2014 09:00 AM, Collin Pruitt wrote:
>>>> > On 5/13/2014 4:17 AM, crankypuss wrote:
>>>> >> What kinds of linux scripts do you write in PHP? Are they
>>>> >> applications,
>>>> >> utilities, other? Are they command-line or do they have fullscreen
>>>> >> interfaces?
>>>> >
>>>> > I've never used PHP for actual scripting outside of CGI. If I have to
>>>> > write a script, I almost always use either Perl or shell script.
>>>> >
>>>>
>>>> When you write a "script", what is it? Command-line only, fullscreen
>>>> interface, simple abbreviation of some common task, fullblown
>>>> applications, what?
>>>
>>> Linux Shell Scripting Tutorial v1.05r3
>>> A Beginner's handbook
>>>
>>> http://www.freeos.com/guides/lsst/
>>
>> Do you always post irrelevancies, or is this a special occasion; nevermind.
> I thought you were ignorant, and I was trying to help. Now I see you
> are stupid, and can't be helped.
No, he's just cranky.
Mike "for various values of _just_" Yetto
--
'We are each entitled to our own opinion, but no one is entitled
to his own facts.'
- Daniel Patrick Moynihan]]>Mike Yetto2014-05-13T23:04:38-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185889&th=123514#msg_185889
> In article <slrnln52i9.nki.jedi@nomad.mishnet>, JEDIDIAH
> <jedi@nomad.mishnet> wrote:
>
>> On 2014-05-13, Tim Streater <timstreater@greenbee.net> wrote:
>>> In article <lktn4a$n8q$1@news.albasani.net>, The Natural Philosopher
>>> <tnp@invalid.invalid> wrote:
>>>
>>>> On 13/05/14 17:32, Johnny wrote:
>>>
>>>> > Linux Shell Scripting Tutorial v1.05r3
>>>> > A Beginner's handbook
>>>> >
>>>> > http://www.freeos.com/guides/lsst/
>>>> Prezactly. PHP is optimised for HTML work really.
>>>
>>> Who cares.
>>>
>>>> There are far better languages to do other stuff in, though I have
>> to >> say I dislike scripting langauges really and prefer to use C
>> wherever >> possible.
>>>
>>> I can't be arsed to fiddle around with C these days. Too much faffing
>>> around with declarations - and no string handling to speak of either.
>>>
>>> Non-issues in PHP.
>>
>> PHP is fine if you're working with the web, kind of pointless
>> otherwise.
>
> Depends what you're doing. My app has 74 PHP scripts, some of which do
> things like communicate with remote hosts, rotate logs, move files
> around, read/write a variety of SQLite databases. Doubtless all this
> could be done in C, but why should I bother.
>
I agree, Tim. I have a number of scripts which do everything from
backing up files and databases to parsing email messages and updating
spam filters.
Sure, I *could* do it in C - but why bother? And I *could* do it in
Linux scripts - but then I'd just have to redo them for Windblows.
Of course, I could use Perl or other OS-agnostic scripting languages,
but why bother?
PHP is great for a lot of things. People who think it's only good for
web work are not aware of all of the possibilities.
--
==================
Remove the "x" from my email address
Jerry Stuckle jstucklex@attglobal.net
==================]]>Jerry Stuckle2014-05-13T23:55:07-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185890&th=123514#msg_185890
> On 5/13/2014 6:03 PM, Tim Streater wrote:
>>
>> Depends what you're doing. My app has 74 PHP scripts, some of which do
>> things like communicate with remote hosts, rotate logs, move files
>> around, read/write a variety of SQLite databases. Doubtless all this
>> could be done in C, but why should I bother.
>
> I agree, Tim. I have a number of scripts which do everything from
> backing up files and databases to parsing email messages and updating
> spam filters.
>
> Sure, I *could* do it in C - but why bother? And I *could* do it in
> Linux scripts - but then I'd just have to redo them for Windblows.
>
> Of course, I could use Perl or other OS-agnostic scripting languages,
> but why bother?
>
> PHP is great for a lot of things. People who think it's only good for
> web work are not aware of all of the possibilities.
People figure out the language that best fits their personalities, and run
with it.
I don't care if it is C, Perl, Erlang, Haskell, brainfuck, PHP, Python,
shell script, Java, Ruby, C#, or C++. By now they overlap about
70% to 99% in functionality, if you count the supporting libraries.
Use what makes *you* feel productive. For me, that is currently C++, one of
the most flexible languages ever.
--
Eating chocolate is like being in love without the aggravation.]]>Chris Ahlstrom2014-05-14T00:26:30-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185891&th=123514#msg_185891
> Jerry Stuckle wrote this copyrighted missive and expects royalties:
>
>> On 5/13/2014 6:03 PM, Tim Streater wrote:
>>>
>>> Depends what you're doing. My app has 74 PHP scripts, some of which do
>>> things like communicate with remote hosts, rotate logs, move files
>>> around, read/write a variety of SQLite databases. Doubtless all this
>>> could be done in C, but why should I bother.
>>
>> I agree, Tim. I have a number of scripts which do everything from
>> backing up files and databases to parsing email messages and updating
>> spam filters.
>>
>> Sure, I *could* do it in C - but why bother? And I *could* do it in
>> Linux scripts - but then I'd just have to redo them for Windblows.
>>
>> Of course, I could use Perl or other OS-agnostic scripting languages,
>> but why bother?
>>
>> PHP is great for a lot of things. People who think it's only good for
>> web work are not aware of all of the possibilities.
>
> People figure out the language that best fits their personalities, and run
> with it.
>
> I don't care if it is C, Perl, Erlang, Haskell, brainfuck, PHP, Python,
> shell script, Java, Ruby, C#, or C++. By now they overlap about
> 70% to 99% in functionality, if you count the supporting libraries.
>
> Use what makes *you* feel productive. For me, that is currently C++, one of
> the most flexible languages ever.
>
I agree it depends on the situation. But the language needs to be what
the JOB requires - not what makes you feel productive.
Along with PHP, I also do C (almost 30 years), c++ (25 years), Java (10
years) and other languages. The language I use is completely dependent
on the job.
For instance - C++ is nice, but doesn't work well with Linux Device
Drivers. You're better off using C for that. And it can't be as easily
modified and changed as PHP, which works great as a scripting language.
I would never, for instance, use C++ to do the SPAM email parsing and
updating; PHP has tools which making parsing emails easy, unlike C++.
But at the same time I would never try to write a GUI program in PHP.
--
==================
Remove the "x" from my email address
Jerry Stuckle jstucklex@attglobal.net
==================]]>Jerry Stuckle2014-05-14T00:37:10-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185894&th=123514#msg_185894
> In article <lktn4a$n8q$1@news.albasani.net>, The Natural Philosopher
> <tnp@invalid.invalid> wrote:
>
>> On 13/05/14 17:32, Johnny wrote:
>
>>> Linux Shell Scripting Tutorial v1.05r3
>>> A Beginner's handbook
>>>
>>> http://www.freeos.com/guides/lsst/
>> Prezactly. PHP is optimised for HTML work really.
>
> Who cares.
>
>> There are far better languages to do other stuff in, though I have to
>> say I dislike scripting langauges really and prefer to use C wherever
>> possible.
>
> I can't be arsed to fiddle around with C these days. Too much faffing
> around with declarations - and no string handling to speak of either.
>
> Non-issues in PHP.
>
string handling is the chief reason I prefer C..
--
Ineptocracy
(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.]]>The Natural Philosoph2014-05-14T03:42:41-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185897&th=123514#msg_185897
> In article <lktn4a$n8q$1@news.albasani.net>, The Natural Philosopher
> <tnp@invalid.invalid> wrote:
>
>> On 13/05/14 17:32, Johnny wrote:
>
>>> Linux Shell Scripting Tutorial v1.05r3
>>> A Beginner's handbook
>>>
>>> http://www.freeos.com/guides/lsst/
>> Prezactly. PHP is optimised for HTML work really.
>
> Who cares.
I'm not sure what the claim that "PHP is optimised for HTML work" is
supposed to imply, but it works quite well for writing "CLI"
applications. I consider it a general-purpose programming language and
the fact that it fits nicely into the web environment is just an added
bonus.
>> There are far better languages to do other stuff in, though I have to
>> say I dislike scripting langauges really and prefer to use C wherever
>> possible.
How to say this inoffensively... I find it amusing that you are
basically saying that there are better languages than PHP but they
mostly suck in one fashion or another. <G>
(I suppose that I agree with that sentiment fwiw, but I have too large a
codebase of existing PHP functions and applications to drop it all and
go start writing C again after not having looked at C or C++ since about
2000.)
> I can't be arsed to fiddle around with C these days. Too much faffing
> around with declarations - and no string handling to speak of either.
>
> Non-issues in PHP.
Agree. I started working in PHP somewhere around 2002. I chose PHP
because at the time I needed to build a website and PHP was readily
available on the hosting system. That I had a previous experience with
Rexx and there are many similarities between PHP and Rexx helped make me
comfortable with PHP, despite the fact that in some ways PHP is "a bit
less than pretty". By the time that I shut down the business that
necessitated the website, and shortly after that walked away from
Windows to begin using linux, I had accumulated a sizable library of
functions and application-components written in PHP.
When I took a look at the level of crudity implemented in the "default"
linux scripting language and found that a proper shebang will allow one
to use PHP for CLI applications, using my existing codebase for "linux
scripting" became a done deal.
I find myself somewhat shocked at the level of hidebound conformity that
appears to exist in the linux community. There is so much that can be
done with PHP that bash really can't compete unless you set the rules up
to favor it heavily. The default linux scripting language is, however,
deeply embedded in many aspects of every linux distro I've come across,
so I can understand to a certain degree the desire to avoid looking at
anything better.
Still, since I can use PHP as my own linux scripting language, and use
it to write fullblown applications, and have a bunch of PHP code that
works fairly decently, I continue in that direction.
Apparently without much company, as I read the replies here. <g>]]>crankypuss2014-05-14T08:36:25-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185898&th=123514#msg_185898
> PHP is fine if you're working with the web, kind of pointless otherwise.
I find that to be absolutely not the case.]]>crankypuss2014-05-14T08:44:56-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185899&th=123514#msg_185899
> In article <slrnln52i9.nki.jedi@nomad.mishnet>, JEDIDIAH
> <jedi@nomad.mishnet> wrote:
<snip>
>> PHP is fine if you're working with the web, kind of pointless
>> otherwise.
>
> Depends what you're doing. My app has 74 PHP scripts, some of which do
> things like communicate with remote hosts, rotate logs, move files
> around, read/write a variety of SQLite databases. Doubtless all this
> could be done in C, but why should I bother.
On my netbook (which runs only linux) I have a number of applications
that would be difficult to implement using the default scripting
language because of its lack of facilities.
For example, there is an upstart exit that runs during boot, checks to
see if I've updated the kernel since it was last run, then modifies the
Ubuntu logon graphic to include information like the label of the boot
device, install date, and linux kernel version. I find it nice, given
that I could have booted from any of several production or test
partitions, to see as I am logging in that I've done what I intended.
I've a nautilus extension that provides a bunch of functionality that is
in use constantly. I've a "boot setup" utility that will do the
configuration necessary to set up grub2 or extlinux as the boot program.
I've a fullscreen backup utility that gets run at least once daily and
enables me to perform a backup using either rsync or tar by entering
fewer keystrokes than typing either command would require (and which
lets me do that even when I'm half asleep).
And some other stuff that would be "unmanageable" if I'd attempted to
write it using the default scripting language, even if I were expert in
using that crude "language", which I admittedly avoid becoming.
The idea that PHP is "pointless" unless one is working with the web is
one that I cannot agree with.]]>crankypuss2014-05-14T09:00:25-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185900&th=123514#msg_185900
> Still, since I can use PHP as my own linux scripting language, and use
> it to write fullblown applications, and have a bunch of PHP code that
> works fairly decently, I continue in that direction.
>
> Apparently without much company, as I read the replies here. <g>
If the first language you learnt in Linux was PHP, then you are likely
to actually be more faimliar in that environment.
MOST linux scripts are not shell these days. python and perl are more
common, which means you have to carry the overheadf of all THOSE
libraries as well.
I cam me to UNIX when there was only shell or C. or AWK :-)
Since I was at that time a full time C programmer, I looked askance at
people constructing massive shell scripts that took enormous amounts of
CPU to run and were extremely hard to maintain. I generally found that
beyond the more simple, C was in fact faster to write and easier to
maintain and ran 100-1000 time faster.
PHP is something I use simply because it is a doddle to integrate with
websites. Nevertheless I think its a pretty poor language.
I never use it outside a web context because frankly C is to my mind
better, and neater and more in line with the way the operating system is
itself constructed.
Having got used to dong my own string manipulations, my own memory
management and my own library construction over many years of writing
low level code for non UNIX systems in C, the advantages if knowing
exactly what you are doing completely outweigh the disadvantages of not
having it done for you.
The context and scope of my variables are what I declare them to be, not
randomly what the PHP designer thought would be handy.
MY variables are static or stack based ad dont need memory management,
and if I do use malloc() I know how to free() and when to do it.
If I want the third character out if the string str, its simply str[2];
I don't need to invoke a PHP function to get (a copy of) it.
And if it happens to be a hexadecimal code, I dont need to think about
whether or not its ascii, UTF or an arbitrary bit pattern. It is after
all 'just a byte'
This isn't in the end anything more than saying that what you understand
best is often the best for you.
Accept its a personal thing, and don't try to justify it in objective
terms, when its really subjective.
--
Ineptocracy
(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.]]>The Natural Philosoph2014-05-14T09:09:27-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185901&th=123514#msg_185901
> On 05/13/2014 03:10 PM, JEDIDIAH wrote:
>> PHP is fine if you're working with the web, kind of pointless
>> otherwise.
>
> I find that to be absolutely not the case.
but others don't. They take a personal and opposite view.
PHP CAN be used for other things. But most of us were dong other things
perfectly well before we discovered PHP and for us PHP only has one
advantage: its widely supported as a web scripting language.
And its HUGE advantage over - say C - is the ability to slip in and out
of pure HTML with a ?> <? statement.
Apart from that its relatively crap.
IIRC C++ has some similar features as has PERL.
But the support for other handy stuff is not as good.
*shrug*.
in teh end its a minir detail tha wins te day.
C has the best interface to the operating system, PHP has the best user
interface to HTML and if I was writing a native app for linux I'd
probably use C++ as the interface to x windwows is easier that way.
as far as scripts go, well its a totally undemanding application. Any
crud will work. Even PERL.
--
Ineptocracy
(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.]]>The Natural Philosoph2014-05-14T09:17:41-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185902&th=123514#msg_185902
> On 5/13/2014 8:26 PM, Chris Ahlstrom wrote:
>> Jerry Stuckle wrote this copyrighted missive and expects royalties:
>>
>>> On 5/13/2014 6:03 PM, Tim Streater wrote:
>>>>
>>>> Depends what you're doing. My app has 74 PHP scripts, some of which do
>>>> things like communicate with remote hosts, rotate logs, move files
>>>> around, read/write a variety of SQLite databases. Doubtless all this
>>>> could be done in C, but why should I bother.
>>>
>>> I agree, Tim. I have a number of scripts which do everything from
>>> backing up files and databases to parsing email messages and updating
>>> spam filters.
>>>
>>> Sure, I *could* do it in C - but why bother? And I *could* do it in
>>> Linux scripts - but then I'd just have to redo them for Windblows.
>>>
>>> Of course, I could use Perl or other OS-agnostic scripting languages,
>>> but why bother?
>>>
>>> PHP is great for a lot of things. People who think it's only good for
>>> web work are not aware of all of the possibilities.
>>
>> People figure out the language that best fits their personalities, and
>> run
>> with it.
>>
>> I don't care if it is C, Perl, Erlang, Haskell, brainfuck, PHP, Python,
>> shell script, Java, Ruby, C#, or C++. By now they overlap about
>> 70% to 99% in functionality, if you count the supporting libraries.
>>
>> Use what makes *you* feel productive. For me, that is currently C++,
>> one of
>> the most flexible languages ever.
>>
>
> I agree it depends on the situation. But the language needs to be what
> the JOB requires - not what makes you feel productive.
Yes, but in addition to a language's being capable of doing the job,
it's also convenient not to be unproductive. <g> Both aspects seem to
be necessary, capability and "language ergonomics".
> Along with PHP, I also do C (almost 30 years), c++ (25 years), Java (10
> years) and other languages. The language I use is completely dependent
> on the job.
>
> For instance - C++ is nice, but doesn't work well with Linux Device
> Drivers. You're better off using C for that. And it can't be as easily
> modified and changed as PHP, which works great as a scripting language.
> I would never, for instance, use C++ to do the SPAM email parsing and
> updating; PHP has tools which making parsing emails easy, unlike C++.
> But at the same time I would never try to write a GUI program in PHP.
I have a number of fullscreen text-based applications written in PHP,
but if it came down to having to draw every pixel I'd probably want to
brush up on C or C++ because those are the languages for which
pixel-based GUI support libraries exist (not that I'm much impressed
with the results of using those libraries as exhibited by gnome2).
Most of the whizbang flashies that are implemented as parts of "GUI"
applications are unnecessary anyway if there is adequate support for a
good menu system (which mostly, there isn't). And the idea of using a
mouse for everything by dragging this or that icon from hither to yon,
or double clicking on an icon, is an oversimplification imo that has
caused grievous damage to the computing world as a whole. At the same
time the ability to click on a link in html is one of its great
benefits, and flyovers can be very helpful.
All that's mostly opinion, and only mentioned because you said you'd
never attempt a GUI application in PHP, and I wanted to point out that
it isn't so much because of PHP itself that your choice there is
sensible (though drawing individual pixels in an interpreted language is
somewhat questionable), but because there's simply no good support for
writing GUI applications in PHP.
That's as it is, but there's no law of the universe which prohibits such
support from being developed for PHP or some PHP-derivative.]]>crankypuss2014-05-14T09:18:16-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185903&th=123514#msg_185903
> On 13/05/14 21:35, Tim Streater wrote:
>> In article <lktn4a$n8q$1@news.albasani.net>, The Natural Philosopher
>> <tnp@invalid.invalid> wrote:
>>
>>> On 13/05/14 17:32, Johnny wrote:
>>
>>>> Linux Shell Scripting Tutorial v1.05r3
>>>> A Beginner's handbook
>>>>
>>>> http://www.freeos.com/guides/lsst/
>>> Prezactly. PHP is optimised for HTML work really.
>>
>> Who cares.
>>
>>> There are far better languages to do other stuff in, though I have to
>>> say I dislike scripting langauges really and prefer to use C wherever
>>> possible.
>>
>> I can't be arsed to fiddle around with C these days. Too much faffing
>> around with declarations - and no string handling to speak of either.
>>
>> Non-issues in PHP.
>>
> string handling is the chief reason I prefer C..
>
>
Is that because you've built your own library of string handling
routines for C, or because you like working with all those
null-terminated strings supported by stdlib?
Personally I think null-terminated strings are only useful for defining
some kinds of constant data, but even there it's limiting.]]>crankypuss2014-05-14T09:21:00-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185904&th=123514#msg_185904
> Be it known Allodoxaphobia <knock_yourself_out@example.net> has declared...
>> On Tue, 13 May 2014 19:09:14 +0100, The Natural Philosopher wrote:
>>> On 13/05/14 17:32, Johnny wrote:
>>>> On 05/13/2014 11:05 AM, crankypuss wrote:
>>>> > On 05/13/2014 09:00 AM, Collin Pruitt wrote:
>>>> >> On 5/13/2014 4:17 AM, crankypuss wrote:
>>>> >>> What kinds of linux scripts do you write in PHP? Are they
>>>> >>> applications, utilities, other? Are they command-line or
>>>> >>> do they have fullscreen interfaces?
>>>> >>
>>>> >> I've never used PHP for actual scripting outside of CGI. If I have to
>>>> >> write a script, I almost always use either Perl or shell script.
>>>> >
>>>> > When you write a "script", what is it? Command-line only, fullscreen
>>>> > interface, simple abbreviation of some common task, fullblown
>>>> > applications, what?
>>>>
>>>> Linux Shell Scripting Tutorial v1.05r3
>>>> A Beginner's handbook
>>>>
>>>> http://www.freeos.com/guides/lsst/
>>> Prezactly. PHP is optimised for HTML work really.
>>>
>>> There are far better languages to do other stuff in, though I have to
>>> say I dislike scripting langauges really and prefer to use C wherever
>>> possible.
>>>
>>> If I HAD to pick an interpreted GP language it would probably be Python
>>> though I have never written a single line of it..
>
>> Horses. Courses. REXX
>
> In VM/CMS and MVS I use REXX and for Linux I prefer shell
> scripting or perl. As is indicated by its name (a recursive
> acronym - PHP Hypertext Preprocessor) it's intended use is web
> pages.
>
> Mike "mostly hand signals for the dog" Yetto
>
PHP can validly be used for whatever one can use it for, just like any
other programming tool.
HOWEVER. Note that Rexx is the VM/CMS "system product interpreter" (or
at least that's what they used to call it). Something of equal or
greater capability might someday become the "linux system interpreter",
and would that be a bad thing?]]>crankypuss2014-05-14T09:24:04-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185905&th=123514#msg_185905
> On 05/13/2014 01:20 PM, crankypuss wrote:
>> On 05/13/2014 10:32 AM, Johnny wrote:
>>> On 05/13/2014 11:05 AM, crankypuss wrote:
>>>> On 05/13/2014 09:00 AM, Collin Pruitt wrote:
>>>> > On 5/13/2014 4:17 AM, crankypuss wrote:
>>>> >> What kinds of linux scripts do you write in PHP? Are they
>>>> >> applications,
>>>> >> utilities, other? Are they command-line or do they have fullscreen
>>>> >> interfaces?
>>>> >
>>>> > I've never used PHP for actual scripting outside of CGI. If I have to
>>>> > write a script, I almost always use either Perl or shell script.
>>>> >
>>>>
>>>> When you write a "script", what is it? Command-line only, fullscreen
>>>> interface, simple abbreviation of some common task, fullblown
>>>> applications, what?
>>>
>>> Linux Shell Scripting Tutorial v1.05r3
>>> A Beginner's handbook
>>>
>>> http://www.freeos.com/guides/lsst/
>>
>> Do you always post irrelevancies, or is this a special occasion;
>> nevermind.
>
> I thought you were ignorant, and I was trying to help. Now I see you
> are stupid, and can't be helped.
That's exactly the kind of rancid horseshit that led me to unsubscribe
from comp.lang.php many moons ago. Please do lose it, or if you can't,
then just piss off to somewhere that people don't mind putting up with it.]]>crankypuss2014-05-14T09:26:39-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185907&th=123514#msg_185907
> On 14/05/14 09:44, crankypuss wrote:
>> On 05/13/2014 03:10 PM, JEDIDIAH wrote:
>>> PHP is fine if you're working with the web, kind of pointless
>>> otherwise.
>>
>> I find that to be absolutely not the case.
>
> but others don't. They take a personal and opposite view.
Yes, and more than a few of those seem to think they're defending their
virgin sister against a potential rapist, rather than discussing
languages and applications and potentialities.
> PHP CAN be used for other things. But most of us were dong other things
> perfectly well before we discovered PHP and for us PHP only has one
> advantage: its widely supported as a web scripting language.
Inertia is powerful stuff.
> And its HUGE advantage over - say C - is the ability to slip in and out
> of pure HTML with a ?> <? statement.
We have different views here, from what I can tell; you seem to view
HTML as the objective with PHP as a relatively minor facilitator, while
I view the overall "web application" (which every website is, if you
look at it from that pov) as the objective and HTML as an interface
language to be used by the application implementation... more ideally I
see HTML as one possible interface language used by a higher-level
application whose logic applies equally whether it is a web-based or
local implementation.
> Apart from that its relatively crap.
I could complain about PHP's inconsistencies for a long time, but I'd
prefer to use the time more usefully.
> IIRC C++ has some similar features as has PERL.
>
> But the support for other handy stuff is not as good.
>
> *shrug*.
>
> in teh end its a minir detail tha wins te day.
>
> C has the best interface to the operating system, PHP has the best user
> interface to HTML and if I was writing a native app for linux I'd
> probably use C++ as the interface to x windwows is easier that way.
>
> as far as scripts go, well its a totally undemanding application. Any
> crud will work. Even PERL.
I think we may be working with different meanings for the word "script".]]>crankypuss2014-05-14T09:39:00-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185908&th=123514#msg_185908
> On 14/05/14 09:36, crankypuss wrote:
>> Still, since I can use PHP as my own linux scripting language, and use
>> it to write fullblown applications, and have a bunch of PHP code that
>> works fairly decently, I continue in that direction.
>>
>> Apparently without much company, as I read the replies here. <g>
>
> If the first language you learnt in Linux was PHP, then you are likely
> to actually be more faimliar in that environment.
>
> MOST linux scripts are not shell these days. python and perl are more
> common, which means you have to carry the overheadf of all THOSE
> libraries as well.
>
> I cam me to UNIX when there was only shell or C. or AWK :-)
>
>
> Since I was at that time a full time C programmer, I looked askance at
> people constructing massive shell scripts that took enormous amounts of
> CPU to run and were extremely hard to maintain. I generally found that
> beyond the more simple, C was in fact faster to write and easier to
> maintain and ran 100-1000 time faster.
>
>
> PHP is something I use simply because it is a doddle to integrate with
> websites. Nevertheless I think its a pretty poor language.
>
> I never use it outside a web context because frankly C is to my mind
> better, and neater and more in line with the way the operating system is
> itself constructed.
>
> Having got used to dong my own string manipulations, my own memory
> management and my own library construction over many years of writing
> low level code for non UNIX systems in C, the advantages if knowing
> exactly what you are doing completely outweigh the disadvantages of not
> having it done for you.
>
>
> The context and scope of my variables are what I declare them to be, not
> randomly what the PHP designer thought would be handy.
>
> MY variables are static or stack based ad dont need memory management,
> and if I do use malloc() I know how to free() and when to do it.
>
> If I want the third character out if the string str, its simply str[2];
>
> I don't need to invoke a PHP function to get (a copy of) it.
>
> And if it happens to be a hexadecimal code, I dont need to think about
> whether or not its ascii, UTF or an arbitrary bit pattern. It is after
> all 'just a byte'
>
> This isn't in the end anything more than saying that what you understand
> best is often the best for you.
>
> Accept its a personal thing, and don't try to justify it in objective
> terms, when its really subjective.
I can't find anything in your post to take issue with, oh my! <g>
Still, I don't agree with the bottom line implied, perhaps because
rather than being a programmer in the sense that I choose and use the
best tools available, I tend to build tools that include the features
that I find most useful. I don't love every aspect of PHP, but it has
two qualities that I value highly: the code that I need can be
implemented in PHP, and PHP is sufficiently powerful to allow something
better to be constructed by using it as a bootstrap.
Frankly I have yet to find *any* programming language that I think is
"better" in an overall sense than PDP-11 assembler, but I do have some
ideas about how to make one.
The main reason I posed the question that is the subject of this thread
is that I'm wondering if it would be worth the trouble involved to share
some of the applications that I've been developing, and so far it
appears that there simply isn't any interest in anything PHP-based
because PHP is "icky".
If that's the case it'll save me some effort. I don't have unlimited
time for user handholding, and if nobody much uses PHP for anything but
stuffing a few mySQL queries into their websites, that implies that
nobody much would be interested in taking care of themselves, QED
excessive handholding required. So it goes, eh?]]>crankypuss2014-05-14T09:58:10-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185909&th=123514#msg_185909
> On 5/13/2014 8:26 PM, Chris Ahlstrom wrote:
>>
>> Use what makes *you* feel productive. For me, that is currently C++, one of
>> the most flexible languages ever.
>
> I agree it depends on the situation. But the language needs to be what
> the JOB requires - not what makes you feel productive.
>
> Along with PHP, I also do C (almost 30 years), c++ (25 years), Java (10
> years) and other languages. The language I use is completely dependent
> on the job.
In other words, simply on someone's past decisions, for the most part.
> For instance - C++ is nice, but doesn't work well with Linux Device
> Drivers. You're better off using C for that. And it can't be as easily
> modified and changed as PHP, which works great as a scripting language.
> I would never, for instance, use C++ to do the SPAM email parsing and
> updating; PHP has tools which making parsing emails easy, unlike C++.
> But at the same time I would never try to write a GUI program in PHP.
Every language, it seems, converges on the same large feature set and
incorporates many third-party libraries to do various tasks. Even C++.
Check out Boost sometime, and Qt.
The big differences, I think, are in the infrastructure surrounding the
languages. Java vs C++, for example.
Anyway, I basically agree with you.
--
A possum must be himself, and being himself he is honest.
-- Walt Kelly]]>Chris Ahlstrom2014-05-14T10:40:35-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185910&th=123514#msg_185910
1@news.albasani.net>, The Natural Philosopher
<tnp@invalid.invalid> wrote:
> C has the best interface to the operating system, PHP has the best user
> interface to HTML ...
In the sense that most APIs interface to C, yes. But one thing about
PHP is the large amount of libraries available to do things, without
which it wouldn't be much use at all.
--
"I am enclosing two tickets to the first night of my new play; bring a
friend.... if you have one." - GB Shaw to Churchill "Cannot possibly
attend first night, will attend second... if there is one." - Winston
Churchill, in response.]]>Tim Streater2014-05-14T11:29:31-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185911&th=123514#msg_185911
> On 05/13/2014 09:42 PM, The Natural Philosopher wrote:
>> On 13/05/14 21:35, Tim Streater wrote:
>>> In article <lktn4a$n8q$1@news.albasani.net>, The Natural Philosopher
>>> <tnp@invalid.invalid> wrote:
>>>
>>>> On 13/05/14 17:32, Johnny wrote:
>>>
>>>> > Linux Shell Scripting Tutorial v1.05r3
>>>> > A Beginner's handbook
>>>> >
>>>> > http://www.freeos.com/guides/lsst/
>>>> Prezactly. PHP is optimised for HTML work really.
>>>
>>> Who cares.
>>>
>>>> There are far better languages to do other stuff in, though I have to
>>>> say I dislike scripting langauges really and prefer to use C wherever
>>>> possible.
>>>
>>> I can't be arsed to fiddle around with C these days. Too much faffing
>>> around with declarations - and no string handling to speak of either.
>>>
>>> Non-issues in PHP.
>>>
>> string handling is the chief reason I prefer C..
>>
>>
>
> Is that because you've built your own library of string handling
> routines for C, or because you like working with all those
> null-terminated strings supported by stdlib?
>
> Personally I think null-terminated strings are only useful for defining
> some kinds of constant data, but even there it's limiting.
Bit of both.
I just get used to thinking of strings in the way C does.
and getting irritated when I have to do complex string manipulation in PHP
By the time I have tried to find the regexp that works I have usually
written the whole program in C.
null terminated strings are a perfectly decent way to proceed.
you have to either stick a null (or other EOS mark) in or store the
length somewhere.
OK strlen is faster if the length is stored, but finding the nth through
pth byte is not... You still have to so some clumsy copying
And I like the way I can tokenise a C string up by using pointers to the
characters, then when I find a split char, nulling that byte and
advancing the ptr to the next part.
C is a language you can just about do ANYTHING in. I've written
multitasking shedulers in C..and interrupt handlers
Try doing that in perl PHP or Python!
And that's why I like it. I only need to learn one language well. I
COULD write my web pages in C, but the issues of outputting standard
text in huge blocks is a bit of a problem.
whereas its the simplest thing in the world for an interpreter.
--
Ineptocracy
(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.]]>The Natural Philosoph2014-05-14T11:32:38-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185912&th=123514#msg_185912
> On 05/13/2014 06:37 PM, Jerry Stuckle wrote:
>> On 5/13/2014 8:26 PM, Chris Ahlstrom wrote:
>>> Jerry Stuckle wrote this copyrighted missive and expects royalties:
>>>
>>>> On 5/13/2014 6:03 PM, Tim Streater wrote:
>>>> >
>>>> > Depends what you're doing. My app has 74 PHP scripts, some of which do
>>>> > things like communicate with remote hosts, rotate logs, move files
>>>> > around, read/write a variety of SQLite databases. Doubtless all this
>>>> > could be done in C, but why should I bother.
>>>>
>>>> I agree, Tim. I have a number of scripts which do everything from
>>>> backing up files and databases to parsing email messages and updating
>>>> spam filters.
>>>>
>>>> Sure, I *could* do it in C - but why bother? And I *could* do it in
>>>> Linux scripts - but then I'd just have to redo them for Windblows.
>>>>
>>>> Of course, I could use Perl or other OS-agnostic scripting languages,
>>>> but why bother?
>>>>
>>>> PHP is great for a lot of things. People who think it's only good for
>>>> web work are not aware of all of the possibilities.
>>>
>>> People figure out the language that best fits their personalities, and
>>> run
>>> with it.
>>>
>>> I don't care if it is C, Perl, Erlang, Haskell, brainfuck, PHP, Python,
>>> shell script, Java, Ruby, C#, or C++. By now they overlap about
>>> 70% to 99% in functionality, if you count the supporting libraries.
>>>
>>> Use what makes *you* feel productive. For me, that is currently C++,
>>> one of
>>> the most flexible languages ever.
>>>
>>
>> I agree it depends on the situation. But the language needs to be what
>> the JOB requires - not what makes you feel productive.
>
> Yes, but in addition to a language's being capable of doing the job,
> it's also convenient not to be unproductive. <g> Both aspects seem to
> be necessary, capability and "language ergonomics".
>
Productivity is a part of using the right language for the job. I would
never try to write a Linux device driver in PHP or Java, for instance.
Nor would I write an Android app in C.
>> Along with PHP, I also do C (almost 30 years), c++ (25 years), Java (10
>> years) and other languages. The language I use is completely dependent
>> on the job.
>>
>> For instance - C++ is nice, but doesn't work well with Linux Device
>> Drivers. You're better off using C for that. And it can't be as easily
>> modified and changed as PHP, which works great as a scripting language.
>> I would never, for instance, use C++ to do the SPAM email parsing and
>> updating; PHP has tools which making parsing emails easy, unlike C++.
>> But at the same time I would never try to write a GUI program in PHP.
>
> I have a number of fullscreen text-based applications written in PHP,
> but if it came down to having to draw every pixel I'd probably want to
> brush up on C or C++ because those are the languages for which
> pixel-based GUI support libraries exist (not that I'm much impressed
> with the results of using those libraries as exhibited by gnome2).
>
Those are possibilities. But if I needed a graphic application I would
use a graphic interface instead of trying to do everything myself. It
would affect the language that I chose, but would not be the *only*
criteria for that language.
> Most of the whizbang flashies that are implemented as parts of "GUI"
> applications are unnecessary anyway if there is adequate support for a
> good menu system (which mostly, there isn't). And the idea of using a
> mouse for everything by dragging this or that icon from hither to yon,
> or double clicking on an icon, is an oversimplification imo that has
> caused grievous damage to the computing world as a whole. At the same
> time the ability to click on a link in html is one of its great
> benefits, and flyovers can be very helpful.
>
Simplification is good. YOU may not like it, but hundreds of millions
of computer users do. And that's who these apps are designed for.
> All that's mostly opinion, and only mentioned because you said you'd
> never attempt a GUI application in PHP, and I wanted to point out that
> it isn't so much because of PHP itself that your choice there is
> sensible (though drawing individual pixels in an interpreted language is
> somewhat questionable), but because there's simply no good support for
> writing GUI applications in PHP.
>
A bit of a misunderstanding here - sorry, I wasn't clear. I would never
build an application in PHP - GUI or not. It's great for scripts, but
too wide open for my tastes. I prefer the ability to compartmentalize
my code more as in C, C++ and Java. Plus, compiled languages are faster.
> That's as it is, but there's no law of the universe which prohibits such
> support from being developed for PHP or some PHP-derivative.
There is a GUI library with a PHP interface PHP (GTK). I haven't tried
it, but I would if I had a short script which needed a GUI.
--
==================
Remove the "x" from my email address
Jerry Stuckle jstucklex@attglobal.net
==================]]>Jerry Stuckle2014-05-14T12:20:49-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185913&th=123514#msg_185913
> Jerry Stuckle wrote this copyrighted missive and expects royalties:
>
>> On 5/13/2014 8:26 PM, Chris Ahlstrom wrote:
>>>
>>> Use what makes *you* feel productive. For me, that is currently C++, one of
>>> the most flexible languages ever.
>>
>> I agree it depends on the situation. But the language needs to be what
>> the JOB requires - not what makes you feel productive.
>>
>> Along with PHP, I also do C (almost 30 years), c++ (25 years), Java (10
>> years) and other languages. The language I use is completely dependent
>> on the job.
>
> In other words, simply on someone's past decisions, for the most part.
>
Almost NEVER dependent on past decisions. But it IS dependent on the
requirements of the program.
>> For instance - C++ is nice, but doesn't work well with Linux Device
>> Drivers. You're better off using C for that. And it can't be as easily
>> modified and changed as PHP, which works great as a scripting language.
>> I would never, for instance, use C++ to do the SPAM email parsing and
>> updating; PHP has tools which making parsing emails easy, unlike C++.
>> But at the same time I would never try to write a GUI program in PHP.
>
> Every language, it seems, converges on the same large feature set and
> incorporates many third-party libraries to do various tasks. Even C++.
> Check out Boost sometime, and Qt.
>
> The big differences, I think, are in the infrastructure surrounding the
> languages. Java vs C++, for example.
>
> Anyway, I basically agree with you.
>
Yes, every language has its advantages and disadvantages. That's why
there is no one "universal language". Different jobs have different
requirements, and some languages are better than others for any
particular job.
--
==================
Remove the "x" from my email address
Jerry Stuckle jstucklex@attglobal.net
==================]]>Jerry Stuckle2014-05-14T12:23:23-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185914&th=123514#msg_185914
> On 05/13/2014 12:35 PM, Johnny wrote:
>> On 05/13/2014 01:20 PM, crankypuss wrote:
>>> On 05/13/2014 10:32 AM, Johnny wrote:
>>>> On 05/13/2014 11:05 AM, crankypuss wrote:
>>>> > On 05/13/2014 09:00 AM, Collin Pruitt wrote:
>>>> >> On 5/13/2014 4:17 AM, crankypuss wrote:
>>>> >>> What kinds of linux scripts do you write in PHP? Are they
>>>> >>> applications,
>>>> >>> utilities, other? Are they command-line or do they have fullscreen
>>>> >>> interfaces?
>>>> >>
>>>> >> I've never used PHP for actual scripting outside of CGI. If I have to
>>>> >> write a script, I almost always use either Perl or shell script.
>>>> >>
>>>> >
>>>> > When you write a "script", what is it? Command-line only, fullscreen
>>>> > interface, simple abbreviation of some common task, fullblown
>>>> > applications, what?
>>>>
>>>> Linux Shell Scripting Tutorial v1.05r3
>>>> A Beginner's handbook
>>>>
>>>> http://www.freeos.com/guides/lsst/
>>>
>>> Do you always post irrelevancies, or is this a special occasion;
>>> nevermind.
>>
>> I thought you were ignorant, and I was trying to help. Now I see you
>> are stupid, and can't be helped.
>
> That's exactly the kind of rancid horseshit that led me to unsubscribe
> from comp.lang.php many moons ago. Please do lose it, or if you can't,
> then just piss off to somewhere that people don't mind putting up with it.
The only stoopid person here is Johnny. He replied with an off-topic,
irrelevant comment and got pissed off when you called him on it.
Sounds like some other trolls I know.
--
==================
Remove the "x" from my email address
Jerry Stuckle jstucklex@attglobal.net
==================]]>Jerry Stuckle2014-05-14T12:28:53-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185915&th=123514#msg_185915
tnp@invalid.invalid> writes:
> On 13/05/14 21:35, Tim Streater wrote:
<snip>
>> I can't be arsed to fiddle around with C these days. Too much faffing
>> around with declarations - and no string handling to speak of either.
>>
>> Non-issues in PHP.
>>
> string handling is the chief reason I prefer C..
That seems odd since PHP has almost every single low-level C string
function available to it. You can strspn and strncmp to your heart's
content in PHP. Pretty much the only ones missing are strcat and strcpy
but, surely, they can't be why you prefer C.
A PHP translation of C string handling would inevitably be simpler since
there would be no need manage the storage. That's the biggest advantage
in my opinion, even if never used any of PHP's more complex string
manipulation.
--
Ben.]]>Ben Bacarisse2014-05-14T12:39:06-00:00PHP Gui Toolkits (was: query: how many use PHP for linux scripts)
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185916&th=123514#msg_185916
> On 5/14/2014 5:18 AM, crankypuss wrote:
>
>> All that's mostly opinion, and only mentioned because you said you'd
>> never attempt a GUI application in PHP, and I wanted to point out that
>> it isn't so much because of PHP itself that your choice there is
>> sensible (though drawing individual pixels in an interpreted language is
>> somewhat questionable), but because there's simply no good support for
>> writing GUI applications in PHP.
>>
>
> A bit of a misunderstanding here - sorry, I wasn't clear. I would never
> build an application in PHP - GUI or not. It's great for scripts, but
> too wide open for my tastes. I prefer the ability to compartmentalize
> my code more as in C, C++ and Java. Plus, compiled languages are faster.
>
>> That's as it is, but there's no law of the universe which prohibits such
>> support from being developed for PHP or some PHP-derivative.
>
> There is a GUI library with a PHP interface PHP (GTK). I haven't tried
> it, but I would if I had a short script which needed a GUI.
It seems to me that PHPGTK[1] is dead; there is, however, wxPHP[2],
which seems to be actively developed.
--
Christoph M. Becker]]>Christoph Michael Bec2014-05-14T12:58:22-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185918&th=123514#msg_185918
> The Natural Philosopher <tnp@invalid.invalid> writes:
>
>> On 13/05/14 21:35, Tim Streater wrote:
> <snip>
>>> I can't be arsed to fiddle around with C these days. Too much faffing
>>> around with declarations - and no string handling to speak of either.
>>>
>>> Non-issues in PHP.
>>>
>> string handling is the chief reason I prefer C..
>
> That seems odd since PHP has almost every single low-level C string
> function available to it. You can strspn and strncmp to your heart's
> content in PHP. Pretty much the only ones missing are strcat and strcpy
> but, surely, they can't be why you prefer C.
>
No., I prefer it because ex of the library, its easier to manipulate at
the raw level.
> A PHP translation of C string handling would inevitably be simpler since
> there would be no need manage the storage. That's the biggest advantage
> in my opinion, even if never used any of PHP's more complex string
> manipulation.
>
when managing storage is no harder than
char buf[1024];
I cant see the issue.
--
Ineptocracy
(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.]]>The Natural Philosoph2014-05-14T14:23:54-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185919&th=123514#msg_185919
> On 14/05/14 13:39, Ben Bacarisse wrote:
>
>> That seems odd since PHP has almost every single low-level C string
>> function available to it. You can strspn and strncmp to your heart's
>> content in PHP. Pretty much the only ones missing are strcat and strcpy
>> but, surely, they can't be why you prefer C.
>>
> No., I prefer it because ex of the library, its easier to manipulate at
> the raw level.
I disagree.
>> A PHP translation of C string handling would inevitably be simpler since
>> there would be no need manage the storage. That's the biggest advantage
>> in my opinion, even if never used any of PHP's more complex string
>> manipulation.
ACK.
> when managing storage is no harder than
>
> char buf[1024];
>
> I cant see the issue.
What happens when you store a string (say, user input) with more than
1023 bytes in buf? Oh, well, of course you won't--good luck.
[X post & fup2 comp.lang.php]
--
Christoph M. Becker]]>Christoph Michael Bec2014-05-14T18:00:00-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185921&th=123514#msg_185921
timstreater@greenbee.net> wrote:
> In article <slrnln52i9.nki.jedi@nomad.mishnet>, JEDIDIAH
> <jedi@nomad.mishnet> wrote:
>
>> On 2014-05-13, Tim Streater <timstreater@greenbee.net> wrote:
>>> In article <lktn4a$n8q$1@news.albasani.net>, The Natural Philosopher
>>> <tnp@invalid.invalid> wrote:
>>>
>>>> On 13/05/14 17:32, Johnny wrote:
>>>
>>>> > Linux Shell Scripting Tutorial v1.05r3
>>>> > A Beginner's handbook
>>>> >
>>>> > http://www.freeos.com/guides/lsst/
>>>> Prezactly. PHP is optimised for HTML work really.
>>>
>>> Who cares.
>>>
>>>> There are far better languages to do other stuff in, though I have to
>>>> say I dislike scripting langauges really and prefer to use C wherever
>>>> possible.
>>>
>>> I can't be arsed to fiddle around with C these days. Too much faffing
>>> around with declarations - and no string handling to speak of either.
>>>
>>> Non-issues in PHP.
>>
>> PHP is fine if you're working with the web, kind of pointless otherwise.
>
> Depends what you're doing. My app has 74 PHP scripts, some of which do
> things like communicate with remote hosts, rotate logs, move files
> around, read/write a variety of SQLite databases. Doubtless all this
> could be done in C, but why should I bother.
>
That's a false dichotomy there: C or PHP.
--
Apple: Because the individual is not statistically meaningful. |||
/ | \]]>JEDIDIAH2014-05-14T19:49:25-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185920&th=123514#msg_185920
tnp@invalid.invalid> wrote:
> On 14/05/14 09:44, crankypuss wrote:
>> On 05/13/2014 03:10 PM, JEDIDIAH wrote:
>>> PHP is fine if you're working with the web, kind of pointless
>>> otherwise.
>>
>> I find that to be absolutely not the case.
>
> but others don't. They take a personal and opposite view.
>
> PHP CAN be used for other things. But most of us were dong other things
> perfectly well before we discovered PHP and for us PHP only has one
> advantage: its widely supported as a web scripting language.
As a tool for C avoidance, PHP is a bit of a johnny-come-lately.
If that's all you're really interested in, then there are plenty of
more well established options with whatever bells and whistles you're
interested in.
C vs. PHP is just such a weird dichotomy because pure C is so
ancient and PHP is kind of not (and thus somewhat redundant).
On the other hand, PHP has gained itself a reputation for being
the modern day equivalent of Sendmail or BIND in terms of being a
security disaster.
[deletia]
--
Apple: Because the individual is not statistically meaningful. |||
/ | \]]>JEDIDIAH2014-05-14T19:54:37-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185922&th=123514#msg_185922
> The Natural Philosopher wrote:
>
>> On 14/05/14 13:39, Ben Bacarisse wrote:
>>
>>> That seems odd since PHP has almost every single low-level C string
>>> function available to it. You can strspn and strncmp to your heart's
>>> content in PHP. Pretty much the only ones missing are strcat and strcpy
>>> but, surely, they can't be why you prefer C.
>>>
>> No., I prefer it because ex of the library, its easier to manipulate at
>> the raw level.
>
> I disagree.
>
>>> A PHP translation of C string handling would inevitably be simpler since
>>> there would be no need manage the storage. That's the biggest advantage
>>> in my opinion, even if never used any of PHP's more complex string
>>> manipulation.
>
> ACK.
>
>> when managing storage is no harder than
>>
>> char buf[1024];
>>
>> I cant see the issue.
>
> What happens when you store a string (say, user input) with more than
> 1023 bytes in buf? Oh, well, of course you won't--good luck.
>
I make sure I don't.
strncpy...
If I really dont know, well then calculate first and malloc.
But modern machines have so MUCH ram its not really worth bothering
about allocating huge stack buffers..
> [X post & fup2 comp.lang.php]
>
--
Ineptocracy
(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.]]>The Natural Philosoph2014-05-14T20:48:19-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185924&th=123514#msg_185924
> On 2014-05-14, The Natural Philosopher <tnp@invalid.invalid> wrote:
>> On 14/05/14 09:44, crankypuss wrote:
>>> On 05/13/2014 03:10 PM, JEDIDIAH wrote:
>>>> PHP is fine if you're working with the web, kind of pointless
>>>> otherwise.
>>>
>>> I find that to be absolutely not the case.
>>
>> but others don't. They take a personal and opposite view.
>>
>> PHP CAN be used for other things. But most of us were dong other things
>> perfectly well before we discovered PHP and for us PHP only has one
>> advantage: its widely supported as a web scripting language.
>
> As a tool for C avoidance, PHP is a bit of a johnny-come-lately.
> If that's all you're really interested in, then there are plenty of
> more well established options with whatever bells and whistles you're
> interested in.
>
> C vs. PHP is just such a weird dichotomy because pure C is so
> ancient and PHP is kind of not (and thus somewhat redundant).
>
C is still the language that fits everything.
> On the other hand, PHP has gained itself a reputation for being
> the modern day equivalent of Sendmail or BIND in terms of being a
> security disaster.
>
sendmail wasn't a security disaster if you set it up OK and bind - well
I've never had a problem
Nor with PHP either
Juts be carefiul how you use it.
> [deletia]
>
--
Ineptocracy
(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.]]>The Natural Philosoph2014-05-14T20:50:18-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185925&th=123514#msg_185925
tnp@invalid.invalid> writes:
> On 14/05/14 13:39, Ben Bacarisse wrote:
>> The Natural Philosopher <tnp@invalid.invalid> writes:
>>
>>> On 13/05/14 21:35, Tim Streater wrote:
>> <snip>
>>>> I can't be arsed to fiddle around with C these days. Too much faffing
>>>> around with declarations - and no string handling to speak of either.
>>>>
>>>> Non-issues in PHP.
>>>>
>>> string handling is the chief reason I prefer C..
>>
>> That seems odd since PHP has almost every single low-level C string
>> function available to it. You can strspn and strncmp to your heart's
>> content in PHP. Pretty much the only ones missing are strcat and strcpy
>> but, surely, they can't be why you prefer C.
>>
> No., I prefer it because ex of the library, its easier to manipulate
> at the raw level.
Is "ex of the library" a typo?
Anyway, it still seems odd. I don't know what "its easier to manipulate
at the raw level" means, but if using C's string functions are, for you,
easier than writing PHP's almost identical string functions, so be it.
I can live with one more mystery in my life.
>> A PHP translation of C string handling would inevitably be simpler since
>> there would be no need manage the storage. That's the biggest advantage
>> in my opinion, even if never used any of PHP's more complex string
>> manipulation.
>>
>
> when managing storage is no harder than
>
> char buf[1024];
>
> I cant see the issue.
No, indeed. Maybe you perspective comes from use-case in which either
static or automatic arrays of fixed size are all you need.
--
Ben.]]>Ben Bacarisse2014-05-14T21:05:28-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185926&th=123514#msg_185926
tnp@invalid.invalid> writes:
> On 14/05/14 19:00, Christoph Michael Becker wrote:
>> The Natural Philosopher wrote:
>>
>>> On 14/05/14 13:39, Ben Bacarisse wrote:
<snip>
>>>> A PHP translation of C string handling would inevitably be simpler since
>>>> there would be no need manage the storage. That's the biggest advantage
>>>> in my opinion, even if never used any of PHP's more complex string
>>>> manipulation.
>>
>> ACK.
>>
>>> when managing storage is no harder than
>>>
>>> char buf[1024];
>>>
>>> I cant see the issue.
>>
>> What happens when you store a string (say, user input) with more than
>> 1023 bytes in buf? Oh, well, of course you won't--good luck.
>>
>
> I make sure I don't.
> strncpy...
Well, I never saw that coming. You must be one of the few experienced C
programmers to consider strncpy to be a solution for anything!
> If I really dont know, well then calculate first and malloc.
....but then memory management is not a simple as a declaration (which is
where this started). In PHP you need neither.
<snip>
--
Ben.]]>Ben Bacarisse2014-05-14T21:18:14-00:00Re: query: how many use PHP for linux scripts
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=185927&th=123514#msg_185927
crankypuss@nomail.invalid> has declared...
> On 05/13/2014 05:02 PM, Mike Yetto wrote:
>> Be it known Allodoxaphobia <knock_yourself_out@example.net> has declared...
>>> Horses. Courses. REXX
>>
>> In VM/CMS and MVS I use REXX and for Linux I prefer shell
>> scripting or perl. As is indicated by its name (a recursive
>> acronym - PHP Hypertext Preprocessor) it's intended use is web
>> pages.
>>
>> Mike "mostly hand signals for the dog" Yetto
>>
> PHP can validly be used for whatever one can use it for, just like any
> other programming tool.
> HOWEVER. Note that Rexx is the VM/CMS "system product interpreter" (or
> at least that's what they used to call it). Something of equal or
> greater capability might someday become the "linux system interpreter",
> and would that be a bad thing?
It would be a neutral thing if it could be ignored, bad if
enforced.
Mike "would enforcement even be possible?" Yetto
--
"Question with boldness even the existence of God; because, if
there be one, he must more approve of the homage of reason than
that of blindfolded fear."
- Thomas Jefferson]]>Mike Yetto2014-05-14T21:23:43-00:00