Mkdir no such file or directory

Mkdir no such file or directory

Welcome to LinuxQuestions.org, a friendly and active Linux Community.

You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

Are you new to LinuxQuestions.org? Visit the following links:
Site Howto | Site FAQ | Sitemap | Register Now

If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.

Having a problem logging in? Please visit this page to clear all LQ-related cookies.

Introduction to Linux — A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author’s experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

Im likely doing something very simply wrong, but when I try to make a directory (using a variable of an insert just performed as the last folder name), I get the error:

Warning: mkdir() [function.mkdir]: No such file or directory in /home/blah/blah

of course the directory doesn’t exist.. I’m trying to make it now? confused!

Читайте также:  Kobo что это за программа

7 Answers 7

You have an error in your string:

It happens because you don’t have images/listing-images/rent path existing in your filesystem.

If you want to create the whole path — just pass the 3rd argument as a true :

There is also a chance you’re in a wrong directory currently. If this is the case — you need to change the current dir with chdir() or specify the full path.

Я получаю эту ошибку при попытке использовать функцию mkdir() в PHP.

В основном я создаю sundomain на своем сервере на основе input field в HTML-форме с именем ( inPut ).

теперь я пытаюсь создать каталог в этом поддомене после его создания.

поэтому я использую следующий код:

но я получаю следующую ошибку:

в качестве примечания: субдомен создается успешно. поэтому я знаю, что субдомен 100% существует на моем сервере. Я просто не знаю, почему я получаю эту ошибку!

может кто-нибудь проконсультироваться по этой проблеме?

Ссылка на основную публикацию
Adblock detector