Re: [PHP-DB] Cookies with databases

2004-10-22 Thread Bastien Koert
);; Bastien From: Jason T. Davidson [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Cookies with databases Date: Thu, 21 Oct 2004 22:38:02 -0500 Bastien- I took out the quotes (as I noticed after the fact that I didn't need them) however this did not help

Re: [PHP-DB] Cookies with databases

2004-10-21 Thread Jason T. Davidson
] Subject: [PHP-DB] Cookies with databases Date: Wed, 20 Oct 2004 19:54:54 -0500 I am trying to set a cookie with a value from a database. Here is my script: ? //Setting Cookies setcookie ('CIDcookie', $cid); setcookie ('USERcookie', $user); ? ? //Database connection require (../../db_connect.php

Re: [PHP-DB] Cookies with databases

2004-10-21 Thread Jason T. Davidson
/function.setcookie.php that url should help you From: Jason T. Davidson [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP-DB] Cookies with databases Date: Wed, 20 Oct 2004 19:54:54 -0500 MIME-Version: 1.0 Received: from pb1.pair.com ([216.92.131.4]) by mc8-f21

[PHP-DB] Cookies with databases

2004-10-20 Thread Jason T. Davidson
I am trying to set a cookie with a value from a database. Here is my script: ? //Setting Cookies setcookie ('CIDcookie', $cid); setcookie ('USERcookie', $user); ? ? //Database connection require (../../db_connect.php); //Table Name $main_tbl = MAIN ? ? //Check the Password against the CID

RE: [PHP-DB] Cookies with databases

2004-10-20 Thread Tyler Replogle
Yes you need to set the string domain http://us2.php.net/manual/en/function.setcookie.php that url should help you From: Jason T. Davidson [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP-DB] Cookies with databases Date: Wed, 20 Oct 2004 19:54:54 -0500 MIME-Version

[PHP-DB] Cookies ?

2004-02-09 Thread Omelin Morelos
Friends Is there a way to read a cookie's with php , that were generated with javascript ? I am now usign : $xidp=$_COOKIE; print Xidp $xidp; Thank you for your help in advanced. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP-DB] Cookies ?

2004-02-09 Thread Chris Wright
Try using $_COOKIE['cookie_name'] - Original Message - From: Omelin Morelos [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 10, 2004 12:55 AM Subject: [PHP-DB] Cookies ? Friends Is there a way to read a cookie's with php , that were generated with javascript

[PHP-DB] Cookies ?

2004-02-09 Thread Omelin Morelos
-Mensaje original- De: Omelin Morelos [mailto:[EMAIL PROTECTED] Enviado el: Monday, February 09, 2004 4:56 PM Para: [EMAIL PROTECTED] Asunto: Cookies ? Friends Is there a way to read a cookie's with php , that were generated with javascript ? I am now usign : $xidp=$_COOKIE;

RE: [PHP-DB] Cookies ?

2004-02-09 Thread Omelin Morelos
I have already tried it , It's not working. Thanks -Mensaje original- De: Chris Wright [mailto:[EMAIL PROTECTED] Enviado el: Monday, February 09, 2004 5:09 PM Para: Omelin Morelos; [EMAIL PROTECTED] Asunto: Re: [PHP-DB] Cookies ? Try using $_COOKIE['cookie_name'] - Original

RE: [PHP-DB] Cookies ?

2004-02-09 Thread Miles Thompson
; [EMAIL PROTECTED] Asunto: Re: [PHP-DB] Cookies ? Try using $_COOKIE['cookie_name'] - Original Message - From: Omelin Morelos [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 10, 2004 12:55 AM Subject: [PHP-DB] Cookies ? Friends Is there a way to read a cookie's with php

RE: [PHP-DB] Cookies ?

2004-02-09 Thread Omelin Morelos
yes , i tried accesing the cookie from an other page. thank you -Mensaje original- De: Miles Thompson [mailto:[EMAIL PROTECTED] Enviado el: Monday, February 09, 2004 5:37 PM Para: [EMAIL PROTECTED] Asunto: RE: [PHP-DB] Cookies ? Did you refresh the page after setting the cookie? mt

[PHP-DB] Cookies with fopen

2003-12-10 Thread Peter Westergaard
Hi all, Attempting to use PHP to navigate a foreign website, to collect data. This is thus only tangentially related to databases, so I apologize if some feel it's too off-topic. Is there any way to do something similar to fopen() except to also have PHP present a cookie to the foreign

[PHP-DB] cookies

2003-12-04 Thread Maris Kalnins
Let's assume that we have an html page where we plant a call to cookie registering php script. This is done by the following html line which is placed on that page we would like to have cookies stats for: html ... body .. img nocache border=0 width=2 height=1

Re: [PHP-DB] cookies

2003-12-04 Thread Richard Davey
Hello Maris, Thursday, December 4, 2003, 10:40:33 AM, you wrote: MK Could you share with your experience and point out where MK is the problem here. I tried different variations for MK domain parameter in setcookie command but it didnt help It's a security mechanism built into cookies. They

Re: [PHP-DB] cookies

2003-12-04 Thread Maris Kalnins
Right, but in my example HTML line img nocache border=0 width=2 height=1 src=http://www.cookiedomain.com/cookies/cookies.php isnt it refering and setting cookie for www.cookiedomain.com even if this HTML file is on another domain? Maris Richard Davey [EMAIL PROTECTED] wrote in message

Re[2]: [PHP-DB] cookies

2003-12-04 Thread Richard Davey
Hello Maris, Thursday, December 4, 2003, 12:24:10 PM, you wrote: MK img nocache border=0 width=2 height=1 MK src=http://www.cookiedomain.com/cookies/cookies.php MK isnt it refering and setting cookie for www.cookiedomain.com MK even if this HTML file is on another domain? No, because by that

Re: Re[2]: [PHP-DB] cookies

2003-12-04 Thread Maris Kalnins
thanks a lot Richard, now it's completely clear for me! -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Cookies problems

2003-01-22 Thread Paul Burney
on 1/21/03 10:37 PM, Sabina Alejandr Schneider at [EMAIL PROTECTED] appended the following bits to my mbox: Hello people!!! This time I have a problem with cookies. I tried to send a cookie from one page with the function sendcookie(chat,$mail) to a page in another directory, but when I tried

[PHP-DB] Cookies problems

2003-01-21 Thread Sabina Alejandr Schneider
Hello people!!! This time I have a problem with cookies. I tried to send a cookie from one page with the function sendcookie(chat,$mail) to a page in another directory, but when I tried to prine echo($chat) or echo($_COOKIE[chat]) I got notheing. So I put the second page where it was the page

[PHP-DB] cookies multiple pages

2002-07-03 Thread Terry Romine
I'm having a problem with cookies over several pages. I've tried to set them up per the manual, ie: prior to header, and using setcookie('cookiename',$value,time()+3600). The cookie seems to be created fine on the first page, and passed to the second page, but is not maintained when the pages

Re: [PHP-DB] cookies multiple pages

2002-07-03 Thread Jeffrey_N_Dyke
] rails.com cc: Subject: [PHP-DB] cookies multiple pages 07/03/2002 10:45

Re: [PHP-DB] cookies multiple pages

2002-07-03 Thread John Fishworld
Banging my head against a wall with this ! Hope someone can help ! Using MySQL Trying to list cities with events for that month I've correctly (i think) formatted my date to a datetime style for MySQL $month is there chosen one $tosearch = date(Y-$month-d 00:00:00); And then this is my

Re: [PHP-DB] cookies multiple pages

2002-07-03 Thread Terry Romine
1) no, the commented setcookie(user_data,,time()+(3600));// set for 6 weeks *24*7*6 I would move the *24*7*6 back into the (3600) to make it so. I just want to test for an hour 2) so maybe this is a problem with the server? I've been tearing my hair out because neither cookies

Re: [PHP-DB] cookies multiple pages

2002-07-03 Thread Terry Romine
as in if (!isset($_COOKIE['user_data'])) { setcookie(user_data,,time()+(3600));// set for 6 weeks *24*7*6 } ?? nah.. that doesn't work either. It still creates a new cookie. On Wednesday, July 3, 2002, at 10:05 AM, [EMAIL PROTECTED] wrote: Is this a

Re: [PHP-DB] cookies multiple pages

2002-07-03 Thread Khristopher_Klaich
and it should work...but I am not in a position to put non-stable things in production. HTH-- Khris Terry Romine [EMAIL PROTECTED] 07/03/2002 11:32 AM To: [EMAIL PROTECTED] cc: php-db [EMAIL PROTECTED] Subject:Re: [PHP-DB] cookies multiple pages 1

Re: [PHP-DB] cookies multiple pages

2002-07-03 Thread Terry Romine
just checked and the server is running Apache 1.6.19 and PHP 4.0.6 Terry On Wednesday, July 3, 2002, at 09:52 AM, [EMAIL PROTECTED] wrote: Trust me this does not work with php 4.2.1 and apache 2.0.39 from what I am told if you get the cvs for apache 2.0.4 it should but I just down graded

[PHP-DB] cookies and Global variables

2002-06-06 Thread Dib, Walid (MED, Stagiaire GEMS)
Hello 1) I want to use cookies for my site, how can I do it? My browser warn me that headers are already sent!! 2) How can I use the same variables on all pages: for example: $login, I need this variable on all pages to send requests to a MySQL database. Thanks DIB Walid

RE: [PHP-DB] cookies and Global variables

2002-06-06 Thread Gary . Every
, June 06, 2002 2:06 AM To: '[EMAIL PROTECTED]' Subject: [PHP-DB] cookies and Global variables Hello 1) I want to use cookies for my site, how can I do it? My browser warn me that headers are already sent!! 2) How can I use the same variables on all pages: for example: $login, I need

