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

Delicious Brains:
Hosting WordPress Yourself: Moving WordPress to a New Server
Oct 30, 2018 @ 14:50:42

On the DeliciousBrains.com site they've posted the latest installment for their "Hosting WordPress Yourself" series (part 12) showing how to move your WordPress installation over to a new server.

In part 11 of Hosting WordPress Yourself I demonstrated how to update a server’s packages (including PHP). However, I didn’t show how to upgrade the server itself, because it’s not something I recommend.

[...] In this article, I’m going to walk you through the steps required to migrate an existing WordPress site to a new server. These are the same steps that I took just a few months ago to migrate the Delicious Brains site to a new server with little to no downtime.

The rest of the article is broken up into several different sections, each with descriptions and commands/code you'll need:

  • Securely Copying Files
  • File Migration
  • Nginx Configuration
  • HTTPS Certificates
  • Spoof DNS
  • Database Import

They also include hints on migrating with minimum downtime and things to look out for when you "flip the switch".

tagged: wordpress migration different server tutorial series part12

Link: https://deliciousbrains.com/move-wordpress-new-server/

ShippingDocker.com:
Testing in Docker (Using Different PHP Versions)
Aug 12, 2016 @ 17:23:58

On the ShippingDocker.com site there's a video (and matching tutorial) posted showing you how to use Docker to test with multiple PHP versions with relatively little difficulty. In this case they're not testing the frontend of the application, they're running its unit tests.

