K
kronecker
I create a text file on the server remote.txt ok with the following
code (the last part of it)
$first_name = $FORM{command1};
$last_name = $FORM{command2};
open (example, ">remote.txt") || die ("Could not open file. $!");
print example "$first_name\n$last_name\n";
close (example);
print "Content-type:text/html\r\n\r\n";
This bit causes errors...... chmod
0777,'remote.txt'; ......................................
print "<html>";
print "<head>";
print "<title> Processed</title>";
print "</head>";
print "<body>";
print "<h2>Commands $first_name $last_name - Sent to text file</h2>";
print "</body>";
print "</html>";
The problem is that I need to be able to delete this file remotely
using FTP and the script generate a new version every now and then. I
need teh script to make the file deleteable. How do I do this?
I tried chmod 0777,'remote.txt' and it spews out errors.
K.
code (the last part of it)
$first_name = $FORM{command1};
$last_name = $FORM{command2};
open (example, ">remote.txt") || die ("Could not open file. $!");
print example "$first_name\n$last_name\n";
close (example);
print "Content-type:text/html\r\n\r\n";
This bit causes errors...... chmod
0777,'remote.txt'; ......................................
print "<html>";
print "<head>";
print "<title> Processed</title>";
print "</head>";
print "<body>";
print "<h2>Commands $first_name $last_name - Sent to text file</h2>";
print "</body>";
print "</html>";
The problem is that I need to be able to delete this file remotely
using FTP and the script generate a new version every now and then. I
need teh script to make the file deleteable. How do I do this?
I tried chmod 0777,'remote.txt' and it spews out errors.
K.