I wrote a php script to do a simple task for me. It get a file name from user input and create the new file then insert url and email in the newly created file.
I found however that the files created using the script have an attribute of 600. I can not chmod even I logged via FTP.
Any idea? Thank u
the script goes here:
<head>
<title>add</title>
</head>
<body>
<?php
if (($topic!="") and ($mail!="")) {
$domain = fopen($topic, "w");
fwrite($domain, "http:// ".$url."\n");
fwrite($domain, "mail: ".$mail."\n");
fclose($domain);
echo "Thank you<p><br><br><br><br><br>";
} else {
?>
<form action=<? echo($GLOBALS["PHP_SELF"]); ?> method=post>
<table border=0>
<tr><td>ID</td><td><input type=text size=20 name=topic>@.vvat.com</td></tr>
<tr><td>redirect</td><td><input type=text size=20 name=url></tr>
<tr><td>Email</td><td><input type=text size=20 name=mail></tr>
<tr><td colspan=2><div align=right><input type=submit value="submit"></td></tr>
</table>
</form>
<?
}
?>
</body>