# Is there a way using PHP cURL I can create a folder in a Wowza Streaming Engine's content folder?

**URL:** <https://community.wowza.com/t/is-there-a-way-using-php-curl-i-can-create-a-folder-in-a-wowza-streaming-engines-content-folder/52534>\
**Category:** Wowza Developer Dojo\
**Created:** [December 21, 2018, 6:49am UTC](https://community.wowza.com/t/is-there-a-way-using-php-curl-i-can-create-a-folder-in-a-wowza-streaming-engines-content-folder/52534 "2018-12-21T06:49:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arnold\_Agaba](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Arnold\_Agaba](https://community.wowza.com/u/Arnold_Agaba)\
**Post date:** [December 21, 2018, 6:49am UTC](https://community.wowza.com/t/is-there-a-way-using-php-curl-i-can-create-a-folder-in-a-wowza-streaming-engines-content-folder/52534/1 "2018-12-21T06:49:08Z")

</div>

I am attempting to create a directory within Wowza Media Servers content folder to place video files in.

I had attempted this using PHP’s mkdir but that has failed and was recommended that I try PHP cURL which I am not very familiar with. Is there a sample script available from which I can see how to create folders with cURL?

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [December 21, 2018, 4:53pm UTC](https://community.wowza.com/t/is-there-a-way-using-php-curl-i-can-create-a-folder-in-a-wowza-streaming-engines-content-folder/52534/2 "2018-12-21T16:53:39Z")

</div>

Hello @Arnold Agaba, yes you can wrap the Streaming Engine REST API in PHP to do several management tasks.

You would first have to download the PHP library from GiHub and make a fee adjustments. This doc will provide you the Step-By Step guide to do this.

[https://www.wowza.com/docs/how-to-query-wowza-rest-api#queryphp](https://www.wowza.com/docs/how-to-query-wowza-rest-api#queryphp)

PHP query examples are available in the tests folder of the Wowza Streaming Engine PHP library download.

I will try to find the example of how to create a new folder for you.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [December 21, 2018, 5:21pm UTC](https://community.wowza.com/t/is-there-a-way-using-php-curl-i-can-create-a-folder-in-a-wowza-streaming-engines-content-folder/52534/3 "2018-12-21T17:21:29Z")

</div>

I did find this link which may provide the sample you are searching for:

[https://stackoverflow.com/questions/49289108/make-new-directory-using-curl-php](https://stackoverflow.com/questions/49289108/make-new-directory-using-curl-php)
