At 2003-08-18 16:17 -0400, Dan Anderson wrote:
>I need to grab cookies from a web page and pass those cookies back to
>the web page when needed. I downloaded the cURL program and was playing
>with it, but don't understand how cURL functions correlate into the PHP
>equivalents.
I don't know cURL,
* Thus wrote Dan Anderson ([EMAIL PROTECTED]):
> I need to grab cookies from a web page and pass those cookies back to
> the web page when needed. I downloaded the cURL program and was playing
> with it, but don't understand how cURL functions correlate into the PHP
> equivalents.
>
> How would I
I need to grab cookies from a web page and pass those cookies back to
the web page when needed. I downloaded the cURL program and was playing
with it, but don't understand how cURL functions correlate into the PHP
equivalents.
How would I strip the cookies from a web page, and send cookies?
More
I would suggest for you to take all the complicated stuff out of a simple text
script and try something like this:
<%
setcookie("TestValue","Working",600)
%>
Make sure that nothing is being sent prior to setting the cookie, and see if IE
prompts you...
Good Luck!
[EMAIL PROTECTED] wrote:
> Hi,
as allready stated you need to set the cookie before data is outpued, you can override
this by editing your php.ini
output_buffering = on;
on another note, I would use sessions for all this, youve created a tone of code that
does almost exactly what sessions can do in a matter of a few lines.
t; > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, March 22, 2001 2:23 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] need help with cookies
> >
> >
> > Hi, I am trying to set a cookie and it doesn't work. I am running IE 5.
>
I believe you need to set the cookie
before any other header information is
passed.
-brian
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 22, 2001 2:23 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] need help with cookies
&
Hi, I am trying to set a cookie and it doesn't work. I am running IE 5.
I have IE set to prompt before setting cookies but I never get a prompt.
Here is my code - basically, if someone logs in, it is to set a cookie.
What am I missing? Kris
if($success==1){
$loginid="$id";
8 matches
Mail list logo