Why I get “ERR_RESPONSE_HEADERS_TOO_BIG” on chrome?

The following code is executed correctly on firefox, but not on Chrome. The later always displays “ERR_RESPONSE_HEADERS_TOO_BIG”. This error occurs when I iterate through a folder containing more than 10000 items (files) – it must be long task. Please can anyone explain me how to avoid this error? The error disappears if I “echo”-ing something … Read more

Sending POST data in Android

Note (Oct 2020): AsyncTask used in the following answer has been deprecated in Android API level 30. Please refer to Official documentation or this blog post for a more updated example Updated (June 2017) Answer which works on Android 6.0+. Thanks to @Rohit Suthar, @Tamis Bolvari and @sudhiskr for the comments. References: https://developer.android.com/reference/java/net/HttpURLConnection.html How to … Read more

Check if URL has certain string with PHP

I would like to know if some word is present in the URL. For example, if word car is in the URL, like www.domain.com/car/ or www.domain.com/car/audi/ it would echo ‘car is exist’ and if there’s nothing it would echo ‘no cars’.

The character encoding of the HTML document was not declared

When I click on my form’s submit button the following error message appears: The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must to be declared in … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)