php Programming Glossary: conclusion
How foreach actually works http://stackoverflow.com/questions/10057671/how-foreach-actually-works 4 5 array after loop 1 3 4 5 6 7 This backs up our initial conclusion we are working with a copy of the source array during the loop.. C fu is not good enough for me to able to extract a proper conclusion simply by looking at the PHP source code I would appreciate..
Derived class defined later in the same file “does not exist”? http://stackoverflow.com/questions/12617188/derived-class-defined-later-in-the-same-file-does-not-exist educated guesses. Even though I am fully confident in the conclusion the terminology or details might be off. I 'd love to hear from.. inserted into class_table by do_bind_inherited_class . The conclusions The Zend compiler does not act on include directives at compile..
What is the right way to handle $_POST data in MVC? http://stackoverflow.com/questions/13359818/what-is-the-right-way-to-handle-post-data-in-mvc something like Request getPost although I have come to the conclusion that in a correctly structured application the GET and POST..
PHP $_SERVER['HTTP_HOST'] vs. $_SERVER['SERVER_NAME'], am I understanding the man pages correctly? http://stackoverflow.com/questions/1459739/php-serverhttp-host-vs-serverserver-name-am-i-understanding-the-ma without proper escaping to prevent XSS attacks. My conclusion about my original question above is that it is safe to use _SERVER..
At what level should safemode be solved? How? http://stackoverflow.com/questions/16167328/at-what-level-should-safemode-be-solved-how php safe mode share improve this question The conclusion you draw from the PHP manual page is wrong. You didn't read..
Why does crypt/blowfish generate the same hash with two different salts? http://stackoverflow.com/questions/2225720/why-does-crypt-blowfish-generate-the-same-hash-with-two-different-salts question After some experimentation I have come to the conclusion that this is due to the way the salt is treated. The salt is.. e8955be6162468deb0da3ucYVpET7X 5YddEeJxVqqUIxs3COrdym The conclusion Twofold. First it's working as intended and second know your..
Commitment to Zend Framework - any arguments against? http://stackoverflow.com/questions/2427981/commitment-to-zend-framework-any-arguments-against able to switch frameworks more easily but have come to the conclusion that this would not be a good idea because it would be an unnecessary..
What is correct HTTP status code when redirecting to a login page? http://stackoverflow.com/questions/2839585/what-is-correct-http-status-code-when-redirecting-to-a-login-page using 302 for now until I find the correct answer. Update conclusion HTTP 302 is better since its known to have best compatibility..
Single quotes or double quotes for variable concatenation? [closed] http://stackoverflow.com/questions/3316060/single-quotes-or-double-quotes-for-variable-concatenation for the last versions of PHP that most of the time the conclusion is that it doesn't really matter. So for the performance people..
Exotic names for methods, constants, variables and fields - Bug or Feature? http://stackoverflow.com/questions/3417180/exotic-names-for-methods-constants-variables-and-fields-bug-or-feature lowercasing that only works with ASCII characters. In conclusion if we use multi byte encodings for these case insensitive identifiers..
Regex to conditionally replace Twitter hashtags with hyperlinks http://stackoverflow.com/questions/4277070/regex-to-conditionally-replace-twitter-hashtags-with-hyperlinks and playing around with various tags I came to the conclusion that a hashtag must contain alphabetic characters or an underscore..
Facebook mutual friends and FQL 4999/5000 record limit http://stackoverflow.com/questions/4281210/facebook-mutual-friends-and-fql-4999-5000-record-limit an hour of searching for this answer I've come to the conclusion the only way to get around this is to use a mixture of the two..
REST API - why use PUT DELETE POST GET? http://stackoverflow.com/questions/4573305/rest-api-why-use-put-delete-post-get a lot about XML RPC JSON RPC SOAP REST I came to a conclusion that this type of API is sound. Actually stack exchange is pretty..
Is time() a good salt http://stackoverflow.com/questions/4983915/is-time-a-good-salt selection makes the targets as thin as is practical. In conclusion Use a random evenly distributed high entropy salt. Use a new..
Is this correct object oriented programing in php? [closed] http://stackoverflow.com/questions/5329664/is-this-correct-object-oriented-programing-in-php instead. Improving it Our findings should lead us to the conclusion that a Greeting should rather be a dumb Type encapsulating the..
Is strip_tags() vulnerable to scripting attacks? http://stackoverflow.com/questions/5788527/is-strip-tags-vulnerable-to-scripting-attacks and are done on the tag buffer which is discarded. So the conclusion is strip_tags without a tag whitelist is safe for inclusion..
Faceted Search (solr) vs Good old filtering via PHP? http://stackoverflow.com/questions/7256405/faceted-search-solr-vs-good-old-filtering-via-php This'll give you id name 1 blue paint So in conclusion. Although it's available out of the box in Solr it's possible..
Can mysql_real_escape_string ALONE prevent all kinds of sql injection ? [duplicate] http://stackoverflow.com/questions/9814642/can-mysql-real-escape-string-alone-prevent-all-kinds-of-sql-injection against malicious users WILL lead you to injection. A conclusion that you can make yourself No this function is not enough ...
Building a website using node.js - best practice [closed] http://stackoverflow.com/questions/11311672/building-a-website-using-node-js-best-practice module. See this SO question of mine for more information. Conclusion What I'm trying to get at is this Asking what the best practice..
How to detect fake users ( crawlers ) and cURL http://stackoverflow.com/questions/12257584/how-to-detect-fake-users-crawlers-and-curl if you detect one of those keys on your _SERVER variable. Conclusion There is a lot of ways to detect abuses on your website so you'll..
Optimizing Kohana-based Websites for Speed and Scalability http://stackoverflow.com/questions/1260134/optimizing-kohana-based-websites-for-speed-and-scalability Site Optimization Maximum Website Performance using Kohana Conclusion And to conclude a simple thought How much will it cost your..
PHP: Illegal string-offset http://stackoverflow.com/questions/13906822/php-illegal-string-offset parse data return all return mixed return this final Conclusion Has i said i know this has been answered but i hope this helps..
User recognition without cookies or local storage http://stackoverflow.com/questions/15966812/user-recognition-without-cookies-or-local-storage debug true echo b DEBUG b message END debug END class Conclusion Identifying a user without a Unique Identifier is not a straight..
pcntl runs the same code several times, assistance required http://stackoverflow.com/questions/16383803/pcntl-runs-the-same-code-several-times-assistance-required extends Stackable public total 0 public function run Conclusion Did file_get_contents just get 100 pages in just 1.489 sec with..
Why does GlobIterator produce a different output than the glob function? http://stackoverflow.com/questions/16396334/why-does-globiterator-produce-a-different-output-than-the-glob-function array_values array_map strval iterator_to_array glob2 Conclusion Yes your code would work on any platform so far you do Unit..
How to hash long passwords (>72 characters) with blowfish http://stackoverflow.com/questions/16594613/how-to-hash-long-passwords-72-characters-with-blowfish using a bible quote. In fact the exact opposite. Conclusion You're not really going to help people much who use long passwords..
Malicious php file content [closed] http://stackoverflow.com/questions/16714107/malicious-php-file-content http . _SERVER HTTP_HOST . _SERVER REQUEST_URI Conclusion This is a code with a lot of obfuscation to get the data from..
Bulletin board - Database optimisation http://stackoverflow.com/questions/4310769/bulletin-board-database-optimisation chapter title in both the ToC and the top of the page is Conclusion . After fighting them all the way through Uni as soon as I started..
How to handle a PHP switch with different types? http://stackoverflow.com/questions/5563079/how-to-handle-a-php-switch-with-different-types case false echo 'false' break default echo 'default' break Conclusion Switch case does loose comparison. Solutions switch with ifs..
PHP .htaccess -> pretty url (in reverse) http://stackoverflow.com/questions/5573485/php-htaccess-pretty-url-in-reverse the redirects that htaccess rewrites back to original... Conclusion change a href index.php id 1 ..... automaticaly to index 1 2..
How does PHP assign and free memory for variables? http://stackoverflow.com/questions/5971090/how-does-php-assign-and-free-memory-for-variables resulted in the same exact memory use for the given data . Conclusion PHP seems smart enough in this simple test to not needlessly..
Match a^n b^n c^n (e.g. “aaabbbccc”) using regular expressions (PCRE) http://stackoverflow.com/questions/7434272/match-an-bn-cn-e-g-aaabbbccc-using-regular-expressions-pcre c is necessary so we don't only match a part of the b s. Conclusion I think this impressively shows that modern regex is not only..
PHP session hijack [duplicate] http://stackoverflow.com/questions/7789680/php-session-hijack just enough to keep my session safe from hijack Conclusion Cookie only stores session identificator all the values are..
How to identify web-crawler? http://stackoverflow.com/questions/8404775/how-to-identify-web-crawler to implement so I'm not going to delve into this too much. Conclusion For your purposes probably the best way to deal with bots is..
Store all data changes with every details (like Stackoverflow) [closed] http://stackoverflow.com/questions/9852703/store-all-data-changes-with-every-details-like-stackoverflow a big issue when working in a team with other programmers. Conclusion Option B can be very handy for small apps as a simple drop in..
|