By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,197 Members | 988 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,197 IT Pros & Developers. It's quick & easy.

error handling

P: n/a
i can't get errors to print to my browser.

i went to php.ini and set...

display_errors = On [Security]

and

error_reporting = E_ALL | E_STRICT [Code Cleanliness,
Security(?)]

i restarted my computer, fired up apache and still can't find out why
my session_start() is screwing up my program. ;-)
can someone tell me what i'm doing wrong here?

tia...

Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
my bad... bad title...

should be error reporting.

Jul 17 '05 #2

P: n/a
skeeterbug wrote:
i can't get errors to print to my browser.

i went to php.ini and set...

display_errors = On [Security]

and

error_reporting = E_ALL | E_STRICT [Code Cleanliness,
Security(?)]

i restarted my computer, fired up apache and still can't find out why
my session_start() is screwing up my program. ;-)
can someone tell me what i'm doing wrong here?

tia...


I think you need to remove the "[Security]" and "[Code Cleanliness,"
from the end of those lines. I leave these two settings defaulted
(commented out) and find my errors in the Apache error log:

D:\Programs\Apache Group\Apache2\logs\error.log

NM

--
convert uppercase WORDS to single keystrokes to reply
Jul 17 '05 #3

P: n/a
skeeterbug wrote:
i can't get errors to print to my browser.

i went to php.ini and set...

display_errors = On [Security]

and

error_reporting = E_ALL | E_STRICT [Code Cleanliness,
Security(?)]

i restarted my computer, fired up apache and still can't find out why
my session_start() is screwing up my program. ;-)


Just check if you really edited the *right* INI file. Use phpinfo().

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Jul 17 '05 #4

P: n/a
*** skeeterbug escribió/wrote (14 Jan 2005 15:02:55 -0800):
i restarted my computer, fired up apache and still can't find out why
my session_start() is screwing up my program. ;-)
can someone tell me what i'm doing wrong here?


You won't see any error message unless your code has typos os the like. If
sessions aren't working for whatever reason, it's unlikely you'll get a
printed error message.

Find this chapter in the PHP manual and check everything's fine in the
runtime configuration:

Main : Function Reference : Session Handling Functions

--
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ Las dudas informáticas recibidas por correo irán directas a la papelera
-+ I'm not a free help desk, please don't e-mail me your questions
--
Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.