鍍金池/ 問答/ PHP問答
冷眸 回答

上傳以后,保存文件。然后在頁面里引這個(gè)文件的 url

氕氘氚 回答

limit 3
或者添加計(jì)數(shù)器,
+1;當(dāng)?shù)扔?的時(shí)候break;

老梗 回答

彈出框定位(fixed),頂部和底部絕對定位,中間的overflow:scroll

不討喜 回答

https://packagist.org/package...
圖片描述

雖然不知道你為什么要下載那么古老的 2.0.5 的版本,但是 composer 官網(wǎng)上的 yiisoft/yii2-app-advanced 包并沒 2.0.5 版本。

現(xiàn)在 yiisoft/yii2-app-advanced 的最新版本是 2.0.14,可以使用如下命令進(jìn)行下載:

composer create-project yiisoft/yii2-app-advanced advanced 2.0.14

實(shí)際上,到目前為止,yii2框架核心的版本已經(jīng)是 2.0.15.1,安裝時(shí)composer 會自動(dòng)將其升級為最新版本。

[/tmp] ]$composer create-project yiisoft/yii2-app-advanced advanced 2.0.14
Installing yiisoft/yii2-app-advanced (2.0.14)
  - Installing yiisoft/yii2-app-advanced (2.0.14): Loading from cache
Created project in advanced
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 59 installs, 0 updates, 0 removals
  - Installing yiisoft/yii2-composer (2.0.6): Loading from cache
  - Installing swiftmailer/swiftmailer (v5.4.9): Loading from cache
  - Installing bower-asset/jquery (3.2.1): Loading from cache
  - Installing bower-asset/yii2-pjax (2.0.7.1): Loading from cache
  - Installing bower-asset/punycode (v1.3.2): Loading from cache
  - Installing cebe/markdown (1.1.2): Loading from cache
  - Installing ezyang/htmlpurifier (v4.10.0): Loading from cache
  - Installing bower-asset/inputmask (3.3.11): Loading from cache
  - Installing yiisoft/yii2 (2.0.15.1): Loading from cache
  - Installing yiisoft/yii2-swiftmailer (2.0.7): Loading from cache
  - Installing bower-asset/bootstrap (v3.3.7): Loading from cache
  - Installing yiisoft/yii2-bootstrap (2.0.8): Loading from cache
  - Installing yiisoft/yii2-debug (2.0.13): Loading from cache
  - Installing bower-asset/typeahead.js (v0.11.1): Loading from cache
  - Installing phpspec/php-diff (v1.1.0): Loading from cache
  - Installing yiisoft/yii2-gii (2.0.6): Loading from cache
  - Installing fzaninotto/faker (v1.7.1): Loading from cache
  - Installing yiisoft/yii2-faker (2.0.4): Loading from cache
  - Installing doctrine/instantiator (1.0.5): Loading from cache
  - Installing phpunit/php-text-template (1.2.1): Loading from cache
  - Installing sebastian/recursion-context (2.0.0): Loading from cache
  - Installing sebastian/exporter (2.0.0): Loading from cache
  - Installing phpunit/phpunit-mock-objects (3.4.4): Loading from cache
  - Installing codeception/stub (1.0.2): Loading from cache
  - Installing sebastian/diff (1.4.3): Loading from cache
  - Installing sebastian/version (2.0.1): Loading from cache
  - Installing sebastian/code-unit-reverse-lookup (1.0.1): Loading from cache
  - Installing phpunit/php-file-iterator (1.4.5): Loading from cache
  - Installing sebastian/resource-operations (1.0.0): Loading from cache
  - Installing sebastian/comparator (1.2.4): Loading from cache
  - Installing webmozart/assert (1.3.0): Loading from cache
  - Installing phpdocumentor/reflection-common (1.0.1): Loading from cache
  - Installing phpdocumentor/type-resolver (0.4.0): Loading from cache
  - Installing phpdocumentor/reflection-docblock (3.3.2): Loading from cache
  - Installing phpspec/prophecy (1.7.5): Loading from cache
  - Installing myclabs/deep-copy (1.7.0): Loading from cache
  - Installing phpunit/php-token-stream (1.4.12): Loading from cache
  - Installing sebastian/environment (2.0.0): Loading from cache
  - Installing phpunit/php-code-coverage (4.0.8): Loading from cache
  - Installing phpunit/php-timer (1.0.9): Loading from cache
  - Installing sebastian/global-state (1.1.1): Loading from cache
  - Installing sebastian/object-enumerator (2.0.1): Loading from cache
  - Installing symfony/yaml (v3.4.8): Downloading (100%)
  - Installing phpunit/phpunit (5.7.27): Loading from cache
  - Installing codeception/phpunit-wrapper (6.0.9): Downloading (100%)
  - Installing behat/gherkin (v4.5.1): Downloading (100%)
  - Installing symfony/polyfill-mbstring (v1.7.0): Loading from cache
  - Installing symfony/dom-crawler (v3.4.8): Downloading (100%)
  - Installing symfony/css-selector (v3.4.8): Downloading (100%)
  - Installing symfony/browser-kit (v3.4.8): Downloading (100%)
  - Installing symfony/event-dispatcher (v3.4.8): Downloading (100%)
  - Installing psr/log (1.0.2): Loading from cache
  - Installing symfony/debug (v3.4.8): Downloading (100%)
  - Installing symfony/console (v3.4.8): Downloading (100%)
  - Installing symfony/finder (v3.4.8): Downloading (100%)
  - Installing psr/http-message (1.0.1): Loading from cache
  - Installing guzzlehttp/psr7 (1.4.2): Loading from cache
  - Installing codeception/base (2.4.1): Downloading (100%)
  - Installing codeception/verify (0.3.3): Loading from cache
