我有以下格式的网址
www.domain.com/image.php?id=123&idlocation=987&number=01
它有必须下载的图像我使用以下功能下载
$codigo = file_get_contents($url);
现在我如何使用$codigo
提前致谢
答案 0 :(得分:-1)
$path_parts = pathinfo('/www/htdocs/inc/lib.inc.php');
echo $path_parts['dirname'], "\n";
echo $path_parts['basename'], "\n";
echo $path_parts['extension'], "\n";
echo $path_parts['filename'], "\n"; // since PHP 5.2.0
请参阅此链接以获取文件信息