End slash, small problem.
| From: | Ryan A | Date: | Sat, 03 Jan 2004 01:07:34 +0000 |
| Subject: | End slash, small problem. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-173661@lists.php.net to get a copy of this message | ||
Hi,
Small problem, I am asking my users to enter a path for something in a
textbox..
eg:
/home/blah/something
am confused as to how I can see if the entered path has an ending slash, if
it has a end slash:
$hasSlash=1 else $hasSlash=0
then i can carry on with my output...
Thanks in advance.
Cheers,
-Ryan