鍍金池/ 問答/ PHP問答
筱饞貓 回答

點開network,看看返回的內容是不是js.

舊顏 回答

return $this->hasOne('admin_group','admin_id','id');
忘了加上了

墨染殤 回答

curl "http://xxxx" -w "%{redirect_url}"

慢半拍 回答

看你的配置似乎沒什么問題。

ErrorLog "|bin/rotatelogs -l logs/error_%Y%m%d.log 86400"
毀憶 回答

vendor的文件都是其他的ISV提供的,不需要修改,這是共識。

萌小萌 回答

你install的? 還是iview的一個本地文件???

還有你css的引入啊 css也需要引入的

你看看https://segmentfault.com/q/10... 這篇

愿如初 回答
//遞歸查找出id所在數組,返回其數據及所在下標
function findParent(data,id){
  for(let i=0; i<data.length; i++){
    if(data[i].id == id){
      return {data: data, index:i}
    }else if(data[i].children && data[i].children.length){
      let res = findParent(data[i].children,id);
      if(res) reuturn res
    } 
  }
}

let parentData = findParent(data,id);
if(parentData){
  let child = parentData.data[parentData.index].children || [];
  parentData.data.splice(parentData.index,1,...child); //子數據替換父數據
}
安若晴 回答

我也遇到了相同的問題,最后解決辦法是copy一份WXNavigatorModule的代碼,然后覆蓋原來的module

紓惘 回答

app/Http/Controllers/Weather.php有這個文件嗎?

涼心人 回答

yum install scl-utils
yum install https://dl.fedoraproject.org/...
yum install http://rpms.remirepo.net/ente...
yum install php70
yum install php70-php-mysqlnd
yum install php70-php-curl
yum install php70-php-simplexml
yum install php70-php-devel php70-php-gd php70-php-json php70-php-mcrypt php70-php-mbstring php70-php-opcache php70-php-pear php70-php-pecl-apcu php70-php-pecl-geoip php70-php-pecl-imagick php70-php-pecl-json-post php70-php-pecl-memcache php70-php-pecl-xmldiff php70-php-pecl-zip php70-php-pspell php70-php-soap php70-php-tidy php70-php-xml php70-php-xmlrpc
sudo yum install -y phpmyadmin

Finally,google works.

解夏 回答

啟用CURLOPT_FOLLOWLOCATION 的選項需要設置PHP.ini中的open_basedir選項,主要是安全問題。

兔囡囡 回答

兩種方法,看你的場景。

  1. 強交互的話建議用socket服務器做中心
  2. 弱交互的話建議用HTTP,你用PHP或者ASP.NET都能實現(xiàn)
卟乖 回答

laravel 跳轉頁面 應該調用 url route 之類的方法,指向到頁面對應的路由。類似于

<a href="{{url('/home')}}" class="logo">

/home 路由指向在路由文件定義,指向你的 xxx.blade.php視圖文件。

逗婦惱 回答

var aData;
if(uid){

aData={uid:uid};

}else{

aData={ip:returnCitySN["cip"]};

}
$.ajax({

data:aData

});

毀憶 回答

PHP程序員做的基本都是互聯(lián)網開發(fā)吧,離不開和前端打交道。需要了解多少,要和你的公司要求你做的事情有關系,基本上大公司要求做的專一點,精通PHP就行。小公司可能要求你懂的面廣一點,什么都會。
只要你PHP玩的精通,其實js的知識哪怕你一點都不了解都沒關系。但是HTTP方面相關知識還是要了解的,比如HTTP1.0 1.1 2.0之前有什么區(qū)別和特征,http code有哪些和意義。怎么配置跨域,這些。
如果非要了解一些,從原理和框架入手去了解js,不需要你會寫多少,但是要只要常見的前端框架有哪些比如vue, react angular,這些框架面向的前后端分離,后端的php只需要關注接口的提供,不需要提供頁面渲染。
如果是普通的網站,那你要懂一些瀏覽器的渲染知識。然后用php的方式,后端生成頁面html,然后吐給前端渲染。

離殤 回答

Sometimes people here are not as they could be...

For whatever reason, your php.ini is mis-configured.

One thing to note that all those missing files are actually Windows files (.dll) on Linux these would likely be .so files. I'm assuming your hosting on a Linux server.

First find your php.ini file. If you have command line access via SSH, you can try running:

php --ini
if not you make a simple script, call it test.php like so:

<?php
phpinfo();
?>
Upload the file and run it, something like:

http://www.yoursite.com/test.php

Among the information provided will be the path to php.ini

Once you find it, one option is to edit it and comment out all those extensions, by putting a ";" in front of the line.

Another option is to check if the *.so files exist. Look for them under /usr/lib/php. If they exist, edit your php.ini file to have all those extension end in .so instead of .dll

Finally, if they don't exist, you could install them by using apt-get or yum. An example:

sudo apt-get install php-mbstring

命于你 回答

$('你的textarea').val($('你的div').html())

小曖昧 回答

個人推薦保存到日志文件中,日志量大,你每次保存數據庫會增加數據庫的寫負擔,而且放在日志文件中,后期可以做類似Logstash應用來做日志采集,進行數據可視化分析,這個時候就不用擔心多余的數據庫讀負擔,畢竟數據庫的讀寫資源是非常重要的。