Reputation: 95
I have a remote server on 'somedomain.cloudapp.azure.com
' and I have a php file named on that server.
I would like to preview the 'index.php' file on browser to see the output. I used to open the files and edited it through terminal, but now I want to see the output of the php file.
I know from localhost I just put on the browser URL localhost
and it preview the index.php, how to do that for a file that is on remote server?
Upvotes: -1
Views: 1139
Reputation: 59
PHP is a hypertext preprocessor .
The PHP binary executable resides on the "server" E.g. to function with other files served by the Apache HTTP server, also running on the server, or "server-side" (hence the term, "Server Side Scripting Language").
For your browser to render a PHP file as-- it is presumed-- the "pre-processed" HTML; the PHP code as processed by the PHP binary for rendering as HTML (on the server), it is necessary that the "stack" (HTTP server software, etc.) running on your server does in fact have such a PHP binary configured to communicate with requests from Apache.
Upvotes: -1
Reputation: 112
You need multiple thing to see your result on the web page running on the own server ; like that web server such as engine nginx or apache , php-cli , if you using database you need phpMySql and there dependencies.
Upvotes: -1