News Feed
Sections




News Archive
feed this:

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

Mike Purcell's Blog:
Use PHPUnit without PEAR
January 26, 2012 @ 09:48:00

Mike Purcell has a new post to his blog showing a method he's followed to be able to use the popular PHPUnit unit testing software without having to go through the PEAR installer to get there.

PHPUnit is a great tool to protect us developers from introducing new defects when adding new features or re-factoring code. However there is one HUGE downside to PHPUnit; it must be installed using PEAR. Personally, I don't like 'auto-installers', I'd prefer to know what exactly is happening behind the scenes with regards to which libraries are required and how they are being called. [...] After breaking down the PHPUnit source code, I realized it could be installed without going through PEAR, and without too much headache.

He walks you through the directories you'll need to set up (test/vendor), the commands you'll need to get the latest version and unpack it, changes to set up some symlinks and updating the PHPUnit source to modify the autoloader, bootstrap and phpunit executable.

0 comments voice your opinion now!
pear phpunit without installer autoinstall package management


Web Builder Zone:
Can you use PHP without frameworks nowadays?
February 18, 2011 @ 09:10:54

On the Web Builder Zone today Giorgio Sironi has posed a question for all PHP developers out there - is it possible to (effectively) use PHP without a framework these days?

In the same days [of the PHP Barcelona Conference], I attended Matteo Vaccari's talk at Webtech 2010. It was in Italian, but the translation would sound like Framework-free web programming. The context was the Java platform, where frameworks are even more invasive than in PHP. In that talk, I learned some interesting points which are often overlooked while considering frameworks adoption, delighted by the hope of writing less code.

Three of the points mentioned were the learning curve (and eventual lock-in) of using a framework, upgrading/version management and the errors/bugs/missing features that come with using another group's code. Giorgio talks about using external libraries from frameworks (like the Zend Framework) by including them and that frameworks are generally "catch all" tools that you only may want these certain parts of to be effective.

0 comments voice your opinion now!
without framework opinion library


David Coallier's Blog:
Zend_Db Without PDO part #3 (SVN Repository)?
January 19, 2007 @ 09:44:00

David Coallier looks yet again at his method for using the Zend_Db module of the Zend Framework without having to use PDO to connect to your database. Due to the large amount of interest in the development, he's created a subversion repository to give developers the latest version:

Well that's right, over the past couples weeks I have received emails, have seen comments and bug reports on my blog about the package I started couple weeks ago that let anyone use the Zend Framework without having to use the PDO extension. [...] I have decided to setup a new svn repository related to it.

You can access the main repository for the latest downloads here: http://dev.agoraproduction.com/zend/svn.

0 comments voice your opinion now!
zendframework zenddb pdo without subversion repository zendframework zenddb pdo without subversion repository


Wez Furlong's Blog:
HTTP POST from PHP, without cURL
November 15, 2006 @ 10:09:00

In an effort to get streams more out in the, er, mainstream, Wez Furlong has posted an example of some code for a common operation many use cURL for - posting to a remote script - but with streams.

Every time I search for the code snippet that allows you to do an HTTP POST request, I don't find it in the manual and resort to reading the source. So, here's an example of how to send a POST request with straight up PHP, no cURL.

The example uses stream_context_create, fopen, stream_get_contents and an Exception to send off the message from an inputted array to the remote server. Smaller things, like the Content-length header on the request, are automatically handled by the wrapper functionality. You can check out this page for more information on the wrapper functionality.

2 comments voice your opinion now!
http post without curl stream context contents exception http post without curl stream context contents exception


Atlanta PHP User Group:
A Group without a Home
April 11, 2006 @ 07:15:57

It's never fun to have unexpected (bad) things happen, and the Atlanta PHP Users Group had just that last night when they met for their April meeting. The location they've been meeting at was closed up and the company they had previously collaborated with for meeting space had vacated. They are a group without a home.

Ben Ramsey has posted this new message on the APUG's message board to try to encourage members to share space they might know of or ask around about whatever space they could find. They pushed back the topic of the April meeting until next month, when they'll hopefully have a new spot to congregate.

If you're out there in the Atlanta area and have a meeting area you could spare for one night a month for this group, you can reply to this post to let them know.

0 comments voice your opinion now!
group without home atlanta user group group without home atlanta user group


Sephiroth.it:
Backup your batabases w/o phpmyadmin
April 07, 2006 @ 07:28:40

As most people, especially those on a shared hosting environment, know, phpMyAdmin can be indespensible for managing your database setup. There are times, however, when you need to work with your databases without it - epecifically in doing a backup. If all you're left with is the command line and you need to make a backup quick, Sephiroth.it has a quick tip to help out.

I often read threads about export/import data from MySQL and it's always mentioned phpmyadmin as the only way to do that (with PHP indeed).

But that's not true, and it's indeed the slower way to do that, expecially when importing large database files (because phpmyadmin has problems with large db)...

He gives an example of the mysqldump functionality, complete with parameters for passing in things like a username and password. The reverse is also shown - reimporting the database data back into the system.

0 comments voice your opinion now!
database backup without phpmyadmin mysqldump export import database backup without phpmyadmin mysqldump export import


Justin Silverton's Blog:
Excel and php without COM
March 28, 2006 @ 07:01:46

At times, working within the confines of a Microsoft world can be frustrating, especially when it comes to making more advanced versions of files (i.e. a "real" Excel file versus a CSV). In this example, Justin Silverton gives us an example of how to do just that - use PEAR to create an Excel 5 file.

He uses the Spreadsheet_Excel_Writer package to create the file without the need for getting COM in the mix. The package makes it simple to take in a dataset and write it out to a workbook - complete with column headers.

He shows two ways to save the file as well - creating a local file (on the web server) and pushing it out to the browser.

It's a simple introduction, but it's a starting place - especially for those with a project plan that requires it.

0 comments voice your opinion now!
excel com without spreadsheet_Excel_writer PEAR excel com without spreadsheet_Excel_writer PEAR


PHPit.net:
Ajax & PHP without using the XmlHttpRequest Object
November 21, 2005 @ 06:40:41

From our sister site, AjaxDeveloper.org today, there's this new post with an article from PHPit.net about using Ajax and PHP without the use of that pesky XMLHttpRequest object.

Ajax is one of the biggest 'discoveries' in the past year, and it has become a real buzzword, just like Web 2.0. Admittedly, Ajax can be used for a lot of things, and it really does speed up web applications.

But there is one problem with most of the current implementations of Ajax: it has one dependency, and that is the XmlHttpRequest object. [...] In this tutorial, I will show you how to use Ajax without even having to use the XmlHttpRequest object.

He starts off with a pretty basic introduction and shows you how to get the data into the current page (through the use of some PHP outputting Javascript). Then, with the help of pseudo-ajax functionality, it can poll this data to present dynamic information to the user of the site...

0 comments voice your opinion now!
ajax without xmlhttprequest ajax without xmlhttprequest



Community Events





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


language artisanfiles list release library tool interview introduction security voicesoftheelephpant opinion podcast version community laravel conference composer framework series symfony

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework