Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to add a cookie?

Answers were Sorted based on User's Feedback



How to add a cookie?..

Answer / rupali

bool setcookie ( string $name [, string $value [, int
$expire [, string $path [, string $domain [, bool $secure
[, bool $httponly ]]]]]] )
for e.g.
<?php
$value = 'something from somewhere';

setcookie("TestCookie", $value);
setcookie("TestCookie", $value, time()+3600); /* expire in
1 hour */
setcookie("TestCookie", $value, time()
+3600, "/~rasmus/", ".example.com", 1);
?>

Is This Answer Correct ?    7 Yes 0 No

How to add a cookie?..

Answer / lamp

How to add a cookie,means what exactly...plz explain

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More PHP Interview Questions

How can we convert the time zones using PHP?

1 Answers  


What is prepared statement in php?

0 Answers  


how to change the div background color on every refresh..guys can u help me out.

3 Answers  


How do I check if a given variable is empty?

0 Answers  


Is java is better than php?

0 Answers  


How many types of functions are there in php?

0 Answers  


Is it possible to get the screen resolution and like with php?

1 Answers  


What are the difference between array_keys() and array_key_exists() in php?

0 Answers  


What is the importance of "action" attribute in a html form?

0 Answers  


What is difference between put and post method in http?

0 Answers  


hi here one small project given to me in an software company during interview. one page that would count down till 9pm (today means every day before 9pm it would count down to zero) this means there will show how many mins. sec. and hours are left till 9pm so it would be like 1 hr 20 mins 23 sec. then it up count down every sec and then show 1hr 20mins 22sec left till 9pm once the count down reaches zero it would show a flesh player video will autostart. the flash player will be from http://www.longtailvideo.com/players/jw-flv-player/ (the player is embed into the page.) that same page will track to see if they have already seen the video using php sessions then if they go back to that page it would redirect them to a new page saying that they have already wathed the video.

1 Answers  


Is it possible to connect to a Microsoft Access database without a DSN? If so, how??

3 Answers  


Categories