随笔分类 - php
摘要:1、请求https网址 请求地址是https的,需要curl_exec($ch);之前设置 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); 2、暂时无法
阅读全文
摘要:$resource_path = env('APP_URL') . $hotel->hero_image;$name = explode('.', $resource_path); if(!file_exists('upload/hotel/thumb/'.$id.'.'.$name[2])){ $
阅读全文
摘要:一.使用dump 1.找到composer安装路径 2.找到路径新建composer.json文件并加入以下代码 { "require": { "squizlabs/php_codesniffer": "*", "fxp/composer-asset-plugin": "^1.4", "symfon
阅读全文
摘要:$carArray = simplexml_load_file("carr.xml") or die("failed"); foreach($carArray->children() as $c){ $year = $c->ModelYear; $price = $c->PricePerDay; $
阅读全文
摘要:<?php session_start(); $header="MIME-Version: 1.0".PHP_EOL; $header.="From:Hertz-UTS@uts.edu.au".PHP_EOL; $header.="Content-Type:text/html;charset=utf
阅读全文
摘要:1.首先要去花生壳官网下载软件并安装https://hsk.oray.com/ 2.去注册账号https://console.oray.com/passport/register.html?fromurl=http%3A%2F%2Fhsk.oray.com%2F 3.打开pc版花生壳app并按操作登
阅读全文
摘要:list($msec, $sec) = explode(' ', microtime());$data = (float)sprintf('%.0f', (floatval($msec) + floatval($sec)) * 1000);
阅读全文
摘要:php运行出现Call to undefined function curl_init() 64位win7/8 下PHP不支持CURL 除了将PHP.ini中的;extension=php_curl.dll前面的";" 去掉,还需要如下操作,(因apache,php版本的原因有些人电脑可能要执行第一
阅读全文