php-windows Digest 4 Apr 2001 22:02:00 -0000 Issue 527 Topics (messages 6489 through 6517): Is Sybase supported on Windows? 6489 by: Javier Boluda Re: mail() Function and time 6490 by: Marck D. Pearlstone 6501 by: Marck D. Pearlstone Re: free hosting with php 6491 by: Ertan Tike mail() & Bcc 6492 by: Tomasz Abramowicz 6493 by: Urmil Parikh 6494 by: Phil Driscoll 6495 by: Urmil Parikh 6496 by: Tomasz Abramowicz 6498 by: Phil Driscoll 6499 by: Tomasz Abramowicz Blind Apache - PHP not found 6497 by: Marco Bleeker CGI Error Problem 6500 by: Conover, Ryan 6503 by: Phil Driscoll 6504 by: Conover, Ryan 6511 by: Phil Driscoll session, session AAAARGH 6502 by: Johannes Janson 6505 by: Asendorf, John 6506 by: Asendorf, John 6507 by: Johannes Janson 6508 by: Asendorf, John 6509 by: Johannes Janson 6510 by: Asendorf, John 6513 by: Johannes Janson 6514 by: Schulz, Evan Oracle record counting 6512 by: Asendorf, John Authentication 6515 by: Phil Driscoll Re: Exec() In Windows 6516 by: zugut 6517 by: Olivier Hubert 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] ----------------------------------------------------------------------
Hello, I'm trying to connect via PHP to Sybase from Win'98 Having Personal Web Server and I get the following error: Fatal error: Call to unsupported or undefined function sybase_connect() I haven't found any dll named *sybase* in order to configure PHP with Sybase for Windows. Is there any way of supporting Sybase? Has anybody succeed testing PHP/Sybase in Windows? Please help me. Many thanks, Javier
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi James, On 02 April 2001 at 16:01:54 +0100 (which was 16:01 where I live) James Moore wrote to David Elliott and made these points: >> Date: Fri, 30 Mar 2001 13:42:59 0000 >> >> it should be. >> >> Date: Fri, 30 Mar 2001 13:42:59 +0100 >> >> I have checked the server for time zone etc. >> >> I also run an SMTP server from it (Not exchange) and everything is OK on >> that. JM> I just checked this with 4.0.5RC5 and 4.0.6-dev and it works for JM> me.. looks like screwed Daylight savings time doesnt seem to be a JM> problem with PHP although because it doesnt touch the date header JM> (which is done by the mail server itself.) One option is to set JM> your own valid date header using the extra argument to mail. Doing this (from a server in the UK), using: mail( $to, $subj, $body, "Date: ".date("r")); I get a date of: Date: Wed, 4 pr 2001 13:00:00 -0100 which makes the cure worse than the problem! I've tried using setlocale( LC_TIME, "uk_UK") but that doesn't help. I think I'll let the mail server put its incorrect date in rather than use the even more incorrect one that PHP provides :-(... unless anyone has any other ideas. - -- Cheers -- .\\arck D. Pearlstone -- Consultant Software Engineer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ PGP Key ID: 0x929DCDA0 | www: http://www.silverstones.com ] Headline - Drunken Drivers Paid $1000 -----BEGIN PGP SIGNATURE----- Version: 6.5.8ckt (build 04) Comment: PGP Sealed for freshness iQA/AwUBOssXyTnkJKuSnc2gEQLuzgCg82lYV4JJaQS1MF9aPd3hqJ4GhtQAoMrn iIg5pc7CA0gRaQckevxbqc2J =sRtb -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 (talks to self), On 04 April 2001 at 13:47:05 +0100 (which was 13:47 where I live) Marck D. Pearlstone wrote to James Moore and made these points: JM>> One option is to set your own valid date header using the extra JM>> argument to mail. MDP> Doing this (from a server in the UK), using: MDP> mail( $to, $subj, $body, "Date: ".date("r")); MDP> I get a date of: MDP> Date: Wed, 4 pr 2001 13:00:00 -0100 MDP> which makes the cure worse than the problem! The answer (for the UK) is to use this construct: mail( $to, $subj, $body, "Date: ".date( "D, j M Y G:i:s +0I00")); This should be customised for the source timezone using stuff like: date( "D, j M Y G:i:s -0".6-date(I)."00") and date( "D, j M Y G:i:s +0700") - -- Cheers -- .\\arck D. Pearlstone -- Consultant Software Engineer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ PGP Key ID: 0x929DCDA0 | www: http://www.silverstones.com ] Headline - Air Head Fired -----BEGIN PGP SIGNATURE----- Version: 6.5.8ckt (build 04) Comment: PGP Sealed for freshness iQA/AwUBOstSZTnkJKuSnc2gEQJ67ACg/bggcBGf4hEXF2u5gc+xwfra1/wAn2xU 4CnaBgVMtYc3XDMqAZu7SVKe =mX3Q -----END PGP SIGNATURE-----
you can find at www.f2s.com 25mb free space 5mb mysql db space -----Original Message----- From: Vlad Bejenaru aka BJ [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 8:35 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] free hosting with php can any one help me to find free hosting were i can run php? (for testing my projects?) 10x Vlad BEJENARU aka BJ Home Page ICQ: 113502358 ---------------------------------------------------------------------------- ----
I cant seem to get bcc to work, ive tried it all, changeing case of the letters, putting emails between<>, copy&pasteing successful headers from my normal mail client.. but it just doesnt feel like working, the person $to receives the email. but the bcc dont. all of the emails im using as test are my accounts, and work properly. the machine is: a NT4.0, IIS4.0, with php4.0.2 (cgi) and its config. correctly in the php.ini. $to = "[EMAIL PROTECTED]"; $headers = "Bcc: [EMAIL PROTECTED], [EMAIL PROTECTED]\n"; $headers .= "From: [EMAIL PROTECTED]\n"; $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; $body = "hello"; mail( $to, $subject, $body, $headers ); tnx, t. ps. please help, ive already ripped out all my hair.
Hi, You have to include *all* address in $to variable, including those appearing in 'Bcc:'. The mail server will take care of hiding those addresses. Regards, | Linux Urmil Parikh | Is it really safe to turn on your computer? -----Original Message----- I cant seem to get bcc to work, ive tried it all, changeing case of the letters, putting emails between<>, copy&pasteing successful headers from my normal mail client.. but it just doesnt feel like working, the person $to receives the email. but the bcc dont. all of the emails im using as test are my accounts, and work properly. the machine is: a NT4.0, IIS4.0, with php4.0.2 (cgi) and its config. correctly in the php.ini. $to = "[EMAIL PROTECTED]"; $headers = "Bcc: [EMAIL PROTECTED], [EMAIL PROTECTED]\n"; $headers .= "From: [EMAIL PROTECTED]\n"; $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; $body = "hello"; mail( $to, $subject, $body, $headers ); tnx, t. ps. please help, ive already ripped out all my hair.
>You have to include *all* address in $to variable, including those appearing in >'Bcc:'. The mail server will take care of hiding those addresses. Are you sure about this? And if so, exactly how do you do it. AFAIK sending BCC headers is simply broken in the Windows version of PHP. Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org
In that case, add 'To:' header also to your $headers variable... see the line added/changed by me below (marked with *> ). Regards, | Linux Urmil Parikh | Is it really safe to turn on your computer? -----Original Message----- thank you for your help, but i seem to be still doing something wrong. i tried this, and yes i got the email, but i got to see all of the emails. the mail server did not hide the two emails. $to = "[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]"; *> $headers = "To: [EMAIL PROTECTED]"; *> $headers .= "Bcc: [EMAIL PROTECTED], [EMAIL PROTECTED]\n"; $headers .= "From: [EMAIL PROTECTED]\n"; $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; $body = "hello"; mail( $to, $subject, $body, $headers );
tnx, it works now. the solution: $to = "[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]"; $headers = "To: [EMAIL PROTECTED]\n"; $headers .= "Bcc: [EMAIL PROTECTED], [EMAIL PROTECTED]\n"; $headers .= "From: [EMAIL PROTECTED]\n"; mail( $to, $subject, $body, $headers ); t. > >You have to include *all* address in $to variable, including those > appearing in > >'Bcc:'. The mail server will take care of hiding those addresses. > > Are you sure about this? And if so, exactly how do you do it. AFAIK sending > BCC headers is simply broken in the Windows version of PHP. > > Cheers > -- > Phil Driscoll > Dial Solutions > +44 (0)113 294 5112 > http://www.dialsolutions.com > http://www.dtonline.org > > > -- > 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] >
>In that case, add 'To:' header also to your $headers variable... see the line >added/changed by me below (marked with *> ). Sorry - no success. I'm sure that Bcc in the additional headers bit is broken on Windows. Check out the bugs database - there are a few open bugs on this - search for bcc. Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org
actually, it did work. its a workaround. but it works. > >In that case, add 'To:' header also to your $headers variable... see the > line > >added/changed by me below (marked with *> ). > Sorry - no success. I'm sure that Bcc in the additional headers bit is > broken on Windows. > > Check out the bugs database - there are a few open bugs on this - search for > bcc. > > Cheers
Hello, I've just installed Apache and PHP, and adapted the Apache httpd.conf file to include pointers to PHP. Apache works, says it triomphant in my localhost, but as soon as I try to read any .php file in MSIE 5.5 I get a 'file not found' (404). It goes even so far that an index.php is not found, and I get a directory listing instead. I see index.php in there, but when I click on it, MSIE persists that the file is not found... What could be wrong?! Any pointers to related web content ? I'm sure it's a beginners' problem, something simple I am missing...? Also, I can't shut Apache down. Ctrl-C or -k shutdown don't work. Once I've started Apache it stays active until I close Windows (98SE full). But the first problem is more urgent. How do I make PHP work? Please? Thanks, Marco | | Marco Bleeker, Amsterdam | [EMAIL PROTECTED] | http://www.euronet.nl/users/mbleeker/ | | Attachments only after prior notice please. | Don't put me on any kind of mailing list. | | I am now receiving the Snowhite virus 4x a day | - some of you must be infected, please check ! | (No, you did not get it from me, I use Eudora) | __@ | _`\<,_ |__(*)/ (*)________________Ah, op DIE fiets !
I am having a problem with PHP 4.0.4pl1 and IIS 5. New pages I create are giving a CGI Error. No matter what I have . on that page. Anyone else come across this problem. Ryan Conover
>I am having a problem with PHP 4.0.4pl1 and IIS 5. New pages I create are >giving a CGI Error. No matter what I have . on that page. Anyone else come >across this problem. And the CGI error says...? -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org
CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: -----Original Message----- From: Phil Driscoll [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 1:42 PM To: Conover, Ryan; [EMAIL PROTECTED] Subject: Re: [PHP-WIN] CGI Error Problem >I am having a problem with PHP 4.0.4pl1 and IIS 5. New pages I create are >giving a CGI Error. No matter what I have . on that page. Anyone else come >across this problem. And the CGI error says...? -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org -- 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]
>CGI Error >The specified CGI application misbehaved by not returning a complete set of >HTTP headers. The headers it did return are: This is usually because php didn't output anything. Favourite causes are: the file did not exist php.exe, one of the php dlls or php.ini don't have file permissions set so that the IUSR account can access them the ISUR count doesnt have privileges to run php Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org
Hi, I just figured out that my session-management is not working. I have a small, simple script to test this: <? session_start(); session_register("SESSION"); if (! isset($SESSION)) { $SESSION["count"] = 0; echo "<li>Counter initialized, please reload this page to see it increment"; } else { echo "<li>Waking up session $PHPSESSID"; $SESSION["count"]++; } echo "<li>The counter is now $SESSION[count] "; ?> But the counter stays at "0". And in the specified session.save_path directory I have a new file every time I reload the page. What is wrong?? TIA johannes
Try this little rework... <? session_start(); if ( !isset($count)) { $count = 0; session_register("count"); echo "<li>Counter initialized, please reload this page to see it increment"; } else { echo "<li>Waking up session $PHPSESSID"; $count++; session_register("count"); } echo "<li>The counter is now $count "; ?> --------------------- John Asendorf - [EMAIL PROTECTED] Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 Aut insanit homo, aut versus facit > -----Original Message----- > From: Johannes Janson [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 04, 2001 1:34 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] session, session AAAARGH > > > Hi, > > I just figured out that my session-management is > not working. I have a small, simple script to test > this: > > <? > session_start(); > session_register("SESSION"); > > if (! isset($SESSION)) { > $SESSION["count"] = 0; > echo "<li>Counter initialized, please reload this page to see it > increment"; > } else { > echo "<li>Waking up session $PHPSESSID"; > $SESSION["count"]++; > } > echo "<li>The counter is now $SESSION[count] "; > ?> > > But the counter stays at "0". And in the specified session.save_path > directory I have a new file every time I reload the page. > > What is wrong?? > > TIA > johannes > > > > -- > 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] >
Don't forget session_destroy (); at some point... --------------------- John Asendorf - [EMAIL PROTECTED] Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 Aut insanit homo, aut versus facit > -----Original Message----- > From: Asendorf, John [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 04, 2001 1:49 PM > To: Johannes Janson; Php-Windows (E-mail) > Subject: RE: [PHP-WIN] session, session AAAARGH > > > Try this little rework... > > > > > > > <? > session_start(); > > > if ( !isset($count)) { > $count = 0; > session_register("count"); > echo "<li>Counter initialized, please reload this page to see it > increment"; > } else { > echo "<li>Waking up session $PHPSESSID"; > $count++; > session_register("count"); > } > echo "<li>The counter is now $count "; > ?> > > > > > > > > > > > --------------------- > John Asendorf - [EMAIL PROTECTED] > Web Applications Developer > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > Licking County, Ohio, USA > 740-349-3631 > Aut insanit homo, aut versus facit > > > > -----Original Message----- > > From: Johannes Janson [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, April 04, 2001 1:34 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP-WIN] session, session AAAARGH > > > > > > Hi, > > > > I just figured out that my session-management is > > not working. I have a small, simple script to test > > this: > > > > <? > > session_start(); > > session_register("SESSION"); > > > > if (! isset($SESSION)) { > > $SESSION["count"] = 0; > > echo "<li>Counter initialized, please reload this page to see it > > increment"; > > } else { > > echo "<li>Waking up session $PHPSESSID"; > > $SESSION["count"]++; > > } > > echo "<li>The counter is now $SESSION[count] "; > > ?> > > > > But the counter stays at "0". And in the specified session.save_path > > directory I have a new file every time I reload the page. > > > > What is wrong?? > > > > TIA > > johannes > > > > > > > > -- > > 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] >
thanks John but nope, still the same... just some -maybe helpful- more info: php.ini: session.save_handler = files session.save_path = C:\Programme\Apache Group\Apache\cgi-bin\php4\sessiondata session.use_cookies = 1 session.name = PHPSESSID ""Asendorf, John"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Don't forget session_destroy (); at some point... > > --------------------- > John Asendorf - [EMAIL PROTECTED] > Web Applications Developer > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > Licking County, Ohio, USA > 740-349-3631 > Aut insanit homo, aut versus facit > > > > -----Original Message----- > > From: Asendorf, John [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, April 04, 2001 1:49 PM > > To: Johannes Janson; Php-Windows (E-mail) > > Subject: RE: [PHP-WIN] session, session AAAARGH > > > > > > Try this little rework... > > > > > > > > > > > > > > <? > > session_start(); > > > > > > if ( !isset($count)) { > > $count = 0; > > session_register("count"); > > echo "<li>Counter initialized, please reload this page to see it > > increment"; > > } else { > > echo "<li>Waking up session $PHPSESSID"; > > $count++; > > session_register("count"); > > } > > echo "<li>The counter is now $count "; > > ?> > > > > > > > > > > > > > > > > > > > > > > --------------------- > > John Asendorf - [EMAIL PROTECTED] > > Web Applications Developer > > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > > Licking County, Ohio, USA > > 740-349-3631 > > Aut insanit homo, aut versus facit > > > > > > > -----Original Message----- > > > From: Johannes Janson [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, April 04, 2001 1:34 PM > > > To: [EMAIL PROTECTED] > > > Subject: [PHP-WIN] session, session AAAARGH > > > > > > > > > Hi, > > > > > > I just figured out that my session-management is > > > not working. I have a small, simple script to test > > > this: > > > > > > <? > > > session_start(); > > > session_register("SESSION"); > > > > > > if (! isset($SESSION)) { > > > $SESSION["count"] = 0; > > > echo "<li>Counter initialized, please reload this page to see it > > > increment"; > > > } else { > > > echo "<li>Waking up session $PHPSESSID"; > > > $SESSION["count"]++; > > > } > > > echo "<li>The counter is now $SESSION[count] "; > > > ?> > > > > > > But the counter stays at "0". And in the specified session.save_path > > > directory I have a new file every time I reload the page. > > > > > > What is wrong?? > > > > > > TIA > > > johannes > > > > > > > > > > > > -- > > > 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] > > > > -- > 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] >
I know this may sound stupid, but do you have a directory already established called C:\Programme\Apache Group\Apache\cgi-bin\php4\sessiondata Maybe try making a fresh directory... --------------------- John Asendorf - [EMAIL PROTECTED] Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 Aut insanit homo, aut versus facit > -----Original Message----- > From: Johannes Janson [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 04, 2001 2:02 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] session, session AAAARGH > > > thanks John but nope, still the same... > > just some -maybe helpful- more info: > php.ini: > session.save_handler = files > session.save_path = C:\Programme\Apache > Group\Apache\cgi-bin\php4\sessiondata > session.use_cookies = 1 > session.name = PHPSESSID > > > ""Asendorf, John"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Don't forget session_destroy (); at some point... > > > > --------------------- > > John Asendorf - [EMAIL PROTECTED] > > Web Applications Developer > > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > > Licking County, Ohio, USA > > 740-349-3631 > > Aut insanit homo, aut versus facit > > > > > > > -----Original Message----- > > > From: Asendorf, John [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, April 04, 2001 1:49 PM > > > To: Johannes Janson; Php-Windows (E-mail) > > > Subject: RE: [PHP-WIN] session, session AAAARGH > > > > > > > > > Try this little rework... > > > > > > > > > > > > > > > > > > > > > <? > > > session_start(); > > > > > > > > > if ( !isset($count)) { > > > $count = 0; > > > session_register("count"); > > > echo "<li>Counter initialized, please reload this > page to see it > > > increment"; > > > } else { > > > echo "<li>Waking up session $PHPSESSID"; > > > $count++; > > > session_register("count"); > > > } > > > echo "<li>The counter is now $count "; > > > ?> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------- > > > John Asendorf - [EMAIL PROTECTED] > > > Web Applications Developer > > > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > > > Licking County, Ohio, USA > > > 740-349-3631 > > > Aut insanit homo, aut versus facit > > > > > > > > > > -----Original Message----- > > > > From: Johannes Janson [mailto:[EMAIL PROTECTED]] > > > > Sent: Wednesday, April 04, 2001 1:34 PM > > > > To: [EMAIL PROTECTED] > > > > Subject: [PHP-WIN] session, session AAAARGH > > > > > > > > > > > > Hi, > > > > > > > > I just figured out that my session-management is > > > > not working. I have a small, simple script to test > > > > this: > > > > > > > > <? > > > > session_start(); > > > > session_register("SESSION"); > > > > > > > > if (! isset($SESSION)) { > > > > $SESSION["count"] = 0; > > > > echo "<li>Counter initialized, please reload this > page to see it > > > > increment"; > > > > } else { > > > > echo "<li>Waking up session $PHPSESSID"; > > > > $SESSION["count"]++; > > > > } > > > > echo "<li>The counter is now $SESSION[count] "; > > > > ?> > > > > > > > > But the counter stays at "0". And in the specified > session.save_path > > > > directory I have a new file every time I reload the page. > > > > > > > > What is wrong?? > > > > > > > > TIA > > > > johannes > > > > > > > > > > > > > > > > -- > > > > 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] > > > > > > > -- > > 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] >
good point. never think you were NOT stupid if something doesn't work cause usually you are. But unfortunately in this case I still am stupid. No, John it doesn't work. The strange thing is that I'm being told that $PHPSESSID is a undefined variable but in the ssession directory a file is generated each time. I'll keep trying. Thanks john ""Asendorf, John"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I know this may sound stupid, but do you have a directory already > established called C:\Programme\Apache Group\Apache\cgi-bin\php4\sessiondata > > Maybe try making a fresh directory... > > --------------------- > John Asendorf - [EMAIL PROTECTED] > Web Applications Developer > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > Licking County, Ohio, USA > 740-349-3631 > Aut insanit homo, aut versus facit > > > > -----Original Message----- > > From: Johannes Janson [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, April 04, 2001 2:02 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [PHP-WIN] session, session AAAARGH > > > > > > thanks John but nope, still the same... > > > > just some -maybe helpful- more info: > > php.ini: > > session.save_handler = files > > session.save_path = C:\Programme\Apache > > Group\Apache\cgi-bin\php4\sessiondata > > session.use_cookies = 1 > > session.name = PHPSESSID > > > > > > ""Asendorf, John"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Don't forget session_destroy (); at some point... > > > > > > --------------------- > > > John Asendorf - [EMAIL PROTECTED] > > > Web Applications Developer > > > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > > > Licking County, Ohio, USA > > > 740-349-3631 > > > Aut insanit homo, aut versus facit > > > > > > > > > > -----Original Message----- > > > > From: Asendorf, John [mailto:[EMAIL PROTECTED]] > > > > Sent: Wednesday, April 04, 2001 1:49 PM > > > > To: Johannes Janson; Php-Windows (E-mail) > > > > Subject: RE: [PHP-WIN] session, session AAAARGH > > > > > > > > > > > > Try this little rework... > > > > > > > > > > > > > > > > > > > > > > > > > > > > <? > > > > session_start(); > > > > > > > > > > > > if ( !isset($count)) { > > > > $count = 0; > > > > session_register("count"); > > > > echo "<li>Counter initialized, please reload this > > page to see it > > > > increment"; > > > > } else { > > > > echo "<li>Waking up session $PHPSESSID"; > > > > $count++; > > > > session_register("count"); > > > > } > > > > echo "<li>The counter is now $count "; > > > > ?> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------- > > > > John Asendorf - [EMAIL PROTECTED] > > > > Web Applications Developer > > > > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > > > > Licking County, Ohio, USA > > > > 740-349-3631 > > > > Aut insanit homo, aut versus facit > > > > > > > > > > > > > -----Original Message----- > > > > > From: Johannes Janson [mailto:[EMAIL PROTECTED]] > > > > > Sent: Wednesday, April 04, 2001 1:34 PM > > > > > To: [EMAIL PROTECTED] > > > > > Subject: [PHP-WIN] session, session AAAARGH > > > > > > > > > > > > > > > Hi, > > > > > > > > > > I just figured out that my session-management is > > > > > not working. I have a small, simple script to test > > > > > this: > > > > > > > > > > <? > > > > > session_start(); > > > > > session_register("SESSION"); > > > > > > > > > > if (! isset($SESSION)) { > > > > > $SESSION["count"] = 0; > > > > > echo "<li>Counter initialized, please reload this > > page to see it > > > > > increment"; > > > > > } else { > > > > > echo "<li>Waking up session $PHPSESSID"; > > > > > $SESSION["count"]++; > > > > > } > > > > > echo "<li>The counter is now $SESSION[count] "; > > > > > ?> > > > > > > > > > > But the counter stays at "0". And in the specified > > session.save_path > > > > > directory I have a new file every time I reload the page. > > > > > > > > > > What is wrong?? > > > > > > > > > > TIA > > > > > johannes > > > > > > > > > > > > > > > > > > > > -- > > > > > 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] > > > > > > > > > > -- > > > 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] > > > > -- > 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] >
Here, try this little rework... it's a new one... because the last one was bad... <? session_start(); if ( !isset($count)) { $count = 1; session_register("count"); echo "<p>Counter initialized, please reload this page to see it increment</p>"; } else { echo "<p>You have been to this page $count times during this session</p>"; $count++; session_register("count"); } ?> --------------------- John Asendorf - [EMAIL PROTECTED] Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 Aut insanit homo, aut versus facit > -----Original Message----- > From: Johannes Janson [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 04, 2001 2:29 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] session, session AAAARGH > > > good point. never think you were NOT stupid > if something doesn't work cause usually you are. > But unfortunately in this case I still am stupid. > No, John it doesn't work. The strange thing is that > I'm being told that $PHPSESSID is a undefined > variable but in the ssession directory a file is generated > each time. > > I'll keep trying. Thanks john > > ""Asendorf, John"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I know this may sound stupid, but do you have a directory already > > established called C:\Programme\Apache > Group\Apache\cgi-bin\php4\sessiondata > > > > Maybe try making a fresh directory... > > > > --------------------- > > John Asendorf - [EMAIL PROTECTED] > > Web Applications Developer > > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > > Licking County, Ohio, USA > > 740-349-3631 > > Aut insanit homo, aut versus facit > > > > > > > -----Original Message----- > > > From: Johannes Janson [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, April 04, 2001 2:02 PM > > > To: [EMAIL PROTECTED] > > > Subject: Re: [PHP-WIN] session, session AAAARGH > > > > > > > > > thanks John but nope, still the same... > > > > > > just some -maybe helpful- more info: > > > php.ini: > > > session.save_handler = files > > > session.save_path = C:\Programme\Apache > > > Group\Apache\cgi-bin\php4\sessiondata > > > session.use_cookies = 1 > > > session.name = PHPSESSID > > > > > > > > > ""Asendorf, John"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > > > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > Don't forget session_destroy (); at some point... > > > > > > > > --------------------- > > > > John Asendorf - [EMAIL PROTECTED] > > > > Web Applications Developer > > > > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > > > > Licking County, Ohio, USA > > > > 740-349-3631 > > > > Aut insanit homo, aut versus facit > > > > > > > > > > > > > -----Original Message----- > > > > > From: Asendorf, John [mailto:[EMAIL PROTECTED]] > > > > > Sent: Wednesday, April 04, 2001 1:49 PM > > > > > To: Johannes Janson; Php-Windows (E-mail) > > > > > Subject: RE: [PHP-WIN] session, session AAAARGH > > > > > > > > > > > > > > > Try this little rework... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > <? > > > > > session_start(); > > > > > > > > > > > > > > > if ( !isset($count)) { > > > > > $count = 0; > > > > > session_register("count"); > > > > > echo "<li>Counter initialized, please reload this > > > page to see it > > > > > increment"; > > > > > } else { > > > > > echo "<li>Waking up session $PHPSESSID"; > > > > > $count++; > > > > > session_register("count"); > > > > > } > > > > > echo "<li>The counter is now $count "; > > > > > ?> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------- > > > > > John Asendorf - [EMAIL PROTECTED] > > > > > Web Applications Developer > > > > > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > > > > > Licking County, Ohio, USA > > > > > 740-349-3631 > > > > > Aut insanit homo, aut versus facit > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Johannes Janson [mailto:[EMAIL PROTECTED]] > > > > > > Sent: Wednesday, April 04, 2001 1:34 PM > > > > > > To: [EMAIL PROTECTED] > > > > > > Subject: [PHP-WIN] session, session AAAARGH > > > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > I just figured out that my session-management is > > > > > > not working. I have a small, simple script to test > > > > > > this: > > > > > > > > > > > > <? > > > > > > session_start(); > > > > > > session_register("SESSION"); > > > > > > > > > > > > if (! isset($SESSION)) { > > > > > > $SESSION["count"] = 0; > > > > > > echo "<li>Counter initialized, please reload this > > > page to see it > > > > > > increment"; > > > > > > } else { > > > > > > echo "<li>Waking up session $PHPSESSID"; > > > > > > $SESSION["count"]++; > > > > > > } > > > > > > echo "<li>The counter is now $SESSION[count] "; > > > > > > ?> > > > > > > > > > > > > But the counter stays at "0". And in the specified > > > session.save_path > > > > > > directory I have a new file every time I reload the page. > > > > > > > > > > > > What is wrong?? > > > > > > > > > > > > TIA > > > > > > johannes > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > 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] > > > > > > > > > > > > > -- > > > > 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] > > > > > > > -- > > 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] >
Sorry, still NOTHING. I really have NO idea what could be the reason for this. It can't be any other setting in the php.ini ?! ...... I have still NO idea at all what could have been the reason for it but after copying the distributed php.ini from php.net and changing the session.save_path it works. Thanks again for the kind help. Now I can try to figure out what went wrong. Johannes ""Asendorf, John"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Here, try this little rework... it's a new one... because the last one was > bad... > > > <? > session_start(); > > > if ( !isset($count)) { > $count = 1; > session_register("count"); > echo "<p>Counter initialized, please reload this page to see it > increment</p>"; > } else { > echo "<p>You have been to this page $count times during this > session</p>"; > $count++; > session_register("count"); > } > > ?> > > --------------------- > John Asendorf - [EMAIL PROTECTED] > Web Applications Developer > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > Licking County, Ohio, USA > 740-349-3631 > Aut insanit homo, aut versus facit > > > > -----Original Message----- > > From: Johannes Janson [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, April 04, 2001 2:29 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [PHP-WIN] session, session AAAARGH > > > > > > good point. never think you were NOT stupid > > if something doesn't work cause usually you are. > > But unfortunately in this case I still am stupid. > > No, John it doesn't work. The strange thing is that > > I'm being told that $PHPSESSID is a undefined > > variable but in the ssession directory a file is generated > > each time. > > > > I'll keep trying. Thanks john > > > > ""Asendorf, John"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > I know this may sound stupid, but do you have a directory already > > > established called C:\Programme\Apache > > Group\Apache\cgi-bin\php4\sessiondata > > > > > > Maybe try making a fresh directory... > > > > > > --------------------- > > > John Asendorf - [EMAIL PROTECTED] > > > Web Applications Developer > > > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > > > Licking County, Ohio, USA > > > 740-349-3631 > > > Aut insanit homo, aut versus facit > > > > > > > > > > -----Original Message----- > > > > From: Johannes Janson [mailto:[EMAIL PROTECTED]] > > > > Sent: Wednesday, April 04, 2001 2:02 PM > > > > To: [EMAIL PROTECTED] > > > > Subject: Re: [PHP-WIN] session, session AAAARGH > > > > > > > > > > > > thanks John but nope, still the same... > > > > > > > > just some -maybe helpful- more info: > > > > php.ini: > > > > session.save_handler = files > > > > session.save_path = C:\Programme\Apache > > > > Group\Apache\cgi-bin\php4\sessiondata > > > > session.use_cookies = 1 > > > > session.name = PHPSESSID > > > > > > > > > > > > ""Asendorf, John"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > > > > > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > > Don't forget session_destroy (); at some point... > > > > > > > > > > --------------------- > > > > > John Asendorf - [EMAIL PROTECTED] > > > > > Web Applications Developer > > > > > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > > > > > Licking County, Ohio, USA > > > > > 740-349-3631 > > > > > Aut insanit homo, aut versus facit > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Asendorf, John [mailto:[EMAIL PROTECTED]] > > > > > > Sent: Wednesday, April 04, 2001 1:49 PM > > > > > > To: Johannes Janson; Php-Windows (E-mail) > > > > > > Subject: RE: [PHP-WIN] session, session AAAARGH > > > > > > > > > > > > > > > > > > Try this little rework... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > <? > > > > > > session_start(); > > > > > > > > > > > > > > > > > > if ( !isset($count)) { > > > > > > $count = 0; > > > > > > session_register("count"); > > > > > > echo "<li>Counter initialized, please reload this > > > > page to see it > > > > > > increment"; > > > > > > } else { > > > > > > echo "<li>Waking up session $PHPSESSID"; > > > > > > $count++; > > > > > > session_register("count"); > > > > > > } > > > > > > echo "<li>The counter is now $count "; > > > > > > ?> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------- > > > > > > John Asendorf - [EMAIL PROTECTED] > > > > > > Web Applications Developer > > > > > > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > > > > > > Licking County, Ohio, USA > > > > > > 740-349-3631 > > > > > > Aut insanit homo, aut versus facit > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Johannes Janson [mailto:[EMAIL PROTECTED]] > > > > > > > Sent: Wednesday, April 04, 2001 1:34 PM > > > > > > > To: [EMAIL PROTECTED] > > > > > > > Subject: [PHP-WIN] session, session AAAARGH > > > > > > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > I just figured out that my session-management is > > > > > > > not working. I have a small, simple script to test > > > > > > > this: > > > > > > > > > > > > > > <? > > > > > > > session_start(); > > > > > > > session_register("SESSION"); > > > > > > > > > > > > > > if (! isset($SESSION)) { > > > > > > > $SESSION["count"] = 0; > > > > > > > echo "<li>Counter initialized, please reload this > > > > page to see it > > > > > > > increment"; > > > > > > > } else { > > > > > > > echo "<li>Waking up session $PHPSESSID"; > > > > > > > $SESSION["count"]++; > > > > > > > } > > > > > > > echo "<li>The counter is now $SESSION[count] "; > > > > > > > ?> > > > > > > > > > > > > > > But the counter stays at "0". And in the specified > > > > session.save_path > > > > > > > directory I have a new file every time I reload the page. > > > > > > > > > > > > > > What is wrong?? > > > > > > > > > > > > > > TIA > > > > > > > johannes > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > 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] > > > > > > > > > > > > > > > > -- > > > > > 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] > > > > > > > > > > -- > > > 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] > > > > -- > 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] >
I don't know why it would matter, but you only have to session_register("SESSION"); once. So put that line under the if statement so that it is only run the first time they open the browser: <? session_start(); if (! isset($SESSION)) { session_register("SESSION"); $SESSION["count"] = 0; ... My theory is that it is registering the variable again thereby over-writing whatever was there before...I don't know how valid this theory is, but it's worth a try. -----Original Message----- From: Johannes Janson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 2:01 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] session, session AAAARGH Sorry, still NOTHING. I really have NO idea what could be the reason for this. It can't be any other setting in the php.ini ?! ...... I have still NO idea at all what could have been the reason for it but after copying the distributed php.ini from php.net and changing the session.save_path it works. Thanks again for the kind help. Now I can try to figure out what went wrong. Johannes ""Asendorf, John"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Here, try this little rework... it's a new one... because the last one was > bad... > > > <? > session_start(); > > > if ( !isset($count)) { > $count = 1; > session_register("count"); > echo "<p>Counter initialized, please reload this page to see it > increment</p>"; > } else { > echo "<p>You have been to this page $count times during this > session</p>"; > $count++; > session_register("count"); > } > > ?> > > --------------------- > John Asendorf - [EMAIL PROTECTED] > Web Applications Developer > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > Licking County, Ohio, USA > 740-349-3631 > Aut insanit homo, aut versus facit > > > > -----Original Message----- > > From: Johannes Janson [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, April 04, 2001 2:29 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [PHP-WIN] session, session AAAARGH > > > > > > good point. never think you were NOT stupid > > if something doesn't work cause usually you are. > > But unfortunately in this case I still am stupid. > > No, John it doesn't work. The strange thing is that > > I'm being told that $PHPSESSID is a undefined > > variable but in the ssession directory a file is generated > > each time. > > > > I'll keep trying. Thanks john > > > > ""Asendorf, John"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > I know this may sound stupid, but do you have a directory already > > > established called C:\Programme\Apache > > Group\Apache\cgi-bin\php4\sessiondata > > > > > > Maybe try making a fresh directory... > > > > > > --------------------- > > > John Asendorf - [EMAIL PROTECTED] > > > Web Applications Developer > > > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > > > Licking County, Ohio, USA > > > 740-349-3631 > > > Aut insanit homo, aut versus facit > > > > > > > > > > -----Original Message----- > > > > From: Johannes Janson [mailto:[EMAIL PROTECTED]] > > > > Sent: Wednesday, April 04, 2001 2:02 PM > > > > To: [EMAIL PROTECTED] > > > > Subject: Re: [PHP-WIN] session, session AAAARGH > > > > > > > > > > > > thanks John but nope, still the same... > > > > > > > > just some -maybe helpful- more info: > > > > php.ini: > > > > session.save_handler = files > > > > session.save_path = C:\Programme\Apache > > > > Group\Apache\cgi-bin\php4\sessiondata > > > > session.use_cookies = 1 > > > > session.name = PHPSESSID > > > > > > > > > > > > ""Asendorf, John"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > > > > > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > > Don't forget session_destroy (); at some point... > > > > > > > > > > --------------------- > > > > > John Asendorf - [EMAIL PROTECTED] > > > > > Web Applications Developer > > > > > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > > > > > Licking County, Ohio, USA > > > > > 740-349-3631 > > > > > Aut insanit homo, aut versus facit > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Asendorf, John [mailto:[EMAIL PROTECTED]] > > > > > > Sent: Wednesday, April 04, 2001 1:49 PM > > > > > > To: Johannes Janson; Php-Windows (E-mail) > > > > > > Subject: RE: [PHP-WIN] session, session AAAARGH > > > > > > > > > > > > > > > > > > Try this little rework... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > <? > > > > > > session_start(); > > > > > > > > > > > > > > > > > > if ( !isset($count)) { > > > > > > $count = 0; > > > > > > session_register("count"); > > > > > > echo "<li>Counter initialized, please reload this > > > > page to see it > > > > > > increment"; > > > > > > } else { > > > > > > echo "<li>Waking up session $PHPSESSID"; > > > > > > $count++; > > > > > > session_register("count"); > > > > > > } > > > > > > echo "<li>The counter is now $count "; > > > > > > ?> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------- > > > > > > John Asendorf - [EMAIL PROTECTED] > > > > > > Web Applications Developer > > > > > > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > > > > > > Licking County, Ohio, USA > > > > > > 740-349-3631 > > > > > > Aut insanit homo, aut versus facit > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Johannes Janson [mailto:[EMAIL PROTECTED]] > > > > > > > Sent: Wednesday, April 04, 2001 1:34 PM > > > > > > > To: [EMAIL PROTECTED] > > > > > > > Subject: [PHP-WIN] session, session AAAARGH > > > > > > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > I just figured out that my session-management is > > > > > > > not working. I have a small, simple script to test > > > > > > > this: > > > > > > > > > > > > > > <? > > > > > > > session_start(); > > > > > > > session_register("SESSION"); > > > > > > > > > > > > > > if (! isset($SESSION)) { > > > > > > > $SESSION["count"] = 0; > > > > > > > echo "<li>Counter initialized, please reload this > > > > page to see it > > > > > > > increment"; > > > > > > > } else { > > > > > > > echo "<li>Waking up session $PHPSESSID"; > > > > > > > $SESSION["count"]++; > > > > > > > } > > > > > > > echo "<li>The counter is now $SESSION[count] "; > > > > > > > ?> > > > > > > > > > > > > > > But the counter stays at "0". And in the specified > > > > session.save_path > > > > > > > directory I have a new file every time I reload the page. > > > > > > > > > > > > > > What is wrong?? > > > > > > > > > > > > > > TIA > > > > > > > johannes > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > 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] > > > > > > > > > > > > > > > > -- > > > > > 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] > > > > > > > > > > -- > > > 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] > > > > -- > 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]
I'm attempting to work on a little oracle search... My problem is that if I put the OCIExecute BEFORE the OCIFetchStatement line, I get one error ( Warning: OCIFetchInto: ORA-01002: fetch out of sequence in d:\InetPub\wwwroot\etc. ) but if I put OCIExecute AFTER the OCIFetchStatement I get a different error (Warning: OCIFetchStatement: ORA-24338: statement handle not executed in ). In this order: OCIExecute ( $stmt_search , OCI_DEFAULT ); $nrows = OCIFetchStatement( $stmt_search , $results ); echo "<P>There are $nrows records containing your criteria.</P>"; I get the number of records, but the I don't get the reords listed. In this order: $nrows = OCIFetchStatement( $stmt_search , $results ); echo "<P>There are $nrows records containing your criteria.</P>"; OCIExecute ( $stmt_search , OCI_DEFAULT ); I get the list of records, but no amount of records... I tried running a reset( $results); on it but that didn't seem to help... Can someone help? Oracle 8.1.6 client (7.3.4 server) NT4 IIS4 PHP 4.0.4 CGI Thanks, John --------------------- John Asendorf - [EMAIL PROTECTED] Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 Aut insanit homo, aut versus facit
The good news is that I'll soon be able to move the bulk of my stuff away from NT (hurray!), but I am left with the following problem. I need to build a system which handles user authentication via a mysql database - the authentication to be done at the authentication headers level rather than cookies or any special variables being passed around. However, the system has to run for some weeks on NT, and since the authentication headers have been dealt with before php.exe gets a look in, I'm a bit stumped. What I could do with is an ISAPI filter (nothing at all to do with PHP) which does authentication against a MySQL, or more likely, an ODBC data source. That would allow me to build an interim solution, with minimal tweaks when I move away from NT. Has anyone come across anything which might fit the bill? Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org
Hi, I have the same problem, I don't understand the problem. "Keith Stevenson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > Im having a Problem running an application from a PHP page using the > Exec() function (as well as all the other program execution fuctions) on a > Windows NT Server running Apache. > > The code I attempt to run is : $ReturnVal = exec("Application.exe"); > > It returns with Unable to Fork.... > > Does any body have any idea on how to fix this or an alternative so I can > just run the damm application.... > > Cheers > > > -- > 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] >
Hi, You've probably already looked into this, but I just wanted to be sure: have you checked the persmissions on "Application.exe" ? I believe PHP uses IUSR_Computer (where Computer is your computer name) to exec() anything so if IUSR_Computer doesn't have the rights to read+execute the program, it will return an error message. Hope this helps! Olivier >Hi, > >I have the same problem, I don't understand the problem. > > > >"Keith Stevenson" <[EMAIL PROTECTED]> wrote in message >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> Hi, >> Im having a Problem running an application from a PHP page using the >> Exec() function (as well as all the other program execution fuctions) on a >> Windows NT Server running Apache. >> >> The code I attempt to run is : $ReturnVal = exec("Application.exe"); >> >> It returns with Unable to Fork.... >> >> Does any body have any idea on how to fix this or an alternative so I can >> just run the damm application.... >> >> Cheers >> >> >> -- >> 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]