Skip to content

Tag: php

WooCommerce 3.x – Hide category of product

I would like to know if anyone has a clue on how to hide a specific product category all around my website. Means on the “shop”, “related product” and the “search” of my WordPress WooCommerce website. For the “shop” pages I have done (and it’s working) the…

laravel 5.4 custom command not working

This is the first time i’m working in Laravel. I’m developing a custom command which will read a file and insert rows in database. I’m getting errors. Below is my code any help will be appreciated. Command File. Model File Kernel.Php ERRORs: D:xampphtdocslara12>php artisan ship:start PHP …

Symfony 1.4 connect to mysql via SSL

I need to change an old Symfony 1.4 application so that it’s able to connect to mysql via ssl-connection. I found a lot about this for Symfony >= 2. But unfortunately not for this dusty one. For validation purposes I already made it work by editing ./apps/frontend/lib/vendor/symfony/lib/plugins/sfDoc…

Generating unique combinations in PHP

I have a requirement to generate unique combinations from the given data set (n numbers) with each combination contains r values. Basically looking to implement C(n,r)=n!(r!(n−r)!) formula in PHP. Input data set {A,B,C,D} and need an unique combination of 3 values like below: ABC ACD BCD BDA (CDA,CAB,BCA etc …