PHP Errors

4 views
Skip to first unread message

Dan

unread,
Feb 10, 2011, 9:58:48 AM2/10/11
to Location Labs Developer Community
I have installed the veriplace PHP SDK on our server running PHP
5.2.16
When I clink on the WEB API example I am getting the following error:

Veriplace_TransportException: Couldn't resolve host 'veriplace.com '

Is there something I must change/add in my php.ini file or is this a
possible hosting server issue?
I have tried this on different hosting servers with the same result.

Thanks for your help

Dan

Eli Bishop

unread,
Feb 10, 2011, 2:09:04 PM2/10/11
to veriplace-deve...@googlegroups.com
hi, Dan -

If the error message is exactly as you wrote it here, it looks like
there's an unwanted space in the server URI - "veriplace.com " instead
of "veriplace.com". Is it possible that when you edited the file
"config.php" to add your application's credentials, you accidentally
added a space at the end of the "veriplace.server.uri" line? (The SDK
really ought to know how to strip spaces from the ends of lines in the
config file, but I just checked the code and it doesn't.)

best,
Eli

--
Eli Bishop
Wavemarket, Inc. / Location Labs
e...@location-labs.com

Dan

unread,
Feb 11, 2011, 10:01:29 AM2/11/11
to Location Labs Developer Community
Eli

Thanks for your quick response.
Yes, you were correct about the unwanted space...
I used Windows notepad to edit the config.php file and when viewing
the file with notepad it does not indicate any unwanted spaces and
appears to be correct. Notepad must be putting the unwanted space/LF
in the file when saving.
Editing with a linux text editor fixed my problem.


Thanks again

Dan
Reply all
Reply to author
Forward
0 new messages