Skip to content

Unable to redirect output from bash

I’m trying to run a command through PHP for a project and have the output redirected to a file. On PHP, I’m creating a string and running the shell_exec() function with the string as a parameter: To be able to run things as root through PHP and shell_exec, I use the following: An example of this i…

Shopware : get the document number by its ID

I need to get the documentNumber in the documentRepository by its ID. I am doing a “simple” DAL request to do this but for some reason dumping the output gives empty fields. Here is my subscriber containing the DAL request : Here is my services.xml : I also tried to directly dump the result of the…

how to test the DLX on RabbitMQ

I am trying to set up DLX, ideally 1 for each queue. I want to migrate 5 jobs but starting with one. I ran this line which will apply to all queues but I am not sure how to select a specific queue rabbitmqctl set_policy DLX “.*” ‘{“dead-letter-exchange”:”all-dlx”}&#82…

How to use condition in xml fieldset

I have two eddition in my realise joomla web app. “Common” and “Special” edition. I want to limit “Common” edition with exclude “icons” dir from “images”. expected: I tried the following code but it was not correct (Apparently, if segment cannot be u…

Validate if the string contains year, month, day?

I am working on a search field. User can write anything on search bar. If I search by typing only October, I need only October. If search is October 2020, it should return month & year. How can I validate if the string used is only month or year or day ? Answer This checking is working but not perfect

test windows rdp credentials use and password

I want to make an checker to check RDP IP with user and password I’ve tried to install guacamole server I install it on ubuntu and it works good and connects well but I can’t make any check using php or any coding language with it because its system is so complicated so if any one have any idea ab…

How to fetch indices and names from the MySQL database?

I’m working on a website and it has a category dropdown. So my database has tabled called “category”, and it has four items in there: And I’m trying to get all this info into an array, so I can use it in my HTML. But I’m getting a conversion error when I try this: The error I&#82…