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

PHPMaster.com:
Manage Complexity with the Facade Pattern
June 11, 2013 @ 11:54:25

On PHPMaster.com today a new tutorial has been posted about using the Facade design pattern to help reduce the complexity of your application. It can help interface between other pieces of code an make using them simpler (a "facade" on top of them).

Design patterns are built to standardize solutions for common problems faced in software development. [...] Facade is a design pattern used in almost every web application, but often without knowing. The term "design pattern" creates a mental image of something complex and difficult to understand. Even though this can be true sometimes, the Facade pattern is simple to implementation. Let's see what Facade is and what it does to help us write good code.

A simple example is given to help make the concept of a facade clearer - the process behind borrowing a book. As borrowing and returning a book could involve multiple library types, they use a facade to provide a common interface to all of them. With the concrete example in place, they then move on to the official definition of the pattern and two more "real world" examples: authentication against multiple social networks and working with WordPress meta functions.

0 comments voice your opinion now!
designpattern facade tutorial social network interface

Link: http://phpmaster.com/manage-complexity-with-the-facade-pattern

thePHP.cc:
Do No Enter!
November 23, 2012 @ 10:37:44

In a new post to the PHP.cc site today Arne Blankerts reminds us that not all security is about writing good code and handing data correctly - it's also about the systems they run on.

What seems to be so obvious for road traffic and its rules seems to be less obvious for many web developers. They tend to slack on defining (and monitoring) what is happening at the application level as well as the infrastructure level of their application. It is not enough to run a default install of your operating system of choice, add whatever services you need, and hope for the best. Considering the amount of money as well as damage to reputation, either directly due to fraud and abuse or indirectly by time lost to recover a hacked system or software, the "let's hope for the best" approach is of arguable quality. And we are not even considering general bugs here.

He mentions configuring the server, OS and network to ensure a higher level of security, noting that no matter how much work is put into secure code, if the attacker can get to points on the system they shouldn't, your app is still vulnerable.

But how can you tell if someone is actually trying to break in? Pretty much exactly as the police does for road traffic: with speed checks and by patrolling. A properly configured firewall will show as well as inhibit any unauthorized communication within the network and all you need to do is monitor the vital signs of your infrastructure.
0 comments voice your opinion now!
server operatingsystem security network firewall


Phil Sturgeon's Blog:
NinjAuth The Social Integration Package PHP has been dying for
September 19, 2011 @ 08:59:31

New on his blog Phil Sturgeon has a post about the social integration package PHP has been dying for - NinjAuth. It has hooks for OAuth and OAuth2 connections and makes it simple to use them completely abstracted.

In the past I have never needed to implement oAuth into a PHP project. I have done it in Rails and boy it was easy thanks to OmniAuth. OmniAuth abstracts away so much of the grunt work that it takes about 5 minutes to add a new social network to your site, and 4 of those minutes are spent signing up for the API keys. What options do we have in the world of PHP? A bunch of screwy hacks or provider specific classes like TwitterOAuth. I don't want to hunt down 20 libraries with different methods, I want to get a key, bang it in and go to the pub. Well, now I can!

The fuel-oauth and fuel-oauth2 packages to drive its backend. He includes a code snippet showing how to configure the providers (complete with keys needed for auth) including Facebook, Flickr, GitHub, YouTube and - of course - Twitter. You can grab the latest version of this library from Phil's github account.

0 comments voice your opinion now!
ninjauth social network oauth oauth2 integration codeigniter fuelphp


PHPBuilder.com:
PHP Scripts for Interacting with Networks
December 15, 2010 @ 13:49:31

On PHPBuilder.com there's a new tutorial showing you some of the PHP functions that you can use to interact with the network surrounding (and even vaguely related to) your application.

PHP has a great many tools for interacting with a network and also with the Internet. In this article, I examine some of those tools and functions to show how exactly you can use them to make your scripts more useful in a network environment. Click here to download the accompanying source code.

They show how to use fopen to access remote sites, gethostbyname and gethostbyaddr for DNS resolution, getprotobynumber to check the port number for a TCP/IP type and quite a few more. This also includes a brief look at the PEAR Net_Whois package. You can download the examples if you'd like to just jump into the code.

0 comments voice your opinion now!
network interaction tutorial tcpip socket dns


PHPClasses.org Blog:
Neural Networks in PHP
March 09, 2010 @ 11:41:13

