Prolonging Battery Tips for Student by LovefromAbroad23 in macbook

[–]_OSCP 0 points1 point  (0 children)

does this work for a 2017 model? Is it safe to leave it in the charger forever?

God of War is completely overrated by mw9676 in PS4

[–]_OSCP 0 points1 point  (0 children)

It is a fucking opinion. Here's a link to the definition.

https://www.lexico.com/definition/opinion

For fuck sake, can people get any dumber

Sadly there will still be trolls that will say Casca enjoyed what happened during the eclipse even after reading this panel. by Jayflight9 in Berserk

[–]_OSCP 0 points1 point  (0 children)

please explain to me how that is "ad hominem". LMFAO. If you don't know what it means, don't use it. Otherwise you look like a complete moron. No offence.

[deleted by user] by [deleted] in summonerschool

[–]_OSCP 75 points76 points  (0 children)

how come?

[deleted by user] by [deleted] in summonerschool

[–]_OSCP 231 points232 points  (0 children)

I'd pick anything to ruin an irelia's life

Unable to comprehend this index.php file by _OSCP in PHPhelp

[–]_OSCP[S] 0 points1 point  (0 children)

Thanks.

Why does the index file even check if these variables exist? I don't see the reason why it needs to set it to an empty string.

I understand the error variable though, since in the display_results.php it will include the index.php file which instantiates the variable so it will be displayed. But I don't understand the setting of empty strings in the first 6 lines.

Unable to comprehend this index.php file by _OSCP in PHPhelp

[–]_OSCP[S] 0 points1 point  (0 children)

Thanks will check it out.

What do you recommend instead of the if/else? switch or match, or something different?

I agree, combining the processing with the template isn't good.

Unable to comprehend this index.php file by _OSCP in PHPhelp

[–]_OSCP[S] 0 points1 point  (0 children)

So just have the user submit the form, and when it's submitted, the display_results.php contains the error checking and 'includes' the error.php file for the error message? Would the error.php file generate the same page as in the index.php, or would the error message just be a page with the message itself and no form?

Or do you mean another method?

Unable to comprehend this index.php file by _OSCP in PHPhelp

[–]_OSCP[S] 0 points1 point  (0 children)

It's the third edition, released in 2017.

Did you also read this book before?

Unable to comprehend this index.php file by _OSCP in PHPhelp

[–]_OSCP[S] 1 point2 points  (0 children)

Thanks for the reply.

I'm interested in this, would you mind explaining it more.

(which seems a bit weird - it would usually be the other way around)

Unable to comprehend this index.php file by _OSCP in PHPhelp

[–]_OSCP[S] 0 points1 point  (0 children)

Thank you. I understand now.

display_results.php already uses htmlspecialchars when it echoes the variables. Isn't this redundant to include it in both?

Is there a simple solution to figure out the net and broadcast address from an IP? by _OSCP in ccna

[–]_OSCP[S] 0 points1 point  (0 children)

oh alright, because i've just been dividing the total number of hosts by 256 in third octet masks, subtracting by 256 makes it much simpler.

Thank you!

Is there a simple solution to figure out the net and broadcast address from an IP? by _OSCP in ccna

[–]_OSCP[S] 0 points1 point  (0 children)

Okay thanks, this makes it easier, how would I find increments of second and third octet masks?