jcampbell1 / simple-file-manager

A Simple PHP file manager. The code is a single php file.
MIT License
914 stars 502 forks source link

How view PHP FILE ? #112

Open Pierre89 opened 3 years ago

Pierre89 commented 3 years ago

Hello, how view php files with your file manager ?

ikwyl6 commented 3 years ago

Web servers interpret php files so you could so Something like this by looking at the file type and do something like this:

<?php show_source("test.php"); ?>

<html>
<body>
<?php
"color: #007700">echo "COLOR: #007700">("COLOR: #dd0000">"test.php""COLOR: #007700">);
"COLOR: #0000bb">?>
</body>
</html>

Taken from: https://www.w3schools.com/php/func_misc_show_source.asp