我正在使用file_get_content(),但是当我在其中使用查询字符串时,它似乎无法正常工作。
在服务器php.ini
allow_url_fopen On On
php代码为
<?php
$json = file_get_contents(base_url()."Paytm/TxnStatus.php?MID=A835901952164&ORDERID=4433280148035829a8e57a8774c4&SERVER=LIVE");
$array = json_decode($json);
错误
severity: Warning --> file_get_contents(http://my-domain-name.com/pay/TxnStatus.php?MID=A835901952164&ORDERID=4433280148035829a8e57a8774c4&SERVER=LIVE):
failed to open stream: Connection timed out /var/www/html/application/modules/auth_panel/views/course_product/course/course_transactions_details.php 160