Category "php"

How to fix laravel composer update issue ( Illuminate\Foundation\ComposerScripts::postAutoloadDump failed to open stream: No such file or directory)

I'm currently working on a laravel project using an existing package for e-commerce functionality called Bagisto. I already downloaded the package files from th

Cross-Origin Resource Sharing (CORS) witth Laravel and Vuejs

I have in backend this link backend.com and for frontend frontend.com I want to lock my API backend for everyone except my frontend! my cors.php <?php retur

How to fix 'Data has already been sent to output, unable to output PDF file' in MPDF

I tried to use MPDF library for generating PDF. try { $mpdf = new \Mpdf\Mpdf(); $mpdf->WriteHTML('Hello World'); // Other code

Pass a select with mysqli_fetch_row to a table

I have a problem with passing the query that returns a number of records, I already have it with a select that returns an input, but this only works with one re

Ajax post does not give value to php file, post becomes get

I have this ajax function for login. Edit: I just noticed that this server runs php7 while other server where the login does work uses php5. What has changed in

Ajax post does not give value to php file, post becomes get

I have this ajax function for login. Edit: I just noticed that this server runs php7 while other server where the login does work uses php5. What has changed in

How to execute sql code based on fetch array

I have a search engine that I found on google and I would like to search in the 'barcode' database that I have and if it finds the person it executes the code t

How to fetch the data from multiple tables order by SUM query?

I have different tables like profiles, tournaments, tournamentdate, tournamentresult and pigeons. Profiles columns > ProfileId, Name, Address, etc. Tournamen

How to fix " Uncaught TypeError: Argument 1 passed to JpGraphException::defaultHandler() " problem in php 7.1.3 and jpgraph 4.2.6?

I'm working on a graph with a Satisfaction form with a database with jpgraph and I've encountered some issues with an handler error. This is my program: <?

How do I pass the dynamic output of a php variable or php function to a CSS variable?

The WordPress plugin PolyLang provides translations to a chosen language. Its functionality of "Strings translations" consists of a list of strings with custom

Why foreach not working with date changer?

I want to change my database dates from jalali to gregorian. but when I run the code, foreach not working and not getting all of my datas from database. This is

Target class controller does not exist - Laravel 8

Here is my controller: <?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class RegisterControlle

Wordpress how to get the post thumbnail inside a figure tag

I am running a query loop and want that 'if' the post has a featured image, it needs to be inside a <figure> tag. But the featured image's <img> tag

Q: How to override the Elementor's function in function.php?

I want to write a new code to override original function: For Exsample ori code: elementor-pro/modules/posts/skins/skin-cards.php class Skin_Card

error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure

I'm trying to connect to a service that requires a certificate for authorization, I import certificates on my machine and when I directly hit on the server by m

How to get array values using foreach in laravel

I am new to laravel and php. I have this code in one of my controllers: $group_by_precedence = array("true", "false"); And this code in the view: @foreach ($gr

Is it possible to change the table name in the migration file-laravel

I created a migration file using php artisan make:migration create_todoapps_table. The migration file was created with the table name as to_do_apps (Schem

Unable to open file stream for given path error with MSGraph SDK

I have a web app I wrote in JS. There is a form that allows file upload, which is then handled by PHP. I have an account already, and I've registered an applica

Laravel Passport - Not able to get token string in response?

i am getting result like below in registration using passport laravel "success": { "token": { "name": "MyApp", "abilities": [

Apache/PHP Correct permissions for uploading a binary that runs server side?

I've prepared a PHP browser interface (like a modem interface) for an embedded system, that is supposed to help manage the core application (uploading a new bin