[PHP] php-general-unsubscribe@lists.php.net

2005-03-02 Thread Raúl Castro Marín
- Original Message - 
From: "yangshiqi" <[EMAIL PROTECTED]>
To: "'Tom Whitbread'" <[EMAIL PROTECTED]>; "'php-general lists'" 

Sent: Wednesday, March 02, 2005 4:36 AM
Subject: RE: [PHP] Setting cookie on first visit


When the user first visits your site, there is no skin in your cookie. 
Then
you can give a default value. And after the user modifies his/her profile,
you can set it to the cookie. So I don't think it is a problem of setting
cookie.

Best regards,
Yang Shiqi

-Original Message-
From: Tom Whitbread [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 02, 2005 5:18 PM
To: php-general lists
Subject: [PHP] Setting cookie on first visit
I am using a cookie to detect what skin a user wants to display. The
problem is if a user visits the site for the first time the cookie is
not being set. I am detecting if its being set or not with
if(!isset($_COOKIE['skin'])){ ... }
It's not setting the cookie untill a user refreshes the page once. How
can I ensure it's set when it hasnt been set before?
--
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 
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] php-general-unsubscribe@lists.php.net

2002-12-19 Thread Kris

- Original Message -
From: "Quentin Bennett" <[EMAIL PROTECTED]>
To: "PHP GENERAL LIST" <[EMAIL PROTECTED]>
Sent: Friday, December 20, 2002 10:23 AM
Subject: RE: [PHP] Problem with sessions.


Hi,

Is your 'other server' identical (Web Server, PHP Version, register_globals
setting)?

Quentin

-Original Message-
From: Mike Hillyer [mailto:[EMAIL PROTECTED]]
Sent: Friday, 20 December 2002 12:43 p.m.
To: PHP GENERAL LIST
Subject: [PHP] Problem with sessions.


Hello All;

Please forgive me if I am repeating an often asked question, but I am having
a problem with sessions. I simply cannot get them to work.

The sample code I provide works on another server perfectly, this is the
first page:

Session variables set!";
 echo "go to next page";

?>

When called, the following file arrives in /tmp:

sess_f9c5e87b35ae66eac64a9a346321b269

name|s:5:"hilde";pass|s:10:"mypassword";



So obviously the session file is being created.
However, when I go to page2.php?PHPSESSID=f9c5e87b35ae66eac64a9a346321b269
Which has this code:

The password of $name is $pass ";

?>

I get "The Password of  is "

As a response. Both pages work perfectly on another server, so I am having
trouble finding the problem, especially since the session file is actually
created in /tmp

My PHP.ini file is standard to a RedHat RPM install, but I will include it
as an attachment.

Any help would be greatly appreciated!

Mike Hillyer

The information contained in this email is privileged and confidential and
intended for the addressee only. If you are not the intended recipient, you
are asked to respect that confidentiality and not disclose, copy or make use
of its contents. If received in error you are asked to destroy this email
and contact the sender immediately. Your assistance is appreciated.

--
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




[PHP] php-general-unsubscribe@lists.php.net

2002-02-20 Thread wkelleher

[EMAIL PROTECTED]

> -Original Message-
> From: Tobias Wiersch [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 20, 2002 8:04 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] xbithack causes parsing of html-files by PHP 
> instead SSI
> 
> 
> Hi!
> 
> Problem: see subject
> I posted the problem to php's bug-db but <[EMAIL PROTECTED]> answered:
> 
> "The bug system is not the appropriate forum for asking support 
> questions. For a list of a range of more [...]
> With xbit hack, you are supposed to parse by PHP."
> 
> BUT: On our old server-install (PHP 4.0.4pl1, Apache 1.3.19 xbithack 
> on), all .html-files with xbit were SSI-parsed.
> Now, on our new server install (PHP 4.1.1, Apache 1.3.20 
> xbithack on), 
> all .html-files with xbit are PHP-parsed!
> 
> In Apache's documentation one can read that xbithack should 
> enable SSI 
> (and not PHP). If I follow <[EMAIL PROTECTED]>'s answer, it should be 
> normal that the files are PHP-parsed.
> 
> First question: If this behaviour is normal, why didn't I 
> found anything 
> about it in the PHP-docs? Have I overread that part?
> Second question: If this behaviour is normal, why were the 
> files on our 
> old server SSI-parsed and now PHP-parsed? How can I change this 
> behaviour (to enable SSI-parsing)?
> 
> Thanks for your help.
> 
> Tobias Wiersch from germany
> 
> 
> -- 
> 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