News Feed
Jobs Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

/Dev/Hell Podcast:
Episode 18 Pull Requests Welcome
August 20, 2012 @ 12:09:16

The latest episode of the /Dev/Hell Podcast has been released - Episode 19: Pull Requests Welcome:

This week on /dev/hell is "let's talk about arguments Chris got into on Twitter" week. Most of the discussion revolves around how we interact with users, both developer-types and average joes.

You can listen to this latest episode either via their in-page player, by grabbing the mp3 directly or by subscribing to their RSS feed.

0 comments voice your opinion now!
devhell podcast pull requests contributing user developer opinion


Adam Patterson's Blog:
DIY simple staging server.
October 21, 2011 @ 10:29:41

Adam Peterson has posted an interesting idea for those out there running an internal staging server they want to constantly keep up to date with the main line of code (without manual intervention) - a git pull web frontend combined with git post-receive hooks.

This [move from svn to git] left a bit of a gap in my process where I could no longer test on a remote server without updating it manually by S/FTP or opening terminal and manually calling a git pull. Open terminal and manually git pull it did break up the work flow a bit so using the Dingo framework I created a very simple Git helper and gave it its own URL something like git/pull.

He added a post-receive hook to his git server that calls this "git/pull" URL on the staging server and updates the code on the server. This provides an easy asynchronous way to update things on another server. Note, though, that this should never be done on a publicly accessible server - it's a pretty large security hole (or at the very least made secure somehow). He used Dingo to create his interface, but something like the Slim micro-framework could have worked just as well. You can view his code on github.

0 comments voice your opinion now!
git pull workflow staging server postreceive hook


ThinkPHP Blog:
Comet in conjunction with a PHP socket server - server-client communication
September 02, 2008 @ 08:41:55

In a new post to the ThinkPHP blog today there's a look at combining Comet with PHP to make a simple method for the client to talk back to the server outside the usual methods.

If a couple of users have opened the application there are already some hundred or thousand requests per second. The outcome of this is a big load for your server and a highly increased traffic - your server will in a senseless way be overloaded. In conclusion, our problem is the enormous amount of polling without knowing whether the server really wants to send a new push. Let's turn the initial situation around. And we get the solution to our problem: Comet.

With Coment, the model changes and the request is "cached" on the server-side automatically in a single Comet instance. Coordinate this with another recommendation of theirs, a PHP socket server, and you can do some pretty interesting things.

0 comments voice your opinion now!
communication socket server comet ajax push pull


IBM developerWorks:
Understanding the Zend Framework,Part 4 When there is no feed, Zend_HTTP_Client
August 01, 2006 @ 05:45:56

The IBM developerWorks site has posted part four of their series looking at the Zend Framework. This latest article focuses on the Zend_HTTP_Client package.

Part 3 explains how to use the Zend Framework to construct our online feed reader, Chomp, by creating an interface to subscribe to and read feeds, and to save feed entries into the database. Now you will learn how to use the Zend Framework to incorporate Web sites that do not support RSS feeds into the online feed-reader interface.

They work their way through an example of pulling in content from a remote site (one that's feedless). This is an enhancement to the "Chomp" application they've been developing all along, so if you need to catch up, here's the previous parts - Part 1, Part 2, Part 3.

They update the indexController, deleteEntryAction, and the saveEntryAction methods to handle this new incoming data and make the needed changes to the views to handle the new output. Finally, they demonstrate how to save the entries pulled in through the Zend_HTTP_Client component.

0 comments voice your opinion now!
zend framework zend_http_client component pull data tutorial part4 zend framework zend_http_client component pull data tutorial part4



Community Events











Don't see your event here?
Let us know!


example language hhvm symfony2 component release composer install facebook package podcast hack unittest code framework introduction opinion security overview application

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework