A
A
Andrey2018-03-15 13:45:26
PHP
Andrey, 2018-03-15 13:45:26

How to run php script in browser?

The script is in the root of the site.
I'm running in a browser. Gives only the code of the script itself as text, while not executing.
Apparently it is executed in the console, but it just gives me an html page as text (in general, this page should also open in the browser). But again, the links there are incorrectly formed.
In general, this is the bigdump.php script https://www.ozerov.de/bigdump/
I think you may need to configure apache itself to display scripts, but something also doesn’t work. Suggest a solution.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis, 2018-03-15
@sidni

Well, that's right, you need a web server with an installed PHP module like the Apache + PHP bundle and then the script will work, without this you will only see the text of the php file

E
E, 2018-03-15
@aylo

php scripts are executed on the server, you will not see the result in any browser consoles.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question