当我们没有与Internet连接时,为什么有一段时间php无法正常工作? [英] Why some time php not work when we are not connected with internet?

查看:53
本文介绍了当我们没有与Internet连接时,为什么有一段时间php无法正常工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当可以使用Internet连接时,可以轻松地打开localhost和phpmyadmin.但有时连接断开后也会脱机显示...

When the internet connection is available than easily localhost and phpmyadmin open. but some time when connection is off than it also show offline......
Is internet connection is must for wamp?

推荐答案

如果在断开连接时永远无法工作,因为PHP仅在服务器端执行.

您观察到的只是您可能会有的印象,因为在JavaScript中,完全在客户端上的已加载页面上发生了某些事情.在其他情况下,您可以从本地缓存中加载相同的页面.

尝试刷新它(使用查看/重新加载",Ctrl + R或类似方法),除非重新连接,否则您将看到该资源不可用.

(当然,您可以在物理上与网络断开连接,只需要在本地主机上运行一些HTTP服务器即可.是的,它可以是WAMP(仅表示您在Windows上运行Apache和PHP).认为这与您的问题无关.)

—SA
If never can work when you are disconnected, because PHP is only executed on the server side.

What you observe is only the impression you may have because something happens on already loaded page purely on client side, in JavaScript. In other cases, you can have the same page loaded from you local cache.

Try to refresh it (using View/Reload, Ctrl+R or something like that), and you will see that the resource is not available unless you connected again.

(Of course you can work physically disconnected form a network, bit only it you run some HTTP server on your local host. And yes, it can be WAMP (which simply means that you are running Apache and PHP on Windows). I don''t think this is relevant to your question.)

—SA


这篇关于当我们没有与Internet连接时,为什么有一段时间php无法正常工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