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 #185925 is a reply to message #185918] Wed, 14 May 2014 21:05 Go to previous messageGo to previous message
Ben Bacarisse is currently offline  Ben Bacarisse
Messages: 82
Registered: November 2013
Karma:
Member
The Natural Philosopher <tnp(at)invalid(dot)invalid> writes:

> On 14/05/14 13:39, Ben Bacarisse wrote:
>> The Natural Philosopher <tnp(at)invalid(dot)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.
[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 12:42:22 GMT 2024

Total time taken to generate the page: 0.04447 seconds