这样包含没有用,除非是ftp,即使你得到的也是html文件。这个文件的权限只能被读,
用fopen("http://10.13.121.201/try/aaa.php","r")试试。
用fopen("http://10.13.121.201/try/aaa.php","r")试试。
解决方案 »
- 关于使用date()和strtotime()打印日期的问题
- clean_for_javascript 是什么意思,在哪能找到关于的资料?????
- 求一查询语句:通过一个子栏目的ID,查询他对应的所有父栏目
- 麻烦解答一下
- php中清除session的语句是什么?
- 有用过Navicat Mysql 的人吗?
- Linux下的Apache+php怎样连接windows下的Microsoft SQL Server2000呀!
- javascript 如何获取焦点在输入框中的位置,然后当点击按钮的时候,在这个位置中加入字符
- 请教关于远程连接Mysql数据库问题
- 新手提问简单问题
- 配制PHP时到底应该用CGI方式还是ISAPI模式?
- 一具体问题(求助高手)
<?
include "http://10.141.25.74/try/aaa.php"; //10.141.25.74 是我自己的机器
?>
运行成功!
我只要只读的权限就可以了。aaa.php放的是全局的函数。
* files and not .txt files. Also, 'Works' here means that the variables *
* $foo and $bar are available within the included file. */// Won't work; file.txt wasn't handled by www.example.com as PHP
include 'http://www.example.com/file.txt?foo=1&bar=2';// Won't work; looks for a file named 'file.php?foo=1&bar=2' on the
// local filesystem.
include 'file.php?foo=1&bar=2';// Works.
include 'http://www.example.com/file.php?foo=1&bar=2';$foo = 1;
$bar = 2;
include 'file.txt'; // Works.
include 'file.php'; // Works.?>
为什么我的机器上不行?
The Windows version of PHP currently does not support accessing remote files via this function, even if allow_url_fopen is enabled.
原来是这样!FT啊!