News Feed
Jobs Feed

News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way
Xdebug - Professional PHP Debugging
August 29, 2013 @ 09:56:01

On there's a new article introducing Xdebug, a powerful tool that can help you with debugging your PHP applications. It works by investigating what's happening "on the inside" and reporting it back to your debugger.

Well, technically, Xdebug is an extension for PHP to make your life easier while debugging your code. [...] But just imagine for a moment, as your applications evolve, you might get into the habit of sprinkling your code all over with little echos, var_dumps and custom debuggers. [...] The next question is: how do you debug in production? [...] Now lastly, have you ever wished to be able to step through your code, line by line, watch expressions, and even step into a function call to see why it's producing the wrong return value? Well, you should definitely dig into the world of professional debugging with Xdebug, as it can solve all of the problems above.

They walk you through the setup of a complete (MAMP-based) environment on an OSX installation. You'll also need Xcode and the command line tools to be able to compile Xdebug. They recommend installing Homebrew to make installing the needed tools easier. They use Homebrew to install the PHP 5.4 version of Xdebug which then compiles and outputs a shared module you can put in your PHP extensions directory.

On the other side of things, the article also helps you set up your IDE, in this case PHPStorm but it would work for lots of others - to accept the debug messages from the server. He includes a sample script with some calls to the Xdebug-enabled debugging functions and what kind of responses (with screenshots) you should see in your IDE.

0 comments voice your opinion now!
xdebug debugging extension homebrew mamp osx install tutorial


Alex Simonenko's Blog:
Installing PHP 5.3.6 on OS X Lion
July 20, 2011 @ 11:27:30

Alex Simonenko has a new post to his blog talking about what he had to do to get PHP 5.3.6 working on his OS X Lion installation since a previous method no longer worked. in his new post he shares his solution - using Homebrew. (Note: original post is in Russian)

After installing OS X Lion (10.7) was faced with an unpleasant problem, install PHP + MySQL bundle as I did before does not work. And as it turned out, the problem is in MySQL, source code is not yet ready for the new OS from Apple. After some thought and reading similar problems on the Internet, I found [a solution to the problem].

He includes the commands you'll need to get Homebrew installed and configured to install a fresh download of the archive (dmg) after a few setup changes. He uses Homebrew to install a few dependencies the installation will need and his example configure options for the build. Then the install is just a "make" and "make install" away.

0 comments voice your opinion now!
install homebrew tutorial osx lion version

Rob Allen's Blog:
MongoDB on OS X with the stock PHP installation
June 07, 2010 @ 11:07:08

After a bit of trial and error Rob Allen was able to get MongoDB up and running on his local OS X installation of PHP. He's blogged about how he did it with the help of the homebrew tool.

MongoDB was mentioned a few times at tek and I said that I wanted to have a look at. Travis' article, MongoDB: A first look, came out a few days ago and piqued my interest further. Then Matthew sent me some source code that requires it. The stage was set for getting MongoDB working on my Mac.

Using the homebrew utility he was able to easily install MongoDB itself and setting up PHP support for it was as simple as calling the "pecl" command line to grab and build the shared object. Drop it into your php.ini file and you're all set to go.

0 comments voice your opinion now!
mongodb osx install homebrew tutorial

Sean Coates' Blog:
PHP 5.3 on Snow Leopard
May 26, 2010 @ 13:03:00

Due to the popularity (and age) of his previous post about compiling PHP 5.3 on Snow Leopard (OS X), Sean Coates has written an updated post showing some of the changes to the process that the updated OS version has brought with it.

I've been meaning to post instructions on how to compile PHP for Snow Leopard since last summer when I picked up the DVD, but hadn't found the time or opportunity to build PHP from a completely fresh start, until a few weeks ago. This time, I took notes on how to reliably compile PHP and Apache from scratch on this system.

He's made a six step process that includes installing Xcode, Homebrew, your own version of iconv, support for whatever dependencies you might still need and, of course, Apache/PHP.

0 comments voice your opinion now!
compile php5 snowloepard osx homebrew xcode

Community Events

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

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

All content copyright, 2014 :: - Powered by the Solar PHP Framework