There was a request for instructions on how to run Zensync on Windows, specifically XP. Someone has previously sent me info that it worked, and since I never tried it, I just assumed it did. And it does – it’s just not obvious if you’re not a PHP coder like I am. So, since my daughter is sick and I’m at home on this nice Sunday, I figured I’d give it a shot.
Here goes:
First, get the PHP executable from here: http://us2.php.net/get/php-5.2.5-win32-installer.msi/from/a/mirror http://windows.php.net/download/ There might not be an installer for the latest version (5.4.0 at the time of updating this), so download the version you are comfortable with. This tutorial uses the latest available installer (5.3.10).
Install as normal. Since you probably aren’t running a webserver for this, select, “Do not set up a web server”. Next, hit the “+” on PHP->Extensions and scroll down to SOAP, and select, “Will be installed on local hard drive”. The installer should proceed like any other after this. SOAP should be installed by default in my experience.
On my Windows 7 Machine, you’ll need to set the PATH variable to point to PHP in order for it to work from the command-line. I won’t teach you how to do that here, but I found this video helpful: http://www.youtube.com/watch?v=cmyPPDIi8Ms
Next, unpack the Zensync.tgz file, I use Winrar from here: http://www.rarlab.com/, but Winzip would probably work, too.
Now, set up a photo directory in a manner that you are going to use Zensync. This is totally up to your taste. I just make a directory in the same location that Zensync.php is, and copy all my photos there. This really makes it easier on a Windows machine, since you don’t have to account for drive letters (C:, D:, etc..) when you configure Zensync.
Copy, copy, copy, organize, rename, move, shuffle, etc…
Now you need to edit things. You need to know your Zenfolio username (NOT e-mail!), and password. You also need to know the location of your photos. Right-click on “zensync.php” and select Open With…, and Choose Program. Select WordPad, otherwise the formatting will look terrible. Edit these 3 lines to reflect your account. The local directory name could be “photos”, if you want to make it really easy.
$userlogin = “username”;
$userpass = “password”;
$path = “local directory name”;
Finally, if you want the warnings to not show, go to Start->Programs->Php5->php.ini. Find this line: “error_reporting = E_ALL” and change it to “error_reporting = E_ALL & ~E_NOTICE | E_STRICT”. PHP is very strict on its error reporting, and this just relaxes it a bit.
Now, go to Start->Run, and type “cmd”. A terminal should open up. From here, navigate to your Zensync directory (“e:\”, and “cd zensync” if it happens to be at “e:\zensync”). Now, just type “php zensync.php” and it should run!
You could make it a one-click deal, too. Just right-click on Zensync.php, and “Open With…” and “Choose Program…”. Browse to “C:\program files\Php” and select “php.exe”. Check the “always use this program…” checkbox if you want to make this permanent.
That should be it – I created a test Zenfolio account just now, and it uploaded all my photos.
Edit: I just tried this under Windows 7 64-bit using the above instructions and it works great still.
-Dan