dpt8910 2019-02-27 16:42
浏览 92

使用php设置.dll,.zip和.so文件的元数据

I'm having a hard time finding a solution to this problem.

I know via php $zip I have the possibility to set a comment for .zip files, but it's not exactly what I'd like to accomplish, as I'd like to edit the file's Meta Data instead.

Same goes for .dll or .so files (shared libraries), but in this case I didn't find any ways to alter the meta data, altough I know for sure dlls have metadata fields such as Copyright which can be edited, but I can't seem to find a way to do so via php.

So here's the only thing I was able to do via php (adding a comment to a zip file):

    $zip = new ZipArchive();
    $res = $zip->open($myfile, ZipArchive::CREATE);
    if ($res === TRUE) {
    # Create the comment here
    $zip->setArchiveComment('my comment');
    $zip->close();
    }

About zip files, the ideal would be something like:

    $zip->setArchiveMetadata('copyright', 'example');

but this, obviously isn't going to work as php:zip doesn't come with such functionalities.

I wonder if there's a solution to my problem, thank you!

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 報錯:Person is not mapped,如何解決?