Flash/PHP:使用 AS3 Jpeg 编码器
我是 Actionscript3 和 PHP 的初学者,我正在尝试将亨利·琼斯的影片剪辑转换为 jpeg 代码以供我使用,如下所示:
http://henryjones.us/articles/using-the-as3-jpeg-encoder
我下载了源代码,然后上传了.swf 和 .php 在同一目录中。但是,当我单击“下载草图”时,它会下载 .php 文件而不是 jpeg。
我上传的 .swf 可以在这里看到:
http://www.snut.org/storage /scrntest/sketch.swf
我没有更改下载的源代码中的任何代码,所以我无法弄清楚问题是什么。有人可以帮忙吗?
I am a beginner at both Actionscript3 and PHP, and I'm trying to get Henry Jone's movie clip to jpeg code to work for me, as seen here:
http://henryjones.us/articles/using-the-as3-jpeg-encoder
I downloaded the source and then uploaded the .swf and the .php in the same directory. However, when I click "download your sketch," it downloads the .php file instead of a jpeg.
The .swf I uploaded can be seen here:
http://www.snut.org/storage/scrntest/sketch.swf
I didn't change any of the code from the source I downloaded, so I can't figure our what the problem is. Can anyone help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经验法则 - 每当您的 Web 服务器下载 .php 文件而不是呈现文件的输出时,这都是一个好迹象,表明您的服务器未设置为处理 PHP。您需要告诉 Apache 使用 PHP,在 google 上搜索“在 Apache Web 服务器上安装 PHP”,这应该可以帮助您入门。
基本上 .php 文件只是文本文件,所以除非你有什么东西告诉你的网络服务器将 .php 文件与普通文本文件不同,否则它只会假设用户想要下载正在链接的文件。
Rule of thumb - any time your web server downloads .php files instead of rendering the output of the file it is a good sign that your server isn't set up to handle PHP. You need to tell Apache to use PHP, google around for "install PHP on Apache web server" and that should get you started.
Basically .php files are just text files, so unless you have something telling your web server to treat .php files different from normal text files then it'll just assume the user wants to download the file that's being linked.