|
Тема
|
session pod windows
|
|
Автор |
brayan ((Браян)) |
Публикувано | 07.05.03 07:59 |
|
Da znaete zashto ne moga da podkaram sessite pod windows?
winaga mi dawa suobshtenie za greshka:
Warning: open(/tmp\sess_508dd64ce8cfea75f9133e3b3b32e528, O_RDWR) failed: No such file or directory (2) in c:\webs\info.php on line 3
<?
session_start();
?>
a w php.ini e:
[Session]
; Handler used to store/retrieve data.
session.save_handler = files
; Argument passed to save_handler. In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
session.save_path = c:\\tmp\\
; Whether to use cookies.
session.use_cookies = 1
; Name of the session (used as cookie name).
session.name = PHPSESSID
; Initialize session on request startup.
session.auto_start = 0
; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 60
; The path for which the cookie is valid.
session.cookie_path = \
; The domain for which the cookie is valid.
session.cookie_domain =
; Handler used to serialize data. php is the standard serializer of PHP.
session.serialize_handler = php
; Percentual probability that the 'garbage collection' process is started
; on every session initialization.
session.gc_probability = 1
; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440
; Check HTTP Referer to invalidate externally stored URLs containing ids.
; HTTP_REFERER has to contain this substring for the session to be
; considered as valid.
session.referer_check =
; How many bytes to read from the file.
session.entropy_length = 0
; Specified here to create the session id.
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
; Set to {nocache,private,public} to determine HTTP caching aspects.
session.cache_limiter = nocache
; Document expires after n minutes.
session.cache_expire = 180
; trans sid support is disabled by default.
; Use of trans sid may risk your users security.
; Use this option with caution.
; - User may send URL contains active session ID
; to other person via. email/irc/etc.
; - URL that contains active session ID may be stored
; in publically accessible computer.
; - User may access your site with the same session ID
; always using URL stored in browser's history or bookmarks.
session.use_trans_sid = 0
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
| |
Тема
|
Re: session pod windows
[re: brayan]
|
|
Автор |
$burov (начинаещ) |
Публикувано | 07.05.03 08:56 |
|
Махни двойните наклонени черти от:
session.save_path = c:\\tmp\\
и нека бъде:
session.save_path = c:\tmp\
Естествено, трябва да си сигурен, че имаш директория tmp на диск С
При мен е това:
session.save_path = c:\php\temp
| |
Тема
|
Re: session pod windows
[re: $burov]
|
|
Автор |
brayan ((Браян)) |
Публикувано | 07.05.03 10:10 |
|
i s edinichni probwah, no pak sushtata greshka mi dawa. Wijdam che se zuzdawa fail w tazi direktroia: pr.: c:\\tmp\\sess_508dd64ce8cfea75f9133e3b3b32e528
no pak mi dawa greshka.Редактирано от brayan на 07.05.03 10:11.
| |
Тема
|
Re: session pod windows
[re: brayan]
|
|
Автор | segfault (Нерегистриран) |
Публикувано | 07.05.03 12:05 |
|
Wypros session file-a ti s dylvina 0 byte-a li e? Predi wreme az imah syshtiqt problem s PHP-to smenih si wersiqta na PHP-to i uspqh da si podkaram sesiite pod Win2k, koeto beshe dosta stranno zashtoto i pri dwete wersii sesiite se podkarwat po edin i syshti nachin.
Ako ti si s NTFS trqbwa da si prowerish dali imash nuvnite permission-i oswen towa.
BTW interesno mi e kakwa tochno greshka ti dawa PHP-to kakto i wersiqta na PHP-to, s koqto si i OS-a.
| |
Тема
|
Re: session pod windows
[re: brayan]
|
|
Автор |
ro6avia (mnogo ro6avia) |
Публикувано | 07.05.03 23:55 |
|
session.save_path = c:/tmp/
E tuk ni6to niama :
| |
|
при windows наклонените черти са на ляво
c:\tmp\
| |
|
no kakto pi6e po dokumentaciata raboti i s c:/aaa/bbb/xxx
i e po-dobre za6toto ako si spomnia6 \ se izpolzva kato simvol za escape !
E tuk ni6to niama :
| |
Тема
|
Re: session pod windows
[re: ro6avia]
|
|
Автор | segfault (Нерегистриран) |
Публикувано | 08.05.03 08:14 |
|
PHP 4.2.0
-----------------
session.save_path = c:\tmp
| |
Тема
|
Re: session pod windows
[re: segfault]
|
|
Автор |
brayan ((Браян)) |
Публикувано | 09.05.03 08:35 |
|
Da shte probwam s po nova versia na php-to. Izteglih si ia no neshto ne mi trugna apacheto. Pak shte ia mucha, che niamah wreme da se zaniwam i si wurnah staroro polojenie s php 4.1.1 da si dovursha edni neshta.
| |
|
|
|
|