Hello Neil,
I want to really thank you. You cracked my month long problem for me.

The destination path was supposed to be the absolute path: /home/ayserve/public_html/fu/

It is working fine now.

Neil Smth wrote:
At 18:44 16/10/2003 +0000, you wrote:

From: Ruprecht Helms <[EMAIL PROTECTED]>
To: Bunmi Akinmboni <[EMAIL PROTECTED]>
Content-Type: text/plain
Mime-Version: 1.0
Date: 16 Oct 2003 15:12:38 +0200
Content-Transfer-Encoding: 7bit
Subject: Re: [PHP-DB] Help with file upload

On Thu, 2003-10-16 at 09:58, Bunmi Akinmboni wrote:
> Thanks Neil. My ultimate aim to update my database with the details of
> the upload after it uploads successfully, but I need to solve this
> problem first.
> The folder already has permission 777.

Re your response below : I missed the leading dot, and so I may have not been concise enough with my answer so let me try again :

You are trying to move a file to ./ayservenet.jpg .... Now, as far as the OS can determine, this file is not allowed to be placed there (even though its the same directory) because you probably have the open_basedir restriction in place on your server (quite rightly, for security reasons).

What you need to do let me reiterate, is to ensure the directory you are copying to has the correct permissions (you say this is tru) *and* you name the path as an absolute path name within the Linux filesystem structure.

My ISP does the same thing, and you can only upload files to an absolute path which is at or below your html root directory. In your case this is probably /home/ayserve/public_html/fu/

Please do not use relative paths for this as it will probably not work, as you have found.

Hope that helps - Cheers, Neil.

This is the reply I got:

Warning: move_uploaded_file(./ayservenet.jpg): failed to open stream: Permission denied in /home/ayserve/public_html/fu/fuprocess.php on line 6

Warning: move_uploaded_file(): Unable to move '/tmp/phpfJyDSw' to './ayservenet.jpg' in /home/ayserve/public_html/fu/fuprocess.php on line 6
ayservenet.jpg DONE Array ( [ufile1] => Array ( [name] => ayservenet.jpg [type] => image/pjpeg [tmp_name] => /tmp/phpfJyDSw [error] => 0 [size] => 3030 ) )

I had experienced this also on Windows IIS now it is also coming on my Linux yet I have full access to the two servers.


-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to