[This is a] quick video on running PHP unit tests against different versions of PHP using Docker. [We'll] cover unit testing with PHP.

They start with an example of using the pywatch tool to do the testing without Docker, automatically executing the tests when something changes. This has the limitation of only being able to use your current, local version of PHP. They then shift over to the Docker side of things and show how to run the same pywatch command inside a container of your choosing, tagging it with the PHP version and making it easy to switch between them in the future.

tagged: docker version unittest different example video screencast tutorial

Link: https://shippingdocker.com/blog/docker-testing/

Doug Hill's Blog:
60 Days : What is it?
Dec 24, 2008 @ 18:33:35

Doug Hill has proposed a new project that he hopes to get the community behind - 60 Days:

60 Days is an idea I had while trying to decide what to do with the domains I have sitting around doing nothing — (well nothing but being a nagging reminder that I'll never have time for every idea that pops into my head, and that domain names cost money to keep).

The goal of the project is to take a domain you're not currently using (and you know you have some out there) and making something - a "real world project" - on it in 60 days. the catch is that, for each domain you use for the effort, it has to be a different PHP framework. Keep an eye out for the January 1 launch date for more details.

tagged: sixty days project effort domain name framework different realworld

Link:

PHPBuilder.com:
Localizing a Web Page for Different Languages
Oct 11, 2006 @ 20:36:00

PHPBuilder.com excerpts once again from the Sams Publishing book "PHP 5 in Practice" today with this new tutorial showing a method for localizing web pages for different languages.

Internationalization and localization of a web page is simply the act of setting it up to be able to handle displaying in multiple languages and adding those different languages in. There are many different ways in which to do this. One of the simplest is to just make sure that all your strings that you ever output are stored as variables or constants in an included file. That way, you can make multiple copies of that file,each with different language versions written into them. Just include the appropriate file for the language that you want to display.

They show the creation of the different language PHP files that will be included and the master "language.php" that works with the under's input to switch to the correct language (and set a cookie to save the preference).

tagged: localize different language page include cookie localize different language page include cookie

Link:

PHPBuilder.com:
Localizing a Web Page for Different Languages
Oct 11, 2006 @ 20:36:00

PHPBuilder.com excerpts once again from the Sams Publishing book "PHP 5 in Practice" today with this new tutorial showing a method for localizing web pages for different languages.

Internationalization and localization of a web page is simply the act of setting it up to be able to handle displaying in multiple languages and adding those different languages in. There are many different ways in which to do this. One of the simplest is to just make sure that all your strings that you ever output are stored as variables or constants in an included file. That way, you can make multiple copies of that file,each with different language versions written into them. Just include the appropriate file for the language that you want to display.

They show the creation of the different language PHP files that will be included and the master "language.php" that works with the under's input to switch to the correct language (and set a cookie to save the preference).

tagged: localize different language page include cookie localize different language page include cookie

Link:

Kore Nordmann's Blog:
New Image_3D release
Mar 20, 2006 @ 13:34:12

Kore Nordmann has released the latest edition of his PEAR Image_3D package - version 0.4-alpha - including some great new features.

The new release of Image_3D (0.4-alpha) is out. It was quite some time ago, Richard Davey wrote his great introduction into Image_3D. He asked for some different types of lights, I didn't thought of, when I released Image_3D first. This needed a minor change in the API you use to create lights, but offers some great improvements. See changelog for details.

Some of the other additions mentioned include, as mentioned, the ability to create different types of lights (light, ambient, point, and spotlight) and the inclusion of an object that allows for the creation of bezier areas from an array of points.

tagged: PEAR package image_3d different lights bezier areas PEAR package image_3d different lights bezier areas

Link:

Kore Nordmann's Blog:
New Image_3D release
Mar 20, 2006 @ 13:34:12

Kore Nordmann has released the latest edition of his PEAR Image_3D package - version 0.4-alpha - including some great new features.

The new release of Image_3D (0.4-alpha) is out. It was quite some time ago, Richard Davey wrote his great introduction into Image_3D. He asked for some different types of lights, I didn't thought of, when I released Image_3D first. This needed a minor change in the API you use to create lights, but offers some great improvements. See changelog for details.

Some of the other additions mentioned include, as mentioned, the ability to create different types of lights (light, ambient, point, and spotlight) and the inclusion of an object that allows for the creation of bezier areas from an array of points.

tagged: PEAR package image_3d different lights bezier areas PEAR package image_3d different lights bezier areas

Link:

PHPit.net:
Taking a look at ten different PHP frameworks
Mar 20, 2006 @ 13:27:00

From PHPit.net, there's this article posted that takes a look at ten of the more prominent PHP frameworks offered today, including the Zend Framework, Cake, Symfony, and Seagull. They compare each of them, including a large chart outlining their basic setup and features.

PHP frameworks are the latest hot topic in the PHP community, and new frameworks are being released daily. With over 40 frameworks available it's difficult to decide which framework works best for you, especially as each framework offers different functionality.

In this article we will look at ten popular frameworks, and compare them to each other. First I will give you a general chart which gives you a quick overview of all the frameworks, and after that we'll go through each framework and discuss it in short.

They start with the chart mentioned above for those that just want to boiled down version of the reviews. From there, they work through each, describing general details about them and the general feel that the author got from them as they developed in them. Of course, there is no real "winner" when it comes to this kind thing. Sure, there's always a few that rise to the top as more well developed and suited for more of the projects out there, but it's really more about what fits for you, not an overarching single framework to do it all...

tagged: framework review ten different description framework review ten different description

Link:

PHPit.net:
Taking a look at ten different PHP frameworks
Mar 20, 2006 @ 13:27:00

From PHPit.net, there's this article posted that takes a look at ten of the more prominent PHP frameworks offered today, including the Zend Framework, Cake, Symfony, and Seagull. They compare each of them, including a large chart outlining their basic setup and features.

PHP frameworks are the latest hot topic in the PHP community, and new frameworks are being released daily. With over 40 frameworks available it's difficult to decide which framework works best for you, especially as each framework offers different functionality.

In this article we will look at ten popular frameworks, and compare them to each other. First I will give you a general chart which gives you a quick overview of all the frameworks, and after that we'll go through each framework and discuss it in short.

They start with the chart mentioned above for those that just want to boiled down version of the reviews. From there, they work through each, describing general details about them and the general feel that the author got from them as they developed in them. Of course, there is no real "winner" when it comes to this kind thing. Sure, there's always a few that rise to the top as more well developed and suited for more of the projects out there, but it's really more about what fits for you, not an overarching single framework to do it all...

tagged: framework review ten different description framework review ten different description

Link:

Sebastian Bergmann's Blog:
PHP 5.1 / GCC Benchmark (Update)
Jan 25, 2006 @ 12:40:40

Sebastian Bergmann has updated a previous benchmark concerning the performance of PHP 5.1 as built with various versions of GCC.

I updated my previous benchmark of PHP 5.1. This time around I built PHP with GCC 3.4.5, GCC 4.0.2, and GCC 4.1.0.

The bottom line result seems to be that GCC 4 generates slightly slower code:

  • GCC 3.4.5: 15.223
  • GCC 4.0.2: 17.896
  • GCC 4.1.0: 17.847
When I have more time, I will investigate this further using alternative optimizations, including profiling-guided ones.

The detailed results are also included, showing how he came to each point mentioned above. They include the specs for the machine, how the testing was set up, and the detailed breakdown of the stats for each GCC version.

tagged: gcc benchmark update different versions php5.1 gcc benchmark update different versions php5.1

Link:


Trending Topics: