file_get_contents警告:无法打开流

时间:2012-08-09 06:30:00

标签: php arrays json file file-get-contents

我在这里有一个问题,所以,我一直在这里挖掘,似乎我找不到真正的交易;

我正在尝试ff:

<?php
  $filename = $trantype . $delimiter . $dateToday . $fileExtension ;
  //echo $filename . '<br/>';

  $fileToOpen = $filepath . $filename;
  echo "File To Open: " . $fileToOpen . '<br/>';

  $string = file_get_contents($fileToOpen);
  //$string = file_get_contents("../transactions/o/O_20120809.xx");
  $json_array = json_decode($string, true);
  echo "Echo: " . $json_array[0]['itemheader_sysid'] . '<br/>';
  echo "The File Contents: " . $string;
?>

$ string = file_get_contents('../ transaction / o / O_20120809.xx')另一方面可以顺利运行$ string = file_get_contents($ fileToOpen);似乎没有工作,并给了我ff:错误;

 Warning: file_get_contents(../transactions/o/0_20120809.xx) [function.file-get-contents]: failed to open stream: No such file or directory in C:\xampp\htdocs\xx\helper\upo.php on line 19

为什么呢?

有人请吗?

0 个答案:

没有答案