- Syntax errors
- mysql_* expects x y give
- Undefined offset
- Blank page of death
- Convert my code in language X to language Y
- The 100000th question about how to access an array value
- Trying to access a
GETvariable on aPOSTrequest
Are just some I can think of. I'm pretty sure when I open the main frontpage I can think of some more. Note this is only from the PHP tag. I don't even want to start thinking about JS. The above are either type / RTFM questions or just the 10000th dupe. I don't see how they will fit the off-topic reasons.
To expand on this:
###Syntax / parse errors
Often the result of typo or a user error. I don't see how this fits off topic.
- Parse error: syntax error, unexpected T_STRING, expecting ')'
- Parse error: syntax error, unexpected T_STRING in /home/content/94/10213294/html/ROOTNAME/videopage/settings.php on line 6
- Close all the typo questions
###mysql_* expects x y give
This can have several causes. A query which fails. Now we could find a generic dupe (one of many) which may help OP get further, but in most cases it wouldn't answer OP, but instead help him find his localized problem.
- https://stackoverflow.com/questions/17135797/php-login-script-not-working
- https://stackoverflow.com/questions/17101147/mysql-num-rows-expects-parameter-1-to-be-resource-boolean-given-in-c-wamp-ww
- https://stackoverflow.com/questions/17051206/php-mysql-error-creating-database-mysql-query-expects-parameter-1-to-be-stri
###Undefined offset
- https://stackoverflow.com/questions/14938134/undefined-offset-error-in-explode
- https://stackoverflow.com/questions/15607766/phpesp-undefined-offset
- https://stackoverflow.com/questions/17011206/undefined-offset-0-codeigniter
Basically the same as the first.
###Blank page of death
- https://stackoverflow.com/questions/10049736/what-is-wrong-with-this-code-php-cookies
- PHP shows blank page
- https://stackoverflow.com/questions/15369988/single-php-error-with-blank-page
OP doesn't have error reporting enabled and if enabled will identify OPs localized problem in his code.
###Convert my code in language X to language Y
This may be a nice off topic candidate when the right reason is provided now I've given it some more thought.
###The 100000th question about how to access an array value
- PHP - Get array values
- Arrays as Class Variables, Set in Constructs in Class
- Can't access the values in my array
Every array will be different. So every answer will be different, but only to OPs specific code. Hence too localized.
As you can see above the TL reason is used (and I often used legitimately imho). So when TL is going to be gone stuff like this should be addressed in some way or we will have this exact same thing all over again only for some other close reason.
Some questions that were closed as TL today (in the PHP room):
- https://stackoverflow.com/questions/17210332/php-switches-in-codeigniter-will-result-in-undefined-constant
- https://stackoverflow.com/questions/17135797/php-login-script-not-working/
- https://stackoverflow.com/questions/7531135/how-to-write-this-inside-php
- https://stackoverflow.com/questions/17210924/php-cant-find-error-in-code
- https://stackoverflow.com/questions/17194585/parse-error-syntax-error-in-phar-but-not-in-source
Feel free to point out how these questions can be closed in the future or whether you disagree and think these questions shouldn't be closed in the first place.