Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
mkdir
- Page 1
Re: mkdir()
Programming
Software Development
11 Years Ago
by Moschops
`
mkdir
(str.c_str());` perhaps
Re: mkdir()
Programming
Software Development
11 Years Ago
by Ancient Dragon
Another hint:
mkdir
() only works on one directory at a time. You have to call
mkdir
() for each new directory in the directory hierarcy. If you want to create a directory "c:\one\two\three" then call
mkdir
("c:\one"),
mkdir
("c:\one\two") and finally
mkdir
("c:\one\two\three")
mkdir()
Programming
Software Development
11 Years Ago
by necrovore
… per user input, so till now the commnad
mkdir
worked fine:
mkdir
("c:/test"); But now i have…the path.I have run into this problem where
mkdir
is not crating the directories when i pass a…string variable as argumnet. //str=(assigned something after manipulations);
mkdir
(str); Is there another way i can do this?? …
Re: mkdir()
Programming
Software Development
11 Years Ago
by mvmalderen
I know I am nitpicking, but the backslashes need to be doubled in: `
mkdir
("c:\one\two\three")`.
Re: mkdir()
Programming
Software Development
11 Years Ago
by Ancient Dragon
Yes, like this:
mkdir
("c:\\\\one\\\\two\\\\three"). (you actully need four of them to post here because the editor removes two of them. That is escaping the escape character \\)
Re: mkdir()
Programming
Software Development
11 Years Ago
by necrovore
/ worked fine for me actually. strcpy(dirname,"c:/YeSQL/");
mkdir
(dirname);
Re: mkdir
Programming
Software Development
12 Years Ago
by gihanbw
[CODE]#include <sys/stat.h>[/CODE] [URL="http://pubs.opengroup.org/onlinepubs/009695399/functions/
mkdir
.html"]http://pubs.opengroup.org/onlinepubs/009695399/functions/
mkdir
.html[/URL]
mkdir
Programming
Software Development
12 Years Ago
by ben1996123
[code]#include <direct.h> int main(){
mkdir
("C:\\Program Files\\Bacon"); }[/code] Creates a folder in the folder that the .exe file is in, and is called "Program FilesBacon". I think it's obvious what I wanted it to do. Help please? I'm using codeblocks if it matters.
mkdir validation problem
Programming
Web Development
10 Years Ago
by sidim
… or not it's doing that. $dirPath = $_POST['company']; $result =
mkdir
($dirPath, 0755); if ($result == 1) { echo '<br/>'.$dirPath… name and uploaded image, I get this error: Warning:
mkdir
() [function.
mkdir
]: File exists in /home/***/***/***/formulaires/processForm-test.php on line…
mkdir not working
Programming
Web Development
10 Years Ago
by andreiviziru
… folder with the name they supply so i used $user_folder =
mkdir
($_SERVER['HTTP_HOST'].'/user/'.$name, 0755); $name is the name they… supplyed in the form so i get this "Warning:
mkdir
() [function.
mkdir
]: No such file or directory in /home/public_html/registration…
Re: mkdir validation problem
Programming
Web Development
10 Years Ago
by sidim
… = $_POST['company']; $dirExists = is_dir($dirPath); if(!dirExists) $dirExists =
mkdir
($dirPath, 0755); echo '<br/>'.'Le dossier '.$dirPath . (($dirExists…;.'<br/>'; */ // @ ignores fatal PHP error /*@$result =
mkdir
($dirPath, 0755); if ($result == 1) { echo '<br/>…
mkdir() failed (No such file or directory)
Programming
Web Development
16 Years Ago
by dudegio
… fact that i encounter this errors: pls... pls... pls... `Warning:
mkdir
() failed (No such file or directory) in C:\websites\pjs3…-d"); if (!file_exists("$dir1/PJS/$datetoday")) { $dir =
mkdir
("$dir1/PJS/$datetoday", 0700); } $result1 = mysql_query ("select…
Re: mkdir validation problem
Programming
Web Development
10 Years Ago
by mrvijayakumar
$dirPath = $_POST['company']; if(is_dir($dirPath)) { $result =
mkdir
($dirPath, 0755); if ($result == 1) { echo '<br/>'.$dirPath . &…
Re: mkdir not working
Programming
Web Development
10 Years Ago
by andreiviziru
ok it seems not to work so i added $target = 'http://'.$_SERVER['HTTP_HOST'].'/user/'.$name; if (!is_dir($target)) {
mkdir
($target, 0777); } and still doesn't work
mkdir issue
Programming
Web Development
14 Years Ago
by damnpoet
Hi, I trying to create some dirs like this: [CODE]@
mkdir
("photos/$cat/$sku", 0777, true)[/CODE] it creates the first directory with 0777 permissions, but when it creates the second is uses 000 as it's perms, so it fails to create the third. A workaround this please? Thanks, Richard.
mkdir() problem
Programming
Web Development
13 Years Ago
by muralibobby2015
…->getImageUrls($urlArray); $dir="images/".$this->imagesOf; @
mkdir
($dir,0777); for($i=0; $i<count($imgUrlArray); $i…
mkdir problem
Programming
Web Development
11 Years Ago
by mpc123
…($result)) { $dirPath = "' . $row['field1'] . '-' . $row['field2'] . '-info"; $result =
mkdir
($dirPath, 0755); if ($result == 1) { echo $dirPath . " has been…
Re: Perl mkdir command
Programming
Software Development
17 Years Ago
by KevinADC
mkdir
() [url]http://perldoc.perl.org/functions/
mkdir
.html[/url] although using File::Path does have advantages and it's a core module so nothing to install: [url]http://perldoc.perl.org/File/Path.html[/url]
Re: mkdir()
Programming
Software Development
11 Years Ago
by necrovore
its not working. gives me the following error request for member `c_str' in something not a structure or union
Re: mkdir()
Programming
Software Development
11 Years Ago
by necrovore
i guess c_str is for c++, rather than c.
Re: mkdir()
Programming
Software Development
11 Years Ago
by Moschops
Oop. Sorry; my fault! I saw you mention a string and forgot this was C land - I'm so used to a string being a C++ string object and nowadays I never use the term in C. Can you give some sample code that doesn't work?
Re: mkdir()
Programming
Software Development
11 Years Ago
by necrovore
Thanks a lot Ancient Dragon. i was trying to create 3 directories at a time. Had to split it up with a for loop to make 1 directory at a time. Thank you for the inputs, Moschops.
Re: mkdir()
Programming
Software Development
11 Years Ago
by Moschops
> / worked fine for me actually. Because `/` is not a backslash. `\` is a backslash. `/` is far more portable and as a general rule is preferable to using `\\`
Re: mkdir
Programming
Software Development
12 Years Ago
by Taywin
There is a library to be include. Not sure what it is called... Something that has sys/... in it.
php mkdir using virtual dedicated server
Programming
Web Development
12 Years Ago
by DaveyMoyes
… using the users id and the last id
mkdir
("products/$id/$lastid",0777); [/code]…/httpdocs/products/$id/"; $user_name = "ftp_username";
mkdir
("$lastid",0777); chown($dest, $user_name); //////////////////////////////////////////////////////////////////////////////////////////////////////////// $img1…
Re: php mkdir using virtual dedicated server
Programming
Web Development
12 Years Ago
by cwarn23
Try the following: [CODE]
mkdir
("products/$id/$lastid",0777,true);
mkdir
("products",0777);
mkdir
("products/$id",0777);
mkdir
("products/$id/$lastid",0777);[/CODE]
Warning: mkdir() [function.mkdir]: File exists in
Programming
Web Development
14 Years Ago
by SKANK!!!!!
please help meWarning:
mkdir
() [function.
mkdir
]: File exists in..xxxxx/register.php. yeah yeah what is … im at xxxxx/register.php [CODE]$documentroot = $_SERVER['DOCUMENT_ROOT']; if(
mkdir
($documentroot ."/". $username , 0777)) { $profile = $documentroot ."/". $username…
Re: anyone know how to use the mkdir func?
Programming
Software Development
13 Years Ago
by Adak
…the given path name path. Return Value:
mkdir
returns the value 0 if the new directory… ENOENT ³ No such file or directory Portability:
mkdir
is available on UNIX System V, though it …; int main(void) { int status; clrscr(); status =
mkdir
("asdfjklm"); (!status) ? (printf("Directory created…
Re: Warning: mkdir() [function.mkdir]: File exists in
Programming
Web Development
14 Years Ago
by codejoust
You can't create a directory that already exists. If I were you, I would add another if clause the checks if the directory exists. If it does, it can do nothing or delete its contents, if it doesn't create it. For instance, [code=php] $dir = $docroot . '/' . $username; if (!file_exists ( $dir )) {
mkdir
($dir); } [/code]
Re: Perl mkdir command
Programming
Software Development
18 Years Ago
by Comatose
I don't think so, but it's real easy to shell to the prompt, and
mkdir
-p that way, such as: [CODE] system "
mkdir
-p whatever"; [/CODE] or you can just use ticks `
mkdir
-p whatever`; Hope this helps.
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC