Flash 代理错误 #2124
我有一个标准的 php 代理来跨域获取图像。
域名/proxy.php?url=http://images.fandango.com/r85.7.3/ImageRenderer/69/103/images/no_image_69x103.jpg/135631/images/masterrepository/fandango/135631/hp7_2-3d imax poster_lo。 它通常工作得很好,但是在这张jpg
上,我得到了一个 错误#2124:加载的文件类型未知。
看到这个我将完整的代理和图像 url 插入浏览器并收到此 php 错误。
[function.readfile]:无法打开流:HTTP 请求失败!
这是因为 jpg 损坏还是服务器 htaccess/config 文件损坏。我将继续研究 php 请求流,但任何帮助将不胜感激。
谢谢
I got a standard php proxy getting images cross domains.
domain/proxy.php?url=http://images.fandango.com/r85.7.3/ImageRenderer/69/103/images/no_image_69x103.jpg/135631/images/masterrepository/fandango/135631/hp7_2-3d imax poster_lo.jpg
It usually works fine, but on this jpg, I am getting an
Error #2124: Loaded file is an unknown type.
Seeing this I plugged the full proxy and image url into the browser and got this php error.
[function.readfile]: failed to open stream: HTTP request failed!
Is this because of a corrupted jpg or something with the servers htaccess/config files. Im gonna continue to research the php request stream but any help would be greatly appreciated.
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
哦,是的,我明白了。与 jpg/png 文件名称中的破折号有关。我猜这是编码的事情。用下划线标记你的图像,而不是用破折号。
谢谢
Oh yeah, I figured it out. Had to do with dashes in the name of the jpg/png file. I guess it was and encoding thing. Label your images with underscores, not dashes everyone.
thanks