vizskywalker 0 Report post Posted June 6, 2005 I know you can use the header() function to send http headers. But I want to know if it is possible to simply echo them, like you can print them in perl. Also, is it possible to create a non-expiring cookie. Most sites that have a remember me option imply set the cookie to expire in a year or two, but it will eventually expire. Is it possible to create a cookie that never expires?~Viz Share this post Link to post Share on other sites
jipman 0 Report post Posted June 6, 2005 1. I think you're looking for a command called headers_list();more info : http://forums.xisto.com/no_longer_exists/2. for expiring issues. you could try to set the expiring variable to something like -10. If this doesn't work, maybe you should follow googles example and set the expiry date to 2038 :D Share this post Link to post Share on other sites
vizskywalker 0 Report post Posted June 6, 2005 Actually, I'm not looking for a function. In perl, you can simply print http headers like so: print "Location: http://astahost.com "Cookie: name = 'name', value = value\n";print "Content-type: text/html\n\n";The double newline character signals the end of the headers. I was wondering if using echo or print in php, the same thing was possible, because when I tried it, nothing happened, and I wondered if a special format was required, like maybe Share this post Link to post Share on other sites
vizskywalker 0 Report post Posted June 6, 2005 Due to vujsa beating over the head with common sense (and a reread of the php manual) I have concluded that the answer to my question is no. Basically I was trying to be able to write header 'Location: http://astahost.com;; instead ofheader('Location: http://astahost.com;; which cannot be done. Thanks anyway.~Viz Share this post Link to post Share on other sites