Initial commit
This commit is contained in:
commit
4e80077405
9608 files changed
+3007841
No files matched your search
Executable
+55
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Models\ArticleList;
|
||||
//use App\Services\Time;
|
||||
use voku\helper\AntiXSS;
|
||||
//use App\Models\Tags;
|
||||
|
||||
class HtmlController extends Controller
|
||||
{
|
||||
|
||||
// public function client()
|
||||
// {
|
||||
//
|
||||
// $sUrlBase = env('APP_URL').'/client/single/';
|
||||
//
|
||||
// $sHtmlPathBase = "client/";
|
||||
//
|
||||
// $aArticleCode = [
|
||||
// '1001',
|
||||
// '1002',
|
||||
// '1003',
|
||||
// '1004',
|
||||
// '1005',
|
||||
// '1006',
|
||||
// '1007',
|
||||
// '1008',
|
||||
// ];
|
||||
//
|
||||
// $ch = curl_init();
|
||||
// curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
// curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||
// curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
||||
//
|
||||
// foreach ($aArticleCode as $iCode) {
|
||||
//
|
||||
// $sUrl = $sUrlBase.$iCode;
|
||||
// $sHtmlPath = $sHtmlPathBase.$iCode.'.html';
|
||||
//
|
||||
// curl_setopt($ch, CURLOPT_URL, $sUrl);
|
||||
//
|
||||
// $sArticleView = curl_exec($ch);
|
||||
//
|
||||
// $r = file_put_contents($sHtmlPath, $sArticleView);
|
||||
//
|
||||
// echo $r;
|
||||
// echo "<br>";
|
||||
// }
|
||||
//
|
||||
// curl_close($ch);
|
||||
//
|
||||
// }
|
||||
}
|
||||
Reference in new issue
Block a user