php-windows Digest 17 Oct 2001 16:34:19 -0000 Issue 809

Topics (messages 9881 through 9891):

Re: setcookie
        9881 by: Robin Bolton
        9883 by: Stanley
        9884 by: Robin Bolton

Re: Array Manipulation?
        9882 by: _lallous

OT
        9885 by: Sichta Daniel

Re: php_mcrypt.dll ?
        9886 by: Paul - Zenith Tech Inc
        9887 by: Paul - Zenith Tech Inc

variables in URL
        9888 by: Tony Leach
        9889 by: Matt Williams
        9891 by: Tony Leach

'copy' failure on Win2000
        9890 by: overlord.daoist-tiger.com

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
The problem is the second parameter has to be in double quotes.

setcookie("TestCookie","$value",time()+3600);

should fix the problem (tested and worked on mine).

> -----Original Message-----
> From: Stanley [mailto:[EMAIL PROTECTED]]
> Sent: October 16, 2001 9:36 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] setcookie
> 
> Hi,
> 
> can anyone tell me what's the correct procedure for setcookie..
> i already tried : setcookie ("TestCookie", $value,time()+3600);
> but it can't work...
> 
> actually, i need to make the authentication page and the page should
have
> expiry function...
> 
> pls help!.. thx!
> 
> Stanley
> 
> 
> 
> --
> PHP Windows 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]


--- End Message ---
--- Begin Message ---
Hi,

thanks for your help!
do you have the problem with IE (ver4 above)?
i tried and cookie didn't capture by IE, but netscape can..
any advise. thx!

actually, i use setcookie in page1.php and will show the value in
page2.php... for authentication

pls help... thx a lot!

Stanley


"Robin Bolton" <[EMAIL PROTECTED]> wrote in message
005101c156d5$0a94c7f0$a60f6c18@razero">news:005101c156d5$0a94c7f0$a60f6c18@razero...
> The problem is the second parameter has to be in double quotes.
>
> setcookie("TestCookie","$value",time()+3600);
>
> should fix the problem (tested and worked on mine).
>
> > -----Original Message-----
> > From: Stanley [mailto:[EMAIL PROTECTED]]
> > Sent: October 16, 2001 9:36 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] setcookie
> >
> > Hi,
> >
> > can anyone tell me what's the correct procedure for setcookie..
> > i already tried : setcookie ("TestCookie", $value,time()+3600);
> > but it can't work...
> >
> > actually, i need to make the authentication page and the page should
> have
> > expiry function...
> >
> > pls help!.. thx!
> >
> > Stanley
> >
> >
> >
> > --
> > PHP Windows 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]
>
>


--- End Message ---
--- Begin Message ---
This seems to be a fairly common question on the mailing list.

The reason that this happens is because PHP doesn't read the cookie from
the users machine until the next reload. This can be solved with
JavaScript.

I would highly suggest that you drop cookies and look into sessions:

- super easy to learn
- they're much easier to deal with
- you don't have to maintain them
- More secure, since they are stored on the server

you can skip cookies completely for most applications. Which means you
can reach a larger audience.

http://www.php.net/manual/en/ref.session.php


> -----Original Message-----
> From: Stanley [mailto:[EMAIL PROTECTED]]
> Sent: October 17, 2001 12:42 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] setcookie
> 
> Hi,
> 
> thanks for your help!
> do you have the problem with IE (ver4 above)?
> i tried and cookie didn't capture by IE, but netscape can..
> any advise. thx!
> 
> actually, i use setcookie in page1.php and will show the value in
> page2.php... for authentication
> 
> pls help... thx a lot!
> 
> Stanley
> 
> 
> "Robin Bolton" <[EMAIL PROTECTED]> wrote in message
> 005101c156d5$0a94c7f0$a60f6c18@razero">news:005101c156d5$0a94c7f0$a60f6c18@razero...
> > The problem is the second parameter has to be in double quotes.
> >
> > setcookie("TestCookie","$value",time()+3600);
> >
> > should fix the problem (tested and worked on mine).
> >
> > > -----Original Message-----
> > > From: Stanley [mailto:[EMAIL PROTECTED]]
> > > Sent: October 16, 2001 9:36 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP-WIN] setcookie
> > >
> > > Hi,
> > >
> > > can anyone tell me what's the correct procedure for setcookie..
> > > i already tried : setcookie ("TestCookie", $value,time()+3600);
> > > but it can't work...
> > >
> > > actually, i need to make the authentication page and the page
should
> > have
> > > expiry function...
> > >
> > > pls help!.. thx!
> > >
> > > Stanley
> > >
> > >
> > >
> > > --
> > > PHP Windows 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 Windows 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]


