News Feed
Jobs Feed
Sections



Recent Jobs

News Archive
feed this:

Sharon Levy's Blog:
PHP Version
January 05, 2012 @ 13:20:40

Sharon Levy has a new post to her blog showing a trick she's come up with to show the PHP version information (usually found in the phpinfo) even when it's disabled.

Sometimes the most crucial, basic piece of information can seem so hard to find. For example, suppose you wanted to find out what version of PHP your remote webhost provides to shared hosting users? What would you do? [...] For development purposes it can be helpful having phpinfo() available, but on a live shared host, you may discover as I did recently that it is no longer available; your host may have disabled it.

She includes three other ways you can use to get the version of PHP you're working with:

  • If you have command line access, running "php -v"
  • Using the phpversion function (or PHP_VERSION constant)
  • Appending a certain value to the URL (only works in some cases)
0 comments voice your opinion now!
find version language method phpinfo phpversion url



PHPClasses.org:
Talented Web Developers Are Easy to Hire, Employers Are Just Not Looking Right
November 30, 2011 @ 09:57:05

A new post on the PHPClasses blog today suggests that good, talented web developers are actually pretty easy to find, you just have to look in the right places.

Once in a while, we hear company managers and recruiters complaining about how hard is to find talented Web developers that are willing work for them. The problem is that they are not looking right. Not only there are plenty of talented Web developers out there, they are easy to find, and many of them are available for hire.

The key point in his "easy to find developers" argument is simple - be open to telecommuting. Too many companies shun it because of the lack of control it brings to a group, but it also shuts down so many possibilities. He offers a few of his own reasons for the hesitation: the need to see the employee frequently, security concerns and trust issues. He also includes a few of the success stories of PHP community members who telecommute including Eli White, Ernani Joppert and Arturs Sosins.

0 comments voice your opinion now!
find developer company telecommute opinion


PHPBuilder.com:
PHP Simple HTML DOM Parser Editing HTML Elements in PHP
September 08, 2011 @ 10:06:07

On PHPBuilder.com today there's a new tutorial from Vojislav Janjic about using a simple DOM parser in PHP to edit the markup even if it's not correctly W3C-formatted - the Simple HTML DOM Parser

Simple HTML DOM parser is a PHP 5+ class which helps you manipulate HTML elements. The class is not limited to valid HTML; it can also work with HTML code that did not pass W3C validation. Document objects can be found using selectors, similar to those in jQuery. You can find elements by ids, classes, tags, and much more. DOM elements can also be added, deleted or altered.

They help you get started using the parser, passing in the HTML content to be handled (either directly via a string or loading a file) and locating elements in the document either by ID, class or tag. Selectors similar to those in CSS are available. Finally, they show how to find an object and update its contents, either by adding more HTML inside or by appending a new object after it.

0 comments voice your opinion now!
simple html dom parse tutorial selector find replace edit


Josh Adell's Blog:
Path finding with Neo4j
June 28, 2011 @ 12:38:01

In a follow up to his previous post on using Neo4j with PHP, Josh Adell looks in a bit more detail about how to find paths in the data via a REST interface to the database.

The thing that makes graphing databases useful is the ability to find relationship paths from one node to another. There are many algorithms for finding paths efficiently, depending on the use case.

He includes some code showing the REST request (made via this client) to fetch these street-based relationships. He then creates a little sample script that provides driving directions from one intersection to another with a "findPathsTo" call. He modifies it a bit later on to use the Dijkstra algorithm.

0 comments voice your opinion now!
path find neo4j graph database tutorial rest client


Cal Evans' Blog:
How do I find good PHP developers?
September 14, 2010 @ 12:22:14

If you or your company is looking to hire on PHP developers but are having trouble finding good, qualified people, you should check out some of the advice that Cal Evans has posted to his blog to help you out.

Twice this week I got asked a similar question, "How do I find good PHP developers to hire?" The first one was a recruiter who had originally tried to hire me because she "read my resume". [...] The second one, however, was a just someone trying to find PHP developers for his team. Since he wrote me a nice email asking advice, I decided to reply in kind. Three pages and one thousand words later, he had my answer.

His answer included seven different points companies/recruiters could possibly follow to help them get the right people on board:

  • posting jobs on phpdeveloper.org (yes, shameless self-promotion)
  • PHP User Groups
  • Getting involved in the community
  • Considering telecommuters
  • Attending conferences
  • Getting your developers to write about your company/work environment
  • Do things that make your developers want to sing your praises
