creating cookies with php
|
|
set.php
|
|
<?php
|
|
setcookie('key','value', time()+10);
|
cookies like an array
|
<?php
|
third op
|
setcookie('username','rafique', time()+10);
|
it will expirae in 10 seconds
|
?>
|
ist value is like left side variable and it takes the value
which is like rright side, if u call key or variable it displays name
|
third one is seconds , how much time it wil display
|
|
view.php
|
|
<?php
|
|
echo $_COOKIE['username'];
|
display the data upto 10 seconds only after set the page
|
?>
|
|
unset.pj
|
|
setcookie('username', 'rafique', time()-10);
|
in 30 seconds cookies will delete
|
<?php
|
|
?>
|
|
| setcookie |
| $_COOKIE['username']; |
| setcookie |
| how to save the some matter upto some time |
| how to show the matter which is saved in browser |
| how to remove the cookes ussing set cookies only |
fetch the data like $.get('http://www.guardian.co.uk/culture/2012/jun/21/jimmy-carr-apologises-error-tax',
ReplyDeletefunction(data) {
$(data).find('meta[name=adescription]').attr("content");
});
get the meta tags and make youtubetofb videos
get the tags and youtube id using substr, and get the bigger image, use this fb:video, creat an html file with this and show that to user