php Programming Glossary: i've
When to use single quotes, double quotes, and backticks? http://stackoverflow.com/questions/11321491/when-to-use-single-quotes-double-quotes-and-backticks to use single quotes double quotes and backticks I've been reading answers to similar questions on here for about.. words or make use of characters requiring quoting but I've quoted them anyway with backticks more on this later... . query..
How to properly set up a PDO connection http://stackoverflow.com/questions/11369360/how-to-properly-set-up-a-pdo-connection it or I might just not get the answers correctly. Anyway I've never thought about it because the way I do it works for me... some other global configuration for the site connect.php I've put the connection onto a class so other classes can extends.. started learning OOP and using PDO instead of mysql. So I've just followed a couple of beginners tutoraials and tried out..
Simplest PHP example for retrieving user_timeline with Twitter API version 1.1 http://stackoverflow.com/questions/12916539/simplest-php-example-for-retrieving-user-timeline-with-twitter-api-version-1-1 that Twitter uses here. 5. Write code to access the API I've done most of it for you I combined the code above with some.. This uses oAuth and the Twitter v1.1 API and the class I've created which you can find below. require_once 'TwitterAPIExchange.php'.. getfield buildOauth url requestMethod performRequest I've put these files on Github with credit to @lackovic10 and @rivers..
How can I store my users' passwords safely? http://stackoverflow.com/questions/1581610/how-can-i-store-my-users-passwords-safely safely How much more safe is this than plain MD5 I've just started looking into password security. I'm pretty new..
Using a regular expression to validate an email address http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address expression you have or have seen for validating emails I've seen several solutions that use functions that use several shorter..
Code obfuscator for php? [closed] http://stackoverflow.com/questions/232736/code-obfuscator-for-php php closed Hey Has anybody used a good obfuscator for PHP I've tried some but they dont work for very big projects. They can't..
PHP + MySQL transactions examples http://stackoverflow.com/questions/2708237/php-mysql-transactions-examples you show me simple example of that And one more question. I've already done a lot of programming and didn't use transactions...
Secure hash and salt for PHP passwords http://stackoverflow.com/questions/401656/secure-hash-and-salt-for-php-passwords always the safest but least memorable solution. So far as I've been able to tell making the world's best password is a Catch.. but yourself. Lastly I am not a cryptographer. Whatever I've said is my opinion but I happen to think it's based on good..
MySQL and NoSQL: Help me to choose the right one http://stackoverflow.com/questions/4419499/mysql-and-nosql-help-me-to-choose-the-right-one forum_id new.forum_id end# delimiter You may have noticed I've included reply_count as part of the primary key which is a bit.. 250 forums 5 million threads 1250 000 000 1.2 billion rows I've deliberately made some of the forums contain more than 5 million..
php execute a background process http://stackoverflow.com/questions/45953/php-execute-a-background-process question Assuming this is running on a Linux machine I've always handled it like this exec sprintf s s 2 1 echo s cmd..
MySQL Great Circle Distance (Haversine formula) http://stackoverflow.com/questions/574691/mysql-great-circle-distance-haversine-formula Great Circle Distance Haversine formula I've got a working PHP script that gets Longitude and Latitude values.. AND Does anyone know how to make this entirely MySQL I've browsed the Internet a bit but most of the literature on it..
Using comet with PHP? http://stackoverflow.com/questions/603201/using-comet-with-php AFAIK this isn't something that's possible in PHP. I've only seen it in Java see the Apache Tomcat server . Edit There's..
How to calculate the difference between two dates using PHP? http://stackoverflow.com/questions/676824/how-to-calculate-the-difference-between-two-dates-using-php you want to do that just output the date. Despite all that I've decided to address the complaints. If you truly need an exact..
php $_POST array empty upon form submission http://stackoverflow.com/questions/1282909/php-post-array-empty-upon-form-submission array empty upon form submission I have a custom CMS i've built that works perfectly on my dev box Ubuntu PHP5 MySQL5..
Why is REGISTER_GLOBALS so bad? http://stackoverflow.com/questions/1417373/why-is-register-globals-so-bad is REGISTER_GLOBALS so bad I'm not a PHP developer but i've seen in a couple of places that people seem to treat it like..
Reading very large files in PHP http://stackoverflow.com/questions/162176/reading-very-large-files-in-php it choke though smaller files around 100k are just fine. i've read that it is sometimes necessary to recompile PHP with the..
Turn Plain Text URLs into Active Links using PHP [closed] http://stackoverflow.com/questions/17900004/turn-plain-text-urls-into-active-links-using-php I am a newbie. I was wondering how to do that because i've always wanted to make a joke with my friend. Would you please..
PHP validation/regex for URL http://stackoverflow.com/questions/206059/php-validation-regex-for-url question i used this on a few projects i don't believe i've run into issues but i'm sure it's not exhaustive text preg_replace..
Minify / Obfuscate PHP Code http://stackoverflow.com/questions/2064973/minify-obfuscate-php-code function var names are so often completely arbitrary i've edited minified js and it wasn't much more of a hassle than..
php function to make slug (url string) http://stackoverflow.com/questions/2955251/php-function-to-make-slug-url-string ' ^ ' array '' ' ' '' str_replace a b str Works great but i've found some cases in which it fails echo gen_slug 'andrés' returns..
Simplify PHP DOM XML parsing - how? http://stackoverflow.com/questions/3405117/simplify-php-dom-xml-parsing-how file that looks okay but i cannot use it how i think when i've created it's structure. Sample XML fragment pages root element..
Storing Data in MySQL as JSON http://stackoverflow.com/questions/3564024/storing-data-in-mysql-as-json as JSON I thought this was a n00b thing to do and so i've never done it than i saw that FriendFeed did this and actually..
What unit testing in PHP to start [duplicate] http://stackoverflow.com/questions/4624093/what-unit-testing-in-php-to-start pretty much every php developer Please correct me if i've stated something wrong or forgot something share improve this..
How to use Facebook graph API to retrieve fan photos uploaded to wall of fan page? http://stackoverflow.com/questions/5083464/how-to-use-facebook-graph-api-to-retrieve-fan-photos-uploaded-to-wall-of-fan-pag media set set o.116860675007039 Another note The only way i've come close to retreiving this data is by using the feed option....
PHP, MySQL and Time Zones http://stackoverflow.com/questions/5768380/php-mysql-and-time-zones I am trying to integrate a timezone system in my app i've really tried hard on avoiding making timezone aware apps upto..
PhpUnit private method testing http://stackoverflow.com/questions/5937845/phpunit-private-method-testing private method testing i've a question about the implementation of PHPunit with a private..
Doing calculations in MySQL vs PHP http://stackoverflow.com/questions/6449072/doing-calculations-in-mysql-vs-php DB and web server. On the other hand most DB platforms i've used have very poor functionality for working with individual.. and webserver are ever configured for different timezones i've seen this happen . Imagine for example you've got a createdDate.. probably very valid and some of the performance benefits i've mentioned are very slight so beware of premature optimisation...
Cascade Dropdown List using jQuery/PHP http://stackoverflow.com/questions/7137357/cascade-dropdown-list-using-jquery-php .ready function initCs script This is my own script and i've assumed that you have created country and region tables. But..
How to check IF user has ALREADY liked the facebook page? http://stackoverflow.com/questions/7397724/how-to-check-if-user-has-already-liked-the-facebook-page improve this question If you use the facebook php API. i've came up with this short function that u can include inside the..
Finding n-th permutation without computing others http://stackoverflow.com/questions/7918806/finding-n-th-permutation-without-computing-others about factoradic permutations but every implementation i've found gives as result a permutation with the same size of V..
when is eval evil in php? http://stackoverflow.com/questions/951373/when-is-eval-evil-in-php evil in php i all the years i have been developing in php i've always heard that using eval is evil. considering the following..
|