文件操作 - Curl.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/give/vendor/paypal/paypalhttp/lib/PayPalHttp/Curl.php
编辑文件内容
<?php namespace PayPalHttp; /** * Class Curl * @package PayPalHttp * * Curl wrapper used by HttpClient to make curl requests. * @see HttpClient */ class Curl { protected $curl; public function __construct($curl = NULL) { if (is_null($curl)) { $curl = curl_init(); } $this->curl = $curl; } public function setOpt($option, $value) { curl_setopt($this->curl, $option, $value); return $this; } public function close() { curl_close($this->curl); return $this; } public function exec() { return curl_exec($this->curl); } public function errNo() { return curl_errno($this->curl); } public function getInfo($option) { return curl_getinfo($this->curl, $option); } public function error() { return curl_error($this->curl); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件