Re: apache windows session(file configuration)
| From: | dulidel the programmer | Date: | Sat, 23 Dec 2000 10:43:10 +0000 |
| Subject: | Re: apache windows session(file configuration) | ||
| References: | 1 2 3 4 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-4626@lists.php.net to get a copy of this message | ||
<?php
session_register("benutzer");
session_register("passwort");
$benutzer="gast";
$passwort="";
if ($besucht != true ){
SetCookie ("besucht", true, time()+3600);
}
?>
<HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel=stylesheet type="text/css" href="format.css">
</head>
<body>
<center>
<H1>Aktuelles</H1>
<p>
<table >
<tr>
<th rowspan="2"><center>Party</center> </th>
<th>Datum: 24.11.2000 </th>
</tr>
<tr>
<td>Betreff : Erste News im Forum </td>
</tr>
<tr><td colspan="2">Heute am 24.11.2000 ist es endlich soweit, der erste
Newseintrag ist da. Juhuuu </td></tr>
<tr >
<th rowspan="2">Archiv</th>
<th>Datum: 24.11.2000 </th>
</tr>
<tr>
<td>Betreff : ABI 2001 goes online </td>
</tr>
<tr><td colspan="2">Heute am 24.11.2000 ist es endlich soweit, der erste
Newseintrag ist da. Juhuuu </td></tr>
<tr>
<th rowspan="2"><center>Ball</center> </th>
<th>Datum: 24.11.2000 </th>
</tr>
<tr>
<td>Betreff : Erste News im Forum </td>
</tr>
<tr><td colspan="2">Heute am 24.11.2000 ist es endlich soweit, der erste
Newseintrag ist da. Juhuuu </td></tr>
<th colspan="2"><center><a href="neuenews.php">Neuer
Eintrag</a></center></th></table>
<p>
<?php
echo "<P>"."Diese Seite besuchten"."<P>";
$link = mysql_connect ("localhost", "gast", "") or die ("Konnte
nicht
verbinden");
mysql_select_db(allgemein);
if ($besucht !=true){mysql_query("update zaehler set anzahl=anzahl+1 where
art='gesamt'");}
$result = MYSQL_QUERY( "SELECT anzahl FROM zaehler WHERE (art = 'gesamt')");
$row = mysql_fetch_row($result);
$zahl=$row[0];
$url='./';
$endoffile='counter.gif';
for ($z = 0; $z < strlen($zahl); $z++) {echo "<img
src=\"$url$zahl[$z]$endoffile\">";}echo"<P>";
echo " Leute ";
echo " seit dem 21.12.2000"."<BR>";
mysql_close ($link);
?>
</body>
</html>
Cynic <cynic@mail.cz> schrieb in im Newsbeitrag:
5.0.0.25.2.20001223114428.0272f540@mail.cz...
> Looks fine. May I have a look at the code?
>
> At 11:38 23.12. 2000, dulidel the programmer wrote the following:
> --------------------------------------------------------------
> >it worked with pws
> >[Session]
> >session.save_handler = files ; handler used to store/retrieve data
> >session.save_path = C:/programme/php3/sessions/ ; argument
passed
> >to save_handler
> > ; in the case of files, this is the
> > ; path where data files are stored
> >session.use_cookies = 1 ; whether to use cookies
> >session.name = PHPSESSID
> > ; name of the session
> > ; is used as cookie name
> >session.auto_start = 1 ; initialize session on request
startup
> >session.cookie_lifetime = 0 ; lifetime in seconds of cookie
> > ; or if 0, until browser is restarted
> >session.cookie_path = / ; the path the cookie is valid for
> >session.cookie_domain = ; the domain the cookie is valid for
> >session.serialize_handler = php ; handler used to serialize data
> > ; php is the standard serializer of
PHP
> >session.gc_probability = 1 ; percentual probability that the
> > ; 'garbage collection' process is
> >started
> > ; on every session initialization
> >session.gc_maxlifetime = 1440 ; after this number of seconds,
stored
> > ; data will be seen as 'garbage' and
> > ; cleaned up by the gc process
> >session.referer_check = ; check HTTP Referer to invalidate
> > ; externally stored URLs containing
ids
> >session.entropy_length = 0 ; how many bytes to read from the
file
> >session.entropy_file = ; specified here to create the
session
> >id
> >; session.entropy_length = 16
> >; session.entropy_file = /dev/urandom
> >session.cache_limiter = nocache ; set to {nocache,private,public} to
> > ; determine HTTP caching aspects
> >session.cache_expire = 180 ; document expires after n minutes
> >
> >
> >Cynic <cynic@mail.cz> schrieb in im Newsbeitrag:
> >5.0.0.25.2.20001223113812.0272f540@mail.cz...
> >> what are your session related settings in php.ini / httpd.conf?
> >>
> >> At 11:34 23.12. 2000, dulidel the programmer wrote the following:
> >> --------------------------------------------------------------
> >> >Error Message but another directory was set in the php.ini
> >> >
> >> >Warning: open(/tmp\sess_ab3b296a8b07ecf4d055c449faa04a32, O_RDWR)
failed:
> >m
> >> >(2) in e:\backup 1\projekte\abi\forum.php on line 2
> >> >
> >> >Warning: Cannot add header information - headers already sent by
(output
> >> >started at e:\backup 1\projekte\abi\forum.php:2) in e:\backup
> >> >1\projekte\abi\forum.php on line 8
> >> >
> >> >
> >> >Cynic <cynic@mail.cz> schrieb in im Newsbeitrag:
> >> >5.0.0.25.2.20001223113114.0273ab30@mail.cz...
> >> >> Hi,
> >> >>
> >> >> how is anyone supposed to help you when you have included
> >> >> neither the error message nor any relevant code? I don't
> >> >> really think anyone on the list's got a crystal ball.
> >> >>
> >> >>
> >> >>
> >> >> At 11:10 23.12. 2000, dulidel the programmer wrote the following:
> >> >> --------------------------------------------------------------
> >> >> >Hi
> >> >> >I have a apache 1.3.14 server with php.
> >> >> >PHP works fine but if i try to set session variables i get an error
> >> >message
> >> >> >please help
> >> >> >
> >> >> >
> >> >> >
> >> >> >--
> >> >> >PHP Windows Mailing List (http://www.php.net/)
> >> >> >To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> >> >> >For additional commands, e-mail: php-windows-help@lists.php.net
> >> >> >To contact the list administrators, e-mail:
> >php-list-admin@lists.php.net
> >> >> ------end of quote------
> >> >>
> >> >>
> >> >>
> >> >> ____________________________________________________________
> >> >> Cynic:
> >> >>
> >> >> A member of a group of ancient Greek philosophers who taught
> >> >> that virtue constitutes happiness and that self control is
> >> >> the essential part of virtue.
> >> >>
> >> >> cynic@mail.cz
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> PHP Windows Mailing List (http://www.php.net/)
> >> >> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> >> >> For additional commands, e-mail: php-windows-help@lists.php.net
> >> >> To contact the list administrators, e-mail:
> >php-list-admin@lists.php.net
> >> >>
> >> >
> >> >
> >> >
> >> >--
> >> >PHP Windows Mailing List (http://www.php.net/)
> >> >To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> >> >For additional commands, e-mail: php-windows-help@lists.php.net
> >> >To contact the list administrators, e-mail:
php-list-admin@lists.php.net
> >> ------end of quote------
> >>
> >>
> >>
> >> ____________________________________________________________
> >> Cynic:
> >>
> >> A member of a group of ancient Greek philosophers who taught
> >> that virtue constitutes happiness and that self control is
> >> the essential part of virtue.
> >>
> >> cynic@mail.cz
> >>
> >>
> >>
> >> --
> >> PHP Windows Mailing List (http://www.php.net/)
> >> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> >> For additional commands, e-mail: php-windows-help@lists.php.net
> >> To contact the list administrators, e-mail:
php-list-admin@lists.php.net
> >>
> >
> >
> >
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> >For additional commands, e-mail: php-windows-help@lists.php.net
> >To contact the list administrators, e-mail: php-list-admin@lists.php.net
> ------end of quote------
>
>
>
> ____________________________________________________________
> Cynic:
>
> A member of a group of ancient Greek philosophers who taught
> that virtue constitutes happiness and that self control is
> the essential part of virtue.
>
> cynic@mail.cz
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>