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 have a server at a host, so I can't control the server directly and therefore don't have ability to start Windows cmd or a Linux shell. I want a PHP script on the server to receive data from a incoming connection (client: created with a Python script).
I know about database and so on, but can't find a PHP example, where it's done on a host server with limited control. It seems that all guides are for HTML pages or for use where you have the server in own hands.
If you are trying to receive form data from client then you can use POST or GET method to receive data from client to server.
Related
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 would like to know if it's possible to run a executable file (through any technology; PHP, JS, HTML...) on the web server, and render the image on the client.
I would like to do that to not share the exe file, but just let the client see what how the programm looks like without having him to download it. Also, using that way it won't affect the client PC.
It is possible to run application on server side and display result of application to client [1]. However, if your application uses GUI it might be difficult and required complex solution.
What if you:
Display screenshots of application
Let user book some online meeting where you would present the application through skype with shared desktop
Have public server where application would be installed and user could request username/password to server and try it itself (think about security!)
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 7 years ago.
Improve this question
I'm planning to make a website in PHP. At some point in future I might need to create an Android application for my website. Now I know that Android is Java based, so my question is will I be able to communicate with my application i.e. sending and receiving data from my server on which my PHP website is running and how?
The best way is to generate JSON objects using your php scripts then using JSON parser in your android app to use those objects.
Using this you easily send and receive data without having to change php scripts. You can also follow this link :
http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/
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 7 years ago.
Improve this question
I was thinking is there a method to gain access to a client PC's SQL database? I am creating a web portal for our LAN clients and I will need to manipulate data on the client's database.
No. you cannot do this with PHP. Php runs on the server.
You cannot do this with javascript in the browser as it is not allowed access to the client pc.
You may be able to write a chrome or firefox plugin that will have access to the host pc and then write code to interact with it.
Or just write an application for your clients to install that comunicates with your app on the php 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 8 years ago.
Improve this question
Is there a way in the server-side to execute once an operation instead of execute it every time when I sent a PHP request?
For example, I have an website that makes a lot of requisitions, but its independent from user or anything else, it just depends on the application running in the server with wich I'm willing to manage with my website.
So I want a way to just get the data that I need, processed by a script in the server not by every PHP request, i.e. The server will execute the only once and then I can grab the data with PHP.
As lonut suggested use cronjob (linux) or task manager (windows) to run you PHP task at specific intervals.
You can run standalone php script from the command line by using php path/to/your/script.php
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 8 years ago.
Improve this question
I am doing a project on android application developement i need to know hpw does 3 thish work together what are their task when working togeather in as simple language as possible I want it in words so that even a layman would catch it easily!
Something as simple as that
HTTP-client (browser) <--> HTTP server (apache) <--> PHP interpreter <--> Postgres
Client sends request
Apache resends it to PHP
PHP queries PG, gets data, renders it as HTML (or JSON) and returns it to Apache
while Apache sends the response to client
Client renders nicely looking page