我在这里有一个问题,我一直在这里挖掘,看来我找不到真正的交易;
我正在尝试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
为什么这样?
请问有人吗?