How to view/test PHP script in File Manager?

Hey,

I just want to know how i can view/test my php code/script in the file manager panel once it’s uploaded. I can only edit it.

I tried to use phpfiddle, but it gives me this error:
E_WARNING : type 2 – mysqli_connect(): (HY000/2003): Can’t connect to MySQL server on ‘myusername’ (113) – at line 3
E_WARNING : type 2 – mysqli_prepare() expects parameter 1 to be mysqli, boolean given – at line 8
E_WARNING : type 2 – mysqli_stmt_execute() expects parameter 1 to be mysqli_stmt, null given – at line 9
E_WARNING : type 2 – mysqli_error() expects parameter 1 to be mysqli, boolean given – at line 9

Well, the only way you can test things using the file manager is to make a script accessible from the web and then access the corresponding URL. So if you have a script in the folder htdocs/some/file.php, you can access it by going to yoursite.rf.gd/some/file.php.

PHPFiddle would do fine too, however I don’t think they have a database you can test with.