Answers.Body: <p>You can get any settings values from the API and, you can see how, exploring the API through <a href="http://yoursite.site/civicrm/api" rel="nofollow noreferrer">http://yoursite.site/civicrm/api</a> URL.</p>
  
  <p>To answer your question you can follow this screenshot:</p>
  
  <p><a href="https://i.sstatic.net/KrFS4.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/KrFS4.png" alt="enter image description here"></a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-21T08:54:52.523Z
Answers.Text: It's not clear for me (I'm a beginner in extensions) how to get the PHP code from your image.
Answers.UserDisplayName: marcello
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-21T09:11:20.500Z
Answers.Text: You can generate this PHP code going to the civicrm/api URL on your site.
Answers.UserDisplayName: Francesc Bassas i Bullich
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-21T07:51:06.530Z
Answers.LastActivityDate: 2016-04-21T07:51:06.530Z
Answers.UserDisplayName: Francesc Bassas i Bullich
Body: <p>In my extension I need to write a temporary .csv file but (it's my first extension) I'm not able to get the configured "Temporary Files Directory" value.
  How can I do it?
  Thanks</p>
  
  <p>Marcello</p>
  
Tags: <extension>
Title: Get Temporary Files Directory value from my extension
ThreadText: # Get Temporary Files Directory value from my extension
  
  (Asked by: username_0 on 2016-04-21)
  
  In my extension I need to write a temporary .csv file but (it's my first extension) I'm not able to get the configured "Temporary Files Directory" value.
  How can I do it?
  Thanks
  
  Marcello
  
  **Tags:** extension
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-04-21. Score: 2
  
  You can get any settings values from the API and, you can see how, exploring the API through <http://yoursite.site/civicrm/api> URL.
  
  To answer your question you can follow this screenshot:
  
  [![enter image description here](https://i.sstatic.net/KrFS4.png)](https://i.sstatic.net/KrFS4.png)
  
  > **Comments:**
  > **username_0**: It's not clear for me (I'm a beginner in extensions) how to get the PHP code from your image.  
  > **username_1**: You can generate this PHP code going to the civicrm/api URL on your site.  
  
  ---
  
  