473,322 Members | 1,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

error handling

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
4 1320
my bad... bad title...

should be error reporting.

Jul 17 '05 #2
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
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
*** 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: WSeeger | last post by:
When creating a new class, is it encouraged to always include error handling routines within your LET and GET procedures? It's seems that most text books never seem to include much about error...
12
by: Christian Christmann | last post by:
Hi, assert and error handling can be used for similar purposes. When should one use assert instead of try/catch and in which cases the error handling is preferable? I've read somewhere that...
6
by: Squirrel | last post by:
I have a command button on a subform to delete a record. The only statement in the subroutine is: DoCmd.RunCommand acCmdDeleteRecord The subform's recordsource is "select * from tblVisit order...
13
by: Thelma Lubkin | last post by:
I use code extensively; I probably overuse it. But I've been using error trapping very sparingly, and now I've been trapped by that. A form that works for me on the system I'm using, apparently...
21
by: Anthony England | last post by:
Everyone knows that global variables get re-set in an mdb when an un-handled error is encountered, but it seems that this also happens when the variable is defined as private at form-level. So...
3
by: Stefan Johansson | last post by:
Hi all I'am moving from Visual Foxpro and have a question regarding "best practice" error handling in vb .net. In VFP I have always used a "central" error handling object in order to have a...
4
by: Al Williams | last post by:
Hi, I have error handling in place throughout my application. I also start the application wrapped in error handling code to catch any unexpected exceptions (i.e. exceptions that occur where I...
10
by: Anthony England | last post by:
(sorry for the likely repost, but it is still not showing on my news server and after that much typing, I don't want to lose it) I am considering general error handling routines and have...
0
by: Lysander | last post by:
Thought I would give something back with a few articles. This article is a bit of code to add error handling. When I have time, I want to write articles on multilingual databases, and Access...
9
by: MrDeej | last post by:
Hello guys! We have an SQL server which sometimes makes timeouts and connection errors. And we have an function witch writes and updates data in 2 tables on this server. When the SQL server error...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.