02. august 2003 - 13:38Der er
17 kommentarer og 1 løsning
session.save_path - WinXP - Apache 2
Hej
jeg har normalt kørt PHP - Apache 1.37 (eller noget i den dur - kan ikke huske versions nummer)
men grundet skift af computer tænkte jeg at jeg ville teste Apache2 (PHP som modul) - dette virker også fint!
undtagen med sessions:
-- fra php.ini (ligger i samme mappe som de 2 .dll filer --- session.save_path = c:\php\session-data ---
---fejl når man bruger session --- Warning: Unknown(): open(/tmp\sess_775892d077588c20154dd2fbed412831, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line ---
hvad kan dette skyldes? (kun kvalificerede bud - i skal vide det virker)
Skal virksomheder stå stærkere mod angreb og kunne udvikle sig, skal sikkerhed, drift og forretning tænkes sammen. Det er tanken bag Jysk IT’s ambition om at skabe en “sikker fremtid” for kunderne.
jeg fandt også lige dette i php-windows nyhedsgruppen på news.php.net
--- maybe is not the good php.ini you are using ... You are modifing a php.ini and php use another one. First of all look in the phpinfo() and see what file is it used. Second add a dummy line in the php.ini like: lkjasdlaksdj;alskdas;ldkajsd and you should be prompted with an error when the apache restart, if you are prompted then try to change for example the path of stored session and see the changes in the phpinfo.
Second problem is that IE keeps the history in mind and sometimes you have to do many time a refresh to see the new page. Always is better to open a new explorer to see the page. I heved because of this multiple time the impression that php ignore my file but it proved that IE haven't refresh the page. If you are able to see the apache log take a look there to see if the IE is updating the file you are seeing. ---
så jeg laver lige en phpinfo fil, så kan vi kigge på den
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.