我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

从网站获取内容并将内容放入磁盘驱动器

im trying to get an exe file from site web and put it in disk drive here is my code

@file_put_contents("C:\program.exe" ,       @file_get_contents("http://localhost/program.exe"));

some help please ?

Why not just use copy()?

copy("http://localhost/program.exe","C:/program.exe");

Note that the cause was probably the unescaped backslash - I've used a forward slash here because Windows will silently convert it.

近期文章

  • 反向推进ORM导致'Buildfile:/ build.xml不存在'
  • 如何获取服务器软件的http标头并设置超时
  • 当我将鼠标悬停在其上时,为什么<select>选项会跳转到其他选项?
  • 将特定区域的HTML从外部域网页加载到div中
  • PHP二进制树插入问题
  • php在php中排序长字符串
  • PHP Mysql CHECK行如果存在id
  • 如何使用php将表单值同时发送到外部URL和电子邮件ID
  • PHP站点管理认证页面
  • 删除评论而不刷新页面
  • 创建谷歌浪潮背后的技术,如异步网络应用程序
  • 如何停止谷歌抓取未来页面
  • 在codeigniter中使用活动记录和学说
  • 未捕获的SyntaxError:意外的令牌}
  • 在Wordpress上显示x最近的帖子,包括标题,日期和摘录
  • 如何确定调用PHP头的URL
  • 图片上传表单给我“没有这样的文件或目录”错误
  • 操作数应包含1列UPDATE
  • PHP GD:我可以填充透明部分吗?
  • 存储数据表和检索的最快方法

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华