10-26-2013 03:14 AM
localhost refers to your BlackBerry device and there is no php web server running there. If you mean to access a web server on (say) your PC then you should specify its IP address instead.
10-26-2013 04:50 AM
The IP address of the machine upon which your file.php file is located.
Or have you packaged the file inside your application bar file?
10-26-2013 05:56 AM
Uh man, If you dont know what is IP address you need to learn lot of stuff, before you start programming. I suggest you first read some networking tutorial, then start to develop applications which consumes web services.
10-26-2013 06:20 AM
Yes, IP address of machine where is web service. You need to have connectivity from your bb10 device to that machine. If that is windows machine, open command prompt and type ipconfig /all, there you will find out what is IP address of that machine. If that is Linux machine, open up terminal and type ifconfig.
10-26-2013 06:34 AM
1. are you trying to access a web service / web page, written in php on a web server that is running on a PC such as your own desktop machine for example?
2. Are you testing with the simulator or a real BlackBerry device?
Whatever your answer to (2), you cannot use "localhost" as the name of the computer (the "host name") in your URL because localhost, when evaluated by a BlackBerry device, simulator or real, means "the Blackberry device" and your web page is not located there. So you need the IP address of the PC that your web page is located on. As the other forum poster says, you can determine this by running either ipconfig (Windows) or ifconfig (Linux).
I hope this clarifies the issue for you.
10-27-2013 09:13 AM
if you want to know you IP on windows you open programs/accesories/command prompt on linux/mac osx you open Terminal on windows: type this command on the console: ipconfig on linux/mac osx type ifconfig it will specify you the machine IP where I suppose your web service is running.