/    Sign up×
Community /Pin to ProfileBookmark

PHP errors not showing up

My company recently installed PHP on an IIS server for me to work off of. However, no PHP errors are showing up even if I intentionally make a mistake. Just a blank screen comes up. Does anyone know if a separate module has to be installed or perhaps just an option that needs to be turned on?

to post a comment
PHP

11 Comments(s)

Copy linkTweet thisAlerts:
@bokehNov 08.2005 — Error checking needs to be activated in php.ini. With apache servers it can also be turned on from the virtual server or .htaccess but I don't know if similar is possible on your windows server.

It is also possible to activate this from inside the script as follows:
[code=php]ini_set('display_errors', '1');
error_reporting(E_ALL);[/code]

But this is not as helpful as it at first may seem. Calling this from a script means only runtime errors can be displayed. The reason: if the script contains a parse error the lines I posted above will not get to the point of being interpreted and hence no error message will be displayed.
Copy linkTweet thisAlerts:
@ephmynusauthorNov 08.2005 — Thanks for your help. Does anyone know the best place to go for a full rundown of php.ini options? It also appears that I cannot upload files or create files and I'm not sure which options those are.
Copy linkTweet thisAlerts:
@bokehNov 08.2005 — [URL=http://php.net]In the manual![/URL]
Copy linkTweet thisAlerts:
@UbikNov 08.2005 — Just a side note, which may help someone else in the future:

View the source for your error message, it may not have rendered the code correctly in the browser, forcing the browser to stop displaying content.

Usually at the very bottom of your source code, there will be the error message you are looking for, for server side errors.
Copy linkTweet thisAlerts:
@bokehNov 08.2005 — Just a side note, which may help someone else in the future:

View the source for your error message, it may not have rendered the code correctly in the browser, forcing the browser to stop displaying content.

Usually at the very bottom of your source code, there will be the error message you are looking for, for server side errors.[/QUOTE]
I've never heard of that one. Sounds like an IE idiosynracy to me. [URL=http://getfirefox.com/]Firefox[/URL] always seems to display any error message sent by PHP.
Copy linkTweet thisAlerts:
@PanKNov 08.2005 — If there is no corect HTML Firefox won't display anything as well as Explorer.
Copy linkTweet thisAlerts:
@bokehNov 08.2005 — If there is no corect HTML Firefox won't display anything as well as Explorer.[/QUOTE]You have me completely baffled now! Can you provide an example string that Firefox can't display?
Copy linkTweet thisAlerts:
@PanKNov 08.2005 — Can you provide an example that Explorer doesn't display and FireFox does?
Copy linkTweet thisAlerts:
@bokehNov 08.2005 — Can you provide an example that Explorer doesn't display and FireFox does?[/QUOTE]Here's a [URL=http://bokehman.com/little_test]little test[/URL] (not tested in IE because I never use it).
Copy linkTweet thisAlerts:
@SheldonNov 08.2005 — Here's a [URL=http://bokehman.com/little_test]little test[/URL] (not tested in IE because I never use it).[/QUOTE]


Can IE display this?[/quote]
I got Results in Safari, Firefox and Camino(all for MacOSX).

But using IE(for MacOSX) i got nothing! (i downloaded just for this test, and deleted it just as quick)
Copy linkTweet thisAlerts:
@pointfiftyaeNov 08.2005 — Indeed invisible under IE... How did you do that?
×

Success!

Help @ephmynus spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...