Category "php"

Connecting an HTML webpage to a SQL Server

I am attempting to display a table from my Azure SQL database on a webpage. I have been looking around and can't seem to figure out why this isn't working This

How to get access token Strava Api with PHP

public function auth_callback() { if ($this->input->get("code") != null) { $this->Strava_model->UpdateProfileStravaToken($this->input->

How to retrieve Active Directory group policy maximum password age using LDAP

I would like to retrieve the group policy regarding to passwords from the company Active Directory, but I cannot find any info, how to filter my search to find

PHP: convert all UTF-8 characters to HTML entities

I am attempting to use mb_encode_numericentity() to convert all special UTF-8 characters into HTML entities. The following code converts some characters, like &

Class 'NunoMaduro\Collision\Adapters\Laravel\CollisionServiceProvider' not found

When trying to install composer in laravel project get this error. Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover

How to modify CSS in a specific page of the WP admin dashboard (backend)

I'm trying to remove both padding and the title of the dashboard page of the admin panel of WordPress. The dashboard was redesigned with the "Welcome Dashboard

Read email and get attachments from Office 365 mailbox with Laravel

I'm looking for the best solution to read emails and get attachments from Office 365 mailbox to save them on my Laravel application. I've tried Laravel IMAP htt

How to get total pages of PDF with FPDF?

I've tried with AliasNbPage() to get total pages of pdf. i do called '{nb}' to get total pages and it doesn't give output numbers instead of {nb}. there's anoth

PHP: Insert marker every 3 iterations

I have the following: <?php $content = apply_filters( 'the_content', get_the_content() ); $content_table = explode("<p>", $content); $c

Valet, Xdebug after reboot Big Sur not working

After successfully installing Valet, Xdebug and configuring VSCODE for the Listener for Xdebug 3. and checking that everything worked, at the first power off an

How to auto populate preferredCountries from intl-tel-input with db output

I would like to populate the preferredCountries:["xx","yy","zz"] with a function that fetches the most used country codes from a mysql db and list them highest

How to get the keyword using Google Ads API from click_view?

I get data by GCLID and I want to get the keyword I don`t know how please help me. On the query I get click_view.keyword_info.text and I try to print it with ge

Split long articles into pagination based on Number of lines

I have long articles. Articles are coming from the database. For the easy to read I split the article into pagination. For Pagination I Used Virtual Pagination

Laravel installer throws error when creating new project

I am trying to create new Laravel application. I have installed XAMPP and Composer. With Composer ( composer global require laravel/installer ) I have installed

How to upload multiple files in different folders using Reactjs and Laravel

I want to let users of my website upload multiple files that could be in different folders. Using 'multiple' attribute in file input control doesn't let you sel

How to disable widget block editor of WordPress?

WP 5.8 comes with a new system to manage events named "Widgets Block Editor". How can I disable this new system and restore the classic widget editor of WordPre

How to set Object array to CURL POSTFIELDS?

I'm gonna send json array field using CURL POSTFIELDS. but not working. JSON data is below: { "Searches": [ { "Facets": [

Target Laravelista is not instantiable

I'm trying to post a comment to my news post using the Laravelista\Comments but I got this error: Target [Laravelista\Comments\CommentControllerInterface] is no

array_key_exists(): The first argument should be either a string or an integer

Im trying to upload an image in my Laravel app. but have an error: array_key_exists(): The first argument should be either a string or an integer Im using the e

Symfony Make:Migration : The metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue

I keep getting this problem everytime i try to migrate using the commandline: php bin/console make:migration or even doctrine:migration status when i try the do