raksmart活动促销

分享

写回答

发帖

被bluehost摆了一道

BlueHost BlueHost 5753 人阅读 | 5 人回复

发表于 2007-9-10 11:19:43 | 显示全部楼层 |阅读模式

bluehost 说 独立IP可以运行脚本更长时间.结果换到现在还是没反应,问问livechat. 说来说去就是要我改代码。 被bluehost框了。5秒限制谁受的了,网速慢时,就算静态文件照样给你timeout ,美国不是最注重消费者权益的么和打官司的么

mdocea [22:42]: Welcome to our real-time support chat. How can I help you today?
JiangMiao [22:42]: Bluehost said I could buy dedicated IP for I can run script longer term. So I bought 2 days ago.But nothing happened.
mdocea [22:44]: I'm sorry to hear that.
[22:44]: What would you like me to do for you?
JiangMiao [22:44]: I want you tell me does bluehost cheat me?(我之前已经问过一次livechat,要是回答yes,我立马该干啥干啥去)
mdocea [22:45]: No.
[22:45]: If you are not satisfied with our services and would like to cancel your account with us we understand and we will issue a prorated refund for you if you would like to do that.
JiangMiao [22:46]: I'm always satisfield with bluehost.
[22:46]: What should I do and What will bluehost do?
mdocea [22:50]: You can employ a web-developer to optimise the script for you and we will continue to be your host.
[22:50]: What would you like us to do?
[22:50]: Unfortunately we can not re-code the script for you.
JiangMiao [22:51]: hmmm...JiangMiao [22:42]: Bluehost said I could buy dedicated IP for I can run script longer term. JiangMiao [22:44]: I want you tell me does bluehost cheat me?mdocea [22:45]: No.

mdocea [22:53]: No sir but your script requires to much CPU time the only way to change that is by optimizing the code in the script.
JiangMiao [22:56]: No. The script just run without output. most time of script is sleep. and 5 limitions make somebody request static file like a.jpg timeout. So I want to increase the limition just for 15 seconds.
mdocea [22:57]: You get 20% CPU time for 20 seconds per minute if our script exceeds that you will get a high CPU error message.
[22:57]: You can check what caused the high CPU error in your error logs. You can find them by login in to your control panel and then going to File Manager. In File Manager you will have to browse to the tmp directory. Inside the tmp directory you will have two folders that you want to take a look in. These folders are: cpu_exceeded_logs and mysql_slow_queries. In each of these folders you will find log files that you can select and read by clicking on the view file option in the top right corner of the File Manager window. Look through these logs with your web designer to get more information on what caused your high CPU errors.
[22:57]: Have you even checked the error logs yet? Have you tried to optimize the coding?
JiangMiao [22:57]: <?
for($i=0;$i<100;$i++)
{
echo ".";
flush();
sleep(10);
}
?>
[22:57]: The code is like that.
[22:58]: I think it can't optimize any more.
mdocea [22:59]: ok where is the file located ?
mdocea [23:02]: and what is the problem?
[23:02]: I am able to browse to it and see the output
[23:02]: .
JiangMiao [23:03]: Yes. but It should output ".................................(100 times)".
mdocea [23:04]: really
[23:04]: wow
[23:04]: this is clearly a coding issue with you not being familiar with your code
[23:05]: As I said before: In order to better focus on providing hosting support we do not provide any coding or development support.
[23:05]: However this is really really basic and I can see what is happening just by looking at the code.
[23:05]: echo ".";
flush();
JiangMiao [23:05]: Yes.So it's not code question. It's server question.
mdocea [23:05]: What is the server question.
JiangMiao [23:06]: Timeout
mdocea [23:06]: The server is running and displaying your file what is the question?
[23:06]: it is not timing out it is displaying .
JiangMiao [23:06]: for($i=0;$i<100;$i++)
{
sleep(10);echo ".";
flush();
}
?>
[23:07]: If I change code to that it will nothing output.
mdocea [23:08]: right because you are telling it to sleep(10) first
[23:09]: I'm really sorry but we do not teach how to write code.
[23:09]: Thank you fro contacting support and have a great day.

回答|共 5 个

7758

发表于 2007-9-12 15:35:01 | 显示全部楼层

你什么程序??


bh要你改代码,他会告诉你的那个文件的位置。 。

[ 本帖最后由 7758 于 2007-9-12 03:37 PM 编辑 ]

bmt

发表于 2007-9-13 14:41:56 | 显示全部楼层

:L :L :L

bmt

发表于 2007-9-13 14:55:36 | 显示全部楼层

晕啊,银币,短消息

bmt

发表于 2007-9-13 14:56:30 | 显示全部楼层

:L :L :L :L :L :L :L
提示没银币发不了信息
RAKSmart

antter

发表于 2007-9-15 20:01:02 | 显示全部楼层

我这个程序
for($i=0;$i<100;$i++)
{
sleep(10);echo ".";
flush();
}

不光光脚本,网路一差,jpg之类静态文件照样断。
您需要登录后才可以回帖 登录 | 注册

本版积分规则