Re: Problems with move_uploaded_file()



I solved the problem.

The site is on an IIS server and I didn't have the proper rights on
the folder to move data to it with php. I fixed this

On Jul 28, 3:33 pm, Sebzzz <seb...@xxxxxxxxx> wrote:
Hi,

I have a form where user can attach a resumé and I want my script to
put it in the cv folder of the server and then send me the link by e-
mail.

However, I tried a lot of combinations with the move_uploaded_file()
but none seem to work.

Here is what it looks like:

move_uploaded_file($_FILES['fichier']['tmp_name'], "cv/" .
$_FILES['fichier']['name']);

But no file in the cv directory, at all. I tried with /cv/, D:\SiteWeb
\Immobiluxe\cv\ (hard path to the directory on the server), I tried
only $_FILES['fichier']['name'] in the hope it would go in the current
directory, still nothing.

I used the getcwd() function to know which directory I'm in and it
tells me "D:\SiteWeb\Immobiluxe"

I also tried /SiteWeb/Immobiluxe/cv

I'm now out of things to try, also the file is in fact uploaded
because a

if (is_uploaded_file($_FILES['fichier']['tmp_name']))

returns true

Really I have no clue

.



Relevant Pages

  • Re: Email enable doc lib
    ... navigate to the public folder and send some posts with attachments to the ... Microsoft CSS Online Newsgroup Support ... I have disabled forms base Athentication from the default V.Smtp server ...
    (microsoft.public.windows.server.sbs)
  • Re: Newbie with a smallbiz2000 installation, check my config?
    ... > Windows creates a profile path under Documents & Settings. ... > a folder with that name already exists (maybe a local user with the ... > server, open the properties for this folder, and ensure that you have ... > you redirect key folders from a user's profile to a location on your ...
    (microsoft.public.backoffice.smallbiz2000)
  • Re: Network shares cannot connect
    ... User Name: SERVER$ ... Regarding the shares accessing problem, I suggest you try following steps ... let's focus on the Users Shared Folder first. ... To check this permission, please click the Advanced button, select ...
    (microsoft.public.windows.server.sbs)
  • Re: Cannot reply/forward in OWA - Page cannot be displayed
    ... I understand all the pictures in the OWA ... Check if OfficeScan is installed on the SBS server. ... Microsoft is providing this information as a convenience to you. ... Locate the Urlcache folder. ...
    (microsoft.public.windows.server.sbs)
  • Re: Disappearing disk space?
    ... I switched off the AV scanning completely last night and the ... Windows Server 2003, Windows 2000, or Windows XP ... %systemroot%\Sysvol folder ... KB309422 - Guidelines for choosing antivirus software to run on the ...
    (microsoft.public.windows.server.sbs)