Re: Got another ripper for you all ;-)
| From: | Liam MacKenzie | Date: | Thu, 15 Aug 2002 05:29:42 +0000 |
| Subject: | Re: Got another ripper for you all ;-) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112695@lists.php.net to get a copy of this message | ||
Or not...
that didn't work either...
I do this:
$ulist=command("user list name=$username domain=$domain");
$ulist[1] = str_replace('Dir : ', '', $ulist[1]);
$ulist[1] = str_replace('\n','',$ulist[1]);
$ulist[1] = str_replace(' ','',$ulist[1]);
echo "|".$ulist[1]."|";
I get this:
|/home/eXtremail/mbox/i-redlands.net/9/1/steve
|
Still got that new line there :'(
Any ideas?
----- Original Message -----
From: "Liam MacKenzie" <phplist@operationenigma.com>
To: "Justin French" <justin@indent.com.au>; <php-general@lists.php.net>
Sent: Thursday, August 15, 2002 3:25 PM
Subject: Re: [PHP] Got another ripper for you all ;-)
Cool...
Yeah, I know, and I always spend at least 3 minutes looking through it
before I post!
seriously!
(Thanks!)
----- Original Message -----
From: "Justin French" <justin@indent.com.au>
To: "Liam MacKenzie" <phplist@operationenigma.com>;
<php-general@lists.php.net>
Sent: Thursday, August 15, 2002 3:27 PM
Subject: Re: [PHP] Got another ripper for you all ;-)
what about
$dir = str_replace('\n','',$dir);
???
The manual is full of all sorts of good stuff!
Justin
on 15/08/02 3:20 PM, Liam MacKenzie (phplist@operationenigma.com) wrote:
> Hey guys,
>
> yep, another one...
>
>
> I do this:
> echo "-".$dir."-";
>
> I get this:
>
> -/home/eXtremail/mbox/i-redlands.net/9/1/liam
> -
>
> Note the new line at the end.
>
> Is there a way to get rid of any new lines in a string?
> Because this is making my directory listing go whacko.
>
>
> Cheers,
> Liam
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php