php Programming Glossary: make
Reference - What does this error mean in PHP? http://stackoverflow.com/questions/12769982/reference-what-does-this-error-mean-in-php if you had code that was automatically constructed Also make sure you don't have any Byte Order Marks in your code for example..
Why shouldn't I use mysql_* functions in PHP? http://stackoverflow.com/questions/12859942/why-shouldnt-i-use-mysql-functions-in-php value lists. Hybrid PDO use These pdo_ wrapper functions make a coding friendly stop gap API. It's pretty much what MYSQLI..
Using a regular expression to validate an email address http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address trouble with a site that uses it and I end up having to make some adjustment most recently I realized that I wasn't allowing..
UTF-8 all the way through http://stackoverflow.com/questions/279170/utf-8-all-the-way-through set on all tables and text columns in your database. This makes MySQL physically store and retrieve values encoded natively.. etc. should be encoded in valid UTF 8. You need to make sure that every time you process a UTF 8 string you do so safely... is unfortunately the hard part. You'll probably want to make extensive use of PHP's mbstring extension. PHP's built in string..
How do you parse and process HTML/XML in PHP? http://stackoverflow.com/questions/3577641/how-do-you-parse-and-process-html-xml-in-php somewhere or adding or changing attributes in a tag can make the regex fails when it's not properly written. You should know..
Secure hash and salt for PHP passwords http://stackoverflow.com/questions/401656/secure-hash-and-salt-for-php-passwords using MD5 and another one using SHA for example Would it make it safer or unsafer In case I wasn't clear enough I want to.. password in turn making it harder to crack. See the What makes a good password section for some debate. Why hash passwords.. Web Security expert I highly doubt it. Emphasis mine. What makes a good password anyway Entropy . Not that I fully subscribe..
PHP: “Notice: Undefined variable” and “Notice: Undefined index” http://stackoverflow.com/questions/4261133/php-notice-undefined-variable-and-notice-undefined-index be done about repetitive questions Do œreference questions make sense php php errors undefined index share improve this..
How should a model be structured in MVC? http://stackoverflow.com/questions/5863870/how-should-a-model-be-structured-in-mvc class or any single object. It is a very common mistake to make as you can see below I did too though the original answer was.. if you ever need an external API The easiest way to make sure that both View and Controller instances for that incoming.. Library it asks for Factories in the constructor which can make domain objects and DataMappers with a database connection already..
Headers already sent by PHP http://stackoverflow.com/questions/8028957/headers-already-sent-by-php then no warning will show up. But ignoring errors won't make the problem go away. Headers cannot be sent after premature.. http equiv Refresh content 2 url .. target.html This will make your website non valid even if faux XHTML when printed outside..
Create Word Document using PHP in Linux http://stackoverflow.com/questions/124959/create-word-document-using-php-in-linux echo body echo b My first document b echo body echo html Make sure you don't use external stylesheets. Everything should be..
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 YOUR_CONSUMER_KEY 'consumer_secret' YOUR_CONSUMER_SECRET Make sure you put the keys you got from your application above in..
Global or Singleton for database connection? http://stackoverflow.com/questions/130878/global-or-singleton-for-database-connection future but rather that some form of change will be made. Make it a goal mitigate the pain of making changes in the future..
I need help fixing Broken UTF8 encoding http://stackoverflow.com/questions/1344692/i-need-help-fixing-broken-utf8-encoding to check to make sure that everything is properly UTF 8 Make sure that you are serving your HTML as UTF 8 header Content..
MySQL Prepared statements with a variable size variable list http://stackoverflow.com/questions/327274/mysql-prepared-statements-with-a-variable-size-variable-list want to see if there is a better way. Possible Solution 1 Make the statement accept 100 variables and fill the rest with dummy..
Make curl follow redirects? http://stackoverflow.com/questions/3519939/make-curl-follow-redirects curl follow redirects I'm trying to make curl follow a redirect..
Session lost when switching from HTTP to HTTPS in PHP http://stackoverflow.com/questions/441496/session-lost-when-switching-from-http-to-https-in-php to https mysite.com page.php notice the lack of www . Make sure that http www.mysite.com page.php will link to https www.mysite.com..
Pulling Track Info From an Audio Stream Using PHP http://stackoverflow.com/questions/4911062/pulling-track-info-from-an-audio-stream-using-php than its worth. You connect to it with fsockopen doc . Make sure to use the correct port. Also note that many web hosts..
PHP Session Fixation / Hijacking http://stackoverflow.com/questions/5081025/php-session-fixation-hijacking do this and are open to attack on old session identifiers. Make sure that if you are using a custom session handler that you..
PHP code is not being executed (i can see it on source code of page) http://stackoverflow.com/questions/5121495/php-code-is-not-being-executed-i-can-see-it-on-source-code-of-page with your configuration here's a few things you can check Make sure that PHP is installed. This sounds silly but you never.. PHP is installed. This sounds silly but you never know. Make sure that the PHP module is listed and uncommented inside of.. php and make sure that there is no comment in front of it. Make sure that the http.conf file has the PHP MIME type in it. This..
Are mysql_real_escape_string() and mysql_escape_string() sufficient for app security? http://stackoverflow.com/questions/5414731/are-mysql-real-escape-string-and-mysql-escape-string-sufficient-for-app-secu ' limit 1 validColumns array 'url' 'last_fetched' Make sure to validate whether column is a valid search parameter...
How to prevent SQL injection with dynamic tablenames? http://stackoverflow.com/questions/5811834/how-to-prevent-sql-injection-with-dynamic-tablenames layer window.location.href example3.php layer layer php Make a MySQL connection query SELECT Category COUNT BUSNAME FROM..
Stop people uploading malicious PHP files via forms http://stackoverflow.com/questions/602539/stop-people-uploading-malicious-php-files-via-forms for the main site that holds all the logic. Make sure that cookies are limited to only the correct virtual host..
PDO support for multiple queries (PDO_MYSQL, PDO_MYSQLND) [closed] http://stackoverflow.com/questions/6346674/pdo-support-for-multiple-queries-pdo-mysql-pdo-mysqlnd you need PHP 5.3 mysqlnd Emulated prepared statements. Make sure PDO ATTR_EMULATE_PREPARES is set to 1 default . Alternatively..
What is the best way to stop people hacking the PHP-based highscore table of a Flash game http://stackoverflow.com/questions/73947/what-is-the-best-way-to-stop-people-hacking-the-php-based-highscore-table-of-a-f than 2 standard deviations below the mean game duration . Make sure you're tracking game durations serverside. Reject or quarantine..
Preferred method to store PHP arrays (json_encode vs serialize) http://stackoverflow.com/questions/804045/preferred-method-to-store-php-arrays-json-encode-vs-serialize two php ini_set 'display_errors' 1 error_reporting E_ALL Make a bit honkin test array You may need to adjust this depth to..
|