Re: [PHP] Help debugging a file upload on IIS



On Mon, 2008-12-29 at 13:29 -0800, Brian Dunning wrote:
The one thing I was doing was:
move_uploaded_file($_FILES['upload_file']['tmp_name'], $new_path);

but nothing was happening, no new file appearing where it was supposed
to, and no error returned, left me scratching my head. (Later the same
script logs the upload to MySQL using data from $_FILES and that part
works fine.)

On Dec 29, 2008, at 12:43 PM, Ashley Sheridan wrote:

Sorry, that's a silly question, ignore that. As far as I'm aware, IIS
removes the files once the script has run it's course; so unless
you're
doing something with the file in your code, you won't really see it.



Does the script have permission to write the file to the new directory?
What value is returned from attempting this? Just assign that
move_uploaded_file line to a variable and print the output.


Ash
www.ashleysheridan.co.uk

.



Relevant Pages

  • Re: e.onmousedown= funciton () { return !1; };
    ... likely that every document will be created with head and body elements ... immediately available for any a script that exists in a valid "normal" ... without waiting for onload or "ready" function. ... when higher level code wants to use that low-level code, ...
    (comp.lang.javascript)
  • Re: Is there a correct place to put javascript within a html file?
    ... The HTML specification tells you where script elements are permitted: ... script files have downloaded and if they're all in the head ... ... like the sensible thing to do; at least there's a reason for it. ... javascript is positioned just before the then the various html ...
    (comp.lang.javascript)
  • Re: my if comands are still not working. please help
    ... but you're over my head. ... function showorders() { ... alert("start of show orders script"); ... the file is not a htm, html file it is a .js file that is called from a htm file that has ...
    (microsoft.public.frontpage.programming)
  • Re: e.onmousedown= funciton () { return !1; };
    ... likely that every document will be created with head and body elements ... The window, document, document.documentElement properties are immediately available for any a script that exists in a valid "normal" page. ... Not including the scripts in the head also allows the script access to document.body, without waiting for onload or "ready" function. ... However, requiring low level code to exist in the body can cause inconvenience when higher level code wants to use that low-level code, but that higher level code wants to exist in the head ). ...
    (comp.lang.javascript)
  • Remembering (was Re: Woody Allen)
    ... "Well," the rabbi said, "I got new glasses today. ... So when the Aron Kodesh was opened, by tilting my head, I ... Then when I started to read, I saw small script and large ... The members of the board, many of whom wore bifocals, nodded. ...
    (rec.humor.jewish)