I use print_r and it says <b>Fatal error</b>: Cannot use [] for reading in
<b>C:\wamp\wwwdeletefile.php</b> on line <b>9</b><br /> and I use var_dump
and it says null, and the data It is supossed to be an string this.get("id")
and for the existence it says <br />
<b>Notice</b>:  Undefined index: file in <b>C:\wamp\www\deletefile.php</b>
on line <b>7</b><br />
<br />
<b>Notice</b>:  Undefined index: archivo in
<b>C:\wamp\www\deletefile.php</b> on line <b>10</b><br />
NULL
<br />
<b>Warning</b>:  unlink(C:\wamp\www\uploadedfiles) [<a
href='function.unlink'>function.unlink</a>]: Permission denied in
<b>C:\wamp\www\deletefile.php</b> on line <b>20</b><br />
Error file not deleted

On Mon, Aug 1, 2011 at 9:45 AM, Philip Thompson <[email protected]>wrote:

> There are several things you can do to troubleshoot this issue.
>
> 1. Print out the contents of _POST on the PHP side: print_r($_POST) or
> print_r($_REQUEST); Look in firebug to see the results
> 2. Is the "data" option in the Request.send() method supposed to be a
> string and not an object? (as a side note, I personally think an object
> should be allowed)
> 3. Check for the file's existence before trying to delete. if (file_exists
> ($file)) { if (!unlink($file)) { echo "uh oh!";  } } You also may consider
> suppressing the default warning/error messages that PHP emits by using the @
> in front of a function call.
>
> Hope something here helps.
>
> ~Philip
>
>
> On Mon, Aug 1, 2011 at 9:13 AM, Jorge Amaury Vega Zavala <
> [email protected]> wrote:
>
>> No I dont understand where I have to look, but in firebug in post its says
>> files=1294861647_-desktop.png, but $_POST does not take the file. Thanks
>> for answering, I dont know what can be the problem
>>
>>
>> On Mon, Aug 1, 2011 at 9:07 AM, Sanford Whiteman <
>> [email protected]> wrote:
>>
>>> I'm saying you are putting the data on the wire, so this isn't a MooTools
>>> problem. Please check your console for the request trace and you will see
>>> the URL-encoded data. Do you understand where I'm telling you to look?
>>
>>
> --
> http://lonestarlightandsound.com/
>

Reply via email to