Home » Tag Archives:ph (page 810)

Tag Archives: ph

New self vs. new static

November 2, 2017 Php Leave a comment

Questions: I am converting a PHP 5.3 library to work on PHP 5.2. The main thing standing in my way is the use of late static binding like return new static($options); , if I convert this to return new...

What is 'YTowOnt9'?

November 2, 2017 Php Leave a comment

Questions: Our (PHP) framework sometimes renders hidden inputs with value YTowOnt9. I can’t find that string anywhere in the (huge) codebase, and can’t figure out where it came from. I dec...

Website screenshots

November 2, 2017 Php Leave a comment

Questions: Is there any way of taking a screenshot of a website in PHP, then saving it to a file? Answers: LAST EDIT: after 7 years im still getting upvote fot this answer, but I guess this one is now...

define() vs const

November 2, 2017 Php Leave a comment

Questions: Pretty straightforward question: In PHP, when do you use define('FOO', 1); and when do you use const FOO = 1; What are the main differences between those two? Answers: As of PHP 5.3 there a...