Re: [PHP] !!Urgent .. Session Problem

2004-09-05 Thread Nick Wilson

* and then Dre declared
 I'm sorry about the capital letters
 and nop I'm not prepending any files at all

Can I get a look at the file?
-- 
Nick W

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



Re: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread Nick Wilson

* and then Dre declared
 Warning: session_start(): open(/tmp\sess_2984f6d378560d0882f37728dbe1defc,
 O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache
 Group\Apache2\htdocs\ELBA\logme_in.php on line 3

Check your php.ini for session.save_path=
Im not sure where the temp dir is on a windows box, but point it to
there and that should do it I think.

 Warning: session_start(): Cannot send session cookie - headers already sent
 by (output started at C:\Program Files\Apache
 Group\Apache2\htdocs\ELBA\logme_in.php:2) in C:\Program Files\Apache
 Group\Apache2\htdocs\ELBA\logme_in.php on line 3

Check the file for white space, this always gets me too ;-)

Like this
start of file

?php
-

See the new line above the php? that would cause that error. Check your
file for somthing similar...

 the session.save_path parameter in my php.ini file is as follows
 **
 session.save_path = C:/WINDOWS/Temp
 **

Damn! should have read the whole thing b4 replying! hehe you might
have several php.ini's find the right one! on my gentoo box it's in
/etc/apache2/conf/php.ini but there's also one in /etc/php.ini 

-- 
Nick W

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



Re: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread Dre
first of all thanks for ur reply
then ..
there are no white spaces before the ?php in my .php file
and I do have ONLY one php.ini file in the whole system drive (I'm sure of
this)

is there a special format for writing paths in the php.ini file .. as I do
believe that I pointed correctly to the temp folder ???

Nick Wilson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

 * and then Dre declared
  Warning: session_start():
open(/tmp\sess_2984f6d378560d0882f37728dbe1defc,
  O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache
  Group\Apache2\htdocs\ELBA\logme_in.php on line 3

 Check your php.ini for session.save_path=
 Im not sure where the temp dir is on a windows box, but point it to
 there and that should do it I think.

  Warning: session_start(): Cannot send session cookie - headers already
sent
  by (output started at C:\Program Files\Apache
  Group\Apache2\htdocs\ELBA\logme_in.php:2) in C:\Program Files\Apache
  Group\Apache2\htdocs\ELBA\logme_in.php on line 3

 Check the file for white space, this always gets me too ;-)

 Like this
 start of file

 ?php
 -

 See the new line above the php? that would cause that error. Check your
 file for somthing similar...

  the session.save_path parameter in my php.ini file is as follows
  **
  session.save_path = C:/WINDOWS/Temp
  **

 Damn! should have read the whole thing b4 replying! hehe you might
 have several php.ini's find the right one! on my gentoo box it's in
 /etc/apache2/conf/php.ini but there's also one in /etc/php.ini

 -- 
 Nick W

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



Re: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread Nick Wilson

* and then Dre declared
 first of all thanks for ur reply

you're most welcome

 there are no white spaces before the ?php in my .php file
 and I do have ONLY one php.ini file in the whole system drive (I'm sure of
 this)

See the other reply, that sounds like it.. i was unaware of this...

 is there a special format for writing paths in the php.ini file .. as I do
 believe that I pointed correctly to the temp folder ???

Dont know. Try this though
?php
ini_set'session.save_path', 'path/to/tmp'); 
at the top of your script.

It's an inelegant solution, you really need to get it right in the ini
file but it might help you debug it for now...

-- 
Nick W

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



Re: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread M. Sokolewicz
Nick Wilson wrote:
* and then Dre declared
first of all thanks for ur reply

you're most welcome

there are no white spaces before the ?php in my .php file
and I do have ONLY one php.ini file in the whole system drive (I'm sure of
this)

See the other reply, that sounds like it.. i was unaware of this...

is there a special format for writing paths in the php.ini file .. as I do
believe that I pointed correctly to the temp folder ???

Dont know. Try this though
?php
ini_set'session.save_path', 'path/to/tmp'); 
at the top of your script.

It's an inelegant solution, you really need to get it right in the ini
file but it might help you debug it for now...
also, please remember you need to restart your webserver to actually 
have PHP re-read the php.ini file. If you don't, then nothing will 
change in run-time, even though the php.ini file might have changed *a lot*

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


Re: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread Nick Wilson

* and then M. Sokolewicz declared
 also, please remember you need to restart your webserver to actually 
 have PHP re-read the php.ini file. If you don't, then nothing will 
 change in run-time, even though the php.ini file might have changed *a lot*

heheheh! that's most probably it!


-- 
Nick W

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



RE: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread Ford, Mike
On 04 September 2004 10:15, Dre wrote:

   Warning: session_start():
 open(/tmp\sess_2984f6d378560d0882f37728dbe1defc,
   O_RDWR) failed: No such file or directory (2) in C:\Program
   Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3
 
   the session.save_path parameter in my php.ini file is as follows
   **
   session.save_path = C:/WINDOWS/Temp
   **

Believe me, the discrepancy in paths between the error message and your php.ini file 
setting means that PHP is *not* reading that php.ini.  Either it's reading another one 
(which you say not), or it's not finding one at all and just using all its default 
settings.

Best thing to do at this point is probably to run a phpinfo and look to see where PHP 
tells you it's expecting to find php.ini.

