How to Make a Queue Folder in PHP

The PHP "mkdir" command lets you dynamically create a folder on your Web server. You create a queue folder dynamically when you want to store user files, create a temporary folder for email or set up a folder where users can store their personal files on your server. The "mkdir" function lets you create the folder and set the permissions for user access.

Instructions

    • 1

      Right-click the PHP file you want to use to create the directory. Click "Open With" and select your PHP editor.

    • 2

      Set up a variable for the directory name. The following code creates a "queue" variable for the directory name:

      $dir = "queue";

    • 3

      Call the "mkdir" directory. Use the following code to create a queue folder for the current user:

      mkdir('/myfolder/'.$queue, 0, true)

      In this example, the queue folder is made in the "myfolder" directory. Change this name to your own or leave it out to create the queue folder in the root directory.

Related Searches:

References

Comments

Related Ads

Featured