 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Lorna Mitchell: What Goes in Source Control?
by Chris Cornutt April 30, 2013 @ 10:31:26
As developers, one of the best things you can do for a project is to use version control (or "source control") for your code. Lorna Mitchell suggest using it on a wider scale, though. She sees it as a great place for all sorts of other things around a project too.
Short answer: everything! However we need some good directory structures and source control configuration to make that a really practical answer, so this article is a quick outline of my usual advice for a good source control structure for a standard web project. The examples are for a PHP project but I'm sure you could apply this to your own language of choice, also.
These "other things" she suggests that should end up in source control including things like:
- The actual "web root" of your application
- Library code
- Build scripts
- Configuration files
- Database patches
- Tests (unit, functional, integration, etc)
voice your opinion now!
source version control suggestion contents
Robert Basic's Blog: Zend Framework full page cache tips
by Chris Cornutt February 13, 2012 @ 11:45:10
If you're looking at using the full-page caching that the Zend Framework has to offer, you should read about Robert Basic's experiences with it before implementing it in your application.
When I started rewriting this blog, I knew from start that I want to use Zend Framework's full page caching, as, I think, that's the best cache for this purpose. Not much going on on the front end, much more reads than writes, no ajax or any other "dynamic" content. While implementing the cache, I ran into two issues.
His issues revolved around the feature not creating valid cache files due to a duplicate "startSession" call in his code and having the Google Analytics code included in the template (with different keys every time). You can find out more about this functionality in the Zend Framework manual.
voice your opinion now!
zednframework fullpagecache problem page contents
Christian Stocker's Blog: Upload Progress Meter extension 0.9.2 released
by Chris Cornutt January 22, 2009 @ 09:36:38
Christian Stocker has released the latest version of the uploadprogress extension to the PECL repository (0.9.2). The package allows the code to track the progress of an upload automatically.
The main new function since 0.9.1 is uploadprogress_get_contents($id), which allows you to analyse the content of an uploading file during the upload and do appropriate measure (for example warn the user, that he doesn't upload a supported video format). You have to enable this feature in php.ini to make it work. This feature was provided by Ben Ramsey, so you have to poke him, if something's wrong with it.
A simple example of it in action is also included (in the /examples subdirectory off of the PECL page) showing how to upload a file, get the progress and - most importantly - how to get useful error messages out of it.
voice your opinion now!
upload progress pecl extension example contents analyze
Wez Furlong's Blog: HTTP POST from PHP, without cURL
by Chris Cornutt November 15, 2006 @ 10:09:00
In an effort to get streams more out in the, er, mainstream, Wez Furlong has posted an example of some code for a common operation many use cURL for - posting to a remote script - but with streams.
Every time I search for the code snippet that allows you to do an HTTP POST request, I don't find it in the manual and resort to reading the source. So, here's an example of how to send a POST request with straight up PHP, no cURL.
The example uses stream_context_create, fopen, stream_get_contents and an Exception to send off the message from an inputted array to the remote server. Smaller things, like the Content-length header on the request, are automatically handled by the wrapper functionality. You can check out this page for more information on the wrapper functionality.
voice your opinion now!
http post without curl stream context contents exception http post without curl stream context contents exception
|
Community Events
Don't see your event here? Let us know!
|