beaker icon indicating copy to clipboard operation
beaker copied to clipboard

index.php issue

Open leoloveisme opened this issue 3 years ago • 1 comments

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

  • OS: Ubuntu Linux
  • Beaker Version: Version: 0.8.10 Electron: 8.1.1 - Chromium: 80.0.3987.141 - Node: 12.13.0

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

leoloveisme avatar May 14 '21 14:05 leoloveisme

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.

da2x avatar Jul 27 '21 15:07 da2x