#php

154 bookmarks tagged with #php · RSS Feed · ← All Tags

BrewBlogger Version 2.3.2 - The Browser-Based Homebrew Logging Solution

http://www.brewblogger.net/
BrewBlogger 2.3.2 is a easy to set up, easy to use, browser-based homebrew logging and calculation suite. It is a PHP/MySQL-based system that provides today's brewer not only a fast and easy way to record their brewing activities, recipes, and awards, but also forum to share their zymurgistic efforts and expertise with the homebrewing community around the world.

BrewBlogger Version 2.3.2 - The Browser-Based Homebrew Logging Solution

http://www.brewblogger.net
BrewBlogger 2.3.2 is a easy to set up, easy to use, browser-based homebrew logging and calculation suite. It is a PHP/MySQL-based system that provides today's brewer not only a fast and easy way to record their brewing activities, recipes, and awards, but also forum to share their zymurgistic efforts and expertise with the homebrewing community around the world.

PHP and Memcached: The state of things

http://brian.moonspot.net/php-memcached-issues
"Memcached is the de facto standard for caching in dynamic web sites. PHP is the one of the most widely used languages on the web. So, naturally there is lots of interest in using the two together. There are two choices for using memcached with PHP: PECL/memcache and PECL/memcached. Great names huh? But as of this writing there are issues with the two most popular Memcached libraries for PHP. This is a summary of those issues that I hope will help people being hurt by them and may bring about some change."

NGINX + PHP-FPM + APC = Awesome

http://interfacelab.com/nginx-php-fpm-apc-awesome
"The following guide will walk you through setting up possibly the fastest way to serve PHP known to man. If there is a faster way, I’ve not yet found it climbing through zillions of blog posts out there on the subject. In this article, we’ll be installing nginx http server, PHP with the PHP-FPM patches, as well as APC. The end result? Pure awesome."

Using SimpleXML with HTML | drewish.com

http://drewish.com/content/2007/08/using_simplexml_with_html
"PHP 5's SimpleXML module is one of the the biggest reasons to upgrade to 5. If you're parsing RSS feeds or the results of webservice requests it works beautifully and saves a ton of time. The only problem with it is that it'll only load valid XML. I banged my head against it for way to long before coming up with the following:"

Bad Nomenclature » Blog Archive » A rant about PHP compilers in general and HipHop in particular.

http://blog.paulbiggar.com/archive/a-rant-about-php-compilers-in-general-and-hiphop-in-particular
"One saving grace is that they didn’t patent it. I have an email in my inbox from one of the HPHP developers saying he couldn’t talk to me about the compiler because they might patent it. That’s pretty shitty. Thank god they open-sourced it instead [9]. It sounds like it was a bit touch and go for a while."

Displaying PHP APC Cache Information

http://www.electrictoolbox.com/apc-php-cache-information
"APC is the Alternative PHP Cache, which is a free, open, and robust framework for caching and optimizing PHP intermediate code. I posted about how to install APC on Linux a couple of days ago, and will now look at the apc.php script which comes with APC and shows information about how much of the cache is being used, what files are being cached, the number of times they've been accessed etc."

PHP Advent 2009 / You Don’t Need All That

http://phpadvent.org/2009/you-dont-need-all-that-by-marcel-esser
"The point I am trying to make is we’re getting a little crazy with our architectures. These days, we write PHP just like Java, but it’s not Java. It works completely differently, and we shouldn’t try to force patterns that aren’t necessarily the best fit. You don’t need all that. Just write good code."

Ralph Schindler - Dynamic Assertions for Zend_Acl in ZF

http://ralphschindler.com/2009/08/13/dynamic-assertions-for-zend_acl-in-zf
"In plain English, what developers want to be able to do is be able to design assertions that can accept application models that implement the Resource or Role interface, and be able to apply some dynamic or custom logic to assess whether or not the given role has access to the given resource. ... For the purposes of this example, we’ll take a simple concept: a user needs to be able to only edit their own blog post. The user in this case, would be our applications model for users. The actual class will implement the Zend_Acl_Role_Interface. We will also have a BlogPost model which will serve as the resource in question, thus implementing the Zend_Acl_Resource_Interface"

