I’m trying to get a project set up and working but I have some issues with my PDO connection. No big deal, however, it doesn’t matter what logs I’m trying to find – they are all empty. within the php file itself, I have ini_set(‘error_log’, ‘/tmp/php_error.php’)…
Tag: php
How to create redirect links with my own url?
I am creating a website with Laravel. I will promote some products via affiliation. I have some affiliates links like http://wwww.example.com/aff.php?id=123 I would like to have links like http://www.example.com/go/nameofproduct that redirect to affiliate links Affiliates links are in a table in my database. …
Stripe API and PHP: Relationship of PAYOUTS to Payment Intent / Charges
I’m new with STRIPE, and I’ve been reading the documentation for STRIPE, and was task to create a list of payouts to a connected account (type is standard). Also, I have to show the details, under …
Laravel cut amount from rows before sum
I have column in my table where it stores prices and I need to sum those prices, the issue is I need to cut specific amount from each row before sum them. Example I don’t want to just sum this numbers, what I need is cut 5000 from each row value and then sum the rest. So my total after
Unable to start docker-compose
I’m trying to configure sendy to run on docker-compose. I’m getting this error when running docker-compose up error docker-compose.yml Answer In the directory where that docker-compose file exists, is there a Dockerfile specifically called “Dockerfile”? Under your sendy service, you ha…
Using double curly Vue.js braces inside php string param
So I’m in the middle of mixing Vue.js, PHP & HTML and I’m running into a small issue – I have the following HTML section: Now everything works great except calling the Vue.js title inside the PHP code.. I have the following: Is it possible to invoke double curly braces inside a PHP param…
Stay on same page when changing language
When I change the language on the page everything changes and starts from the main page (“index.php?lang=en”) but the question is, when I am in “about.php” I want to stay on the same page “about.php?lang=en”…. who can help me to realize that? <a href=”index.p…
Docker – Nginx, PHP, MySQL – Laravel artisan migrate connection refused
I have Laravel running in Docker with 3 containers – Nginx, MySQL 8 And PHP 8. I have the following docker-compose.yaml This command: Launches 3 containers: I want to run php artisan migrate, so I try it like so: This gives me the following error: My mysql.env file is like so: AND .env: I’ve tried…
Display vendor store-name (Dokan) on WooCommerce admin order preview
We add vendor information in the admin order details for each order via: WooCommerce show vendor store-name (Dokan) in admin order details overview Now I also want to add this information also in the order preview. I found this answer Display custom data on Woocommerce admin order preview We change the hook t…
Change Primary ID in laravel Migration
I’m creating a table where I want to use the ID from this table “menu_items” to be added in another table Table one: menu_items Table 2 products My aim of doing this is that I can then create a relationship between the 2 tables as they have the same key? Is there a different approach I can t…