Cesar =)
John Taylor-Johnston wrote:
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?!
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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php