--- End Message ---
--- Begin Message ---
In your MySql query you can put a condition to exclude the unwated 3
records.
example: select * from tablename where not(id in (1,2,3))

"Mark Sweeney" <[EMAIL PROTECTED]> wrote in message
000e01c1568c$af4aa740$96ab869f@a">news:000e01c1568c$af4aa740$96ab869f@a...
Hey,

Just wondering, I am fetching a load of ids and names from a Mysql database.
However, I want to exclude 3 of the results from this based on their id
numbers. How would I go about this? An array_filter? And if so, what would I
do? sorry for my isiocy, but I am still learning and its pretty urgent for
me to find this out.

Thanks

Mark



--- End Message ---
--- Begin Message ---
Hi,
Can I run Tomcat and PHP under Apache at same time ?
 
Dan
--- End Message ---
--- Begin Message ---
Same thing here.. just dead ends.

Surely there must be somebody who can make this dll, as the need for it
seems to be quite big

Paul

"Brian Gleason" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Good Luck!!!!
>
> I have been looking for about 2 weeks and not found anything yet.....
>
> Couple of leads but only to dead ends....
>
> Brian "Squirre1" Gleason
> Mid-West Gaming League
> http://www.mwgl.org
>
>



--- End Message ---
--- Begin Message ---
I just found this...
http://cvs.php.net/cvs.php/php4/ext/mcrypt/

Anybody know how to compile it??

Thanks,
Paul

"Brian Gleason" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> there is nothing to compile. it is already a dll, but if you try and use
> it it says it is not a valid php dll file....
>
> Brian "Squirre1" Gleason
> Mid-West Gaming League
> http://www.mwgl.org
>
>


--- End Message ---
--- Begin Message ---
How do I construct a URL to pass more than one variable to a php page?

main.php?sectionName=home

works fine for one variable, how do I pass more than one?

Many thanks
Tony

================================
WordWrap Web Development Limited
    t   +44 (0) 131 555 3535
    f   +44 (0) 870 135 3656
    m   +44 (0) 7768 626588
================================
--- End Message ---
--- Begin Message ---
main.php?sectionName=home&variable2=blah&soon=soon


Regards

Matt Williams
[EMAIL PROTECTED] 

>> How do I construct a URL to pass more than one variable to a php page?
> 
> main.php?sectionName=home
> 
> works fine for one variable, how do I pass more than one?
> 

--- End Message ---
--- Begin Message ---
Thanks, I knew it was simple but it isn't easy to find in the php manual !

================================
WordWrap Web Development Limited
    t   +44 (0) 131 555 3535
    f   +44 (0) 870 135 3656
    m   +44 (0) 7768 626588
================================
--- End Message ---
--- Begin Message ---
Hi there,

I'm trying to use 'copy' to copy from a url.  The line I'm using is:

copy( "http://www.lotus.com";, "c:\\temp\\lotus.html");

I am getting the error:
"Warning: Unable to open 'http://www.lotus.com' for reading: Invalid argument in 
D:/webserver/Xitami/webpages/zed/php/Downloader.php on line 6
"

BTW it is not a problem accessing the site.  I get the same problem running PHP 
standalone, and I can access the site from a standalone C++ app with no problem.  


I'd appreciate any suggestions anyone has as to why this doesn't work.

Cheers - Steve
--- End Message ---

Reply via email to