News Feed
Sections




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

Gonzalo Ayuso:
Managing Windows services with Symfony/Process and PHP
November 01, 2012 @ 10:49:09

In his recent post Gonzalo Ayuso shows how to use Symfony to work with Windows services on the server.

Sometimes I need to stop/start remote Windows services with PHP. It's quite easy to do it with net commnand. This command is a tool for administration of Samba and remote CIFS servers. [...] Today we are going to create a PHP wrapper for [net rpc service].

He uses Behat to create a feature (test) file, the code behind the features and a service class that handles the actual work of interacting with the service (with methods to do things like stop, start and list running services). Examples of its use are also included.

0 comments voice your opinion now!
windows services behat feature test class tutorial symfony


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Interview w/Francois Zaninotto & Fabien Potencier (Definitive Guide to symfony)

Alexander Netkachev's Blog: A little bit more about Zend_Controller plugins

NETTUTS.com: Create a Twitter-Like "Load More" Widget

PHPBuilder.com: Using the PEAR Pager Package to Paginate MySQL Results

PHPBuilder.com: PHP Dependency Injection Creates More Maintainable Code


Community Events

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


introduction framework opinion series list laravel php7 language application example yii2 composer project symfony testing part2 podcast interview community api

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