Category "php"

how to apply a text string in a variable with rename function

When using the PHP rename function I need to use text in a variable in the rename, but I can only get the rename to work when I manually enter the text, for exa

Error: Payfort Apple Pay service response error Failed to execute service?

I integrated Apple Pay service of Payfort using PHP but got error in response. Failed to execute service have applied all possible solutions including regenerat

How can I get parameters from a URL string?

I have an HTML form field $_POST["url"], having some URL strings as the value. Example values are: https://example.com/test/[email protected] https://exa

Knp Pagination in symfony 5

I installed "Knp Paginator" and everything works fine but if i try to do a search in the search bar (this search bar does not depend on Knp Paginator) i have th

How can I find out, check and change my $db_host, user, pass, name in mysql workbench?

$db_host = ""; $db_user = ""; $db_pass = ""; $db_name = ""; I have to fill out these, so I wanted to check but I used 'ampps' to install mysql. so I couldn't f

PHP 1 image for every 5 amount

I need to assign 1 image to every 5 people in the array using foreach and a forloop <?php $clubs["Example 1"] = 25; $clubs["Example 2"] = 12; $clubs["Example

From Advanced Custom Field's checkbox, I need to add something as checked in the checkbox

this is what my code looks like: Any help will be very appreciable. <?php $btn = get_field('line_btn'); if( $btn && in_array('stu

Symfony 5 - A problem with the form to registrate a credit card with MangoPay

I'm trying to register a credit card with MangoPay. I've installed the mangopay/php-sdk-v2 package. To register a credit card, it needs three steps. Create a to

Why is Elementor is causing my wordpress website to not load?

I'm very new to WordPress and php, I started using it yesterday and it was all going smoothly until I decided to install some starter templates. the installatio

Delivery options in Woocommerce Checkout not registering country & postal correct

I am currently working on a Woocommerce site, where I need to setup shipping with a flat rate to Denmark - and no shipping to other countries. When I input corr

Laravel 9 email verification Invalid Signature

I've read all available solutions, but no chance. It always redirects to the 403 page with message (Invalid Signature). Here is my route : Auth::routes(['verify

What can be reason I got CORS error but it was actually NOT a CORS error (more like a 504)?

What can be reason I got CORS error but it was actually NOT a CORS error? Please refer to the following pictures to see what I mean: The console output the erro

Can I find out the version function/classes were added from a tagged GitHub repo for PHPDoc @since

I am looking to add PHPDoc comments to my project, I previously have various versions before PHPDoc was used, these are tagged releases in GitHub. Is there a me

How to set onEachSide at controller level on laravel?

How to set onEachSide at controller level on laravel? on blade we use: {{ $records->onEachSide(2)->links() }} How this can be done at controller level?

Laravel - foreach on collection

I have a request : $comments = $post->comments()->with('replyComments:id,post_id,user_id,content,created_at,reply_comment_id')->orderBy('created_at', '

I get this error when I try to enter a huge text and I dont know how to fix it

I get this error when I try to enter huge text and I dont know how to fix it.

How to select multiple class class with same name in JS

I use PHP to dynamically render these lists that I fetched from the database, and each one has the same class, because I can't change it, it renders dynamically

How to convert the image into qrcode in laravel?

convert the image into qr code

How to export image links in different columns in WooCommerce?

I want to export the image links of my products in different columns. For example like IMG1 IMG2 IMG3. So i wrote this code below (Not Worked): foreach( $articl

MVC PHP - A better way to simplify my linking

I am looking for a way to create a solution to simplify my linking. On a site I am creating there will be multiple places (for example 15) where there will be a