[Phpwm] ltrin inconsistency
David Goodwin
david at codepoets.co.uk
Thu Jul 27 19:43:24 BST 2006
<snip><snip>
>
> I've altered the code to;
> substr_replace($myrow["big_name"],"",0,8);
> which seems to work fine in all cases, but I'd still like to get my head
> around why the other method failed some of the time.
Try using basename instead?
i.e. basename("path/to/file.php") -> "file.php".
David.
--
David Goodwin
[ david at codepoets dot co dot uk ]
[ http://www.codepoets.co.uk ]
More information about the Phpwm
mailing list