我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

我想要使​​用file_get_contents()时超时

I want read content of a file from another website but can not read it. I have access to both host. I want use file_get_contents() function. What do I need to change in the file directory on file or folders? or in my PHP file? enter link description here

<?php $direct="http://nic.subz.ir/api/index.php"; echo $direct; echo file_get_contents($direct); ?>

Write here your example and error what you get. If something about permission, so you have to send user agent in your request

近期文章

  • 使用osticket api_create_ticket.php创建故障单时出错
  • 用新函数替换许多php文件中的弃用函数
  • 如何使用自定义模块启用集合的商店视图选项
  • 如何修复Jquery轮询继续无限?
  • 这个错误会是什么?
  • 不要求Jquery帖子
  • 如何返回jquery中的函数
  • 截断magento文本
  • 使用UWP应用程序中的Php脚本从MySql服务器获取数据
  • 获取Zend Framework中htdocs文件夹的本地路径
  • 无法在MySQL PDO数据库上写[重复]
  • 在div中读取图像并使用php和jquery发送邮件
  • CakePHP3错误解析数据库结果集
  • PHP:购物车计算失灵
  • 在变量中使用where
  • too long
  • WordPress函数中的HTTP希望避免https重定向
  • 如何从用户目录的根目录开始获取FTP路径?
  • 特殊字符在浏览器中正确显示,但在phpMyAdmin中加扰
  • 无法在<item>标记中的rss Feed中添加链接或图像

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华