473,396 Members | 1,853 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.

Pleas Help Me (File Upload and delete)

hi any one help me to .. fix this problem
I am using Windows Xp using Xamp to run my php application

while unlink the file i received one error like Access denied in my
local machine how can i give write permission to this particular
folder.

how can i solve please any one help me to fix.

Jun 2 '08 #1
4 1304
Damodhar schreef:
hi any one help me to .. fix this problem
I am using Windows Xp using Xamp to run my php application

while unlink the file i received one error like Access denied in my
local machine how can i give write permission to this particular
folder.

how can i solve please any one help me to fix.
Hi Damodhar,

PHP is just a process, so it runs as a certain user.
Since you installed Xamp, you run Apache.
I am not very knowledgable when it comes to Xamp (I install all by
hand), but I never saw an Apache with a username other that:
- www-data
- nobody
- apache

Look them up in your useradministration thingy.

Then you know which user runs PHP (via Apache).

Make sure that user has rights on the directory or file you want to unlink.

Regards,
Erwin Moller
Jun 2 '08 #2
Damodhar wrote:
hi any one help me to .. fix this problem
I am using Windows Xp using Xamp to run my php application

while unlink the file i received one error like Access denied in my
local machine how can i give write permission to this particular
folder.

how can i solve please any one help me to fix.

Try a Windows newsgroup. They can help you with Windows settings.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jun 2 '08 #3
Damodhar escribió:
I am using Windows Xp using Xamp to run my php application

while unlink the file i received one error like Access denied in my
local machine how can i give write permission to this particular
folder.
As you've already been told, this is off-topic.

Right click on the folder icon, choose "Properties" and go to the
"Security" tab. Add there the appropriate user and grant the desired
permissions.

What's the user? If you run Apache as a regular program then the user is
*you*. If you run Apache as service then you must find out. Hit Win+R
and type "services.msc". Find "Apache" in the list and double click on
it. The user is specified in the second tab ("Iniciar sesión" in
Spanish, not sure about English versions of Windows). If you're hitting
permission issues I suggest you create a Windows user for Apache and set
it there, rather than using the LOCAL_SYSTEM default user.

--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--
Jun 2 '08 #4
On 2 May, 11:15, "Álvaro G. Vicario"
<alvaroNOSPAMTHA...@demogracia.comwrote:
Damodhar escribió:
I am using Windows Xp using Xamp to run my php application
while unlink the file i received one error like Access denied in my
local machine how can i give write permission to this particular
folder.

As you've already been told, this is off-topic.
... make sure nothing else is using the file. File locking in
MSWindows is very greedy.

C.
Jun 2 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: matt | last post by:
I have compiled some code, some written by me, some compiled from various sources online, and basically i've got a very simple flat file photo gallery. An upload form, to upload the photos and give...
5
by: Dave Smithz | last post by:
Hi There, I have a PHP script that sends an email with attachment and works great when provided the path to the file to send. However this file needs to be on the same server as the script. ...
13
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
4
by: Jim Michaels | last post by:
after a file upload, $_FILES is not populated but $_POST is. what's going on here? $_POST=C $_POST=C $_POST=C $_POST=C:\\www\\jimm\\images\\bg1.jpg $_FILES= $_FILES= $_FILES=
0
by: smanisankar | last post by:
hi, the following is the full page code for uploading a file to server. since i got no idea to overwrite the file, i want delete the file if the file is already uploaded. i got the folder name...
0
by: aris1234 | last post by:
hello.. How to upload image file in page update ..?? i have logic like this : if user upload new image then old image must delete and update DB used new name if user not upload new image then...
1
by: jimmyg123 | last post by:
Hey everyone, I've just written some basic code to upload a pdf file from a browser to a server. It works fine when I use Firefox, however when I use IE after clicking the upload button it returns...
7
Curtis Rutland
by: Curtis Rutland | last post by:
Building A Silverlight (2.0) Multi-File Uploader All source code is C#. VB.NET source is coming soon. Note: This project requires Visual Studio 2008 SP1 or Visual Web Developer 2008 SP1 and...
8
johngault
by: johngault | last post by:
I've been working with this PHP page for several days now and I'm stumped. The page is supposed to allow the user to upload up to six images for their profile. When the user adds an image it (the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.