$_SESSION not working, and PHP not displaying errors.
Moderator: General Moderators
-
php_wiz_kid
- Forum Contributor
- Posts: 181
- Joined: Tue Jun 24, 2003 7:33 pm
$_SESSION not working, and PHP not displaying errors.
On my local Windows machine I can't get the global $_SESSION variable to work. I can run my script on my local machine and not get it to work, and then upload to my server and it works just fine. The server is running under Linux. Also PHP doesn't display errors, when I have an error it just displays a blank page, and I have to blindly go through my code and fix the errors wich is a pain in the butt. Thanks.
-
php_wiz_kid
- Forum Contributor
- Posts: 181
- Joined: Tue Jun 24, 2003 7:33 pm
there are some parameters that control php's error logging.
these are the settings as found in php.ini-recommend
So by default all errors are reported to the webserver's error.log.
For Apache this is the file <apache install dir>/logs/error.log
All those parameters are explained by the comments in php.ini-recommended.
while having your php.ini open you can check the sectionif you haven't changed this setting yet do so now
these are the settings as found in php.ini-recommend
and some more.error_reporting = E_ALL
display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
track_errors = Off
So by default all errors are reported to the webserver's error.log.
For Apache this is the file <apache install dir>/logs/error.log
All those parameters are explained by the comments in php.ini-recommended.
while having your php.ini open you can check the section
Code: Select all
; 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 = /tmp-
php_wiz_kid
- Forum Contributor
- Posts: 181
- Joined: Tue Jun 24, 2003 7:33 pm
-
php_wiz_kid
- Forum Contributor
- Posts: 181
- Joined: Tue Jun 24, 2003 7:33 pm