『壹』 不支持php的空間如何建站,支持access
用asp做網站就可以了 網上的程序科訊 動易 都有asp的
『貳』 空間不支持PHP格式怎麼辦
換一個,我目前在用的是host1free,是支持php的,比較穩定!
看看網路里關於host1free,或許對你有所幫助的!
『叄』 我的空間是windows系統,不支持PHP,能用Discuz!嗎
絕對不能的。
最好換一個Linux系統的。
Discuz!最重要的就是PHP頁面的啦。
『肆』 免費空間不支持PHP 和 mysql怎麼辦
空間不支持就沒辦法啊,沒用的。
『伍』 網站空間 怎麼不能運行php文件,html能運行
根據你描述的情況,判斷如下:
你的php環境沒有配置好。
可能運行的程序出現問題。
默認文檔名沒有添加index.php
請檢查你的伺服器運行環境,確認安裝所需環境庫。
建議重新配置php環境
『陸』 不支持子目錄的php空間可以放多個網站嗎
不行的,做不到,主要是域名訪問的時候都是直接訪問根目錄。根目錄只能放一個網站,所以!當然我想到一個方法!當沒試驗過,你可以試試!就是在根目錄網站首頁放一句判斷代碼!
<script>
if(document.referrer.replace("http://","").split("/",1)=="www.zzpenhui.com
") window.location="www.zzpenhui.com/zzpenhui.com/";
</script>
不用解釋代碼了吧。意思是如果是通過zzpenhui這個域名訪問的就調到zzpenhui.com/目錄。你可以試一試!
『柒』 我下載的php源碼,上傳到空間,空間提示支持php格式的,網站打不開為什麼大家幫忙解答一下!!
那得看你下載的是不是完整的啊,有很多免費的是不完全的,還有你是安裝版的么,帶有資料庫沒,伺服器php版本對不對,還是不會的話再直接找俺解決
『捌』 虛擬空間突然不支持php了
試試新建一個PHP文件,寫入並保存:
<?php
phpinfo();
?>
看看能不能正常輸出
『玖』 一個伺服器的空間。別人的空間支持php,我的怎麼不支持
你買的不是PHP空間當然不支持,我這里有PHP的空間,需要網路HI一下
『拾』 關於PHP空間不能使用的問題問題
1. Cannot modify header information - headers already sent by (output started at /home/oyayi0/public_html/h365/admin/login.php:1)
這個問題的話,先找空間上技術員,讓他把output_buffering設為On,如果不肯的話試試以下:
如果在執行php程序時看到這條警告:"Warning: Cannot modify header information - headers already sent by ...."
Few notes based on the following user posts:
有以下幾種解決方法:
1. Blank lines (空白行):
Make sure no blank line after <?php ... ?> of the calling php scrīpt.
檢查有<?php ... ?> 後面沒有空白行,特別是include或者require的文件。不少問題是這些空白行導致的。
2. Use exit statement (用exit來解決):
Use exit after header statement seems to help some people
在header後加上exit();
header ("Location: xxx");
exit();
3. PHP has this annoying problem, if your HTML goes before any PHP code or any header modification before redirecting to certain page, it ll said "Warning: Cannot modify header information - headers already sent by ...." Basically anytime you output to browser, the header is set and cannot be modified. So two ways to get around the problem:
3a. Use Javascrīpt (用Javascrīpt來解決):
<? echo "<scrīpt> self.location( file.php );</scrīpt>"; ?>
Since it s a scrīpt, it won t modify the header until execution of Javascrīpt.
可以用Javascrīpt來代替header。另外需要注意,採用這種方法需要瀏覽器支持Javascrīpt.
3b. Use output buffering (用輸出緩存來解決):
<?php ob_start(); ?>
... HTML codes ...
<?php
... PHP codes ...
header ("Location: ....");
ob_end_flush();
?>
This will save the output buffer on server and not output to browser yet, which means you can modify the header all you want until the ob_end_flush() statement. This method is cleaner than the Javascrīpt since Javascrīpt method assumes the browser has Javascrīpt turn on. However, there are overhead to store output buffer on server before output, but with modern hardware I would imagine it won t be that big of deal. Javascrīpt solution would be better if you know for sure your user has Javascrīpt turn on on their browser.
就像上面的代碼那樣,這種方法在生成頁面的時候緩存,這樣就允許在輸出head之後再輸出header了。本站的許願板就是採用這種方法解決的header問題。
4.set output_buffering = On in php.ini (開啟php.ini中的output_buffering )
set output_buffering = On will enable output buffering for all files. But this method may slow down your php output. The performance of this method depends on which Web server you re working with, and what kind of scrīpts you re using.
這種方法和3b的方法理論上是一樣的。但是這種方法開啟了所有php程序的輸出緩存,這樣做可能影響php執行效率,這取決於伺服器的性能和代碼的復雜度。
第二種:
如何徹底杜絕warning: Cannot add header information - headers already sent in…… 這種令人莫明其妙的的錯誤。 只要你寫過PHP代碼,相信都遇上過這個大多時候都令人莫明其妙的warning吧..今天我們就來搞定它…………… 看了PHP手冊,回答如下:消息「Warning: Cannot send session cookie - headers already sent…」或者「Cannot add/modify header information - headers already sent…」。 函數 header(),setcookie() 和 session 函數需要在輸出流中增加頭信息。但是頭信息只能在其它任何輸出內容之前發送。在使用這些函數前不能有任何(如 HTML)的輸出。函數 headers_sent() 能夠檢查您的腳本是否已經發送了頭信息。請參閱「輸出控制函數」。 意思是:不要在使用上面的函數前有任何文字,空行,回車,空格等。但。。。問題是,這答案並不令人滿意。因為往往程序在其他PHP環境下運行卻正常。 首先:這錯誤是怎麼產生的呢?讓我們來看看PHP是如何處理HTTP header輸出和主體輸
文討論的是如何徹底杜絕warning: Cannot add header information - headers already sent in…… 這種令人莫明其妙的的錯誤。
只要你寫過PHP代碼,相信都遇上過這個大多時候都令人莫明其妙的warning吧..今天我們就來搞定它……………
看了PHP手冊,回答如下:
消息「Warning: Cannot send session cookie - headers already sent…」或者「Cannot add/modify header information - headers already sent…」。
函數 header(),setcookie() 和 session 函數需要在輸出流中增加頭信息。但是頭信息只能在其它任何輸出內容之前發送。在使用這些函數前不能有任何(如 HTML)的輸出。函數 headers_sent() 能夠檢查您的腳本是否已經發送了頭信息。請參閱「輸出控制函數」。
意思是:不要在使用上面的函數前有任何文字,空行,回車,空格等。但。。。問題是,這答案並不令人滿意。因為往往程序在其他PHP環境下運行卻正常。
首先:這錯誤是怎麼產生的呢?讓我們來看看PHP是如何處理HTTP header輸出和主體輸出的。
PHP腳本開始執行時,它可以同時發送header(標題)信息和主體信息。 Header信息(來自 header() 或 SetCookie() 函數)並不會立即發送,相反,它被保存到一個列表中。 這樣就可以允許你修改標題信息,包括預設的標題(例如 Content-Type 標題)。但是,一旦腳本發送了任何非標題的輸出(例如,使用 HTML 或 print() 調用),那麼PHP就必須先發送完所有的Header,然後終止 HTTP header。而後繼續發送主體數據。從這時開始,任何添加或修改Header信息的試圖都是不允許的,並會發送上述的錯誤消息之一。
好!那我們來解決它:笨方法:把錯誤警告全不顯示! 掩耳盜鈴之計
error_reporting(E_ERROR | E_PARSE); 這里不要顯示E_WARNING即可
2. mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES)
這個問題很簡單,MySQL用戶名或密碼錯誤。