Do you have a question? Post it now! No Registration Necessary. Now with pictures!
June 12, 2006, 2:06 am
rate this thread
may have the "\" sometimes not. Is there some function that checks if
the path does not end in "\" to add it or some quick way of doing this?
E.g. addBs($path) . $filename;
The most efficient way I could think of is
rtim($path,"\") . "\" . $filename;
Re: Adding BS to paths
This is very basic.
Just check if the last character is a \.
if not: add it.
Or alternatively, you can use rtrim indeed as you did.
What do you mean by efficient?
Is your webserver crashing under the load of this
Is something isn't broken, don't fix it.
Your solution is just fine.
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum