Re: Re: Weird problem with is_file()
| From: | Peter Lind | Date: | Mon, 26 Apr 2010 17:13:49 +0000 |
| Subject: | Re: Re: Weird problem with is_file() | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-304625@lists.php.net to get a copy of this message | ||
On 26 April 2010 18:58, Michelle Konzack <linux4michelle@tamay-dogan.net> wrote:
> Hello Pete,
>
> Am 2010-04-26 17:04:32, hacktest Du folgendes herunter:
>> Is it possible that the space is a new-line (or a carriage-return) ?
>
> grmpf! -- That it was...
>
>> preg_replace('/\s+$/','',$FILE);
>
> Works now!
Consider a trim, much faster for this thing.
--
<hype>
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
Couchsurfing: Fake51
</hype>