i Got questions.
how to set a cookie,
* like even if you close a browser its still there,
* and logs you in if you open the page.
how to delete an image from a server..
thanks in advance.
i Got questions.
how to set a cookie,
* like even if you close a browser its still there,
* and logs you in if you open the page.
how to delete an image from a server..
thanks in advance.
setting a cookie.
http://www.php.net/manual/en/function.setcookie.php
delete an image/ file.
http://www.php.net/manual/en/function.unlink.php
ok.... thanks.
pasingit beh..nko error na "internal service error" unsaon na?wla man error sa code..
check your services (apache,mysql or php) kong ga run ba sila og taron.. you can either try to restart it
@silent-kill...mo run man..kan phpinfo() na statement ko e.use kay mo dsplay man..i think sa apache cguro ni..jst don't know how to troubleshoot it for now..
$pic=sample.jpg
// pag delete sa image nga naa sa server
chdir($_SERVER['DOCUMENT_ROOT']);
unlink('images/'.$pic);
//------------------setting a cookie
$value=1;
$imong_site="www.istorya.net";
setcookie("samplecookie", $value, time()+3600, '/' ,$imong_site);
//to check the cookie
if($_COOKIE['samplecookie']=="1"){
echo "Naay Cookie!";
}
else{
"Walay cookie";
}
i hope this will help
wla man ko g.change sa apache!!and gkan pani sa cd na g.use nako before..whew..
hi tjyrna.. pls try to post the script you where trying to run..
also pls try to be more descriptive.. kong kanosa ra siya mahitabo.. like.. kong ni run ka og image processing script.. or db script or mo error ba gihapon siya bisan .html ra imng gi load?... or kong maka load ba siya og lain pages normally etc..
Similar Threads |
|