@@ 307-315 (lines=9) @@ | ||
304 | * @param string $value |
|
305 | * @return string |
|
306 | */ |
|
307 | function getParentPath($value) |
|
308 | { |
|
309 | $value = removeTrailingSlash(backslashToSlash($value)); |
|
310 | if(false !== ($index = strrpos($value, "/")) ) |
|
311 | { |
|
312 | return substr($value, 0, $index); |
|
313 | } |
|
314 | ||
315 | } |
|
316 | ||
317 | ||
318 | /** |
|
@@ 410-421 (lines=12) @@ | ||
407 | * @param string $value |
|
408 | * @return string |
|
409 | */ |
|
410 | function getBaseName($value) |
|
411 | { |
|
412 | $value = removeTrailingSlash(backslashToSlash($value)); |
|
413 | ||
414 | if(false !== ($index = strrpos($value, "/")) ) |
|
415 | { |
|
416 | return substr($value, $index + 1); |
|
417 | }else |
|
418 | { |
|
419 | return $value; |
|
420 | } |
|
421 | } |
|
422 | ||
423 | function myRealPath($path) { |
|
424 |