Try the fastest and simplest way to install ONLYOFFICE

NEW API PHP sample Error

Integration questions/issues

NEW API PHP sample Error

Postby johnsujith » Thu Mar 05, 2015 3:08 pm


I am using new PHP API sample ,but its bounce with error ,I have enclosed the screen shot

SS.png (15.34 KiB) Viewed 2187 times
Posts: 1
Joined: Thu Mar 05, 2015 3:01 pm

Re: NEW API PHP sample Error

Postby Dean » Tue Apr 28, 2015 12:37 pm

1. Download the example from:
2. Unpack it on C:\\
3. In IIS turn the site on with specifying the folder with example on C:\\

You can change the port if necessary. Port is 80 by default.
4. Change the C:\OnlineEditorsExamplePHP\config.php file as follows:

1) define('WEB_ROOT_URL', 'http://localhost:8080'); this string

specifies the location for the example to work eith and the port.
2) $GLOBALS['STORAGE_PATH'] = "folder"; this is the location path.

The folder has to be created inside the example folder. Like this:

C:\OnlineEditorsExamplePHP\downloaded ; Files will be saved to this

location only.

3) insert the computer name or the ip-address.
$GLOBALS['DOC_SERV_STORAGE_URL'] = "http://name/FileUploader.ashx";
$GLOBALS['DOC_SERV_CONVERTER_URL'] = "http://name/ConvertService.ashx";



Posts: 700
Joined: Tue Sep 30, 2014 11:04 am

Return to API

Who is online

Users browsing this forum: No registered users and 3 guests