RE: [PHP-DB] Cookies ???

2001-09-19 Thread Rick Emery
He's not trying to set multiple cookies...only one. -Original Message- From: Mark Collin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 18, 2001 4:01 PM To: Rick Emery; 'Jason Caldwell'; [EMAIL PROTECTED] Subject: Re: [PHP-DB] Cookies ??? instead of setting multiple cookies, why

Re: [PHP-DB] Cookies ???

2001-09-18 Thread Mark Collin
PROTECTED] Sent: Monday, September 17, 2001 6:29 PM Subject: RE: [PHP-DB] Cookies ??? Q1. If you simply wish to READ the cookie from each web page, you need do nothing. It is created atuomatically as a variable for you. For instance, a cookie named mycookie is available as $mycookie. Q2

[PHP-DB] Cookies ???

2001-09-17 Thread Jason Caldwell
I've been reading the threads under SETCOOKIE (from php.net) -- some people are saying that setcookie doesn't seem to work for all browsers all of the time. Then some others go into how it seems to actually be the TIME format (unix time vs. GMT time) -- Should I just stick to the HEADER version

Re: [PHP-DB] Cookies ???

2001-09-17 Thread Justin Buist
On Mon, 17 Sep 2001, Jason Caldwell wrote: I've been reading the threads under SETCOOKIE (from php.net) -- some people are saying that setcookie doesn't seem to work for all browsers all of the time. Then some others go into how it seems to actually be the TIME format (unix time vs. GMT

RE: [PHP-DB] Cookies ???

2001-09-17 Thread Rick Emery
11:35 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Cookies ??? I've been reading the threads under SETCOOKIE (from php.net) -- some people are saying that setcookie doesn't seem to work for all browsers all of the time. Then some others go into how it seems to actually be the TIME format (unix time

RE: [PHP-DB] Cookies

2001-06-26 Thread Kristian Duske
this doesnt work :echo $HTTP_COOKIE_VARS[nameCookie] code to set cookie: setcookie(newsLogin,$value,time()+ 3348000); if i ask from the same page I get the values I need but not from a different page... You are asking the wrong variable name. If you set a cookie variable named newsLogin,

[PHP-DB] Cookies

2001-06-25 Thread webmaster
How can I request a persistant cookie from the clients computer (to make a autologin) this doesnt work :echo $HTTP_COOKIE_VARS[nameCookie] code to set cookie: setcookie(newsLogin,$value,time()+ 3348000); if i ask from the same page I get the values I need but not from a different page... thx

[PHP-DB] Cookies

2001-04-25 Thread Tobbe
Hi !! I'm trying to but down 2 variables ($iCount and $sPhone) into a cookie and I used the code example from the php manual from php.net put I only get the error messages (down below) And how do i get back the var in to the page or is there another beter way to save the variables when

Re: [PHP-DB] Cookies

2001-04-25 Thread johndmiller
I believe that the cookie part needs to be sent to the browser before the html. You can put the set cookies any where in the php portion as long as the first thing you send is the cookie stuff setcookie.. html header info... html not html header info. setcookie html.. Hopes

Re: [PHP-DB] Cookies

2001-04-25 Thread Miles Thompson
Tobbe, The cookie information has to the first thing sent to the browser, ahead of everything else. You sometimes get trapped by having a single empty line at the top of your file. The page has to be reloaded for content of cookies to be read by the browser. Netscape has a short article on

[PHP-DB] Cookies Stuff

2001-04-11 Thread Lisa Elita
Hi everybody, I am trying to use cookies in my website and want to ask you these questions: 1. Header("Set-Cookie") or SetCookie() is better? as the setcookie manual comments said that Header("Set-Cookie") is better. 2. Domain=myserver.com OR domain=.myserver.com OR skip the domain argument is

[PHP-DB] cookies, email and passwords

2001-02-25 Thread Matthew Cothier
Sorry for putting three topics in one but they all go together so I thought I would. I am setting up a user login/members area! * Firstly how do I generate a random password? * Then how do I email it to the user? * And now I need to know how to set a cookie with their username and password

RE: [PHP-DB] cookies, email and passwords

2001-02-25 Thread Matt Williams
Sorry for putting three topics in one but they all go together so I thought I would. I am setting up a user login/members area! * Firstly how do I generate a random password? * Then how do I email it to the user? * And now I need to know how to set a cookie with their username

[PHP-DB] cookies, email and passwords

2001-02-25 Thread Matthew Cothier
Thanks! Is there anyone who can actually give me little bits of code that I need cause I am in a rush with this _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP Database Mailing

RE: [PHP-DB] Cookies on a Macintosh

2001-01-21 Thread Noodles Grizzly
2001 2:07 AM To: Noodles Grizzly Subject: Re: [PHP-DB] Cookies on a Macintosh On Thursday, January 18, 2001, at 06:39 PM, Noodles Grizzly wrote: setcookie("randint", "$ran3", time()+9000); snip It sets the cookie, but refuses to use the variable contained within.

Re: [PHP-DB] Cookies on a Macintosh

2001-01-19 Thread Jerry
In article [EMAIL PROTECTED], [EMAIL PROTECTED] ("Noodles Grizzly") wrote: I'm using the setcookie function with the follwing. setcookie("randint", "$ran3", time()+9000); It sets the cookie, but refuses to use the variable contained within. I can't find any reference to it in the books