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

Christian Weiske:
PHP manual viewers
Jan 31, 2014 @ 16:07:39

In this latest post to his site Christian Weiske shares three PHP manual viewers he finds useful (besides the actual PHP.net manual) and can be used offline.

The PHP documentation is really good. It covers almost all parts of the language and is filled with examples that help you grasp a function's meaning and usage really fast. And since PHP is a grown language, it's function naming and parameter order are often confusing - requiring you to look up the manual more often.

The three he suggests are:

  • pman - PHP manual pages
  • the xCHM version of the manual
  • Zeal, which also has support for lots of other docs from other languages/tools
tagged: manual viewer offline pman xchm zeal dash

Link: http://cweiske.de/tagebuch/php-man-viewer.htm

Chris Jones:
Offline Processing in PHP with Advanced Queuing
May 17, 2013 @ 14:49:26

Chris Jones has a new post today showing you how to use Oracle and PHP together to process data offline via the Oracle Streams Advanced Queuing feature.

Offloading slow batch tasks to an external process is a common method of improving website responsiveness. One great way to initiate such background tasks in PHP is to use Oracle Streams Advanced Queuing in a producer-consumer message passing fashion. [...] The following example simulates an application user registration system where the PHP application queues each new user's street address. An external system monitoring the queue can then fetch and process that address. In real life the external system might initiate a snail-mail welcome letter, or do further, slower automated validation on the address.

He includes the SQL needed to create the database and configure the queue system as well as start it up and get it ready for requests. He shows how to push an address into the queue for processing and how to get the results once it has completed in both the SQL and from the oci_* functions in PHP.

tagged: oracle tutorial advanced queue offline processing

Link: https://blogs.oracle.com/opal/entry/offline_processing_in_php_with

Lorna Mitchell:
Installing PEAR Packages Offline
Jul 30, 2012 @ 17:09:41

Since you can't always be online when you need to install new libraries you'll need for your PHP work, Lorna Mitchell has posted a quick guide to downloading and installing PEAR packages when you're offline.

As with most tools that work really well, I know very little about PEAR. I mean, I use it all the time, and I love it for getting all the extensions installed that I need for the work I do. [...] However I'm now in a situation where I might need to install PEAR packages with a connection that may or may not be working, and I'm not sure exactly which packages I might need, so I wanted to know whether I could use PEAR as my packaging tool even when I wasn't able to reach the usual channels. And guess what? I can!

The install is a pretty simple two-step process - just download the package(s) you'll need for your development and point the PEAR installer (you'll need this installed first, obviously) at the archive file. It's smart enough to take care of the rest.

tagged: pear package install offline installer tutorial

Link:

Jaisen Mathai's Blog:
How to host the php.net manual on your laptop for offline use
Mar 12, 2009 @ 17:53:51

Jaisen Mathai has a helpful hint for those that do any offline work with PHP on their own development systems - how to mirror the PHP manual on a local web server.

In addition to [a local copy of your source] being faster to develop, it lets you work without needing to be connected to the Internet. But what about the tools you use while developing? If you’re a PHP developer then the manual at php.net is an invaluable tool. It only make sense to have it available for when you’re not online.

His example follows the official mirroring part of the PHP.net website and uses a slightly modified rsync command to fetch the manual information from the php.net site and drops it in a location locally. He throws in an Apache configuration too for a simple VirtualHost to get it up and running.

tagged: phpnet manual offline local copy rsync mirror documentation

Link:

Symfony Blog:
Read the symfony documentation offline
Feb 05, 2009 @ 16:21:10

Symfony developers that do work offline will be happy to know that the framework's documentation is now available as a PDF:

As of today, most of the symfony documentation is available as PDF files. The PDF files are available for all major symfony versions.

They also link to the Jobeet tutorial (Propel/Doctrine), their Forms book and Cookbook.

tagged: symfony framework documentation offline pdf jobeet forms cookbook

Link:

Sebastian Bergmann's Blog:
Using Bazaar for PHPUnit Development
Jan 02, 2009 @ 20:05:02

In this new post to his blog Sebastian Bergmann looks at how to use Bazaar (a dstributed version control system) in his development the PHPUnit tool.

Last December, when I was in Australia and started to work on the Object_Freezer code, I "dived into" Bazaar (bzr) and learned the value of local commits as they allow me to work offline, e.g. when disconnected during travel. Thanks to bzr-svn, I can now work offline for PHPUnit development as well.

He shares his setup - a local shared repository for branching/trunk work and a linked checkout of PHPUnit between Bazaar and Subversion. This allows him to commit locally with Bazaar and, when he gets back online, issue a "merge" command to make the push back out to Subversion's remote repository.

tagged: bazaar phpunit development offline subversion link repository

Link:

Brian Moon's Blog:
PHP's MySQL connection timeout
Jan 14, 2008 @ 18:59:00

In the process of debugging one of his scripts, Brian Moon came across a default setting (and problem) in the MySQL extension that didn't seem to make much sense to him:

There are several reasons that PHP could not be able to connect to MySQL. [...] Or, perhaps the entire server is offline.

The mysql.connect_timeout setting in the php.ini is supposed to handle this sort of instance, but the default is set tpo 60 seconds. It's only apparently used when the server is completely offline and, in his opinion, is set way too high. He's proposing a patch to the MySQL extension to change this setting's default to shorten it to something a bit more reasonable.

tagged: mysql extension timeout server offline default mysql extension timeout server offline default

Link:

Brian Moon's Blog:
PHP's MySQL connection timeout
Jan 14, 2008 @ 18:59:00

In the process of debugging one of his scripts, Brian Moon came across a default setting (and problem) in the MySQL extension that didn't seem to make much sense to him:

There are several reasons that PHP could not be able to connect to MySQL. [...] Or, perhaps the entire server is offline.

The mysql.connect_timeout setting in the php.ini is supposed to handle this sort of instance, but the default is set tpo 60 seconds. It's only apparently used when the server is completely offline and, in his opinion, is set way too high. He's proposing a patch to the MySQL extension to change this setting's default to shorten it to something a bit more reasonable.

tagged: mysql extension timeout server offline default mysql extension timeout server offline default

Link:


Trending Topics: