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

BitExpert.de Blog:
Composer, Bower and HTTP Basic Auth
December 27, 2013 @ 11:16:23

Stephan Hochdörfer has shared a handy tip for the Composers users out there that may have to deal with username/password protected repositories as a part of your package install process. In his post he shows how to use a simple "expect" script to automatic the HTTP Basic Auth login.

A couple of months ago when we set-up our own internal Satis repository to host our custom Composer packages. We ran into an "unpleasant" issue with Composer that had this PR as an result. To sum things up: We are using HTTP Basic Auth to password-project our Satis repository. There was no way we could switch to an SSL client certificate to allow Composer to authenticate itself automatically without asking for a password. Asking for the password on a developer`s machine is no big thing, but it since we need an automated Composer run in our Jenkins environment, there was no way to set things up.

As Composer doesn't currently support this functionality, they had to find a way around it. They went with an expect script that is used to work with the prompts and send the username/password information when expected. He also points out that this could be useful for other situations and tools - like a Bower build.

0 comments voice your opinion now!
composer satis username password http basic authorization bower expect

Link: http://blog.bitexpert.de/blog/composer-bower-and-http-basic-auth/

PHPMaster.com:
Understanding HTTP Digest Access Authentication
May 21, 2013 @ 12:09:02

On PHPMaster.com they've posted a new tutorial by Sean Hudgston that helps you understand HTTP digest authentication, a simple way to authenticate a user or script against your application.

Digest Access Authentication is one method that a client and server can use to exchange credentials over HTTP. This method uses a combination of the password and other bits of information to create an MD5 hash which is then sent to the server to authenticate. Sending a hash avoids the problems with sending a password in clear text, a shortfall of Basic Access Authentication.

He starts out by looking at the "basic authentication" mechanism that's built into most web servers and points out that it has a major flaw - sending the username/password in (pretty much) plain text. Digest, on the other hand, uses a MD5 hash created from a few pieces of information including username, realm and request method. The result is sent as a header back to the server that can then be parsed by PHP. He also talks about improving on the basic version of the digest method using the qop, nc, and cnonce optional parameters.

0 comments voice your opinion now!
http digest authentication tutorial basic hash

Link: http://phpmaster.com/understanding-http-digest-access-authentication

SitePoint.com:
OAuth for PHP Twitter Apps, Part I
September 03, 2010 @ 10:53:45

On the SitePoint blogs today there's a new tutorial posted, the first part of a series, from Raj Deut about making the move away from the basic authorization for connecting to the Twitter API and towards their new OAuth method for Twitter Apps.

As of August 31, Twitter's HTTP Basic Authenticated API service has been disabled entirely. Now, any interface with the API will be required to use a token-based authentication method known an OAuth. [...] At first glance, the task of implementing OAuth can appear daunting, and OAuth's token exchange system can be confusing if you're unfamiliar with it. Fortunately, there are some rather clever individuals who've done the groundwork for us.

They show you how to register your application with Twitter and use the TwitterOAuth library to make a sample connection to their servers. They also show how to generate the tokens for the URL and the ones for accessing the site as a user. With tokens in hand, the script can then connect to the system and make a sample tweet (complete code included).

0 comments voice your opinion now!
oauth basic authentication tutorial twitteroauth library


PHPBuilder.com:
Upgrading Basic Twitter Authentication to OAuth with PHP
June 28, 2010 @ 11:23:09

On PHPBuilder.com today there's a new tutorial about updating your application's Twitter authentication from the basic method to OAuth (which will become the new standard).

Twitter provides an API for developers to build applications on top of it. The API has supported basic authentication over HTTP, but beginning in June 2010 Twitter is discontinuing basic authentication and migrating all Web and desktop applications to OAuth (Open Authorization). Although simpler to implement, basic authentication had its drawbacks. [...] OAuth on the other hand provides a more secure way to authenticate users and allows a persistent access token, which application developers can then consume.

They explain a bit about how OAuth works as compared to the basic authentication method (complete with a graph) and how to use the OAuth Twitter library to make the connection between your application and the Twitter servers.

0 comments voice your opinion now!
twitter authentication oauth basic tutorial


Chris Jones' Blog:
New PHP Oracle FAQ Wiki
April 08, 2009 @ 12:05:05

Chris Jones has pointed out a new wiki page that's been set up as a more centralized resource for frequently asked questions about PHP and Oracle.

I've updated the old Oracle PHP FAQ and the Oracle PHP Troubleshooting FAQs that were hosted by Oracle Technology Network (OTN). We've redirected the old FAQ pages to a new wiki page: http://wiki.oracle.com/page/PHP+Oracle+FAQ with the updated content. Feel free to create an account and make updates. Hosting the FAQ on a wiki seems appropriate because PHP is open source and grows by the value of everyone's contributions.

Questions so far include some of the basics (connecting, querying, etc) and a few more complicated issues like pre-fetching, LOBS and new information for using the Zend Server to connect to your Oracle databases.

0 comments voice your opinion now!
oracle wiki faq basic advanced frequently asked questions


PHPBuilder.com:
The ABC's of PHP II - What do I need to make it work?
March 16, 2009 @ 07:58:31

Peter Shaw has posted the second part of his introductory series to PHP - "The ABCs of PHP". In this new article Peter looks at the installation and configuration of PHP on your platform of choice (Windows or Linux-based).

PHP runs on all the major computing platforms available today, this includes all versions of windows, all the major linux distro's and a lot of specialist systems for devices like the Cobalt Raq and a lot of embedded devices. In this article however we will be concentrating on running PHP under the Apache and IIS web servers, which between the two covers approx 95% of the systems most people will have access to.

He uses packages on the linux installation to make things simple (for a basic Apache2 and PHP5) and the PHP and Apache binaries from each project on the Windows platform.

0 comments voice your opinion now!
abc basic introduction language install apache php5 windows linux package binary


NETTUTS.com:
Top 50 Wordpress Tutorials
February 25, 2009 @ 11:13:30

NETTUTS.com has a list of fifty WordPress tutorials you can use on your installation to do things like:

  • Multiple Wordpress Installations Using a Single Database
  • Wordpress Theme Hacks
  • Turning a Web Template Into a Wordpress Theme
  • Rounded Corner Tab Menus
  • Customizing Widgets Using CSS
  • Wordpress Categories in a Horizontal Drop-down Menu
  • Enabling HTTPS for Wordpress.com Blogs Screencast

Check out the full post for even more WordPress goodness.

1 comment voice your opinion now!
wordpress tutorial list fifty plugin basic theme backend


Evert Pot's Blog:
HTTP Basic and Digest authentication with PHP
February 13, 2009 @ 12:06:02

Validating users can be a complicated thing but, depending on what you're trying to protect, you may not need an entire user validation and management system to keep it all straight. Evert Pot offers information on using PHP with a good old standby technology - HTTP basic and digest authentication.

HTTP authentication is quite popular for web applications. It is pretty easy to implement and works for a range of http applications; not to mention your browser.

He includes two scripts - one to force the Basic form of authentication (the password is passed over in clear-text) and the Digest method (the password is set over as a hash) - and how to check the values sent back for each. Obviously, the Digest method takes a little more doing and requires compiling a few different keys as an md5 hash to ensure that the user is valid.

0 comments voice your opinion now!
http basic digest authentication example tutorial


Developer Tutorials:
Drupal CMS e-Commerce Module Basics
August 21, 2008 @ 10:21:04

On the Developer Tutorials site today, there's a new look at working with the Drupal e-Commerce module in your Drupal installation.

What if you [also] want to support collaborative editing of content, community forums, and other capabilities that could help increase traffic to your site, but are usually only found in content management systems (CMSs)? Is it possible to combine the best of both worlds - shopping carts and CMSs? Fortunately, the answer is yes, if you choose a world-class CMS such as Drupal as a foundation for your site.

They walk you through how to get the module installed, how to configure it to match with your site's layout and flow and how to hook the purchase process into PayPal to make purchasing a few simple user clicks away.

0 comments voice your opinion now!
drupal tutorial ecommerce module basic introduction


PHPBuilder.com:
Fundamentals of PHP Superglobals
October 19, 2007 @ 13:56:00

PHPBuilder.com has a new article published today that works through some of the basics behind using the superglobal variables in PHP.

This month's article is aimed at PHP developers who're not yet familiar with the PHP superglobals. Usage of superglobals is fundamental to PHP web development, but, with all the recent changes in PHP, there are still many outdated tutorials, books, and sadly, still much confusion.

They look at how to use them in a PHP script (in an HTML page) and what's contained in each of them (_GET, _POST, _ENV, _SERVER, etc).

1 comment voice your opinion now!
superglobal fundamental tutorial basic beginner superglobal fundamental tutorial basic beginner



Community Events











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


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

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