Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-30-2003, 05:59 PM   PM User | #1
Silver Sun
New Coder

 
Join Date: Sep 2002
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Silver Sun is an unknown quantity at this point
Hey y'all, I have a problem that I cannot remove......

...I have a form, which contains two fields, a name and a password field.

When the form is submitted it writes a file called $name $password .txt

The thing is that the file is created ok, I just cannot delete it via ftp from my host.

Anyone know how to fix it?
Silver Sun is offline   Reply With Quote
Old 01-30-2003, 07:55 PM   PM User | #2
bored
New Coder

 
Join Date: Jan 2003
Location: Tulsa, OK
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
bored is an unknown quantity at this point
Permissions. chmod() the file to 666, and then try again. When you create the file with PHP, the file is owned by the PHP process. You could use the unlink() function to delete it via script if you wanted to.

Woot.
bored is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:35 AM.


Advertisement
Log in to turn off these ads.