title: php temporary file duration in centos
body: <p>My application works on Ubuntu 14.04, but it doesn't on centos7. </p>
  
  <p>It has a php (running in apache) and a service (an internal TCP server), after php gets a uploaded file from client, it will do something like the following</p>
  
  <pre><code>$src = $_FILES["userFile"]["tmp_name"];
  //send TCP message with the $src to a service running on the same server
  //wait for reply on the tcp connection
  </code></pre>
  
  <p>My service will wait for the tcp message and copy $src to a directory.  But on centos it complained something like "file /tmp/phpXZGTTn can't be found"</p>
  
  <p>Wonder what's special about centos.  Any ideas? Thanks.</p>