You should enable PHP debug options (php.ini) since you have OmGateway.php in the same folder you should have require_once 'OmGateway.php'; in you main PHP file
On Mon, Apr 3, 2017 at 12:17 PM, Daniel Baker <[email protected]> wrote: > Hi, > > I grabbed the files you provide on github for the php.api. I made > adjustments only to the *fileUploadTest.php > <http://www.aseanenglish.info/scripts/fileUploadTest.php>* > > so that my credentials are correct. > > > I'm not sure if I'm doing this correctly but when I load the > fileUploadTest.php like this : > > www.website.com/*scripts/**fileUploadTest.php > <http://www.aseanenglish.info/scripts/fileUploadTest.php>* > > > <http://www.aseanenglish.info/scripts/fileUploadTest.php> > > I get a blank page in firefox and a error 500 in chrome > > > My scripts are organised like this in the /scripts folder on my server: > > Index of /scripts : > [image: [ICO]] Name <http://www.aseanenglish.info/scripts/?C=N;O=D> Last > modified <http://www.aseanenglish.info/scripts/?C=M;O=A> Size > <http://www.aseanenglish.info/scripts/?C=S;O=A> Description > <http://www.aseanenglish.info/scripts/?C=D;O=A> > ------------------------------ > [image: [PARENTDIR]] Parent Directory <http://www.aseanenglish.info/> - > > [image: [ ]] OmGateway.php > <http://www.aseanenglish.info/scripts/OmGateway.php> 2017-04-03 08:36 7.1K > > [image: [ ]] OmRestService.php > <http://www.aseanenglish.info/scripts/OmRestService.php> 2017-04-03 10:43 > 3.5K > [image: [ ]] fileUploadTest.php > <http://www.aseanenglish.info/scripts/fileUploadTest.php> 2017-04-03 11:34 > 770 > ------------------------------ > > > > > I gave the scripts 777 permissions. > > I also changed the line require_once '*./*scripts/OmGateway.php'; so > that it calls OMGateway.php from the current directory not the parent ../ > > > I also edited the fileUploadTest.php > <http://www.aseanenglish.info/scripts/fileUploadTest.php> with my server > details: > > $gw = new OmGateway(array( > 'protocol' => 'http', > 'host' => '192.168.0.103', > 'port' => '5080', > 'context' => 'classroom', > 'user' => 'xxxxxxx', > 'pass' => 'xxxxxxxxxx', > 'module' => 'api_test' > > The fileUploadTest.php > <http://www.aseanenglish.info/scripts/fileUploadTest.php> script points > to /tmp/image.jpg so I uploaded a test file to that directory. > > Am I suppose to load this page in the web browser ? Not sure what I need > to do to test correctly. > > > Thanks, > > Dan > > -- WBR Maxim aka solomax
