FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » query: how many use PHP for linux scripts
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: query: how many use PHP for linux scripts [message #185897 is a reply to message #185883] Wed, 14 May 2014 08:36 Go to previous messageGo to previous message
crankypuss is currently offline  crankypuss
Messages: 147
Registered: March 2011
Karma:
Senior Member
On 05/13/2014 02:35 PM, Tim Streater wrote:
> In article <lktn4a$n8q$1(at)news(dot)albasani(dot)net>, The Natural Philosopher
> <tnp(at)invalid(dot)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>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to get the POST name of a field in a form that uses a counter
Next Topic: PHP-SOAP/5.4.21 SoapClient terminating POST without waiting for reply, but still complaining "error fetching http headers".
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Sep 19 20:15:36 GMT 2024

Total time taken to generate the page: 0.07478 seconds