20000 forum users - Awesome Special Event!

Thank you. (For saying this, I find such attitude infuriating)

8 Likes

OK - we all have moments when we have low self-esteem or negative self-regard
or we are insecure,
but try not to let your thoughts be harmful to your mental health and well-being.

You are not stupid and don’t talk about yourself like that !
Happiness does not come, it is created by your mental state (your thoughts and the choice of what you will think in every second of your life).

Don’t be so hard on yourself :sunny:

You have friends here who appreciate you and want to help you

9 Likes

Today I received a “gift” from ISP + €50 on a card from one store

now I will have additional work until I configure everything on the tablet

8 Likes

Wow! Your ISP must be so kind to customers for those things!

8 Likes

They do “everything” just to sign a contract for 2 years

8 Likes

Does anyone know why PHP does this?
image
image
Whenever I render HTML inside or right after a PHP if, the indentation gets messed up.

6 Likes

Attach that code right before the article tag, you are welcome!

8 Likes

Well that would be one solution, but that would make the code look messy.

4 Likes

Why do you not put that first two lines of php codes into a single <?php ?> tag?

8 Likes

Good point. But that still doesn’t change the outcome.

5 Likes

What I wonder is what is wrong with some people in here. :thinking:

4 Likes

What’s wrong with who?

7 Likes

I don’t know, but it’s better to not know about it…

7 Likes

Mmm, I guess it’s better if I don’t mention their names here. But not you guys! You guys are amazing. People come here to find solutions, so we are willingly helping them solve their issues, but what I see frustrating is that few people in here are comparing their knowledge with others. For example, I know very well about the cybersecurity field, but sometimes my answers may be doubtful to someone or not accurate. We all make mistakes. So if something like that happens, it’s better to discuss it rather than argue about it. In this community forum, I’ve seen every helping user have good knowledge about what they are talking about, but if they ever say or point out something that is wrong or doubtful, be a gentleman and handle it if you know about it well. And I rarely reply to WordPress website errors because I don’t have a good experience with WordPress.

7 Likes

Where exactly?

6 Likes

Thank you so much!

I totally agree, especially with the last point. It’s better to be nice than to fight fire with fire, especially with who knows less and with who tends to vary their character by too much when someone tries to help the other.

I also agree with that! I sometimes make some mistakes, but I promptly correct them when I finally get the prompted things the user missed. I can also find out errors in their side and correct them.

It’s OK; I also tend to not have any errors while working on my blog, which also uses WordPress, and tend to solve them myself if I ever happen to have one.

7 Likes

:smiling_face: :smiling_face_with_three_hearts: (Gotta wait 2 hours to like again)

6 Likes

And well, what was meant to be my main topic on this topic (so the daily like limit) is now yours; don’t worry, in some days and after you read some more you’ll get the trust level that will allow you to like more a day!

6 Likes

Hi @YT_Xaos ,

That is because the part that comes before <?php and those between ?> and other HTML tags are effectively spaces in HTML, which is treated as plaintext. PHP output plaintext as is, that’s why.

One way of solving this is to group all PHP code at the top of the file as a big PHP block (that is - if your code is contained in a single file and without any MVC frameworks), then output anything else as per needed below to reduce the chances of needing multiple indentations across 2 languages.

Usually, this cannot be completely avoided but you can get desirable results if you can compromise the IDE side of indentation.

Alternatively, you can also take a look at PHP tidy functions.
https://www.php.net/manual/en/book.tidy.php

Either way, this has no impact on user experience as the browser would just render the page the same way.

Cheers!

8 Likes

Thank you! You are amazing too.

Agreed.

Same here, I have zero knowledge of WordPress.

Yes, I know. My question was purely because I like to keep things nice and organized, so when that happens I just get annoyed. Thank you for your help, though!

7 Likes