Jump to content

unlink from server problem ?


ParK

Recommended Posts

this is my delete.php

[code]<?php
$doc_root=("../il-uploads/"); //main dir
$file=$_FILES['uploadedfile']['tmp_name'];
$fp = @fopen("../il-uploads/".$file,'r');//open it
@fclose($fp);
@unlink($doc_root.'/'.$file);
?>[/code]

not working :(

any suggestion or help ?
Link to comment
Share on other sites

i want to delete it ... @ should be in there ....

i cant delete any files ?

thats my upload.php name > uploadedfile

and changed delete.php to > [code]@unlink( '../il-uploads/'.$uploadedfile,'r');[/code]

it doesnt delete ...

[url=http://parksdiary.com/?page_id=11]upload somthng  and try to delete it[/url]

you cant delete the file which you have uploaded
Link to comment
Share on other sites

so how can i delete the uploaded by user i mean just user uploaded...

or

how can i write the line deleting the user uploaded file..."../il-uploads/'.$file_will_be_deleted.'";

what is the code  $file_will_be_deleted equals user uploaded file ?

how can i delte a file which is just uploaded by user ?

thanx :)
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.