Yes because you can use them to create website logins, also to store temporary data and much more.
This should help:
In php programming language, you can set cookies like that: setcookie("username","demo");
PHP is very versatile and can be used on a Windows or Unix (Linux) operating system. You should use PHP to interact with databases, process forms, put together web pages that need to be sectioned (such as when you want your menu to be separate from the rest of the page), to process cookies (although JavaScript is sometimes more efficient at this) and for any process that requires you to interact directly with the web server. Since PHP can be integrated directly in the HTML code of your web pages it is very useful for website development.
Creating a webmail application in PHP involves using the related POP3 or IMAP libraries to connect to the mail system and cookies/sessions to save authentication information.
It is easy for coding and useful for many categories of websites.
It depends on your work however Face book and MySpace both are coded in PHP. As PHP is used by a lot of programmers so you'll probably have to make quite useful and advanced programs in order to be in demand.
I highly suggest the following:http://www.joyofbaking.com/ChristmasCookies.html, http://www.christmas-cookies.com/recipes/top25.php, and http://www.foodnetwork.com/12-days-of-cookies/package/index.html.
sitepoint.com has tons of articles on PHP and MySQL I've read this book http://www.sitepoint.com/books/phpmysql1/ "While this is essentially a beginners book, it also covers more advanced topics such as the storage of binary data in MySQL, and cookies and sessions in PHP." The fourth edition arrives in June.
First of all, PHP is server side, Javascript is client side. You cannot detect mouse gestures or any clicks with PHP the same way you cannot read a file or modify it or process a form (unless you use AJAX of course). Also, although I love PHP, and it has useful extensions such as the GD library, PHP is not a very good language. Overall we use javascript and PHP because they are used for two completely different things.
You can use PHP to create a language converter for a website by storing language translations in a database or files, and then using PHP to dynamically switch the content based on the selected language. You can create language files for each language, and then use PHP sessions or cookies to store the user's language preference across pages. Finally, use PHP functions to display the content in the appropriate language based on the user's selection.
To close your MySQL database connection you need to use the mysql_close() function. Please see the example below: <?php mysql_close(); ?> If your connection data is stored in a variable you would close the connection like this instead: <?php mysql_close($db_conn); ?> That's useful for if you're using more than one database connection in a PHP script.
The syntax is : setcookie(name, value, expire, path, domain); And then to return it: echo $_COOKIE["user"]; And a way to view all cookies is: print_r($_COOKIE);