[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Static Keyword

2004-12-30 Thread Paul Higgins
Hi,
I was reading this article:  
http://www.phppatterns.com/index.php/article/articleview/6/1/1/ .

I have a question about it.  If you create this static Singleton object, 
does it persist in memory globally?  Or is it recreated each time a .php 
page is requested?

Thanks
Paul
_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
hthttp://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Caching Database Information

2004-08-25 Thread Paul Higgins
Hello all,
I have some questions regarding caching information with PHP.  I was 
thinking that I might cache all information that won't be changing for long 
periods of time...possibly only once a day or so, instead of querying the 
database for information every time.  My question is:  is there such as 
thing as too much caching?

Can I cache too much and therefore negate the advantages of caching?
Thanks,
Paul
_
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Customer Session Handlers Using MySQL

2004-05-25 Thread Paul Higgins
Hello all,
I found a quick tutorial on how to write a session handler that uses MySQL 
(http://phpbuilder.com/columns/ying2602.php3?page=1 ).

I have a couple of questions regarding this type of session handling:
1)  Does this mean that I cannot use the $_SESSION[] variable to enter 
information into the session?
2)  How can I pass objects from one page to another, if I am using the this 
type of session handler?

Thanks!
Paul
_
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Custom Session Handlers Using MySQL

2004-05-25 Thread Paul Higgins
Sorry for the double post, but that should be Custom not Customer.
Paul

From: Paul Higgins [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] Customer Session Handlers Using MySQL
Date: Tue, 25 May 2004 13:26:32 -0400
Hello all,
I found a quick tutorial on how to write a session handler that uses MySQL 
(http://phpbuilder.com/columns/ying2602.php3?page=1 ).

I have a couple of questions regarding this type of session handling:
1)  Does this mean that I cannot use the $_SESSION[] variable to enter 
information into the session?
2)  How can I pass objects from one page to another, if I am using the this 
type of session handler?

Thanks!
Paul
_
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
Watch LIVE baseball games on your computer with MLB.TV, included with MSN 
Premium! http://join.msn.click-url.com/go/onm00200439ave/direct/01/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Re: Customer Session Handlers Using MySQL

2004-05-25 Thread Paul Higgins
Would I also have to write the sess_write() and sess_read() functions?  If I 
want to store an array or object, how would I go about doing that?

Paul
From: Jason Barnett [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Customer Session Handlers Using MySQL
Date: Tue, 25 May 2004 12:41:43 -0500
1)  Does this mean that I cannot use the $_SESSION[] variable to enter 
information into the session?
Sure you can.  When you use a custom session handler then setting / getting 
the $_SESSION[] variables will use sess_write and sess_read in order to 
write/read that information.  I think the only problem with using $_SESSION 
variables is when you use session_register.  So, I just use $_SESSION for 
everything and all is good.

2)  How can I pass objects from one page to another, if I am using the 
this type of session handler?
You'll still persist sessions as you would without the custom session 
handler, e.g. sending the session ID as part of the URL.  The main 
difference is that now you have a custom sess_open function to tell PHP 
where / how to retrieve the session information for that user.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! 
http://join.msn.click-url.com/go/onm00200362ave/direct/01/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP Session Handlers

2004-05-12 Thread Paul Higgins
Hi all,

I just read this tutorial:  
http://www.phpbuilder.com/columns/ying2602.php3

I understand what each function does and what to do in each function.  
However, my question is this:  If I write my own session handling functions, 
do I have to explicity call them myself?  If so, when do I call them?

Thanks

_
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE 
download! http://toolbar.msn.com/go/onm00200413ave/direct/01/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Session Handlers

2004-05-12 Thread Paul Higgins
Ok, thanks.

One other question.  If I use the example I cited earlier, are the session 
values still stored in a flat file?  Or do I have to replace that with 
database entries?

Thanks.


From: John W. Holmes [EMAIL PROTECTED]
Reply-To: John W. Holmes [EMAIL PROTECTED]
To: Paul Higgins 
[EMAIL PROTECTED],[EMAIL PROTECTED]
Subject: Re: [PHP] PHP Session Handlers
Date: Wed, 12 May 2004 15:14:36 -0400