Face detection in pure PHP (without OpenCV) - Maurice Bloggue

http://svay.com/blog/index/post/2009/06/19/Face-detection-in-pure-PHP-(without-OpenCV)
Surprised the code is so short. "Lately, I've been looking for ways to detect faces in photos with PHP. Nowadays, face detection is built in many consumer products (camera obviously, but also Google and iPhoto), and seems to be a pretty common job. So I expected to find many solutions for doing it with PHP. Surprisingly, the only one I could find is OpenCV, an opensource lib that was originally developed by Intel. OpenCV seems to perform well but you need to be able to install it on your server. In my case, I wanted to have a pure PHP solution, so it can work with most hosts."

Using JavaScript in PHP with PECL and SpiderMonkey

http://devzone.zend.com/article/4704-Using-JavaScript-in-PHP-with-PECL-and-SpiderMonkey
"SpiderMonkey support in PHP comes through PECL's ext/spidermonkey extension, which is maintained by Christophe Robin, and provides an object-oriented API for accessing the SpiderMonkey library. Although this extension is currently in beta, it still allows you to do some fairly interesting things, including registering and using variables, functions and classes from PHP in JavaScript."

Everything You Need to Get Started With CodeIgniter - NETTUTS

http://nettuts.com/tutorials/php/codeigniter-basics
"CodeIgniter is a web application framework for PHP. It enables developers to build web applications faster, and it offers many helpful code libraries and helpers which speed up tedious tasks in PHP. CodeIgniter is based on a modular design; meaning that you can implement specific libraries at your discretion - which adds to the speed of the framework. This tutorial will attempt to show you the basics of setting up the framework, including how to build a basic hello world application that uses the MVC approach. "

Advogato: Blurring of MVC lines: Programming the Web Browser.

http://advogato.org/article/993.html
I think this whole "abstract the browser away behind my favorite language" thing is kind of batshit insane. The problem is, though, I've yet to think out a well-articulated argument against it and the arguments for seem very compelling. Of course, I also happen to *like* JavaScript. "Only by going the whole hog - fully into Javascript, augmented by Compiler Technology such as GWT and Pyjamas (and more specifically Unity) that allows both the Web Server and the Web Client to be programmed in exactly the same language - can the MVC approach be properly implemented and the user's expectations be satisfied, and thus both the developers' and the user's lives made easier. Gmail is the quintessential example of how this "whole-hog-Javascript" MVC approach can be achieved successfully. "

Redo The Web » Designing a CMS Architecture

http://redotheweb.com/2008/09/19/designing-a-cms-architecture
"Start changing one single line of code in an application build on top of Drupal or ezPublish, to name only the two major ones, and you are in trouble. The moment you need something that is not natively supported, you enter the Dark Zone of CMS hell. You are going to spend a lot of money on development. You will never see the end of the tunnel. That is, until someone says, a few years from now, “Do we need all that crap? Let’s build something that fits our needs and that actually works”.Given number of available open-source CMS solutions, building one on your own sounds like a stupid idea. But if your website is 50% content management and 50% something else, you probably need to start with a web application framework like symfony or Django, rather than a CMS. These frameworks provide plugins that do part of the Content Management job already, so creating a CMS today is like assembling Lego bricks to build something that exactly fits your needs."

csrf_protect.php

http://simonwillison.net/static/2008/csrf_protect.php.txt
"This class adds CSRF protection to existing PHP applications that make use of PHP's session support for authentication. If you are writing an application from scratch you shouldn't use this; it's designed to protect legacy apps that were not built with CSRF in mind."

jQuery PHP library

http://jquery.hohli.com
"jQuery-PHP is a PHP library that allows to tie jQerry with PHP most natural way. You don't need to think in terms of transmission, parsing and other boring staff. Now you have a bridge that brings DOM right onto your server :) and you can ealisy manipulate it in jQuerry-style way." This seems like one of the worst ideas - maybe it's just me, but "shortcuts" and other encapsulations of client-side JS within server-side code-generation in PHP / Ruby / Python / Perl / etc seems like one of the worst forms of magical obfuscation there is in webdev. Of course, I also feel the same way about most psuedo-ORM SQL / database abstractions.

