Jump to content
divinedesigns1

New Error in php

Recommended Posts

what does this error means?

( ! ) SCREAM: Error suppression ignored for
i dont have anything suppression as far as i can see in my code, also
Undefined offset: 1 in C:\wamp\www\albumfakeness\gallery.php on line 43Undefined offset: 2 in C:\wamp\www\albumfakeness\gallery.php on line 43
what does it mean offset? how would i know if its an offset or not? Edited by DDs1

Share this post


Link to post
Share on other sites

an offset is refers to a value in an array. $abc[0] is an offset.

Share this post


Link to post
Share on other sites
an offset is refers to a value in an array. $abc[0] is an offset.
ok i believe i know what is causing the problem so ill print_r(); and var_dump() to see whats happening thanks richie

Share this post


Link to post
Share on other sites

As for the "Error suppression ignored for" notice. This means that you have (or your host has) configured PHP to ignore the error suppression operator (you know, the "@"), and show errors anyway. This notice essentially means that a "@" was found, and because of that setting, it is being ignored, so you're being notified that, if you happen to see an error originating from that line, you're only able to see it due to that setting.BTW, using the "@" operator in general is a bad idea. It's best to test for the possible error conditions beforehand instead. There are very few cases where that's not possible, and in those, the use of @ should be immediately followed by result inspection (e.g. if a problematic function would return false on failure, check if the result was false), and error handling.

Share this post


Link to post
Share on other sites
As for the "Error suppression ignored for" notice. This means that you have (or your host has) configured PHP to ignore the error suppression operator (you know, the "@"), and show errors anyway. This notice essentially means that a "@" was found, and because of that setting, it is being ignored, so you're being notified that, if you happen to see an error originating from that line, you're only able to see it due to that setting. BTW, using the "@" operator in general is a bad idea. It's best to test for the possible error conditions beforehand instead. There are very few cases where that's not possible, and in those, the use of @ should be immediately followed by result inspection (e.g. if a problematic function would return false on failure, check if the result was false), and error handling.
ok thanks

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...