Jump to content

Archived

This topic is now archived and is closed to further replies.

mgm_03

DWMX/PHP4.3/Apache -no server error messages?

Recommended Posts

First, I am NOT using DWMX to do any coding...I am using Code View only and entering it all in manually. However, I do use Preview in Browser to see if the page works. If there\'s one thing wrong (e.g. division by zero) the page will be blank. BTW, I\'m using Mac OS10.2 and using http://localhost/mysite/somefile.php

 

My friend is using Apache/PHP4.3, DW 4.0, on WinXP. When he loads a PHP page that has something wrong(e.g. division by zero), he gets an error message from Apache telling what is wrong and on what line of code.

 

I\'m debugging in the dark it seems...any ideas? Error messages would be so helpful... Is there a better way?

 

Thanks in advance!!

Share this post


Link to post
Share on other sites

ok, well if it\'s a problem with debugging, it\'s likely that dreamweaver isn\'t the problem, if you\'re entering all your own code. it\'s likely the php.ini error_reporting setting or something. check that first.

Share this post


Link to post
Share on other sites

thanks....I went to my php.ini file and found this:

 

; - display_errors = Off [security]

; With this directive set to off, errors that occur during the execution of

; scripts will no longer be displayed as a part of the script output, and thus,

; will no longer be exposed to remote users. With some errors, the error message

; content may expose information about your script, web server, or database

; server that may be exploitable for hacking. Production sites should have this

; directive set to off.

 

I am guessing that I need to change Off to On, uncomment the line and re-start Apache....yes?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.