On Jun 13, 2010, at 5:35 PM, Rick Dwyer wrote:

OK, I get the following error:

Warning: basename() expects parameter 1 to be string, array given in....

When I use the following:

$thepath = parse_url($url);
$filename = basename($thepath);

Is my variable thepath not automatically string?


try echo($url); and see

Karl DeSaulniers
Design Drumm

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to