How to remove the fdf file using php code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
maruuma
Forum Newbie
Posts: 4
Joined: Thu Jan 24, 2008 12:50 am

How to remove the fdf file using php code

Post by maruuma »

Hi every body,
I'm new php user.
I used the code belowe to create a file, and I need some help to remove the created file from the server:

***** PLEASE USE THE

Code: Select all

TAG *****[/color]

Code: Select all

if($fp=fopen($fdf_dir.'/'.$fdf_file,'w')){
                fwrite($fp,$fdf_data,strlen($fdf_data));
               // echo $fdf_file,' written successfully.';
            }else{
                die('Unable to create file: '.$fdf_dir.'/'.$fdf_file);
            }
            fclose($fp);
            
        }
    }else{
        echo 'You did not submit a form.';
    }
pleasssssssssssssssse help me :oops:
User avatar
jimthunderbird
Forum Contributor
Posts: 147
Joined: Tue Jul 04, 2006 3:59 am
Location: San Francisco, CA

Re: How to remove the fdf file using php code

Post by jimthunderbird »

check out unlink
maruuma
Forum Newbie
Posts: 4
Joined: Thu Jan 24, 2008 12:50 am

Re: How to remove the fdf file using php code

Post by maruuma »

Thanxxxxxxxxxxxxx alot.
It is work. :D
Post Reply