|
|
|
|
|
для: Gwest
(02.05.2005 в 10:05)
| | Спосибо за терпение Я разобрался, надо было создать фаил tmp в директории "c:"
и в коде раскоментировать session.save_path = "/tmp"
=) | |
|
|
|
|
|
|
|
для: glsv (Дизайнер)
(02.05.2005 в 09:27)
| | Спосибо за совет, но я уже поменял настройки в php.ini и есть результат - хотя бы ошибки писать стал:
Warning: session_start() [function.session-start]: open( ...sess_75fcb9aa2304355d3d210f5bbbe36b12, O_RDWR) failed: No such file or directory (2) in ... on line 3
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at ... :3) in ... on line 3
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at ... :3) in ...on line 3
Везде указывает на session_start();
Вот кусок из php.ini подскажите как его лучше настроить:
; 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.
; As of PHP 4.0.1, you can define the path as:
;session.save_path ="N;/path"
; where N is an integer. Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories. This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
; NOTE 1: PHP will not create this directory structure automatically.
; You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
; use subdirectories for session storage
; The file storage module creates files using mode 600 by default.
; You can change that by using
; session.save_path = "N;MODE;/path"
; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process's umask.
;session.save_path = "/tmp"
; Whether to use cookies.
session.use_cookies = 1
; This option enables administrators to make their users invulnerable to
; attacks which involve passing session ids in URLs; defaults to 0.
; session.use_only_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 = 0
; The path for which the cookie is valid.
session.cookie_path = /
|
Вот в этом месте и находятся неправильные настройки =) | |
|
|
|
|
|
|
|
для: Gwest
(02.05.2005 в 09:03)
| | Не видя кода, практически невозможно найти проблему. Если есть у вас маленький кусок нерабочего кода, прикрепите его в форум.
Или понаставьте в коде маркеров
<?
// код
echo 1;
// код
echo 2;
// код
echo 3;
// код
echo 4;
// код
echo 5;
?>
|
Чтобы понять на каком этапе скрипт прекращает выполнение.
Также уберите символы @ (если они есть) перед вызовами функций. Эти символы запрещают вывод ошибок в браузер. А вам как раз нужно увидеть текст ошибок. | |
|
|
|
|
|
|
|
для: glsv (Дизайнер)
(30.04.2005 в 16:25)
| | В том то и дело что ни чего не пишет! Ни ошибок... совсем ни чего!
Дело втом что сайт работает, а страницы с кодом php загружается, но в браузере не отображается. Сначало думал что код неправильный, но в денвере же работает все как надо, значит ошибка в настройках апача или пхп я так думаю. | |
|
|
|
|
|
|
|
для: gwest
(30.04.2005 в 15:06)
| | Какие именно ошибки пишет? | |
|
|
|
|
|
|
|
для: gwest
(30.04.2005 в 15:06)
| | Ничего ен работает - не есть описание - опиши чем у тебя браузер ругается, иначе каждый читающий будет предлагать свою версию!!! Моя версия - права доступа к файлам и папкам прописаны неправильно! | |
|
|
|
|
|
|
|
для: gwest
(30.04.2005 в 15:06)
| | Вот поэтому надо ставить все самому, сам сталкивался не раз =/
php.ini вот разница + настройки апача | |
|
|
|
|
|
|
| Где то я с этой темой сталкивался, но найти не могу!
Написал код , проверял его в денвере, а когда поставил на сервер ничего не работает!
Не подскажите почему? | |
|
|
|
|