 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Lorna Mitchell's Blog: Three Ways to Make a POST Request from PHP
by Chris Cornutt January 19, 2010 @ 08:45:33
Lorna Mitchell has a new post to her blog looking at three different ways you can make a POST request to a server - cURL, Pecl_Http non-OOP and Pecl_Http with the OOP interface.
I've been doing a lot of work with services and working with them in various ways from PHP. There are a few different ways to do this, PHP has a curl extension which is useful, and if you can add PECL extensions then pecl_http is a better bet but there are a couple of different ways of using it. This post shows all these side-by-side.
Code snippets are included for each showing a request to the Flickr API. Be sure to check out the post's comments for more great ideas (like streams, the PEAR HTTP_Client package, Zend_Http_Client and other request types without cURL).
voice your opinion now!
post request curl pecl tutorial
Hasin Hayder's Blog: Using new PECL Memcached extension for storing session data
by Chris Cornutt October 19, 2009 @ 09:51:21
Hasin Hayder has a new post talking about the new memcached extension for PHP (memcached from PECL) and how it can be used to store sessions data.
Many of you already know that managing session is a critical task for web applications, specially when you want to avoid I/O hop and also a significant load over your database by writing a custom session handler. [...] This is why a central session manager is very important for your application to scale.
He walks you through the whole process - installation, setting up memcached instances and getting the extension installed and working with your PHP installation. By adding two lines to your php.ini file, the sessions can quickly and easily be stored in memcache instead of on the local server.
voice your opinion now!
session data save memcached pecl extension
Alexey Zakhlestin's Blog: XSLCache in PECL
by Chris Cornutt August 27, 2009 @ 07:56:09
In a new post to his blog Alexey Zakhlestin talks about the "rebirth" of the XSLCache extension for PHP, this time as a PECL module.
XSLCache extension for PHP, originally developed by NYTimes started its second life in PECL's repository and I am proud to announce first PECL-release. The XSL Cache extension is a modification of PHP's standard XSL extension that caches the parsed XSL stylesheet representation between sessions for 2.5x boost in performance for sites that repeatedly apply the same transform.
It works with the normal XSL extension with some small differences around which classname to use and a change to the importStylesheet function.
voice your opinion now!
pecl extension xslcache xsl
Andrei Zmievski's Blog: pecl/memcached turns 1
by Chris Cornutt July 08, 2009 @ 09:14:17
Andrei Zmievski has announced the release of the first stable version (1.0.0) of the memcached extension for PHP.
It's been stable for a while actually, but some people were hesitant to use it in production while it still had the beta designation. Well, no more, go forth and use it.
Future plans include the addition of memcached_dump and auto-ejection support. The memcached extension is a PHP library that allows your application to interface directly with a memcached server. Memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.
voice your opinion now!
stable extension memcached pecl
Zend Developer Zone: Using JavaScript in PHP with PECL and SpiderMonkey
by Chris Cornutt June 04, 2009 @ 12:06:38
On the Zend Developer Zone today there's a new tutorial from Vikram Vaswani about using the Spidermonkey Javascript engine together with the PECL extension for it to create a few simple examples.
Not too long ago, it seemed like there was a pretty clear distinction between client-side technologies and server-side technologies. [...] Things aren't that clear any longer. [...] And in this article, I'm going to show you how to add a JavaScript engine to your PHP build, with a little help from PECL's SpiderMonkey extension.
The PHP extension lets you use the libraries (with your PHP 5.3+ installation) to directly create new objects and work with the Javascript like it was PHP. The end result is then passed out to the browser via a "evaluateScript" call. He illustrates how you can use objects and generate XML quickly and easily.
voice your opinion now!
pecl tutorial spidermonkey javascript
Rob Peck's Blog: PECL memcache and PHP on Mac OS X Leopard
by Chris Cornutt June 01, 2009 @ 09:31:22
Rob Peck has figured out a way to get memcache (pecl) to compile on his Mac (OS X).
So tonight I ran into an interesting issue this evening in configuring PECL memcache to run on my Macintosh. To give you a bit of background, I use the built-in copy of Apache, but with PHP (current 5.2.8) compiled from source since the version in Leopard is old and I needed some things that it didn't provide.
After finding out the problem (from a log file), he tracked down a similar issue and its solution. Trying it out, he found it worked - adding in an environment variable to tell the compiler with environment to use.
voice your opinion now!
osx compile memcache pecl
Juozas Kaziukenas' Blog: How to use external libraries in PHP?
by Chris Cornutt May 23, 2009 @ 20:26:09
As a part of his work for the WinPHP Challenge Juozas Kaziukenas looks at some of the external library types that you can use with your (Windows) PHP applications.
External libraries are useful for performance demanding tasks where PHP is simply too slow. Also PHP can work as front-end system for various back-end systems (where server doesn't provide any PHP supported communication types). I have written some posts about using .Net libraries in PHP so far, but there are some other choices available too.
He looks at the three types of library choices - PHP extensions, exec call. For what he wants to do, though, the COM objects are the best fit for the job.
voice your opinion now!
external extension pecl com
Hasin Hayder's Blog: Using OAuth PECL Extension to Talk to Twitter
by Chris Cornutt May 04, 2009 @ 10:28:26
In a recent post Hasin Hayder has taken a look at using the OAuth PECL extension (this one I assume) to connect your application's login system with Twitter's authentication backend.
if you are interested in developing twitter applications, you must have read about twitter API and it's authentication protocol. your application can fetch user's private data but it has to authenticate itself as the user for that. so there are two ways to do it: asking user to provide his twitter username and password [...] or let twitter handle the authentication on behalf of you.
This second option is where OAuth comes in. Once you've registered your application on Twitter, you can create a token and send it over to their site for validation. The idea is that, since the user has already authenticated on the Twitter site, they can allow an external application to "share" that login information/process and let the remote application fetch information about the user from he Twitter API.
voice your opinion now!
twitter oauth extension pecl tutorial token authorize
|
Community Events
Don't see your event here? Let us know!
|