# Mkdir or ftp\_mkdir?

**URL:** <https://forum.kirupa.com/t/mkdir-or-ftp-mkdir/69679>\
**Category:** Uncategorized\
**Created:** [November 6, 2004, 8:36pm UTC](https://forum.kirupa.com/t/mkdir-or-ftp-mkdir/69679 "2004-11-06T20:36:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maniaci](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Maniaci](https://forum.kirupa.com/u/Maniaci)\
**Post date:** [November 6, 2004, 8:36pm UTC](https://forum.kirupa.com/t/mkdir-or-ftp-mkdir/69679/1 "2004-11-06T20:36:39Z")

</div>

I have a form that asks for a name for a folder to create. I am using something like mkdir($folder\_name) which works, but only creates a folder in the directory the parent file is located in. I need to make a folder in a directory that is in a previous directory (if that made any sense).

I have tried to use chdir(), but that will only go further into a folder, not backwards (or i do not know how to go backwards).

I also tried ftp\_chdir / ftp\_mkdir , but i cannot get that to work correctly.

Does anyone know either an easier way to create a folder, or have any idea on what my problem is? Thanks.
