Looking for an easy way to package your php application without having to copy tons of files across servers? Here’s a new PHP Extension which allows you to create and use PHAR (PHP Archive) files.
Here’s how you would use it in your code:
< ?
include 'phar:///full/path/to/my.phar/file.php';
? >
Phar provides both a stream wrapper (phar://) and a Phar class which can be used to access the contents of a phar archive. What is a phar archive? Think of it as a virtual filesystem that is customized for use with PHP, sort of like a Java .jar archive.
.phar files can be read using the phar stream, or with the Phar class. If the SPL extension
is available, a Phar object can be used as an array to iterate over a phar’s contents
or to read files directly from the phar.
Phar archives can be created using the streams API or with the Phar class, if
the phar.readonly ini variable is set to false.
If you’re looking for a IDE for PHP-GTK programming, you should try out Anubis. I took a quick look at it and it’s pretty simple to use. There are no overly complicated interfaces in the current version just click and drop.
This video is from one of Google’s Techtalk sessions by Jay Pipes
ABSTRACT Learn where to best focus your attention when tuning the performance of your applications and database servers, and how to effectively find the “low hanging fruit” on the tree of bottlenecks. It’s not rocket science, but with a bit of acquired skill and experience, and of course good habits, you too can do this magic!
I’ve had to to look at this situation quite a few times on live servers, where the number of MySQL connections seemed to exceed the max limit of the server and PHP used to throw “Too many connections” error when a MySQL query was run. When we looked at the MySQL process list, it showed quite a few MySQL connections in the Sleep state. Here’s an article from MySQL Performance Blog on debugging such connections.
I see if frequently with web applications and it is often indication of trouble. Not only it means you may run out of MySQL connections quicker than you expected but it also frequently indicates serious problems in the application. If you do not use persistent connections and you have connection in Sleep stage for 600 seconds what could it be ? It may mean some of your pages take that long to generate (or might be the code simply gets into the tight loop and page never gets generated) it also could mean some of external Web Services are slow or not available and you’re not dealing with timeouts properly. Or may be you have several connections to MySQL server and right now running query which takes that long ? In any case it is something frequently worth looking at.
phpPaypalPro version 0.2.0 has been released under the revised BSD license. Their catch phrase is “So Easy Even A Caveman Can Use It”.
phpPaypalPro is an object-oriented framework developed in PHP5 to integrate easily with the Website Payments Pro SOAP 1.1 API from Paypal. The framework is very easy to deploy, allowing you to execute any of the operations in just a few lines. It deploys the built-in SOAP extension available natively in PHP5 to interact with the SoapServer from Paypal.
Current operations supported in version 0.2.0 includes:
Are you looking for a list of what you can do with CSS with links to tutorials which show you how to? You must go through the following article from Smashing Magazine.
Over the last few years web-developers have written many articles about CSS and developed many useful techniques, which can save you a lot of time - of course, if you are able to find them in time. Below you’ll find a list of techniques we , as web-architects, really couldn’t live without. They are essential and they indeed make our life easier. Let’s take a look at 53 CSS-based techniques you should always have ready to hand if you develop web-sites.