Avatar

vedran

vedran

About

Username
vedran
Joined
Visits
26
Last Active
Roles
Member, OG
Thanked
31

Comments

  • Is it really needed tho? I know I'm not super active here, but I don't really remember seeing that many necroposts to the point where it would even slightly annoy me. Personally I would be more annoyed with the big red warning while reading some old thread with no intention to reply
  • No drama and people just being nice to each other is probably the main reason I don't visit this place very often. I know, I'm a bad person, LET has ruined me
  • That's why I dislike Pi. It's supposed to be like $5, $15, $35 or whatever but in the end when you buy it in Europe it ends up being much more. Even 15,90 € would be (kind of) acceptable, but I remember buying the original Pi and instead of $35 it ended up costing something like €60 or ($70). It's cool and all but there…
  • One of the reasons people hate PHP. Not only it allows you to write bad code but pretty much encouraged it for way too long.
  • Ah, I missed the fact the first one is within if statement so it might or might not be set. And if not you get the error in the second one. At this point probably best to just initialize the variable at the beginning of the function (or anywhere before if statement) $custom_content = ''; And you can add back that dot (or…
  • Why would you remove the second? :# Remove just the first one
  • Yes in general, in this case we know for sure since it's inside a user defined function (and it's not declared as global or static) so it's scope is local to that function and won't be available elsewhere. Of course assuming this is full unstripped function code
  • Replace .= with = It's not an error, it's a notice, you are trying to append text to a variable which is not defined yet. You probably have a separate custom php.ini for other sites and not site A, and looks like PHP8 changed default error reporting

This Site is currently in maintenance mode.
Please check back here later.

→ Site Settings