Yes, the project is a small stock ticker. The user creates an account, and
selects their own stocks, their login name is stored in a cookie, so to view
their own custom stock when they return to the page the script needs to read
the cookie and pull up the users information.
When I try to run the php script with a virtual SSI call, it executes just
fine, but does not read the cookie variables. However, I know the cookies
are being set because there is another portion of the script that is just a
straight php page, and that page reads the cookie variables just fine. So
they are getting set, but for some strange reason when the script is parsed
as a SSI virtual include, it does not take the time to read the cookie and
set the variables.
Any idea why? This just seems weird to me, I'm guessing that the SSI call
has something to do with it, but I don't understand why it would execute
everything else without a hitch, but fail to read the cookie vars.
-----Original Message-----
From: DanO [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 4:07 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Error with Cookies and SSI
you could try exec cgi, but i can't say definitively that that will work.
am i correct in interpreting that your php code is dependent upon READING
cookies?
DanO
-----Original Message-----
From: Ben Wiechman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 2:03 PM
To: 'DanO'
Subject: RE: [PHP] Error with Cookies and SSI
The cookies do get set, but they are not read in and set when the script is
executed as a SSI virtual include. Is there some way to force read the
cookies? Or should I maybe try using something besides a virtual include
with my SSI? i.e. soemthing along the lines of the exec-cgi SSI call?
Ben
-----Original Message-----
From: DanO [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 3:03 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Error with Cookies and SSI
sounds like your php script cannot write to the header, which means you'll
have to set cookies (gasp!) client-side.
there are some handy javascript cookie libraries that can make this much
easier on you.
such as:
http://hotwired.lycos.com/webmonkey/javascript/code_library/wm_ckie_lib/
fear not the javascript. it is your friend.
DanO
-----Original Message-----
From: Ben Wiechman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 12:57 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Error with Cookies and SSI
I am having a problem getting a php script to read a cookie that should be
set.
I have to incorporate the output of a php script into an existing page that
uses SSI to do a virtual include of my php script.
i.e. <!--#include virtual="script.php" --> Problem is, when I do this, the
script does not set the cookie variables. If I just run the script the
cookies are set, and read, correctly, but when I include the PHP script with
the SSI call it does not read the cookie variables for some reason.
Does anyone know a work-around for this? And using a std php script is not
an option, I need a way to get this to work using SSI.
Any help would be greatly appreciated.
Thanks in advance, Ben
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]