PHP - Error opening and save word (ppt files) using COM OLE

Avg Bid (USD)
Project Budget (USD)
$30 - $250

Project Description:
I have some code, on my php WAMP server that is to open word/ppt files on the local drive. I am unable to use com to open any file, and I would like to get this working.

This would require you to use the php server (on Windows Machine with Word Installed) we have set up, and get the PHP server to open and save a word/ppt document.

I am not sure where the problem is, but if this debug job should be easy if you have experience. Looking for someone to solve the problem, and I'll pay if you can get it working. Will pay lowest bid/first person to solve the problem.

Additional Project Description:
01/09/2013 at 8:13 CST
Here is the example code that doesn't run.


$currDir = getcwd();

$input = "{$currDir}\\files\\eBook.doc";
$output = "Book1";

$handle = fopen("$input", "r");
$theData = fread($handle, filesize("{$currDir}\\files\\eBook.doc"));

echo "$input - ";
if (file_exists($input)) {
echo " file exists<br>";
} else {
echo " file DOES NOT exist<br>";
$word = new COM("word.application") or die(error::asString("couldnt create an instance of word", 20100408.01812, true));
echo "Loaded Word, version {$word->Version}<br>";
//bring word to the front
$word->Visible = true;
$word->Selection->TypeText("This is a test...");

$range = $word->ActiveDocument->Content;
echo "Data: $range | ".dirname(__FILE__)."\\test.doc";

// format: 0 - same?, 1 - doc?, 2 - text, 4 - text other encoding, 5 - ?, 6 - rtf , 8 - html
$word->ActiveDocument->SaveAs(dirname(__FILE__)."\\test.doc", 0);
catch (com_exception $e) {
echo "Exception with COM: ". $e->__toString();

Skills required:
.NET, PHP, Powerpoint, Word
About the employer:
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.

Hire rajeshsonisl
$ 200
in 1 days
$ 100
in 1 days
$ 30
in 30 days
$ 190
in 7 days
$ 80
in 1 days
Hire codeindiadigital
$ 30
in 1 days
Hire trunix
$ 50
in 1 days