文件转换器.它们是如何工作的? [英] File Converters. How do they work?

查看:46
本文介绍了文件转换器.它们是如何工作的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

文件转换器如何工作?IE:制作一个几乎可以立即将 mp3 转换为 ogg 的 Web 应用程序.这一直让我感兴趣.

how do file converters work? IE: Making a web application that will convert mp3 to ogg nearly instantly. This has always interested me.

推荐答案

服务器安装了一个执行转换的程序.文件被接受,运行(可能使用 exec('mp3-to-ogg tmpfile.mp3'); 或类似命令),然后传回下载.真的很简单,只要您将程序安装在服务器上可以运行的某个位置即可.

The server has a program installed that does the conversion. The file is accepted, run (possibly with exec('mp3-to-ogg tmpfile.mp3'); or similar), and passed back to be downloaded. It's quite simple, really, just as long as you have the program installed somewhere on the server where it can be run.

这篇关于文件转换器.它们是如何工作的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