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

Home » Imported messages » comp.lang.php » string length
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: string length [message #185329 is a reply to message #185320] Tue, 18 March 2014 22:50 Go to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On Tue, 18 Mar 2014 10:45:24 -0400, richard wrote:

> Using strlen and trying to match the file length to a fixed value does
> not work for me.

This is not what the code you have shown is doing. The code you have
shown is checking for the string length of the file name, not the file
length.

As others have suggested, please give examples of data that you behave
this code does not treat as you expect.

If you read the php manual entry for the strlen() function, both the
possible cause of your problem and a potential solution are presented to
you. Did you actually read the manual entry (and I'm not talking about
the user contributed notes either).

--
Denis McMahon, denismfmcmahon(at)gmail(dot)com
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Nested PHP
Next Topic: weird global issue
Goto Forum:
  

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

Current Time: Mon Oct 21 02:16:47 GMT 2024

Total time taken to generate the page: 0.04109 seconds