|
Sponsored Link
|
The PHP development team announces the immediate availability of PHP 5.4.6 and PHP 5.3.16. These releases fix over 20 bugs. All users of PHP are encouraged to upgrade to PHP 5.4.6, or at least 5.3.16.For source downloads of PHP 5.4.6 and PHP 5.3.16 please visit our downloads page, Windows binaries can be found on windows.php.net/download/. The list of changes are recorded in the ChangeLog.
In a new post to his site Christian Weiske shares an update he contributed to the PHP_CodeSniffer functionality to make working with and checking the validity of local PHP code easier - a notifier for PHP_CodeSniffer using the "notify-send" commonly installed in most Linux distributions.I use emacs as IDE, and wanted to have direct feedback about the validity of my .php files when writing them. The most easy way was to add a save hook that runs PHP_CodeSniffer - but the results should be displayed in a...
This event, in the heart of London's vibrant technical scene, brings
together the best minds from open source enterprise software development.
The newly-formed Sensio Labs UK is delighted to serve up a UK edition of
the wildly successful Symfony Live events, with two days (September 13th & 14th)
of excellent technical content for you to enjoy.
Day one is workshop day,
we'll spend the day absorbing knowledge from
industry leaders in a choice of two in-depth workshops. On workshop day
we're also...
Chris Jones has a new post today showing how you can use PHP 5.4's built-in web server to help test for memory issues in your application (and the language).Rasmus mentioned on IRC how he ran the [command line] tests: simply renaming the ".phpt" test files as ".php", and invoking them through the CLI webserver. The SKIPIF sections get executed, but that doesn't affect the desired outcome of testing multiple HTTP requests with different input scripts. [Here] are some quick shell scripts I put together to...
IP Networking Info
CSS to LESS
FKBasket Class
Redmine PHP Console Tools
DB Persister
cURL Easy and Fast
Isis ISO 2709
LW_Matrix
OnHTML
Multi Threaded MySQL Backup and Restore Daemon
The PHP 5.4 CLI webserver is being used more and more to identify and
resolve PHP bugs. Following on from the CLI webserver tests that
Xinchen Hui (aka "laruence") instigated for the PHP 5.4 release,
Anatoliy Belsky (aka "weltling") begain adding CLI webserver tests for
the APC package, which is currently undergoing some much needed fixups
for PHP 5.4.
Rasmus Lerdorf has also been running some of the PHP command line
tests through the CLI web server to identify crashes and memory
corruption issues that...
On Reddit.com there's a good conversation going on in the PHP category about login security and best practices surrounding it.So I was handed an ancient project which was up to me to fix / improve. About a week later I am about done but there is 1 thing I left...Login security. As it is now, it's just md5(password) that's saved in the database. Better then nothing, but far from good enough. My plan was to have a constant pepper in the class which handles the logins, then do something like crypt(pepper ....
I use emacs as IDE, and wanted to have direct feedback about the validity of
my .php files when writing them.
The most easy way was to add a save hook that runs
PHP_CodeSniffer
- but the results should be displayed in a nice, unobtrusive way.
phpcs has
multiple reporting modes
- xml, checkstyle, csv etc. - but nothing for the desktop.
I thought that notify-send would be the right fit since it is able
to display pretty popup messages without getting in the way.
So I hacked a bit and...
In some of his work with Backbone.js recently, Gonzalo Ayuso has been frustrated by something that's a wall for many developers wanting to work with outside datasources - the browser restriction that prevents cross-domain requests. His solution? Create a REST proxy to live on his server and pass the requests through.Nowadays there is a header to allow it: Access-Control-Allow-Origin. The problem is that the remote server must set up this header. For example I was playing with github's API and github...
At work I needed to scale and crop
an image from within a TYPO3 scheduler task.
TYPO3 is very powerful at image manipulation, but getting access to those
methods turned out to be a problem.
Image manipulation in plugins is pretty easy:
Call $cObj-getImgResource()
with some configuration parameters and you're done.
Cron job scripts in TYPO3 don't have the full TYPO3 environment available
- since they often do not need it - just like eID scripts.
$cObj is missing, and loading it was...
Till Klampaeckel has a new post to his site showing how you can use the external continuous integration system Travis-CI to handle automated database testing for your PHP app using Doctrine.Testing is important - most people understand that by now. A lot of people write tests for their open source code already, but in-house testing is still hard. [...] While I prefer to run my database tests against a SQLite in memory database, there are these edge cases, where I work with multiple database or I write a...
On PHPMaster.com today there's a new article posted that has a review of PHPStorm, an IDE from JetBrains that focuses on providing a great experience for PHP developers and tons of features.It's said the tool doesn't make the craft - a carpenter can drive a nail into a wooden plank using a hammer, a rock, another plank, or his forehead, but he'll rarely choose anything other than the hammer. [...] I'm talking about using a text editor versus using a full-fledged PHP-dedicated project-oriented IDE for PHP...
The Voices of the ElePHPant podcast has posted their latest interview with a member of the PHP community. This time it's with Adam Culp, an organizer of the South Florida PHP User Group.Cal's three questions for Adam revolve around his user group participation:
How did you get it started and did you start the group?
What's the most interesting meeting we've had so far?
Tell us about your: mailing lists, leadership structure, your rules for sponsorships and how you found your meeting space
You can listen...
Latest PECL Releases:
yaz 1.1.4
trader 0.3.0
xcommerce 1.0.1
sundown 0.3.7
memcached 2.1.0
A very quick snippet today because I've told two people to use this approach in the last few days and both of them told me they didn't know about it. How to check if an email address is valid in PHP: use one of the Filter functions, like this:
A
$email1 = "nonsense.something@dottiness"; // not a valid email
$email2 = "dotty@something.whatever"; // valid email
A
$clean_email1 = filter_var($email1, FILTER_VALIDATE_EMAIL); // $clean_email1 = false
$clean_email2 = filter_var($email2,...
After updating PHP to version 5.4 (with mixed success), I am still cleaning up the fallout peu A peu. During my holidays, the fact that my Roundcube installation is also broken bit me (I needed quick access to my flight information and the e-mail was not cached on my iPhone). Today, I tried to fix it.A
I was using Roundcube 0.8-beta with the SQLite backend, and it seemed the database was no longer accessible. SQLite is a bit picky with its permissions, so I checked that first, but the server log...
Blog:http://geekyboy.com
Twitter:@adamculp
Show Notes:
http://www.soflophp.org/
http://www.openpros.net/
A
Sponsored by:
Engine Yard
It's been a little over a year and a half since I left the daily grind of a commute and began working from my home office. It's been an amazing year filled with challenges, adventures, struggles and blessings. I'm like most developers: I relished the idea of having a quiet place to work, of getting [...]
Evan Coury has a new post today showing how to create a simple view helper in a Zend Framework 2 based application.This post will show you how to create a simple view helper in Zend Framework 2. In this example, our view helper will simply return the full, absolute URL of the current page/request.Code for the example is included, showing how to pull in the namespaced dependencies and extend the AbstractHelper to define the simple view helper. The "__invoke" method is used to handle the functionality and...
|
|