Home > Backend Development > PHP Tutorial > 为什么取不出正确的的文件内容

为什么取不出正确的的文件内容

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:48:17
Original
910 people have browsed it

为何取不出正确的的文件内容
我有三个文件,分别是1.php、2.php和Ajax.js
1.php内容如下


$i=   //对变量i进行一系列运算

include("2.php")



2.php内容如下
echo $i;

Ajax.js大体内容如下:


每隔1秒中请求一下2.php的返回内容;
httpxml.open("get","2.php");
XX.innerHTML=httpxml.responseText;


但是现在的问题是XX.innerHTML始终不变,不知为何?


已确认以下信息:
1、1.php中的$i内容时刻在变化
2、Ajax.js也按照规定频率执行请求动作

ajax php
------解决方案--------------------
除了 seeeion,你就不能用其他共享手段传递数据吗?
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template