PHP: Using Phar Archives - Manual

http://php.net/manual/en/phar.using.php
"Phar archives are similar in concept to Java JAR archives, but are tailored to the needs and to the flexibility of PHP applications. A Phar archive is used to distribute a complete PHP application or library in a single file. Unlike Java's implementation of JAR archives, no external tool is required to process or run a PHP Phar archive."

How to Fix CGI - majordojo

http://www.majordojo.com/2007/11/how-to-fix-cgi.php
"the goal of mod_perlite is to run single Perl scripts in the Apache process space, caching Perl bytecode as it goes, but flushing script memory after every request. Installation is also incredibly simple, and 100% analogous to PHP installation."

XSL Cache - Trac

http://code.nytimes.com/projects/xslcache
"The XSL Cache extension is a modification of PHP's standard XSL extension that caches the parsed XSL stylesheet representation between sessions for 2.5x boost in performance for sites that repeatedly apply the same transform."

Template Engines

http://massassi.com/php/articles/template_engines
"In short, the point of template engines should be to separate your business logic from your presentation logic, not separate your PHP code from your HTML code."

Blitzaffe Code - PHP Classes - Jabber Client

http://code.blitzaffe.com/pages/phpclasses/files/jabber_client_52-11
"This is an event-driven Jabber client class implementation, allowing your script to connect to and interact with Jabber (XMPP) servers. This script was originally based on class.jabber.php, but has been almost completely rewritten (with permission from

PHPUnit - Trac

http://www.phpunit.de
"a member of the xUnit family of testing frameworks and provides both a framework that makes the writing of tests easy as well as the functionality to easily run the tests and analyse their results."

Shorty

http://get-shorty.com
"Shorty is a simple tool for creating shorter, human- readable links from long URLs. You install Shorty on your server, so the links you create with it never go away. "

symfony Web PHP framework

http://www.symfony-project.com
"Based on the best practices of web development, thoroughly tried on several active websites, symfony aims to speed up the creation and maintenance of web applications, and to replace the repetitive coding tasks by power, control and pleasure."

Automattic ‽ WordPress Widgets

http://automattic.com/code/widgets
"Widgets have come to WordPress! By installing the Widgets plugin by Automattic (download zip or svn) and using a widget-ready theme, you can bring the popular customization feature from WordPress.com to your very own, hosted WordPress installation."

WPHP

http://blog.ianbicking.org/2006-wphp.html
"This means that PHP applications can be embedded in Python systems. This may not seem that exciting, until you have interesting WSGI middleware."

Ajax RSS reader

http://www-128.ibm.com/developerworks/library/x-ajaxrss/index.html
"Learn how to build an Asynchronous JavaScript and XML (Ajax) Really Simple Syndication (RSS) reader, as well as a Web component that you can place on any Web site to look at the articles in the RSS feeds."

BoxtheWeb

http://www.awriterz.org/etcetc/boxtheweb/code/apis#outlineclasses
Looks like some PHP classes that strive to be a universal parser / translator between outlining formats.

ongoing · On PHP

http://www.tbray.org/ongoing/When/200x/2006/02/17/PHP
"I should really buckle down and try writing a PHP app because, at the moment, I have an attitude problem." I certainly understand this sentiment, which is why i started delving into PHP myself.

PHP: usort - Manual

http://us2.php.net/manual/en/function.usort.php
When I grouse about PHP not having good meta magic, here's a case in point: "Sort an array by values using a user-defined comparison function" My kingdom for an anonymous function or function reference or *something*

Path: readable URL's | drupal.org

http://drupal.org/node/3665
"The path module allows you to specify aliases for Drupal URLs. Such aliases improve readability of URLs for your users and may help internet search engines to index your content more effectively. More than one alias may be created for a given page."

mnot - cgi_buffer

http://www.mnot.net/cgi_buffer
"cgi_buffer is a group of libraries (for Perl, Python and PHP) that automatically handle performance-improving HTTP features that most Web servers don't implement (at least for scripts)"