Running on XP
March 2nd, 2008There 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
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.
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.
-Dan
