Jump to content

PHP FTP Error - Access Denied


kool_samule

Recommended Posts

Hi Chaps,

 

I'm tyring to make a PHP / FTP Application, where users can view/download/upload files in a given FTP site.

 

I can connect to the FTP server, login using the credentials, but when I try to upload, or create a directory, I get:

 

Warning: ftp_mkdir() [function.ftp-mkdir]: www: Access is denied. in C:\webserver\Apache2\htdocs\ftp\test.php on line 16

 

Line 16:

if (ftp_mkdir($conn_id, $dir)) {
echo "successfully created $dir\n";
} else {
echo "There was a problem while creating $dir\n";
}

 

As before, the credentials are correct, but I think there is a security issue somewhere what is blocking access.

 

If anyone has any ideas what this could be, please share the wealth!

 

Cheers

Link to comment
Share on other sites

I have just tested creating a new directory using CuteFTP Pro and I got an error:

Request denied.

Please verify that the file or folder exists and that you have the necessary permissions on the server to perform the requested operation.

Do you know what I should look for to get both FTP Client and my Web App to work correctly?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.