How To Create A Folder On The Server

Table of contents:

How To Create A Folder On The Server
How To Create A Folder On The Server

Video: How To Create A Folder On The Server

Video: How To Create A Folder On The Server
Video: How to create a shared network folder 2024, November
Anonim

In the process of working with your own site, most often there is a need to create new pages or edit existing ones. The task of creating a new folder has to be solved much less often, but maybe that is why it raises more questions. However, this is done quite simply, no matter what tools you have at your disposal.

How to create a folder on the server
How to create a folder on the server

Instructions

Step 1

If you use any management system to edit the site, then go to the section of the file manager in it. For example, when using the UCOZ system, you need to look for a link to it in the section related to the page editor - you need to click on the "File manager" inscription. In the window that opens, go to the folder where you want to create a new directory and click the "New folder" button in the upper right corner.

Step 2

Type the name of the folder in the corresponding field (in the UCOZ system - “Folder name”), using the letters of the English alphabet, numbers, dashes and underscores. The length of the name is also limited - for example, in the UCOZ system it cannot exceed 15 characters. Then press the "New folder" button again and click the "Close window" link, or start uploading files to the created folder.

Step 3

If you are using any of the FTP clients to make changes to your site, then start by connecting to the FTP server. The program must fill in the required fields for connection related to this site - FTP server address, login and password for FTP connection. After receiving confirmation of successful authorization, go to the folder where you want to create a new folder. Typically, the interface for programs of this kind consists of two panels, one of which displays the directory tree of your computer, and the other is used to navigate the directory tree of the site. After navigating to the required folder, right-click the panel related to your site, and in the drop-down context menu, select "Create folder". This will be enough to create a new directory.

Step 4

If you need to create a folder using a server-side programming language, then most likely this language will be PHP, since it is it that is most often used now in Internet programming. To create a new directory in PHP there is the mkdir function - use it, specifying the full path to the folder being created. In addition to the full path, this function should include a code containing a set of rights that should be assigned to this folder after its creation. For example: <? Php

mkdir ("/ acc_name / site_name / newFolder", 0700);

?>

Recommended: