I want to know can i write into a document with fwrite even the file is not beeing in same folder with php file which include fwrite line
for example
my php code is like this:
if (eregi("remote",$u_name) || eregi("admin",$u_name) || eregi("asd",$u_name) || eregi("plevel",$u_name) || eregi("eof",$u_name)) {
echo "<center><b>This nick is forbidden.</b></center>";
} else {
@mysql_query("insert into accounts values('','$u_name','$pass','$name','$anne','Adres','Telefon','$mail','sg','sa','sy','bg','ba','bay','0')");
echo "<center><b>Your Data Has Inserted Into Database.</b></center>";
require("password.php");
$acc_giris = (fopen("./sphereacct.scp","a"));
$p = password_to_crypted($pass);
$yeni_metin = "[$u_name]\r\nPASSWORD=$p\r\nPLEVEL=1\r\nPRIV=00000\r\n \r\n";
fwrite($acc_giris, $yeni_metin);
fclose($acc_giris);
}
this php code is under C:\Program Files\Apache\htdocs
and sphereacct.scp(which is written by fwrite) is under that folder too but i want to put my sphereacct.scp to a different folder like C:\asd\sphereacct.scp can i do that? is it possible?