title: php.ini - setting upload_tmp_dir
body: <p>I have a page which allows users to upload photos - fairly standard php I think.</p>
  
  <p>This works on the live server I've been using to date but I've recently set up php on my Mac and now the uploads have stopped working. </p>
  
  <p>I'm guessing this is because the the upload_tmp_dir is not set properly in the php.ini file.</p>
  
  <p>Does anyone know what I need to do?</p>
  
  <p>EDIT:</p>
  
  <p>Here's the error message that's output...</p>
  
  <p><code>Warning: imagejpeg(): Unable to open 'upload/thumbs/AL.jpg' for writing: Permission denied in /Users/tom/Sites/tombrennand/add.php on line 128 Warning: imagejpeg(): Unable to open 'upload/images/AL.jpg' for writing: Permission denied in /Users/me/Sites/mysite/add.php on line 135 Notice: Undefined variable: con in /Users/me/Sites/mysite/add.php on line 172 Warning: mysql_close() expects parameter 1 to be resource, null given in /Users/me/Sites/mysite/add.php on line 172</code></p>
  
  <p>So from that I think I need to set permissions on that folder. Any ideas?</p>