how to use a string to set a cookie using a date format

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
THUGBUDDHA
Forum Newbie
Posts: 2
Joined: Mon Feb 16, 2004 1:32 pm

how to use a string to set a cookie using a date format

Post by THUGBUDDHA »

hi ppl i'm looking for a solution 2 a php exercise:

- for example if this is our page http://eda2.inf.ulusofona.pt/
how should i set a cookie in that adress using (SAT 15 FEB 2004) format for the string "date"..?
and how can i delete that cookie?

need help for a school work...
help neede really quick
User avatar
DuFF
Forum Contributor
Posts: 495
Joined: Tue Jun 24, 2003 7:49 pm
Location: USA

Post by DuFF »

#1. That link doesn't work

#2. We aren't going to do your homework for you

Go crazy:
http://www.php.net/manual/en/function.setcookie.php
http://www.php.net/manual/en/function.date.php
Post Reply