鍍金池/ 問答/ PHP問答
純妹 回答

你的后臺數(shù)據(jù)庫是不是放在本地啦?

互擼娃 回答

1match against

2 SELECT * FROM table WHERE field REGEXP ‘[[]?uid[]]?’;

你好胸 回答

不太理解,你說的base64格式圖片是啥意思,我理解的base64是一種編碼方式,當(dāng)然可以支持將jpg、png等格式的圖片編碼為base64格式。

后臺:

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class UserController extends Controller
{

  public function store(Request $request)
  {

  // get current time and append the upload file extension to it,
  // then put that name to $photoName variable.
  $photoName = time().'.'.$request->user_photo->getClientOriginalExtension();

  /*
  talk the select file and move it public directory and make avatars
  folder if doesn't exsit then give it that unique name.
  */
  $request->user_photo->move(public_path('avatars'), $photoName);

  }
}




前臺:

{{Form::open(['route' => 'user.store', 'files' => true])}}
    {{Form::label('user_photo', 'User Photo',['class' => 'control-label'])}}
    {{Form::file('user_photo')}}
    {{Form::submit('Save', ['class' => 'btn btn-success'])}}
{{Form::close()}}

兔寶寶 回答

你填入的數(shù)據(jù)不是純粹的備案號啊,而是有格式的數(shù)據(jù),這里需要去除格式信息。

linode的ip+端口號,默認(rèn)應(yīng)該是3306端口
你鏈接試試

忠妾 回答

試試這個

$row = DB::table('tbscore')
    ->select(DB::raw('count(score) as score, subject'))
    ->whereIn('userid', [1,2,3])
    ->group ('subject')
    ->get();

數(shù)據(jù)庫 —— 查詢構(gòu)建器

朽鹿 回答

pecl

去這里面搜索openssl然后下載下來.
or
php7 之后支持內(nèi)置openssl 只需要在configure時 配置 --with-openssl

伐木累 回答

只需要修改拖動前后之間的數(shù)據(jù),不需要修改全部的

厭惡我 回答

Redis有一個list的數(shù)據(jù)結(jié)構(gòu)可以滿足你的需求,詳情可以看一下慕課網(wǎng)的教程高峰削流

選擇 回答

你這個需求我聽說過一些,二維碼是 0 和 1 在一個方塊里,白色的是0 黑色的是1 以此來表達(dá)整個01001001011101這種二進(jìn)制,然后再通過攝像頭拍攝,光感芯片錄入存儲設(shè)備,程序提取出整個圖片進(jìn)行色差對比,深色的就是1淺色的是0 ,也就是說,只要二維碼能表達(dá)出深淺對比度大的都能識別

也就是說,你在市面上看到的那么好看的二維碼,很大一部分是美工ps出來的,當(dāng)然程序替換生成的也不少,但是都是核心技術(shù),因為這個對比度的數(shù)據(jù)需要反復(fù)測試,然后存儲下來,成為模板,等到下一個用戶生成的時候,直接調(diào)取模板,完成替換。

比如你發(fā)的這個網(wǎng)站上有一句話
圖片描述

所以你想直接生成要完成兩個目標(biāo),第一,你有模板,第二你有調(diào)取模板并替換的算法
很顯然,你啥都沒有,
那就看一個開源項目吧
http://cgv.cs.nthu.edu.tw/Pro...

別瞎鬧 回答

var fileEle = document.getElementById("file");

        var formData = new FormData();  
        for(var i in file.files){//這里如果單張上傳就不必遍歷直接formData.append('file',file.files[0])  
            formData.append('file',file.files[i]);  
        } 
        delete formData[0]//刪除第一張,以此類推
        $.ajax({  
            url: '/upload',  
            type: 'POST',  
            data: formData,  
            cache: false,  
            contentType: false,  
            processData: false,  
            success: function(data){   
                //你的邏輯
            } 
        }); 
詆毀你 回答

仔細(xì)看文檔,使用 collapse 方法

$collection = collect([[1, 2, 3], [4, 5, 6], [7, 8, 9]]);

$collapsed = $collection->collapse();

$collapsed->all();
孤毒 回答
RewriteRule index.php?p=$1&c=$2&a=$3 ^blog([0-9]+)-([0-9]+)-([0-9]+)\.html$  
乖乖瀦 回答
Db::table('order')->where('username','like',':username')->bind(['username'=>'%web%'])->select();
瘋浪 回答

但是用https就沒有這種情況了啊