PCDVD數位科技討論區
PCDVD數位科技討論區   註冊 常見問題 標記討論區為已讀

回到   PCDVD數位科技討論區 > 其他群組 > 七嘴八舌異言堂
帳戶
密碼
 

  回應
 
主題工具
PAN_PAN
Junior Member
 
PAN_PAN的大頭照
 

加入日期: Jan 2003
您的住址: Shattrath City
文章: 948
以上面的 code 讀好像 php 沒裝好的的樣子, 但是隔空 debug, 很難說
     
      
舊 2013-05-09, 10:08 AM #11
回應時引用此文章
PAN_PAN離線中  
fuckoil
Basic Member
 

加入日期: Apr 2005
您的住址: 台灣
文章: 12
看起來像是程式的指定目錄,指錯了

php 有一個設定程式可以在那裡跑,看是不是放在正確的位置
__________________
int 一定會中樂透函數(void)
{
   int result=一定會中();
   char get[15];
   if (result)
   {
    取得樂透號碼(get);
    printf(" 本期樂透號碼:%s \n",get);
    return true;
   }else {
    求求你讓我中();
    一定會中樂透函數();
   }
   return false;
}
舊 2013-05-09, 11:13 AM #13
回應時引用此文章
fuckoil離線中  
xs910203
Major Member
 

加入日期: Mar 2012
文章: 273
引用:
作者darkangel
1. 注意目錄本身的權限,正常應為 rwxr-xr-x。
2. 開數個 terminal 用 tail -F [log 檔],然後開 browser 開有問題的網頁監視 log 狀態,同時監視 syslog 跟 apache log。(或用 multitail)


引用:
作者PAN_PAN
以上面的 code 讀好像 php 沒裝好的的樣子, 但是隔空 debug, 很難說


引用:
作者hufun
1.先關掉所有的plugin
2.殺掉cache資料夾下面的所有資料
3.優化一下資料庫
4.關掉memory等加速器
5.重整cache
確定問題是否還在吧!

另外你的.htaccess有沒有設定?
rewrite engine

還有你在php設定的/tmp路徑
上傳路徑等

不然你看一下這邊
http://www.5ilog.com/cgi-bin/sys/li...spx/6680421.htm


權限跟設定都是常理設定沒甚麼問題 .htaccess的rewrite也on了

目前也沒開memcache之類的加速

我裝了另外一台freebsd只有套件版本不太一樣竟然就沒這問題 另外兩台都有問題

所以我又把有問題的打掉 盡量版本 套件都弄得跟沒問題的那台一模一樣

弄玩了之後...問題居然還在=____=

先謝謝各位~

我繼續找問題~有找到的話再上來報告一下!
__________________
舊 2013-05-09, 11:14 AM #14
回應時引用此文章
xs910203離線中  
PAN_PAN
Junior Member
 
PAN_PAN的大頭照
 

加入日期: Jan 2003
您的住址: Shattrath City
文章: 948
引用:
作者fuckoil
看起來像是程式的指定目錄,指錯了

php 有一個設定程式可以在那裡跑,看是不是放在正確的位置



這個??

<?php

echo $_SERVER['DOCUMENT_ROOT'];

?>
舊 2013-05-09, 11:34 AM #15
回應時引用此文章
PAN_PAN離線中  
xs910203
Major Member
 

加入日期: Mar 2012
文章: 273
引用:
作者fuckoil
看起來像是程式的指定目錄,指錯了

php 有一個設定程式可以在那裡跑,看是不是放在正確的位置


路徑確定沒問題! thanks
__________________

此文章於 2013-05-09 12:05 PM 被 xs910203 編輯.
舊 2013-05-09, 12:02 PM #16
回應時引用此文章
xs910203離線中  
xs910203
Major Member
 

加入日期: Mar 2012
文章: 273
答案出爐...shinnlu大是對的!
引用:
作者shinnlu
看一下 php short open tag 的設定.
雖然不太可能啦。


問題出在php.ini

引用:
; This directive determines whether or not PHP will recognize code between
; <? and ?> tags as PHP source which should be processed as such. It's been
; recommended for several years that you not use the short tag "short cut" and
; instead to use the full <?php and ?> tag combination. With the wide spread use
; of XML and use of these tags by other languages, the server can become easily
; confused and end up parsing the wrong code in the wrong context. But because
; this short cut has been a feature for such a long time, it's currently still
; supported for backwards compatibility, but we recommend you don't use them.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://php.net/short-open-tag

short_open_tag = Off


我是copy了那份php.ini-production....
抓到快葛屁...

再次感謝各位前輩!
__________________
舊 2013-05-09, 12:05 PM #17
回應時引用此文章
xs910203離線中  


    回應


POPIN
主題工具

發表文章規則
不可以發起新主題
不可以回應主題
不可以上傳附加檔案
不可以編輯您的文章

vB 代碼打開
[IMG]代碼打開
HTML代碼關閉



所有的時間均為GMT +8。 現在的時間是03:36 AM.


vBulletin Version 3.0.1
powered_by_vbulletin 2025。