473,396 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Unable to create folder

114 100+
Dear Sir,

I have written a php script to create folder :

<?php
$targetpath = $_SERVER['DOCUMENT_ROOT'] . "/reports/";
$target = $targetpath . basename( $_FILES['uploadedfile']['name']);

mkdir($targetpath.$vName,0700);
?>

when I run this script I get this error :
Warning: mkdir(/home/content/O/n/l/Onlin7r7sbiz/html/reports/): File exists in /home/content/O/n/l/Onlin7r7sbiz/html/save.php on line 65

Please tell me the reason.

Thanks
Deepak
Oct 25 '06 #1
1 3961
raji20
28
Dear Sir,

I have written a php script to create folder :

<?php
$targetpath = $_SERVER['DOCUMENT_ROOT'] . "/reports/";
$target = $targetpath . basename( $_FILES['uploadedfile']['name']);

mkdir($targetpath.$vName,0700);
?>

when I run this script I get this error :
Warning: mkdir(/home/content/O/n/l/Onlin7r7sbiz/html/reports/): File exists in /home/content/O/n/l/Onlin7r7sbiz/html/save.php on line 65

Please tell me the reason.

Thanks
Deepak
the name of file/folder which you are trying to create already exists

This is the code which i have used to create a dir, it works for me

$targetpath = "/www/htdocs/phpdocs/Practice/";
$target = $targetpath . "dirToBeCreated";
mkdir($target,0777);
Oct 26 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: lawrence | last post by:
I'm probably missing something obvious, but I'm unable to write a file with this function. I've used my FTP software to set permissions to 777 on all the files in question. I've tried r, r+, w, and...
5
by: Lucas Ponzo | last post by:
I have the following directory structure: \images \other_images\images There is duplicate names, but at diferent levels. But the Visual Studio Setup Project emits the error: Unable to...
5
by: David Webb | last post by:
The problem started when the Working Folder for a project was somehow set to the folder of another project. I set the correct working folder in VSS and deleted the .vbproj files that had been...
4
by: Brad | last post by:
Error when opening a solution with a web services project in it: "Unable to open the Web project 'myproj'. The file path 'c:\code\myservice' does not correspond to the URL...
0
by: George Harig | last post by:
While building my deployment project I receive the following error Unable to build folder named "FOLDER_NAME". My projects compiles fine, the deployment project dose not. Are there any rules...
1
by: soni29 | last post by:
hi, i'm running windows 2000 and Internet Information Services 5.0, that's the version that the help file for iis shows, i'm using Visual Studio ..Net 2002 (version 7) but whenever i try to create...
2
by: TM | last post by:
When I run an ASP.Net application I am getting the following error: "Error while trying to run project: Unable to start debugging on the web server. The project is not configured to be debugged."...
3
by: hussein | last post by:
'm not bale to run my projec on the 2000 server, he error was: error while trying to run project: unable to start debugging on the web server.erver side error occurred on sending debug HTTP request...
8
by: Rob | last post by:
I asked this question before but having had no response i'll try to simplify the description and hope someone can help this time. Basically my problem is that i'm getting the error "Unable to...
3
by: kevin.koehne | last post by:
I'm having a problem building a solution in VS2003 (.NET 1.1) on Windows XP. I get the error: "Unable to open Web project 'projname'. The file path 'C:\app-1.6.0.600\solution\projname' does not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.