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

PHPMaster.com:
Using SSH and SFTP with PHP
January 10, 2013 @ 11:31:52

On PHPMaster.com today there's a quick tutorial showing you how to use SSH and SFTP from inside your PHP applications (requiring the ssh2 package).

In today's world with so many third-party integrations and content-sharing, it's important to understand and make use of protocols like SCP and SFTP. PHP's SSH2 extension, a wrapper for libssh2 which implements the SSH2 protocol, provides several functions you can use to securely transfer files.

Sample code is included showing how to make a SSH request to a remote server, define the key files to use and execute a remote command (like scp). They also mention the use of wrapper functions like mkdir that also work with SSH/SFTP connections. The post finishes up with an example class or two you can use to wrap your connection handling and make it a bit more OOP-friendly.

0 comments voice your opinion now!
ssh sftp extension pecl tutorial oop


OpenShift Blog:
Integrate PHPStorm and SFTP into OpenShift
November 09, 2012 @ 12:47:45

On the RedHat OpenShift blog (platform-as-a-service PHP hosting) they have a new post showing you how to integrate PHPStorm into OpenShift and make deployment simpler.

"PhpStorm is a lightweight and smart PHP IDE focused on developer productivity that deeply understands your code, provides smart code completion, quick navigation and on-the-fly error checking. It is always ready to help you shape your code, run unit-tests or provide visual debugging." In this tutorial I will show you how to use build in functionality in PhpStorm to deploy PHP application to OpenShift.

Screenshots are included in the post to guide you through the process - creating a new project, setting up the SFTP configuration and where to go to upload the changes to your system to OpenShift.

0 comments voice your opinion now!
phpsotrm openshift paas tutorial sftp deploy


Kevin Schroeder's Blog:
Setting up a connection to the Zend Developer Cloud on Linux
December 02, 2011 @ 10:04:10

Kevin Schroeder has a method in one of his latest posts for hooking your linux-based system into Zend's phpcloud platform, complete with an automatic upload (so you're not constantly sftp-ing).

Connecting with the Zend DevCloud in Linux is actually quite easy if you know how to use SFTP. [...] But, as I said in a previous post, I hate having to do command line stuff for each and every file or commit. I like things to work seamlessly. So what I did was write a PHP script that connects to the DevCloud (or any SSH-based endpoint for that matter) and then monitors all of the files and directories for changes, such as a creation, modification or deletion event.

His script (available on github) uses the PECL inotify package to work, but once its set up, you can have the PHP process running the script in the background, pointed at your web root, and have it upload automatically.

0 comments voice your opinion now!
inotify phpcloud zend cloud sftp automatic push


Kevin Schroeder's Blog:
Connecting to the Zend Developer Cloud using NetBeans for PHP
December 01, 2011 @ 14:08:54

Kevin Schroeder has a new post for the Netbeans users out there wanting to work with the Zend Developer Cloud directly without having to mess around with other external software.

Getting NetBeans connected to the Zend Developer Cloud is actually pretty simple… if you have NetBeans 7.1 which is currently in RC. NetBeans 7.0 has a bug that won't allow you to connect to Git over HTTPS. NetBeans 7.1 fixes that issue. You will also need to make sure that you have the Git module installed.

His post includes the step by step process (including some screenshots to getting the automated deployment set up and working in this popular IDE. The key is setting up the SFTP connection to point to the right location on the cloud server (the path isn't very intuitive, he recommends finding it with another SFTP program for the initial setup).

0 comments voice your opinion now!
zenddevelopercloud cloud zend netbeans git sftp tutorial


DevArticles:
Deploying your Site with phpEclipse
March 10, 2006 @ 07:13:10

With an excerpt from the Packt Publishing book "PHPEclipse: A User Guide" (Shu-Wai Chow), DevArticles has posted this first of a two part series looking at the use of phpEclipse to help with the deployment of your site.

Eclipse simplifies the process of deploying your site to a web server. You can even use Ant, traditionally thought of as a Java tool, to help you in the deployment.

Once again, Eclipse simplifies our work by including several tools that aid us in this process.

The key to deployment in Eclipse is the export function. Eclipse gives us many options in exporting our site. First, we will look at FTP, an old and common method of moving files.

They cover how to set up an FTP site inside the editor, making it a simple process to upload any chnages you've made instantly. They also discuss other methods like SFTP, WebDAV, and Ant support the client can adapt itself to. There are screenshots along the way to help you through each step, including some from other operating systems where the setup might be a bit different.

0 comments voice your opinion now!
phpeclipse deploy site ftp sftp webdav ant phpeclipse deploy site ftp sftp webdav ant



Community Events





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


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

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