beakerbrowser / beaker

An experimental peer-to-peer Web browser
https://beakerbrowser.com/
MIT License
6.75k stars 545 forks source link

index.php issue #1926

Open leoloveisme opened 3 years ago

leoloveisme commented 3 years ago

Describe the Bug

content of index.php is not shown per default, instead of that I get the listing of the directory's content, which is not ideal.

To Reproduce

https://youtu.be/Wf3mBmgpc1I

Expected Behavior

to show the content of index.php per default

Screenshots

Screenshot 2021-05-14 15:01:43 Screenshot 2021-05-14 15:02:14 Screenshot 2021-05-14 15:06:59 Screenshot 2021-05-14 15:03:30

Environment

Additional Context

content of index.php is not shown per default, instead of that I get the listing of the directory's content, which is not ideal.

See some screenshots below:

Screenshot 2021-05-14 15:01:43 Screenshot 2021-05-14 15:02:14 Screenshot 2021-05-14 15:06:59 Screenshot 2021-05-14 15:03:30

and please also take a look onto 2 minutes something video I uploaded onto YouTube:

If you would make it able to run index.php per default, it would be able to run Wordpress and other php programmed or perl or python programmed projects, you would have many more users, using your browser.

https://youtu.be/Wf3mBmgpc1I

da2x commented 3 years ago

Beaker doesn’t have a PHP, Perl, or Python interpreter and it’s very unlikely it’ll ever get either of these. You can’t run server-side code on the client. It would be a security nightmare to even attempt to safely support these languages. You need to use HTML and JavaScript and do things client-side instead.