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 Lipiec, 2012

Adam Lundrigan: Quick-and-dirty ZF2: ZendNavigation

Adam Lundrigan: Quick-and-dirty ZF2: ZendNavigation

On Adam Lundrigan’s site there’s a new post introducing you to the ZendNavigation component of the Zend Framework v2 project and a simple example using it to display a few links.

He breaks it up into a few smaller steps:

  • Add Service Manager Factory
  • Configure Sitemap
  • Using the View Helpers

You can find out more about the ZendNavigation component here.

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

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

Adam Lundrigan: Quick-and-dirty ZF2: ZendNavigation

Adam Lundrigan: Quick-and-dirty ZF2: ZendNavigation

On Adam Lundrigan’s site there’s a new post introducing you to the ZendNavigation component of the Zend Framework v2 project and a simple example using it to display a few links.

He breaks it up into a few smaller steps:

  • Add Service Manager Factory
  • Configure Sitemap
  • Using the View Helpers

You can find out more about the ZendNavigation component here.

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

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

Bob Majdak: Apache access logging in JSON format

Bob Majdak: Apache access logging in JSON format

Bob Majdak has a quick new post to his site showing you how to log messages to Apache using a JSON format instead of the usual single-line information.

So this past week I have been doing a lot of logging, parsing, and graphing. I was sitting there wondering what I could do to make the Apache access logs easier to work with. Then it hit me, a brilliant stroke of win: why not format it in JSON? Then in my log parser I could just json_decode it! As far as I know there are no tricks to make Apache do this for you, so really all we have to do is define a custom log format that happens to look like JSON.

He includes the “LogFormat” line you’ll need to add to your Apache configuration to make it log the JSON and a bit of PHP to help you pull in the file’s contents and parse each line.

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

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

Bob Majdak: Apache access logging in JSON format

Bob Majdak: Apache access logging in JSON format

Bob Majdak has a quick new post to his site showing you how to log messages to Apache using a JSON format instead of the usual single-line information.

So this past week I have been doing a lot of logging, parsing, and graphing. I was sitting there wondering what I could do to make the Apache access logs easier to work with. Then it hit me, a brilliant stroke of win: why not format it in JSON? Then in my log parser I could just json_decode it! As far as I know there are no tricks to make Apache do this for you, so really all we have to do is define a custom log format that happens to look like JSON.

He includes the “LogFormat” line you’ll need to add to your Apache configuration to make it log the JSON and a bit of PHP to help you pull in the file’s contents and parse each line.

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

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

/Dev/Hell Podcast: Episode 17: This Show Is Terrible

/Dev/Hell Podcast: Episode 17: This Show Is Terrible

The latest episode of the /Dev/Hell Podcast has been released – Episode #17, “This Show Is Terrible” hosted by PHP community members Ed Finkler and Chris Hartjes.

This week on /dev/hell we talk about mentoring. Chris discusses his experiences taking a young up-and-comer under his wing, and we talk about the PHP Mentoring project. Then we babble about Aspen, an interesting, non-traditional Python web framework. Good and bad stuff in PHP gets knocked around again. Finally, Ed talks about fixing his dryer and yells at the audience.

You can listen to this latest episode in a few different ways – either through the in-page player, by downloading the mp3 or by subscribing to their feed.

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

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

/Dev/Hell Podcast: Episode 17: This Show Is Terrible

/Dev/Hell Podcast: Episode 17: This Show Is Terrible

The latest episode of the /Dev/Hell Podcast has been released – Episode #17, “This Show Is Terrible” hosted by PHP community members Ed Finkler and Chris Hartjes.

This week on /dev/hell we talk about mentoring. Chris discusses his experiences taking a young up-and-comer under his wing, and we talk about the PHP Mentoring project. Then we babble about Aspen, an interesting, non-traditional Python web framework. Good and bad stuff in PHP gets knocked around again. Finally, Ed talks about fixing his dryer and yells at the audience.

You can listen to this latest episode in a few different ways – either through the in-page player, by downloading the mp3 or by subscribing to their feed.

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

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

Script-Tutorials.com: Google API – Get contact list

Script-Tutorials.com: Google API – Get contact list

In this new tutorial on the Script-Tutorials.com site, they show you how to use the Google API (and OAuth) to access contacts information from your Gmail account.

In our new tutorial I am going to tell you about inviting friends. I think that this is the most important part for every website, a key to success. Today I will show you how to create simple and effective Gmail contact importer using OAuth authorization and API. Also, I will tell about obtaining Google API access too.

Screenshots show you how to get to the access token information you’ll need to connect and the full code is included to help you get authenticated and pull down the contacts list to display in the page’s HTML output.

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

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

Script-Tutorials.com: Google API – Get contact list

Script-Tutorials.com: Google API – Get contact list

In this new tutorial on the Script-Tutorials.com site, they show you how to use the Google API (and OAuth) to access contacts information from your Gmail account.

In our new tutorial I am going to tell you about inviting friends. I think that this is the most important part for every website, a key to success. Today I will show you how to create simple and effective Gmail contact importer using OAuth authorization and API. Also, I will tell about obtaining Google API access too.

Screenshots show you how to get to the access token information you’ll need to connect and the full code is included to help you get authenticated and pull down the contacts list to display in the page’s HTML output.

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

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

PHPMaster.com: Baking Cookies in PHP

PHPMaster.com: Baking Cookies in PHP

On PHPMaster.com there’s a new tutorial about working with cookies in PHP applications – an introductory look at what they are, how to set them and how to read their values.

Have you ever wondered that in spite of HTTP being a stateless protocol, when you log in to a website and buy stuff and checkout how the server can identify you uniquely? You might wonder if HTTP is stateless but your state is maintained through your interactions, isn’t this a contradiction? Welcome to world of cookies (not the ones which we can eat, btw :) ), one the of primary ways to maintain user state and interaction between the web browser and the web server.

She shares a lifecycle of a common cookie and describes the parts of the setcookie method (parameters). There’s also a few code examples showing how to read and write to them as well as update their values/expirations.

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

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

PHPMaster.com: Baking Cookies in PHP

PHPMaster.com: Baking Cookies in PHP

On PHPMaster.com there’s a new tutorial about working with cookies in PHP applications – an introductory look at what they are, how to set them and how to read their values.

Have you ever wondered that in spite of HTTP being a stateless protocol, when you log in to a website and buy stuff and checkout how the server can identify you uniquely? You might wonder if HTTP is stateless but your state is maintained through your interactions, isn’t this a contradiction? Welcome to world of cookies (not the ones which we can eat, btw :) ), one the of primary ways to maintain user state and interaction between the web browser and the web server.

She shares a lifecycle of a common cookie and describes the parts of the setcookie method (parameters). There’s also a few code examples showing how to read and write to them as well as update their values/expirations.

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

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