0 comments voice your opinion now!
find good developers recommendation opinion


Fabien Potencier's Blog:
Find your Files
April 22, 2010 @ 14:45:09

Fabien Potencier has a new post today about an update he's made to an aging bit of code for the Symfony framework to find files on the local filesystem - sfFinder.

I used the opendir, readdir, and closedir native PHP functions, and it did the job quite well. The PHP class was named sfFinder, and it can still be found in all symfony versions. Even if the class is bundled with symfony, I know that a few people use it for all kind of stuff, not necessarily related to symfony. But the code starts to show its age; first because I learned a lot since then about PHP, and also because there is a better way now. Enter iterators!

He shows an example of how to use Iterators to search through directories recursively (RecursiveDirectoryIterator) and locate a certain filename. He also looks at making it more OOP and including filtering to remove files from the search. He's packaged up some of this logic into a new Symfony component - the Finder component - that can be used to locate files in a path, be restricted to a depth for the search, match regular expressions file names, filter by file size and much more.

If you'd like to dig into the code, check out this page on github for this new component (PHP 5.3 only).

1 comment voice your opinion now!
find file symfony component finder iterator


Alex Netkachov's Blog:
CMS extensions where to find, how to choose?
February 26, 2010 @ 11:47:15

Alex Netkachov has a new post for those using one of the popular content management systems out there and who might be looking for some resources to find some good extensions for them.

No matter how long you keep a web site, if you update it frequently, holding a community, or taking care of it in any other way, at any moment idea of changing or improve its functionality may come to your mind. If you are not a software developer then you have two options: find the developer that will do it for you or try to find extension for the CMS of your site that changes it in the way you want.

He offers a few tips on finding the right extension for your site and needs like looking out for extensions that aren't really extensions and checking the release date to make sure it's current. He also includes a few links to some of the larger CMS extension sites for Drupal, WordPress, Blogger, Joomla and DotNetNuke.

0 comments voice your opinion now!
cms extension find tips


Sameer Borate's Blog:
Search & replace in files using php
May 12, 2009 @ 09:30:47

On his blog today Sameer Borate has posted a quick tutorial on how to use a PEAR package to do search and replace on your files from inside of PHP.

Searching and replacing content in files is a common task all of us do regularly. [...] Search/replace is easier from a shell prompt or an editor, but what if you have to do the same programatically in php. File_SearchReplace is a pear package that helps you search/replace in files through a nice object oriented interface.

Installation is simple (via the "pear" command line tool) and using it is just as easy. He gives a few examples of how it can be used - everything from a simple find and replace out to a more complicated regular expression search to be replaced with a string.

0 comments voice your opinion now!
search find replace pear package filesearchreplace tutorial regularexpression


PHP in Action:
Get links with XPath
October 07, 2008 @ 08:43:33

In response to this tutorial over on the PHPro.org website a new post has been made to the PHP in Action blog with an "even cooler" way to do the same sort of DOM fetching - XPath.

I'm a little bit surprised at the claim [the tutorial makes] that it's the "correct" (only) way, since there's at least one more that I find even cooler: XPath. Admittedly, it's slower, yet it's a more powerful language.

A quick example is included, building up from a simple search for anchor tags up to a custom query looking for just the anchor tags with a class of "bookmark".

0 comments voice your opinion now!
xpath tutorial dom link find search anchor attribute


PHPPro.org:
SQL Intro, Reciprocal Links & Finding Links with DOM
October 06, 2008 @ 12:09:15

Kevin Waterson has added three new tutorials to his PHPPro.org website recently:

  • Introduction To SQL - The language used in relational databases is SQL. Regardless of the database used, a standard language is used to communicate with them all. This tutorial shows some basic concepts to using SQL.
  • Reciprocal Links - Automating reciprocal links at first glance looks a daunting task. This helper class takes away much of the pain of what can be a mindlessly tedious process and simplifies it into a few easy to use class methods
  • Get Links With DOM - Perhaps the biggest mistake people make when trying to get URLs or link text from a web page is trying to do it using regular expressions. The job can be done with regular expressions, however, there is a high overhead in having preg loop over the entire document many times. The correct way, and the faster, and infinitely cooler ways is to use DOM.

You can find the links to these and many other great tutorials over on the PHPPro.org website's tutorials section.

0 comments voice your opinion now!
tutorial sql intro reciprocal link dom find



Community Events





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


conference custom application language opinion api test component phpunit podcast community development database introduction unittest release series interview symfony2 framework

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