php Programming Glossary: personally
Calling PHP functions within HEREDOC strings http://stackoverflow.com/questions/104516/calling-php-functions-within-heredoc-strings this question I would not use HEREDOC at all for this personally. It just doesn't make for a good template building system. All..
Building a website using node.js - best practice [closed] http://stackoverflow.com/questions/11311672/building-a-website-using-node-js-best-practice can be found here which includes his favourite doT . I personally use Node for socket.io based apps only so he's a better source..
Sanitizing user's data in GET by PHP http://stackoverflow.com/questions/1314518/sanitizing-users-data-in-get-by-php . Or indeed prepared statements as you mentioned though I personally find them less managable . Either way you can then forget about..
What does the variable $this mean in PHP? http://stackoverflow.com/questions/1523479/what-does-the-variable-this-mean-in-php the time and I have no idea what it's used for. I've never personally used it and the search engines ignore the and I end up with..
Best pdf generator in PHP , mpdf or fpdf? [closed] http://stackoverflow.com/questions/1648715/best-pdf-generator-in-php-mpdf-or-fpdf php pdf pdf generation share improve this question personally i'd rather go with tcpdf which is an ehnanced and mantained..
Calling Python in PHP http://stackoverflow.com/questions/166944/calling-python-in-php escapeshellarg and escapeshellcmd can help with this but personally I like to remove everything that isn't a known good character..
Working with large numbers in PHP http://stackoverflow.com/questions/211345/working-with-large-numbers-in-php the arbitrary length precision numbers BC Math and GMP . I personally prefer GMP as it's fresher and has richer API. Based on GMP..
What's wrong with using $_REQUEST[]? http://stackoverflow.com/questions/2142497/whats-wrong-with-using-request config in PHP 5.3. Where this is not possible I personally would avoid _REQUEST and if I needed a combined GET POST array..
What is the size limit of a post request? http://stackoverflow.com/questions/2364840/what-is-the-size-limit-of-a-post-request what I'm able to find online. So please limit answers to personally tested verified numbers. I am wanting to post back an XML string.. max post size php_value post_max_size 20M And yes I can personally attest to the fact that this works If you're using IIS I don't..
What is a RECURSIVE Function in PHP? http://stackoverflow.com/questions/2648968/what-is-a-recursive-function-in-php to using recursive functions in web development I do not personally resort to using recursive calls. Not that I would consider it..
How to wrap long lines without spaces in HTML? http://stackoverflow.com/questions/363425/how-to-wrap-long-lines-without-spaces-in-html css textwrapping share improve this question I haven't personally used it but Hyphenator looks promising. Also see related possibly..
PHP session without cookies http://stackoverflow.com/questions/3740845/php-session-without-cookies I think disabling cookies is just unnecessary paranoia personally . php session cookies share improve this question I don't..
Instantiate a class with or without parentheses? [duplicate] http://stackoverflow.com/questions/3873111/instantiate-a-class-with-or-without-parentheses to be absolutely negligible. While both ways are fine I personally would prefer using new Car because usually a method is being..
When *not* to use prepared statements? http://stackoverflow.com/questions/535464/when-not-to-use-prepared-statements leery of slamming their servers by doing any stress tests personally. Given that using prepared statements will at minimum double..
PHP, MySQL and Time Zones http://stackoverflow.com/questions/5768380/php-mysql-and-time-zones other answers pointed out MySQL's CONVERT_TZ though I'd personally have done it by hopping between server native and UTC timezones..
parameters in MySQLi http://stackoverflow.com/questions/728229/parameters-in-mysqli the functions related to MySQLi_STMT . Note that I personally prefer using PDO over mysqli I don't like all the bind_param..
Is include()/require() with “side effects” a bad practice? http://stackoverflow.com/questions/7697389/is-include-require-with-side-effects-a-bad-practice considered a bad practice to avoid I personally believe that the execution of a require or require_once or include..
Upload Progress Bar in PHP http://stackoverflow.com/questions/849237/upload-progress-bar-in-php a shared host and it claims to support html5 drag and drop personally untested and multiple file uploads. share improve this answer..
Is APC compatible with PHP 5.4 or PHP 5.5? http://stackoverflow.com/questions/9611676/is-apc-compatible-with-php-5-4-or-php-5-5 will have to be maintained for each new release. I would personally advise those who depend on APC for it's opcode caching to test..
How can I write SQL for a table that shares the same name as a protected keyword in MySql? http://stackoverflow.com/questions/10706920/how-can-i-write-sql-for-a-table-that-shares-the-same-name-as-a-protected-keyword or wrap it in the escape characters such as ` for mysql. Personally I just avoid using them as they generally cause more headache..
Registry design pattern…good or bad? http://stackoverflow.com/questions/1151341/registry-design-pattern-good-or-bad common practise. If it's good or bad is a judgement call. Personally I'm willing to accept some complexity in return of decoupling..
Stop using `global` in PHP http://stackoverflow.com/questions/12445972/stop-using-global-in-php why this question is being asked over and over again. Personally for me it's gotten more clear after all but still there are..
What's the difference between echo, print, and print_r in PHP? http://stackoverflow.com/questions/1647322/whats-the-difference-between-echo-print-and-print-r-in-php such usage is rare echo is slightly faster than print . Personally I always use echo never print . var_dump prints out a detailed..
Why is require_once so bad to use? http://stackoverflow.com/questions/186338/why-is-require-once-so-bad-to-use It's not great and it'll junk up your code but it's light. Personally I'll stick with the ..._once statements. share improve this..
Stemming algorithm that produces real words http://stackoverflow.com/questions/190775/stemming-algorithm-that-produces-real-words community will be recognized as the more similar option Personally I think the way I would do it would be a dynamic form of #1..
PHP class instantiation. To use or not to use the parentheses? http://stackoverflow.com/questions/1945989/php-class-instantiation-to-use-or-not-to-use-the-parentheses coding by any code convention use which you like better. Personally I like to leave it out as it is really just clutter to me. ..
Sorting multidimensional array in PHP http://stackoverflow.com/questions/2059255/sorting-multidimensional-array-in-php array usort share improve this question Personally I would use a custom anonymous function in conjunction with..
Which coding style you use for ternary operator? [closed] http://stackoverflow.com/questions/243217/which-coding-style-you-use-for-ternary-operator b 'true value # 1' a c 'true value # 2' 'false value' Personally which style you use or find most readable Edit on when to use..
Invalid argument supplied for foreach() http://stackoverflow.com/questions/2630013/invalid-argument-supplied-for-foreach style foreach php errors share improve this question Personally I find this to be the most cleanest not sure if it's the most..
How to check file types of uploaded files in PHP? http://stackoverflow.com/questions/310714/how-to-check-file-types-of-uploaded-files-in-php the above two pages there are some other good suggestions. Personally I've had good luck using something that's essentially system..
Performance of FOR vs FOREACH in PHP http://stackoverflow.com/questions/3430194/performance-of-for-vs-foreach-in-php consensus seems to be yes I can't use echo in benchmarks. Personally I still don't see how echo is some function with random time.. opinion is to use what makes sense in the context. Personally I almost never use for for array traversal. I use it for other..
What's the difference between PHP's DOM and SimpleXML extensions? http://stackoverflow.com/questions/4803063/whats-the-difference-between-phps-dom-and-simplexml-extensions can be influenced to some extend by the libxml functions Personally I dont like SimpleXml too much. That's because I dont like the..
Pulling Track Info From an Audio Stream Using PHP http://stackoverflow.com/questions/4911062/pulling-track-info-from-an-audio-stream-using-php I'll let you pick your method of choice for parsing this. Personally I'd probably just split with a limit of 2 on but beware of titles..
PHP 2-way encryption: I need to store passwords that can be retrieved http://stackoverflow.com/questions/5089841/php-2-way-encryption-i-need-to-store-passwords-that-can-be-retrieved encryption passwords share improve this question Personally I would use mcrypt like others posted. But there is much more..
PHP - concatenate or directly insert variables in string http://stackoverflow.com/questions/5605965/php-concatenate-or-directly-insert-variables-in-string two syntaxes you should really choose the one you prefer Personally I would go with your second solution in such a case Variable..
What is the best way to generate a random key within PHP? http://stackoverflow.com/questions/637278/what-is-the-best-way-to-generate-a-random-key-within-php be possible. php random share improve this question Personally I like to use sha1 microtime true .mt_rand 10000 90000 but you..
Doing calculations in MySQL vs PHP http://stackoverflow.com/questions/6449072/doing-calculations-in-mysql-vs-php thumb Generating incremental ids should happen in the DB. Personally i like my default applied by the DB. When selecting anything..
|