I'm getting this error:
Warning: basename() expects parameter 1 to be string, array given in /home/users/q/qx04t9mu/www/calendars/test3.php on line 8
What did I do wrong? $extension is a string?!
Okay, $extension is a string, but it's not parameter 1.
$fullpath is parameter 1, and $fullpath is an array.
line 2>$fullpath = pathinfo($_SERVER["SCRIPT_FILENAME"]); line 3>echo $fullpath["extension"] . "<br>\n"; #echoes php line 4> line 5>$extension = $fullpath["extension"]; line 6> line 7>echo $extension . "<br>\n"; #echoes php line 8>$filename = basename($fullpath, $extension); line 9>echo $filename . "<br>\n";
http://ca3.php.net/manual/en/function.pathinfo.php http://www.php.net/manual/en/function.basename.php
-- By-Tor.com It's all about the Rush http://www.by-tor.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php