Skip to content

Submit a Form to Custom Route in osclass

I am making an osclass plugin. I have added a page for my plugin in the admin section of the site. I have also created a route for my plugin. What I would like to do is create a form on my plugin’s page in the admin. The action attribute of this form will be the base url of my

Connecting to PGSQL over SSL via Red Bean PHP

This a pdo method, i need configure red bean connection for ssl pgsql connection Answer You definitely need to write the full path to certificates and keys, otherwise nothing will work. sslmode=verify-ca; better use sslmode=verify-full

How to play video both locally and from url using php

I have reviewed several similar codes, I have tried them all, but they all work when the multimedia file is hosted locally, when the multimedia file is in a url it does not work, it does not play the video. They could suggest what changes should be used for this script to work on both url and local media file…

Xdebug not available in Composer plugin

I’m trying to debug a Composer plugin with Xdebug. I have my environment set up (export XDEBUG_SESSION=1) and the Xdebug loaded in php.d. The script breaks at first line in Composer so everything …

PHPUnit Larvel execute ONCE before testing

I use Laravel 8 with PHPUnit 9.3.3 Now I has written in CreatesApp.php: And this code executes every test and I want this code executed ONLY before testing: Answer If you want to execute some commands only once at startup – you can bootstrap tests with your own boostraper: docs But, your way is not corr…