Quantcast
Channel: PHPDeveloper.org
Browsing all 14 articles
Browse latest View live
↧

Gonzalo Ayuso's Blog: How to use eval() without using eval() in PHP

In this new post Gonzalo Ayuso talks about "using eval without using eval" in PHP applications - executing PHP code without having to use the eval function to do it. Yes I know. Eval() is evil. If our...

View Article


Joseph Scott's Blog: Why PHP Strings Equal Zero

Joseph Scott has a new post to his blog looking at "why PHP strings equal zero" - that when you use the "==" operator on a string to compare to zero, it's true. The issue of PHP strings equaling zero...

View Article


Mike Purcell's Blog: PHPUnit - Upgrade - Convert assertType to...

In this quick post to his blog, Mike Purcell mentions the deprecation of the "assertType" assertion and includes some code you can add to correct the issue in your tests. We recently upgraded phpunit...

View Article

Sherif Ramadan: How to Write an Operator Precedence Parser in PHP

Sherif Ramadan has a post looking at creating a better operator precedence parser in PHP. His example is a fully PHP implementation that takes equation strings and evaluates them to create the result....

View Article

Josh Adell: Serializing Data Like a PHP Session

In this new post Josh Adell looks at working with PHP sessions and how you can manually encode data to look as if it came from the normal session handling. If you have ever popped open a PHP session...

View Article


Dougal Campbell: mysql vs mysqli in WordPress

In his latest post Dougal Campbell shares his findings from a bug he was having with a plugin in WordPress. It revolved around the use of mysql or mysqli and errors being thrown to his logs. The...

View Article

NetTuts.com: Refactoring Legacy Code: Part 2 - Magic Strings & Constants

NetTuts.com has posted the second part of their "Refactoring Legacy Code" series today continuing on from their beginning of the series. They continue the refactor of their "trivia" application. Old...

View Article

Edd Mann: Reversing a Unicode String in PHP using UTF-16BE/LE

Edd Mann looks at an issue in his latest post that caused him problems in a recent project, reversing a Unicode string with UTF-16BE/LE. Last week I was bit by the Unicode encoding issue when trying...

View Article


SitePoint PHP Blog: How to Create a Unique 64bit Integer from String

In the latest post to the SitePoint PHP blog Vova Feldman shows you how to create an integer from a hash string that's both 64 bit and unique each time it's generated. PHP provides the popular md5()...

View Article


Rob Allen: Throw an exception when simplexml_load_string fails

In a quick post to his site Rob Allen shares a class that he's created to handle and throw an exception any time that the load from a SimpleXML parsing fails. I keep having to look up how to stop the...

View Article

Derick Rethans: Xdebug 2.3: Shared Secret to Enable Tracing or Profiling

Derick Rethans has posted another in his series covering the latest release of the Xdebug debugging tool for PHP, version 2.3. In this new article Derick introduces the "shared secret" handling, a...

View Article

Nikita Popov: Internal value representation in PHP 7 - Part 2

Nikita Popov has posted the second part of a series looking at how PHP 7 represents values internally. In the first part of the series the focus was on the major change from PHP 5: the zval updates...

View Article

Paragon Initiative: How to Safely Generate Random Strings and Integers in PHP

The Paragon Initiative blog has posted a guide to what they see as a way to safely generate random strings and integers in PHP applications. Generating useful random data is a fairly common task for a...

View Article


Davey Shafik: Class Constants, How Do They Work? (Or: You Learn Something New...

Davey Shafik has posted a quick article to his site talking about class constants and something new he learned about them (and how it relates to the uniform variable syntax handling in PHP7)....

View Article
Browsing all 14 articles
Browse latest View live