Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I would like to know how to get the location of a computer that goes on a website like Google maps and it asks if you if it can get your location but in PHP and then prints it on a webpage.
You could attempt find the location by running a php executed shell command of tracerout on the $_SERVER['REMOTE_ADDR'] but there are many factors which make that method very unreliable.
If you need the location of the computer executing your application. I recommend using HTML5 geolocation http://www.w3schools.com/html/html5_geolocation.asp
and passing the data back to the server via AJAX or some other posting method like a form.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I am developing a ussd app in php and I want to know how to listen to the callback url and also collect the data sent from the gateway to my app.
There is nothing special about a "callback URL". It is like any other URL.
If you want to run PHP when it is hit, then put a PHP script at it.
e.g. if the callback URL is http://example.com/example.php then create example.php and put it in the root directory of the example.com HTTP server.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I need to remove a file from internal/external storage in smartphone that have my app installed, using PHP. I can't update my app if I don't remove this file.
How can I do it?
Thanks
Directly you can't do that but there should be workaround using some other methods like:
Push Notifications
Schedulers that checks URL endpoint with command logic
as web and PHP don't have any kind of accessing mobile device directly
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am trying to use the plesk api in order to use some of its data to a web application and more specifically the data usage and the permitted storage.
I found this article but I wasn't able to find some php code on how I ll retrieve and display the data. Any guidance would be highly appreciated.
Have you checked https://docs.plesk.com/en-US/17.0/api-rpc/creating-client-software/sending-request-packets.28727/?
It shows how to create requests and next page shows response structure.
PHP examples are at https://github.com/plesk/api-examples/tree/master/php.
To display data you will have to parse the xml result first. You can use SimpleXML to do this.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I've succeed to install Zend Developer Tools and get it work , but i have an issue is the queries called using Ajax doesn't show in the bar.is that a way to fix that ?
You can use Zend Studio. This is a great tool to develop in using ZF. Here is a link Alternatively you can check browser console window to check how long a request takes but this will not show actual db interaction time. For that you have to calculate time on your own and return with the request. And then you can console.log that response.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Am using elastix server for voice call functionality in mobile application, in this I can able to store value(extension data) in asterisk database and also able to view data's in elastix page through the PHP code. When am calling via extension number am receiving "service not available".
How can I solve this issue or else can you tell me how to store the extension data in elastix server using API?