phpunit/phpunit-mock-objects suggests installing ext-soap (*)
phpunit/php-code-coverage suggests installing ext-xdebug (^2.5.1)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
phpunit/phpunit suggests installing ext-xdebug (*)
symfony/browser-kit suggests installing symfony/process ()
symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/event-dispatcher suggests installing symfony/http-kernel ()
symfony/console suggests installing symfony/lock ()
symfony/console suggests installing symfony/process ()
codeception/base suggests installing aws/aws-sdk-php (For using AWS Auth in REST module and Queue module)
codeception/base suggests installing codeception/phpbuiltinserver (Start and stop PHP built-in web server for your tests)
codeception/base suggests installing codeception/specify (BDD-style code blocks)
codeception/base suggests installing flow/jsonpath (For using JSONPath in REST module)
codeception/base suggests installing league/factory-muffin (For DataFactory module)
codeception/base suggests installing league/factory-muffin-faker (For Faker support in DataFactory module)
codeception/base suggests installing phpseclib/phpseclib (for SFTP option in FTP Module)
codeception/base suggests installing stecman/symfony-console-completion (For BASH autocompletion)
codeception/base suggests installing symfony/phpunit-bridge (For phpunit-bridge support)
Writing lock file
Generating autoload files
我不懂 回答

Vue 比較好上手吧,react和ng都要先看懂才好做

Vue的學(xué)習(xí)曲線是比較線性的,前期好上手,然后慢慢學(xué)

薄荷綠 回答

你看一下你的D:/Tools/redis/redis-windows-master/downloads文件夾里具體是什么,看樣子好像是安裝的有問題,Redis下載鏈接

P.S. Redis官方不支持Windows平臺,這個(gè)是微軟維護(hù)的一個(gè)版本...

非ie瀏覽器無法調(diào)用ocx插件的

葬愛 回答

先通過后臺判斷是否登陸,再選擇要加載的前臺頁面,大概就是這么個(gè)意思;

比如說,你現(xiàn)在這個(gè)場景,假設(shè)進(jìn)入地址是http://web.com/index.php,在index.php文件里去做是否登陸的功能,然后再根據(jù)情況選擇要加載的前臺頁面;

// index.php
<?php
// 簡單判斷一下用戶是否登陸
if(empty($_SESSION['uid']) && !isset($_SESSION['uid'])) {
    // 未登錄就加載登陸頁面
    
    // 方案一 加載html登陸頁面
    require('login.html');
    // 方案二 重定向跳轉(zhuǎn)到登陸頁面
    // $url就是要跳轉(zhuǎn)的登陸頁面地址
    header('Location:' . $url);
} else {
    // 已登錄就加載后臺主頁頁面  
    // 方案同上登陸
    require('home.php');
}
舊言 回答

這里有詳細(xì)的圖片處理教程,(壓縮、等比例縮放,水印等等) http://www.itdfy.com/book/?fi...

@蔣建勇
clipboard.png
老哥,我不是要抬杠哈,比如我輸入了一串英文,獲取字符集結(jié)果為ASCII,然后通過iconv轉(zhuǎn)成utf-8了,后面應(yīng)該返回utf-8才對。為什么還是返回的ASCII呢?我是比較疑惑的這一點(diǎn)。

嫑吢丕 回答
哎?現(xiàn)在的程序員都不會寫多線程了嗎?

區(qū)別的話,性能上有點(diǎn)區(qū)別,redis的隊(duì)列是可控的,完整的;定時(shí)的計(jì)劃任務(wù)易受干擾,程序的操作邏輯需要信任外部的一個(gè)程序,可控性較低

久礙你 回答

從來沒有用過laravel-mix,
但是如果我碰到這種問題,在文檔和搜索引擎都沒有辦法幫助我解決的時(shí)候,我會哪出大殺招,

去 node_modules 目錄下,調(diào)試啊,
通過出錯(cuò)信息,可以看到

/var/www/node_modules/laravel-mix/src/File.js

哪就去打開這個(gè)文件,大不了用console.log 一步步調(diào)試啊, 看看到底是為什么啊

safari瀏覽器可能禁止彈出框

空痕 回答
  1. 從你htop截圖看你的服務(wù)器上啟動(dòng)了3個(gè)mysqld的進(jìn)程?每個(gè)進(jìn)程占用了5.9%的內(nèi)存。

  2. 檢查一下3個(gè)mysqld進(jìn)程是否是必要的,不需要的進(jìn)程停掉,如果3個(gè)進(jìn)程都是需要的調(diào)整一下配置,限制每個(gè)mysqld進(jìn)程使用的內(nèi)存總量。

尤禮 回答

H5內(nèi)置的頁面么? 一般用click 不行用tap , 反正都是HTML結(jié)構(gòu) , 你用zepto都會幫你封裝好了手機(jī)端的觸摸事件的

黑與白 回答

額,恭喜你,你的擴(kuò)展全部被你搞丟了,你需要自己重新安裝這些擴(kuò)展.在ubuntu下,我的建議是最好是用pecl安裝或者是apt安裝。這兩個(gè)是自動(dòng)解決依賴問題.如果用源碼,就需要配置好參數(shù).從錯(cuò)誤信息來看,你的擴(kuò)展都被你弄丟了.

葬憶 回答

php 本身不支持多線程,不過有些擴(kuò)展可以幫你做到,比如使用swoole、pthreads。而且php作為一個(gè)快速開發(fā)的語言,使用線程本身就是不合理的。具體問題,具體分析。如果真的是php語言解決不了的問題,那么久需要使用go或者java去處理這些問題。一個(gè)真正大的項(xiàng)目,不是一種語言就能夠徹底完成的。