Jeśli jesteś właścicielem tej strony, możesz wyłączyć reklamę poniżej zmieniając pakiet na PRO lub VIP w panelu naszego hostingu już od 4zł!

Archive for Sierpień, 2011

Tutorialzine.com: AJAX-enabled Sticky Notes With PHP & jQuery

Tutorialzine.com: AJAX-enabled Sticky Notes With PHP & jQuery

On the Tutorialzine.com site there’s an interesting (though a bit older) tutorial showing you how to combine jQuery, PHP and some CSS+HTML to make a simple sticky note application complete with multiple note support and drag-and-drop abilities.

Today we are making an AJAX-enabled Sticky Note management system. It will give visitors the ability to create notes with a live preview, and move them around on the screen. Every movement is going to be sent to the back-end via AJAX and saved in the database.

They use the fancybox plugin for jQuery to make creating the notes a lot simpler. Included in the tutorial is all of the HTML, CSS, javascript and PHP you’ll need to create the application (as well as plenty of description along the way). You can see a demo of it in action here or just download the source and dive right in.

Source: http://www.phpdeveloper.org/news/16796

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Liip Blog: 2-Step Verification with Google Authenticator and PHP

Liip Blog: 2-Step Verification with Google Authenticator and PHP

On the Liip blog there’s a recent post talking about a tool Google offers to help you authenticate your users, a one-time passcode generator called Google Authenticator. The post talks about a PHP port of the same idea.

The main point about 2-step verification is that something else than your computer provides that token. If it’s on your computer and that one gets stolen (or hacked into), it won’t help much for the additional security. That’s why you need a second device for those tokens. Some banks do that with SMS/Text Messages (Facebook, too), other give you special devices for that (eg. RSA keys) and the last group does it with your smartphone.

At the request of a client, they created a tool that did just this, but for PHP. As a result, they created the GoogleAuthenticator library that makes it easy to implement in your application. There’s even an example of it in use. For more information about the Google Authenticator tool, see this page on Google Code.

Source: http://www.phpdeveloper.org/news/16795

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Chris Jones’ Blog: PHP 5.3.8 RPMs are on oss.oracle.com

Chris Jones’ Blog: PHP 5.3.8 RPMs are on oss.oracle.com

Chris Jones has posted a quick note to his blog today about some new PHP packages that are available from Oracle of 5.3.8 (RPM) with one of the latest OCI8 extensions already included.

I’ve built PHP 5.3.8 RPM packages with various common extensions (and the latest OCI8 1.4.6) for Linux x64. They are downloadable at oss.oracle.com/projects/php/. These binaries might be useful for quick testing. They are unsupported.

He points to packages on the ULN site if you’re looking for something a bit more stable. The OCI 1.4.6 version of the extension includes a few new features but was mostly a test suite update.

Source: http://www.phpdeveloper.org/news/16794

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org

Source: http://www.phpdeveloper.org/news/16793

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

User Group: South Florida PHP Users Group (Boca Raton, FL)

User Group: South Florida PHP Users Group (Boca Raton, FL)

Adam Culp has written in to tell us about the South Florida PHP Users Group that’s been formed for the area. They’re going on about a year’s worth of meetings now and show no signs of stopping.

The South Florida PHP Users Group is geared toward uniting and growing the PHP community of South Florida. With monthly events in the Palm Beach, Boca Raton, and Ft. Lauderdale areas.

The group currently meets at the Revelex Corporation offices and holds their meetings on the second Wednesday of every month. The meeting for September (on the 14th at 7pm) will feature development environment tips you can use to quickly and easily get things set up. You can find complete information about the group on their meetup page (or the coming-soon Soflophp.org site).

Source: http://www.phpdeveloper.org/news/16792

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Matthew Wells’ Blog: Kohana and Gearman – Practical Multitasking

Matthew Wells’ Blog: Kohana and Gearman – Practical Multitasking

Matthew Wells has a new post that looks at combining Kohana and Gearman to create a system to handle large data processing without slowing down the rest of the application.

A commonly identified bottleneck arises when dealing with large, ‘expensive’ data. This is commonly seen when an application posts a large volume of well structured data to the API (that some process must be carried out upon), before some form of structured receipt is then returned as a request response. [...] Analysing such a request tends to show high PHP CPU usage with lower database consumption. [...] The structured nature of data exchanged via an API means that we can, relatively simply and reliably, divide the submitted data and process it simultaneously with the help of a great tool called Gearman.

He walks you through the entire process including his initial thoughts on what the system should be and how it should behave when the requests are made. He shares the code he used to implement the system – a simple worker that processes part of the request and returns the results. The command-line calls to run the worker manually for testing are also included.

Source: http://www.phpdeveloper.org/news/16791

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

VXTIndia Blog: How to setup your new VPS Ubuntu server

VXTIndia Blog: How to setup your new VPS Ubuntu server

On the VXTIndia blog there’s a recent post that gives you a very complete guide to setting up a VPS server running Ubunut with all of the software you’d need to get a (more than) complete server up and running.

Every time you purchase a new Linux VPS, you need to go ahead and set it up for use. Even though we manage to do one server a month, we always seem to forget one thing or the other. So we decided to write down the things that we do. I thought it would be a good thing to share it with everybody as well, so that we could get a few comments about what we’re doing wrong, and people who do it the first time can probably pick up a few things from here.

Steps and software involved in their process include:

  • Updating to the latest Ubuntu packages
  • Creating other users for the system
  • Installing the web environment (including PHP, MySQL, phpmyadmin and Apache2)
  • Minin for monitoring
  • Configuring IPTables
  • Installing Fail2Ban

All of this comes complete with the additions you’ll need to make to configuration files and the commands to get everything installed (via aptitude).

Source: http://www.phpdeveloper.org/news/16790

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Alessandro Nadalin’s Blog: Behaviour what?

Alessandro Nadalin’s Blog: Behaviour what?

In a recent post to his blog Alessandro Nadalin looks at a different approach to development than the usual code-first, ask questions later style, behavior-driven development, and a tool that can help you follow this method – Behat.

Although this requirement is not mandatory, BDD’s power is leveraged by using stories. It basically assumes that instead of focusing on tests, we should start our development process writing down a story that a parser can translate into a test (a customer cares about features, not tests) a programmer can implement in order to verify that our software respects that story.

He talks about installing Behat via PEAR, how it can integrate with Symfony (1.4) and an example of a sample story/test file that checks a few things against a basic page. He also points out an interesting and quite useful feature of Behat – outputting the tests in a HTML-formatted result that makes for easy reading by non-developers.

Source: http://www.phpdeveloper.org/news/16789

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Lorna Mitchell’ Blog: PHP OAuth Provider: Access Tokens

Lorna Mitchell’ Blog: PHP OAuth Provider: Access Tokens

Lorna Mitchell has posted the latest in her look at OAuth in PHP to her blog today, an introduction to access tokens – generating and handling them in your application.

I’ve been working with OAuth, as a provider and consumer, and there isn’t a lot of documentation around it for PHP at the moment so I thought I’d share my experience in this series of articles. [...] This entry follows on from the ones about the initial requirements, how to how to handle request tokens, and authenticating users.

In this latest post, she talks about the three different types of tokens – consumer, request and verififier – and how to use them to locate a user in your app’s users. Her code validates the request token and verifier against the database and, if successful, inserts the rest of the token information for the user.

Source: http://www.phpdeveloper.org/news/16788

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Community News: Latest PECL Releases for 08.30.2011

Community News: Latest PECL Releases for 08.30.2011Latest PECL Releases:

Source: http://www.phpdeveloper.org/news/16787

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>