![]() |
PHP Answer Then PHP Question
Hey, So cecilia made Answer Then ask, so i made this,
PHP Answer Then PHP Question, Quote:
Enjoy.. PS: Try and keep the question and answer short if possible. |
mysqli_connect makes use of the MySQLimproved library which is faster than the old mysql_* function - how ever the OO approached is preferred.
|
This will be a short/simple answer.
What's the difference between include and require (with standard/default error_reporting). |
Quote:
A: $_GET will retrieve parameters from the URI, it is publicly viewable and editable. $_POST grabs the parameters from the HTTP header (?right?) and it is harder to edit or "hack" but not impossible. Q: What is the difference from a "for" and a "while" loop? |
A: "For" i mainly to state one action to do, and while is to do while something else is done at the same time if that makes any sense..
Q: How do I find out if an array has values posted to each of its elements? I need to know that EVERY element has been filled out. PS: I know the answer to this question but to keep the minds flowing i shall ask questions, |
something like this maybe :)
A: PHP Code:
srand((double)microtime()*1000000); echo rand(0,100); |
A:
PHP Code:
Q: How can you move a file which has been uploaded? (Assume that it is in the $_FILES array). |
Quote:
Why is MIME type a bad way to validate your uploads? |
|
Quote:
Long answer: File extension will suffice, but actually validating the content is the best way (although this is rarely practical). Which of the following will NOT locally work with PHP on a *nix machine MySQL SQL Server 2005 PostgreSQL |
A: SQL Server 2005 (if i remember correctly)
Q: Can you store unlimited data in a cookie ? |
A: No, unlimited data does not exist. It is physically impossible to store an infinite amount of data. I think you can store 4 kilobytes.
Q: What is the best way to sort 1,000,000 32-bit integers. |
A:
PHP Code:
|
Quote:
At what version did PHP add respectable OOP functionality. |
A: PHP4..
Q: How can I create thumbnails using PHP? |
| All times are GMT. The time now is 06:32 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0