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

Doug Brown's Blog:
Difference between ASP and PHP
Jan 06, 2009 @ 15:31:49

In this recent post to his blog Doug Brown spends a little time comparing (at a high-level) some of the differences between ASP and PHP.

The difference between PHP and ASP is that ASP is a Microsoft product based on visual basic syntax whereas PHP has C and Java based syntax. ASP works better on Microsoft servers.

He describes the target audience for each language and talks about the environments that they work best in as well as some general statements about their speed and flexibility. Basing his judgment on the facts he noted, he suggests PHP as the best alternative of the two for being more flexible, running in more places and being a bit faster overall.

tagged: difference asp compare contrast opinion environment microsoft

Link:

Andreas Gohr's Blog:
Calculating Color Contrast with PHP
Sep 19, 2008 @ 14:37:37

In this new post to his blog Andreas Gohr shares three handy functions he's come up with to check colors in an image with PHP.

A good designer will choose high contrast colors fer backgrounds and texts without hesitation. But sometimes no human is involved in choosin' th' colors. For example when colors are assigned in a (pseudo) random manner. [...] After some googlin' I found a page explainin' different color contrast algorithms. Load the cannons! I used th' data from that page and implemented 3 color check functions in PHP.

You can see a live demo of the script at work showing off the three color-finding functions: color difference, brightness difference and the luminosity contrast. There's also a method for calculating the Pythagorean distance between the colors included now too.

tagged: color contrast tutorial brightness luminosity

Link:

DevShed:
Filtering Image Streams with the GD Library in PHP
Aug 27, 2007 @ 16:25:00

DevShed concludes their series on using the GD graphics libraries in PHP with thie new article focusing on the use of some of the simple filtering functionality the library has to offer.

In this article I'm going to demonstrate how the GD library can be used to apply some basic graphic filters (yes, like Photoshop, but much simpler) by utilizing the versatility of a brand new function called "imagefilter()". As you'll see shortly, with this function it is possible to reverse, blur and highlight the colors of a determined image, as well as convert it to its grayscale version, among other things.

They use the imagefilter function in a few different examples - altering the colors in an image, working with contrast and brightness and various other filters (like smoothing, embossing, blurring and colorizing).

tagged: gd tutorial library filter blur smooth colorize emboss brightness contrast gd tutorial library filter blur smooth colorize emboss brightness contrast

Link:

DevShed:
Filtering Image Streams with the GD Library in PHP
Aug 27, 2007 @ 16:25:00

DevShed concludes their series on using the GD graphics libraries in PHP with thie new article focusing on the use of some of the simple filtering functionality the library has to offer.

In this article I'm going to demonstrate how the GD library can be used to apply some basic graphic filters (yes, like Photoshop, but much simpler) by utilizing the versatility of a brand new function called "imagefilter()". As you'll see shortly, with this function it is possible to reverse, blur and highlight the colors of a determined image, as well as convert it to its grayscale version, among other things.

They use the imagefilter function in a few different examples - altering the colors in an image, working with contrast and brightness and various other filters (like smoothing, embossing, blurring and colorizing).

tagged: gd tutorial library filter blur smooth colorize emboss brightness contrast gd tutorial library filter blur smooth colorize emboss brightness contrast

Link:

Tnx.nl:
PHP in Contrast to Perl
May 22, 2006 @ 11:21:33

As long as people "choose sides" when it comes to programming languages, there will always be articles like this to compare them. This time, it's a look at PHP versus another much-loved language, Perl.

The article takes a look at several different topics under this one umbrella, including:

  • Arguments and return values are extremely inconsistent
  • PHP has inconsistent function naming
  • PHP has no lexical scope
  • PHP has too many functions in the core

Obviously, they all seem to take a negative slant on PHP, but they do provide some content under each of the headings to back up their claims. They break out the contents of each of these examples to make comparison of Perl's and PHP's similar functionality easier. At the end, they also provide links to other resources and other posters illustrating some of the points they've shown.

tagged: contrast perl arguments function naming scope contrast perl arguments function naming scope

Link:

Tnx.nl:
PHP in Contrast to Perl
May 22, 2006 @ 11:21:33

As long as people "choose sides" when it comes to programming languages, there will always be articles like this to compare them. This time, it's a look at PHP versus another much-loved language, Perl.

The article takes a look at several different topics under this one umbrella, including:

  • Arguments and return values are extremely inconsistent
  • PHP has inconsistent function naming
  • PHP has no lexical scope
  • PHP has too many functions in the core

Obviously, they all seem to take a negative slant on PHP, but they do provide some content under each of the headings to back up their claims. They break out the contents of each of these examples to make comparison of Perl's and PHP's similar functionality easier. At the end, they also provide links to other resources and other posters illustrating some of the points they've shown.

tagged: contrast perl arguments function naming scope contrast perl arguments function naming scope

Link:


Trending Topics: