编写一个函数getFileExt(),使用字符串处理函数获得文件的扩展名,如输入apple.jpg,输出jpg。
查看答案
阅读以下代码,输出结果正确的是( )。$path="/data/www/default/work/mysql.php"; $filename=basename($path,".php"); echo $filename; ?>
A. mysql.php
B. mysql
C. php
D. 以上答案都不正确
若要创建多级目录,需要将mkdir的第三个参数设置为____。
在header()函数中,____用于指定下载文件的MIME类型。
在PHP中,若要实现文件下载,需将header()函数中Content-Disposition的值设为____。