• 新秘
  • 廠商評價

新秘推薦



文章147

活動0

發表日期2018年7月18日

2018-07-18

EDIT: Austin below in the comments resolved my issue. How do I close the question since that is the answer?

I have the following simple code to open/write to a query file on my server. I've checked permissions and even set +rw for all users on the query file, yet I still get the error

failed to open stream: resource temporarily unavailable

in my apache error log.

I'm not really sure what I can do to alleviate this issue, thoughts?

<?php 
// filepaths
$queryFile = '../query/query.txt';

// get query
$query = $_GET['searchBox'];

// open and write query to query file
$fh = fopen($queryFile, 'X') or die("Can't open file");
fwrite($fh, $query);
fclose($fh);
shareimprove this question edited Nov 19 '12 at 0:17 hakre 154k28284563 asked Nov 18 '12 at 23:58 ripit 39011022
  • 加入最愛

  • 檢舉文章

  • Line分享

  • FB分享

感謝您,於veryWed分享您寶貴的經驗,送出前請詳閱以下條款: