# Question About PHP mkdir

**URL:** <https://forum.infinityfree.com/t/question-about-php-mkdir/74317>\
**Category:** Hosting Support\
**Created:** [April 3, 2023, 1:08pm UTC](https://forum.infinityfree.com/t/question-about-php-mkdir/74317 "2023-04-03T13:08:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [April 3, 2023, 2:30pm UTC](https://forum.infinityfree.com/t/question-about-php-mkdir/74317/2 "2023-04-03T14:30:56Z")

</div>

A screenshot showing a part of your code and a few keywords as to what it’s supposed to do doesn’t tell me a lot.

What have you done to debug this already? Does the `mkdir` call return true? Did you try [enabling display\_errors](https://forum.infinityfree.com/t/http-error-500/49352) and see if any error messages are displayed?

One key point to pay attention to: the `mkdir` call does not create directories recursively by default. So if you try to create the folder `[...]/htdocs/internallfiles/claimedrewards/$id`, but the folder `[...]/htdocs/internallfiles/claimedrewards` does not exist, the `mkdir` file will just fail, it won’t create the underlying directories for you.

Also, I don’t know if this is intentional or not, but there is a typo in `internallfiles`, notice the double `l`.

---

_[View the full topic](https://forum.infinityfree.com/t/question-about-php-mkdir/74317)._