(Just in case you're new to that game:  make a script containing

   ?php phpinfo() ?

and request it in your browser.  In the block of information near the top is the path 
of where it's expecting php.ini, labelled something like Configuration file (php.ini) 
Path -- that's where your php.ini should be.)

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning  Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

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



Re: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread Dre
YES .. THAT WAS THE PROBLEM
EVEN IF UR REPLY CAME A LITTLE LATE .. BUT THANKS ..
THE PHP was not reading my php.ini and it was using default settings
Mike Ford [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 On 04 September 2004 10:15, Dre wrote:

Warning: session_start():
  open(/tmp\sess_2984f6d378560d0882f37728dbe1defc,
O_RDWR) failed: No such file or directory (2) in C:\Program
Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3

the session.save_path parameter in my php.ini file is as follows
**
session.save_path = C:/WINDOWS/Temp
**

 Believe me, the discrepancy in paths between the error message and your
php.ini file setting means that PHP is *not* reading that php.ini.  Either
it's reading another one (which you say not), or it's not finding one at all
and just using all its default settings.

 Best thing to do at this point is probably to run a phpinfo and look to
see where PHP tells you it's expecting to find php.ini.

 (Just in case you're new to that game:  make a script containing

?php phpinfo() ?

 and request it in your browser.  In the block of information near the top
is the path of where it's expecting php.ini, labelled something like
Configuration file (php.ini) Path -- that's where your php.ini should be.)

 Cheers!

 Mike

 -
 Mike Ford,  Electronic Information Services Adviser,
 Learning Support Services, Learning  Information Services,
 JG125, James Graham Building, Leeds Metropolitan University,
 Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
 Email: [EMAIL PROTECTED]
 Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211

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



Re: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread M. Sokolewicz
jeez.. stop using so many capital letters... it's considered as 
yelling or shouting when you do that.

Are you prepending any file? (php.ini/.htaccess file.prepend setting)
Dre wrote:
YES .. THAT WAS THE PROBLEM
EVEN IF UR REPLY CAME A LITTLE LATE .. BUT THANKS ..
THE PHP was not reading my php.ini and it was using default settings
Mike Ford [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On 04 September 2004 10:15, Dre wrote:

Warning: session_start():
open(/tmp\sess_2984f6d378560d0882f37728dbe1defc,
O_RDWR) failed: No such file or directory (2) in C:\Program
Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3

the session.save_path parameter in my php.ini file is as follows
**
session.save_path = C:/WINDOWS/Temp
**
Believe me, the discrepancy in paths between the error message and your
php.ini file setting means that PHP is *not* reading that php.ini.  Either
it's reading another one (which you say not), or it's not finding one at all
and just using all its default settings.
Best thing to do at this point is probably to run a phpinfo and look to
see where PHP tells you it's expecting to find php.ini.
(Just in case you're new to that game:  make a script containing
  ?php phpinfo() ?
and request it in your browser.  In the block of information near the top
is the path of where it's expecting php.ini, labelled something like
Configuration file (php.ini) Path -- that's where your php.ini should be.)
Cheers!
Mike
-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning  Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread Dre
I'm sorry about the capital letters
and nop I'm not prepending any files at all


M. Sokolewicz [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 jeez.. stop using so many capital letters... it's considered as
 yelling or shouting when you do that.

 Are you prepending any file? (php.ini/.htaccess file.prepend setting)

 Dre wrote:
  YES .. THAT WAS THE PROBLEM
  EVEN IF UR REPLY CAME A LITTLE LATE .. BUT THANKS ..
  THE PHP was not reading my php.ini and it was using default settings
  Mike Ford [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
 
 On 04 September 2004 10:15, Dre wrote:
 
 
 Warning: session_start():
 
 open(/tmp\sess_2984f6d378560d0882f37728dbe1defc,
 
 O_RDWR) failed: No such file or directory (2) in C:\Program
 Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3
 
 the session.save_path parameter in my php.ini file is as follows
 **
 session.save_path = C:/WINDOWS/Temp
 **
 
 Believe me, the discrepancy in paths between the error message and your
 
  php.ini file setting means that PHP is *not* reading that php.ini.
Either
  it's reading another one (which you say not), or it's not finding one at
all
  and just using all its default settings.
 
 Best thing to do at this point is probably to run a phpinfo and look to
 
  see where PHP tells you it's expecting to find php.ini.
 
 (Just in case you're new to that game:  make a script containing
 
?php phpinfo() ?
 
 and request it in your browser.  In the block of information near the
top
 
  is the path of where it's expecting php.ini, labelled something like
  Configuration file (php.ini) Path -- that's where your php.ini should
be.)
 
 Cheers!
 
 Mike
 
 -
 Mike Ford,  Electronic Information Services Adviser,
 Learning Support Services, Learning  Information Services,
 JG125, James Graham Building, Leeds Metropolitan University,
 Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
 Email: [EMAIL PROTECTED]
 Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211

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



Re: [PHP] URGENT: Session problem not carrying UserName over

2001-04-13 Thread CC Zona

In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] ("Mike Yuen") wrote:

   ///
   // PROBLEM IS HERE CUserName doesn't show up
   $eventrows = 0;
   $query = "SELECT * FROM activities WHERE 
CUserName='$CUserName' AND 
 ADay='$d' AND AMonth='$themonth' AND AYear='$y'";
   print "font size=-1$query/font";
   //
   ///

Your only other reference to $CUserName prior to this is:

?PHP
// Draw the Calendar
global $CUserName;

Right now that line is outside the function in which $CUserName is called.  
'global' should be used *inside any function in which you want to make use 
of a variable from the global namespace instead of the function's local 
namespace.

-- 
CC

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