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 #185911 is a reply to message #185903] Wed, 14 May 2014 11:32 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
On 14/05/14 10:21, crankypuss wrote:
> 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(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.
>>>
>>>> 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.
[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: Wed Nov 27 06:44:37 GMT 2024

Total time taken to generate the page: 0.06279 seconds