New on the PHPClasses.org blog there's an article on neural networks written up by Louis Stowasser looking specifically at creating a neural mesh with PHP.

Neural networks are a relatively new technology that aims to reverse engineer the functionality of the brain within a mathematics model. This may sound daunting and complex but the underlying concepts are very simple and Neural Mesh does the hard work for you. In a Web environment NNs (neural networks) are considered too slow and complex to warrant effort on what might even be a trivial task. To solve this, Neural Mesh has been heavily optimized. It uses caching to speed up running and training of networks.

He explains what a neural network is on a base level and talks about it's ability to learn from the training its given (supervised or unsupervised). He also talks about how the networks can be useful and how to use the framework (found here) to create a simple network.

0 comments voice your opinion now!
neural network tutorial mesh


NETTUTS.com:
Build a Social Network Using Joomla!
April 21, 2009 @ 10:28:47

New from NETTUTS.com is this tutorial looking at the construction of a social network with the help of Joomla.

Social network implementation has become a necessity for successful websites. Joomla!, the popular Open-Source CMS, has some great and affordable ways to bring your site to the social networking level. Let's review how.

He defines some of the strategy of the site to start - who will use it, how will they use it, how much control should they have, etc. He also lists several extensions that can be dropped into place to add in some of the more popular social networking functions like EventList, MyBlog and JomComments. The implementation of a few of these is shown (with a few screenshots) and examples of sites using Joomla for social networking are thrown in at the end.

0 comments voice your opinion now!
configure extension joomla network social


Chris Jones' Blog:
PHP OCI8 1.3 RPM is now on ULN
December 12, 2008 @ 07:55:31

Chris Jones has announced that the latest build of the OCI8 drivers for PHP (the RPM of them) has been posted to their "Unbreakable Linux Network" site.

A "php-oci8-11gR1" RPM is now available on the "Unbreakable Linux Network" (http://linux.oracle.com/) in the Oracle channel. If you have the appropriate ULN subscription, you can use 'up2date' or 'yum' to install it and its dependencies (e.g. the Oracle Instant Client 11g RPM).

This new package includes drivers for 9iR2, 10g and 11g Oracle databases and uses connection pooling if it is available.

0 comments voice your opinion now!
oracle rpm update unbreakable linux network database driver


DevShed:
PHP Networking
September 09, 2008 @ 12:09:12

In a new tutorial from DevShed today, they take a look at some of the "networking" functions that PHP has to offer - basically anything that can make a network connection.

PHP has a great many tools for interacting with a network and also with the Internet. In this article we will look at some of those tools and functions to see how we can use them to make our scripts more useful in a network environment.

They look at the fopen, gethostbyname, gethostbynamel, getservbyport and the Net_Whois PEAR package (among others).

0 comments voice your opinion now!
tutorial network socket dns netwhois pear


Developer Tutorials Blog:
Turn Your Wordpress Blog into a Social Network
July 14, 2008 @ 15:19:18

The Developer Tutorials blog has a new post full of links to some great add-ons for the popular WordPress blogging software to help make your site into more of a community.

Wordpress is a CMS that was built for blogging but many people have repurposed it for magazines, newspapers, blog networks and all sorts of other goodies! But did you know you can hack your Wordpress blog to be a no-cost solution for a social network? Well you can, and here's fifteen plug-ins that will let you do it.

Some of the packages they link to include Ajaxd WordPress, Profiles, Quick SMS, Invite Friends and SezWho.

0 comments voice your opinion now!
wordpress social network plugin blog list


Community News:
Worldwide support network for PHP user groups launches - PHP Groups
March 08, 2007 @ 07:05:27

As posted on Ben Ramsey's blog (and released out through the PHP community) - a press release about PHP Groups:

PHP Groups, a worldwide network for PHP user groups, launched today with the intent to foster an open community for PHP user groups to share and exchange ideas and information. Membership is open to anyone working with a PHP user group or interested in starting one.

At present, PHP Groups provides a mailing list where user group leaders and those interested may subscribe and take part in a dialog with other user groups. "I hope that part of our accomplishments will involve uniting and bringing together for an open dialog all of the PHP user groups across the world," said Ramsey. "I hope this mailing list can get that conversation going."

If you're interested in the project and want to get involved, check out their mailing list and website to get complete details.

0 comments voice your opinion now!
phpgroups support network usergroup phpgroups support network usergroup



Community Events











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


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

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