Home PHP Libraries Other libraries Remote file download php class library
Remote file download php class library
<?php
class download
{
  var $url;//远程文件地址 
  var $file_name = "hdwiki.zip";//下载来的文件名称 
  var $save_path = "./www.phpfensi.com";//下载到本地的文件路径 
  var $localfile;//下载到本地文件的路径和名称 
  var $warning;//警告信息 
  var $redown=0;//是否重新下载 
  /*初始化*/
  function seturl($url)
  {
    if(!empty($url))$this->url = $url;
  }
  function setfilename($file_name)
  {
    if(!empty($file_name))$this->file_name = $file_name;
  }
  function setsavepath($save_path)
  {
    if(!empty($save_path))$this->save_path = $save_path;
  }
  function setredown($redown)
  {
    if(!empty($redown))$this->redown = $redown;
  }

With the rapid development and widespread application of computers, communications and information technology, human beings are entering the information society. By establishing networks, people around the world can freely and cheaply use other people's resources to achieve different geographical locations. , resource sharing at different times, that is, information sharing, information exchange is extremely convenient, so the network has achieved unprecedented development, and remote file transmission has also been widely used.

Disclaimer

All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn

Related Article

PHP uses the pclzip class to implement file compression (with the pclzip class download address), _PHP tutorial PHP uses the pclzip class to implement file compression (with the pclzip class download address), _PHP tutorial

12 Jul 2016

PHP uses the pclzip class to implement file compression (the pclzip class download address is attached). PHP uses the pclzip class to implement file compression (the pclzip class download address is attached). This article describes the example of PHP using the pclzip class to implement file compression. Share it with everyone for your reference, specifically

How Do I Link Static Libraries That Depend on Other Static Libraries? How Do I Link Static Libraries That Depend on Other Static Libraries?

13 Dec 2024

Linking Static Libraries to Other Static Libraries: A Comprehensive ApproachStatic libraries provide a convenient mechanism to package reusable...

How to Silence TensorFlow\'s Debugging Output? How to Silence TensorFlow\'s Debugging Output?

28 Oct 2024

Suppression of Tensorflow Debugging OutputTensorflow prints extensive information about loaded libraries, found devices, and other debugging data...

How Does jQuery Simplify DOM Manipulation for Web Developers? How Does jQuery Simplify DOM Manipulation for Web Developers?

03 Jan 2025

Overflow: Hidden and Expansion of HeightjQuery distinguishes itself from other JavaScript libraries through its cross-platform compatibility and...

Which native Java image processing library is right for you? Which native Java image processing library is right for you?

30 Oct 2024

Native Java Image Processing Libraries for High-Quality ResultsAs you have encountered limitations with ImageMagick and JAI, let's explore other...

How to Execute Command Line Binaries in Node.js? How to Execute Command Line Binaries in Node.js?

27 Dec 2024

Executing Command Line Binaries in Node.jsExecuting third-party binaries is an essential task when porting CLI libraries from other languages to...

See all articles