session

Mám velké trable se session, kdyz chci zapsat, tak mi to napise:

Warning: open(/tmp\sess_80c0feebe3888e458b4b44ccddeda73b, O_RDWR) failed: m (2) in C:\apache\htdocs\scripts\newuser.php on line 6

Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

Prosím poraďte mi, co s tím mám udělat...
Stejnej problém jsem měl taky;))) Jdi do php.ini a nastav tam session.save_path = cesta k slozce kam se maj ukladat sessions
no, ted tam je nastaveno "/tmp" jak je jiz vydet v tom minulem, ale kde ta slozka ma byt??? Pokusil jsem se ji dat temer vsude, ale porad mi to nejde:(
Jednoduše udělej si třebas na C: složkus ses a potom napiš: C:\ses
A je to;)))
Jo, už to jde díky, ale ted už mám zase další problémy:)

Jak mám udělat, aby mi to zůstavalo pořád a ne jen to ty doby, než vypnu prohlížeč???

A ještě jak co nejlíp udělat přepisování nějaké položky v MySql... Mazání a znovu vytváření se mi zdá trochu složité...
Co takhle tohle :

UPDATE [LOW_PRIORITY] [IGNORE] tbl_name
SET col_name1=expr1, [col_name2=expr2, ...]
[WHERE where_definition]
[LIMIT #]

UPDATE updates columns in existing table rows with new values. The SET clause indicates which columns to modify and the values they should be given. The WHERE clause, if given, specifies which rows should be updated. Otherwise all rows are updated. If the ORDER BY clause is specified, the rows will be updated in the order that is specified.

If you specify the keyword LOW_PRIORITY, execution of the UPDATE is delayed until no other clients are reading from the table.

If you specify the keyword IGNORE, the update statement will not abort even if we get duplicate key errors during the update. Rows that would cause conflicts will not be updated.

If you access a column from tbl_name in an expression, UPDATE uses the current value of the column. For example, the following statement sets the age column to one more than its current value:


mysql> UPDATE persondata SET age=age+1;

UPDATE assignments are evaluated from left to right. For example, the following statement doubles the age column, then increments it:


mysql> UPDATE persondata SET age=age*2, age=age+1;

If you set a column to the value it currently has, MySQL notices this and doesn't update it.

UPDATE returns the number of rows that were actually changed. In MySQL Version 3.22 or later, the C API function mysql_info() returns the number of rows that were matched and updated and the number of warnings that occurred during the UPDATE.

In MySQL Version 3.23, you can use LIMIT # to ensure that only a given number of rows are changed.
Kde si to zkopčil?:-))
Mě to vyhovuje, že je to do konce prohlížeče:-))
To sem napsal z hlavy. Nechtělo se mi psát česky, tak jsem to střihnul anglicky...
www.mysql.cz - mysql manual
Tak to jo;))
manualy lukasik zasadne necte...

m.s.
manualy sou ty nejlepsi a nejnapinavejsi bestsellery - lukasik nevi o co prichazi .... :)
Náhodou, občas taky:-))
Prave ze jen obcas :) .... a nahodou :)))

Radek

PS: promin, ale tuhle reakci jsem si proste nedokazal odpusti ... ja uz jsem takovej :o)
To nic:-))
Lidi (hlavně vy dva na začátku),
moc vám děkuji za tuto diskusi, taky jsem furt jako blbý čumněl na tu složku /tmp a kam se má vlastně umístit. Vidím, že toto fórum opravdu k něčemu je, a to hlavně část o PHP.

Pavel