From: Paul Higgins [EMAIL PROTECTED]

 I just read this tutorial:
 http://www.phpbuilder.com/columns/ying2602.php3

 I understand what each function does and what to do in each function.
 However, my question is this:  If I write my own session handling
functions,
 do I have to explicity call them myself?  If so, when do I call them?
No, you'll just use sessions as normal and these functions will be used by
PHP when needed. For instance, at the end of the script when PHP needs to
save the current session variables, it'll call your write() function. You
just use sessions as normal, though.
---John Holmes...

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
Getting married? Find tips, tools and the latest trends at MSN Life Events. 
http://lifeevents.msn.com/category.aspx?cid=married

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: Active PHP Sessions

2004-05-10 Thread Paul Higgins
I'm not sure if this is the right place to post this (if not, I would 
appreciate being directed to the correct place).  I looked into adodb and 
got it running.  However, it mentions the ability to execute a function when 
a session expires.  I would like to know where I write this function.

Thanks!


From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Active PHP Sessions
Date: Fri, 7 May 2004 12:17:32 -0400
adodb also handles sessions in a database
http://phplens.com/lens/adodb/docs-session.htm
- Original Message -
From: Paul Higgins [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, May 07, 2004 9:40 AM
Subject: RE: [PHP] Re: Active PHP Sessions
 I've read stuff like that also.  However, if I choose to do this, I must
 write all the session handling myself, correct?  Are there any scripts
 already out there that do this?

 Thanks


 From: Torsten Roehr [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [PHP] Re: Active PHP Sessions
 Date: Fri, 7 May 2004 15:30:29 +0200
 
 Paul Higgins [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
   Hi all,
  
   I'm on a shared server, and I do not believe that I have access to 
the
 /tmp
   directory where the session files are stored (I believe that is how 
it
 works
   :).  I want to keep track of which sessions are active.  Basically, 
I
 just
   want a list of the active sessions for my site.
  
   How can I do this?
 
 If you use a database as container for your session data you could 
easily
 do
 a SELECT COUNT(*) FROM sessions to get the number of the sessions. 
Using
a
 DB as session container is also more secure on a shared server (at 
least
 that's what I often read about session security).
 
 Regards, Torsten
 
  
   Thanks!
  
   _
   Watch LIVE baseball games on your computer with MLB.TV, included 
with
 MSN
   Premium!
  

http://join.msn.com/?page=features/mlbpgmarket=en-us/go/onm00200439ave/dir
e
 ct/01/
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

 _
 FREE pop-up blocking with the new MSN Toolbar - get it now!
 http://toolbar.msn.com/go/onm00200415ave/direct/01/

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
Mother’s Day is May 9. Make it special with great ideas from the Mother’s 
Day Guide! http://special.msn.com/network/04mothersday.armx

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Active PHP Sessions

2004-05-07 Thread Paul Higgins
Hi all,

I'm on a shared server, and I do not believe that I have access to the /tmp 
directory where the session files are stored (I believe that is how it works 
:).  I want to keep track of which sessions are active.  Basically, I just 
want a list of the active sessions for my site.

How can I do this?

Thanks!

_
Watch LIVE baseball games on your computer with MLB.TV, included with MSN 
Premium! 
http://join.msn.com/?page=features/mlbpgmarket=en-us/go/onm00200439ave/direct/01/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Re: Active PHP Sessions

2004-05-07 Thread Paul Higgins
I've read stuff like that also.  However, if I choose to do this, I must 
write all the session handling myself, correct?  Are there any scripts 
already out there that do this?

Thanks


From: Torsten Roehr [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Active PHP Sessions
Date: Fri, 7 May 2004 15:30:29 +0200
Paul Higgins [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi all,

 I'm on a shared server, and I do not believe that I have access to the
/tmp
 directory where the session files are stored (I believe that is how it
works
 :).  I want to keep track of which sessions are active.  Basically, I 
just
 want a list of the active sessions for my site.

 How can I do this?

If you use a database as container for your session data you could easily 
do
a SELECT COUNT(*) FROM sessions to get the number of the sessions. Using a
DB as session container is also more secure on a shared server (at least
that's what I often read about session security).

Regards, Torsten


 Thanks!

 _
 Watch LIVE baseball games on your computer with MLB.TV, included with 
MSN
 Premium!

http://join.msn.com/?page=features/mlbpgmarket=en-us/go/onm00200439ave/dire
ct/01/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.com/go/onm00200415ave/direct/01/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Active PHP Sessions

2004-05-07 Thread Paul Higgins
An active session would be one that has not expired.  Not necessarily that 
the user is not using the website.  If the user leaves the site, the PHP 
session does not necessarily expire at that time.  I want a list of PHP 
sessions that have not yet expired.

Thanks!

Paul


From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Active PHP Sessions
Date: Fri, 7 May 2004 20:50:18 +0800
On Friday 07 May 2004 20:32, Paul Higgins wrote:

 I'm on a shared server, and I do not believe that I have access to the 
/tmp
 directory where the session files are stored (I believe that is how it
 works

 :).

Of course you have access to it. The webserver needs to be able to READ the
session files that it writes and hence you're also able to access those 
files
with PHP.

 I want to keep track of which sessions are active.  Basically, I just

 want a list of the active sessions for my site.
You would have to define what /you/ mean by an active session.

 How can I do this?

i) There is no way to determine which session files are for your site 
without
actually examining their contents.

ii) PHP does not store any site identification info in the session files.

iii) Hence you need to store a (hopefully) unique string in all your 
sessions
then search for this string in the session files.

--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Phasers locked on target, Captain.
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.com/go/onm00200415ave/direct/01/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP Website Architecture

2004-05-07 Thread Paul Higgins
Hi all,

I have a question regarding website design with PHP.  Is it better to have a 
single PHP script produce different content or have a separate PHP script 
for every action.

For example, if an error occurs, should I have the same PHP script produce 
an error page or have a separate PHP script produce the error page.

I'm asking in reference to performance.

Thanks!

_
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] PHP Website Architecture

2004-05-07 Thread Paul Higgins
Ok, thanks.  I didn't think it would make a difference.  And I agree, 
splitting things up makes things a lot easier.

Thanks!


From: Ryan A [EMAIL PROTECTED]
Reply-To: Ryan A [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: [PHP] PHP Website Architecture
Date: Fri, 7 May 2004 17:51:45 +0200
On 5/7/2004 5:47:47 PM, Jay Blanchard ([EMAIL PROTECTED])
wrote:
 [snip]
 I have a question regarding website design with PHP.  Is it better to
 have a
 single PHP script produce different content or have a separate PHP
 script
 for every action.

 For example, if an error occurs, should I have the same PHP script
 produce
 an error page or have a separate PHP script produce the error page.

 I'm asking in reference to performance.
 [/snip]

If you are thinking only of performance this wont matter at all, but
sometimes for the sake of simplicity and easier management of code it is
good to split files for different tasks.
Nearly all programs can be written in *one* very large .php file but just
thinking of going back in to make changes 3 months down the road would be a
nightmare.
HTH.

Cheers,
-Ryan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.com/go/onm00200415ave/direct/01/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread Paul Higgins
Hi everyone,

I'm trying to create a session with PHP.  I'm using the following code:

?php
   session_start( );
   print( session_id( ) );

   print( 'HTML');
   print( 'BODY' );
   print( '	a href = 
http://www.mysite.com/shopping_cart/Test2.php;Here/a' );
   print( '/BODY' );
   print( '/HTML' );
?

Now, I'm trying to view this site on a WinXP box.  However, the cookies are 
not being saved onto my machine.  I've viewed the site with Mozilla on a 
Linux box, and it works fine.  What could be wrong?  Any help would be 
greatly appreciated.

I read somewhere that PHP had some issues with writing cookies to an NTFS 
box.  Could that have anything to do with it?

Thanks,

Paul

_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread Paul Higgins
When I do:  print_r($_COOKIE); I get the following:
Array ( [PHPSESSID] = 11781ce29c68ca7ef563110f37e43f38 )
Does that mean its setting the Cookie?  I can't see the cookie on my 
computer.  I don't have cookies disabled because I'm getting cookies from 
other sites.  The privacy setting is set to Medium.

Thanks,

Paul


From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Sessions - Cookies Not Saving
Date: Fri, 5 Mar 2004 14:25:53 +1100 (EST)
Are the hosts u looking at the same ? Like is it the very same link ? Check
on the XP box if you have cookies disabled, u can always check if the
session is being stored on the server too, look in /tmp first. Try a 
print_r
($_COOKIE); aswell.

 Hi everyone,

 I'm trying to create a session with PHP.  I'm using the following code:

 ?php
session_start( );

print( session_id( ) );

print( 'HTML');
print( 'BODY' );
print( 'a href =
 http://www.mysite.com/shopping_cart/Test2.php;Here/a' );
print( '/BODY' );
print( '/HTML' );
 ?

 Now, I'm trying to view this site on a WinXP box.  However, the cookies
 are  not being saved onto my machine.  I've viewed the site with
 Mozilla on a  Linux box, and it works fine.  What could be wrong?  Any
 help would be  greatly appreciated.

 I read somewhere that PHP had some issues with writing cookies to an
 NTFS  box.  Could that have anything to do with it?

 Thanks,

 Paul

 _
 FREE pop-up blocking with the new MSN Toolbar – get it now!
 http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread Paul Higgins
AAAGGGH!!

I asked my hosting company where they were stored...on the server...I am so 
mad at myself...all that time wasted.  Thanks for the help though...it was 
much appreciated!

Paul


From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Sessions - Cookies Not Saving
Date: Fri, 5 Mar 2004 14:25:53 +1100 (EST)
Are the hosts u looking at the same ? Like is it the very same link ? Check
on the XP box if you have cookies disabled, u can always check if the
session is being stored on the server too, look in /tmp first. Try a 
print_r
($_COOKIE); aswell.

 Hi everyone,

 I'm trying to create a session with PHP.  I'm using the following code:

 ?php
session_start( );

print( session_id( ) );

print( 'HTML');
print( 'BODY' );
print( 'a href =
 http://www.mysite.com/shopping_cart/Test2.php;Here/a' );
print( '/BODY' );
print( '/HTML' );
 ?

 Now, I'm trying to view this site on a WinXP box.  However, the cookies
 are  not being saved onto my machine.  I've viewed the site with
 Mozilla on a  Linux box, and it works fine.  What could be wrong?  Any
 help would be  greatly appreciated.

 I read somewhere that PHP had some issues with writing cookies to an
 NTFS  box.  Could that have anything to do with it?

 Thanks,

 Paul

 _
 FREE pop-up blocking with the new MSN Toolbar – get it now!
 http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread Paul Higgins
If there is something in $_COOKIE, what does that mean?  That there is a 
cookie somewhere?  Or is it appending the Session ID to the URL?

Paul


From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Sessions - Cookies Not Saving
Date: Fri, 5 Mar 2004 15:24:32 +1100 (EST)
Is it a non default /tmp ? If so it should be in php.ini or u have to set
where it is with an ini_set , hope that helps.
 AAAGGGH!!

 I asked my hosting company where they were stored...on the server...I
 am so  mad at myself...all that time wasted.  Thanks for the help
 though...it was  much appreciated!

 Paul


From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Sessions - Cookies Not Saving
Date: Fri, 5 Mar 2004 14:25:53 +1100 (EST)

Are the hosts u looking at the same ? Like is it the very same link ?
Check on the XP box if you have cookies disabled, u can always check if
the session is being stored on the server too, look in /tmp first. Try
a  print_r
($_COOKIE); aswell.


  Hi everyone,
 
  I'm trying to create a session with PHP.  I'm using the following
  code:
 
  ?php
 session_start( );
 
 print( session_id( ) );
 
 print( 'HTML');
 print( 'BODY' );
 print( '   a href =
  http://www.mysite.com/shopping_cart/Test2.php;Here/a' );
 print( '/BODY' );
 print( '/HTML' );
  ?
 
  Now, I'm trying to view this site on a WinXP box.  However, the
  cookies are  not being saved onto my machine.  I've viewed the site
  with Mozilla on a  Linux box, and it works fine.  What could be
  wrong?  Any help would be  greatly appreciated.
 
  I read somewhere that PHP had some issues with writing cookies to an
  NTFS  box.  Could that have anything to do with it?
 
  Thanks,
 
  Paul
 
  _
  FREE pop-up blocking with the new MSN Toolbar – get it now!
  http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


 _
 FREE pop-up blocking with the new MSN Toolbar – get it now!
 http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
Get a FREE online computer virus scan from McAfee when you click here. 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread Paul Higgins
When I thought about what the compay really told me...it didn't make sense.  
All I know is that that cookie will not save on my WinXP box, but it will 
save on my Linux box.

Are there any special headers that I could use?

Paul


From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Sessions - Cookies Not Saving
Date: Fri, 5 Mar 2004 15:24:32 +1100 (EST)
Is it a non default /tmp ? If so it should be in php.ini or u have to set
where it is with an ini_set , hope that helps.
 AAAGGGH!!

 I asked my hosting company where they were stored...on the server...I
 am so  mad at myself...all that time wasted.  Thanks for the help
 though...it was  much appreciated!

 Paul


From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Sessions - Cookies Not Saving
Date: Fri, 5 Mar 2004 14:25:53 +1100 (EST)

Are the hosts u looking at the same ? Like is it the very same link ?
Check on the XP box if you have cookies disabled, u can always check if
the session is being stored on the server too, look in /tmp first. Try
a  print_r
($_COOKIE); aswell.


  Hi everyone,
 
  I'm trying to create a session with PHP.  I'm using the following
  code:
 
  ?php
 session_start( );
 
 print( session_id( ) );
 
 print( 'HTML');
 print( 'BODY' );
 print( '   a href =
  http://www.mysite.com/shopping_cart/Test2.php;Here/a' );
 print( '/BODY' );
 print( '/HTML' );
  ?
 
  Now, I'm trying to view this site on a WinXP box.  However, the
  cookies are  not being saved onto my machine.  I've viewed the site
  with Mozilla on a  Linux box, and it works fine.  What could be
  wrong?  Any help would be  greatly appreciated.
 
  I read somewhere that PHP had some issues with writing cookies to an
  NTFS  box.  Could that have anything to do with it?
 
  Thanks,
 
  Paul
 
  _
  FREE pop-up blocking with the new MSN Toolbar – get it now!
  http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


 _
 FREE pop-up blocking with the new MSN Toolbar – get it now!
 http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
Get business advice and resources to improve your work life, from bCentral. 
http://special.msn.com/bcentral/loudclear.armx

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP Sessions and Cookies

2004-03-03 Thread Paul Higgins
I have a couple of questions regarding sessions and cookies:

1)  Is there a way to append information to a cookie?  I have read that it 
is, but I have also read many problems.  Is there any particular way to do 
this?  I ask this because cookies are being generated by two different types 
of scripts.  However, they are both on the same site.  So, I have access to 
them, no problem.  I just want to append information to the same cookie.

2)  If I append the PHP session id to every url, will PHP skip the cookies 
completely?  I know this is more insecure.  This option is only important if 
I cannot append information to the cookie.

Thanks,

Paul

_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP Sessions

2004-02-29 Thread Paul Higgins
Hello everyone,

I'm beginning to experiment with PHP sessions.  I was wondering if it is 
possible to place objects into the session?

Thanks,

Paul

_
Take off on a romantic weekend or a family adventure to these great U.S. 
locations. http://special.msn.com/local/hotdestinations.armx

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Cookies

2004-02-29 Thread Paul Higgins
Hi everyone,

I have a bit of a dilemma.  I am using a Miva Shopping Cart, not through any 
desire of mine but my client wants it, at least for now.  However, instead 
using the provided Store front, we want to create our own.  Here is the 
dilemma:

Miva uses cookies, which is fine.  However, the Miva pages would be accessed 
by my PHP pages on the website.  Therefore, the cookies have nowhere to go.  
They are not placed on my client, because in this case my web server is the 
client.  Can I trick the Miva pages to believe that I am in fact accessing a 
cookie?  By possibly using headers?

Thanks,

Paul

_
Take off on a romantic weekend or a family adventure to these great U.S. 
locations. http://special.msn.com/local/hotdestinations.armx

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php