Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

Best practices for saving parent and children records

I am having a discussion with my boss about a function. I would like input from an audience so I can present this to him. I took over a project and there is a function to create a record in the ...
guidamedia's user avatar
-1 votes
1 answer
31 views

Insert ignore into database coping old record and changing 1 field in new record

$sql = {"INSERT IGNORE INTO membership WHERE Member_id= 'A4C1905' (`Name`,`GivenName`,`SpouceName`,`SpouceGiven`,`Address`,`City`,`Prov`,`PostalCode`,`Phone`,`Email`,`Secondary Email`,`Region`,`...
Rick harper's user avatar
-2 votes
0 answers
12 views

can't send email from script [duplicate]

Have a form that collects data, a button calls sendmail.php containing this code fragment $to = "[email protected]"; $subject = "Inquiry from Website"; $txt = "...
Poughkeepsie AAUW's user avatar
1 vote
0 answers
30 views

Issue with gross Calculation in my Laravel Management Application "Get 'totalIndemnitiesBrutAmount' automatically"

Subject: Issue with Dynamic Gross Calculation in Laravel Agent Management Application Context: I am working on a Laravel-based agent management and payment application, specifically focusing on ...
CodingStudent's user avatar
0 votes
0 answers
27 views

How to Solve 'Uncaught Error: Class “WP_Block_Metadata_Registry”' in WordPress site

Fatal error: Uncaught Error: Class "WP_Block_Metadata_Registry" not found in H:\root\home\heritageenergy-002\www\fce\wp-includes\blocks.php:391 Stack trace: #0 H:\root\home\heritageenergy-...
Sandet's user avatar
  • 21
-1 votes
0 answers
20 views

How i can learn real file link on the Google drive? [closed]

I have a Google drive link. And i write a PHP code. PHP code is download a file at the directory. Ex. file.com/download?id=xxxx to cdn.file.com/userxyz/picture.jgp. my PHP code only download exampe....
NewYT's user avatar
  • 1
-5 votes
0 answers
35 views

Why my php script doesn't process javascript script on localhost? [closed]

I have a php scrip which works fine, but for whatever reason it doesn't process my javascript scripts. I tried to link it with the src attribute , it doesn't work. I tried to require it with php ...
S S drest's user avatar
-3 votes
0 answers
29 views

How to add space between bytes in string? [duplicate]

I am looking for a way in php to separate bytes with a space in the string. Let the string be 3 bytes : $s = "100110010000111100110110"; I want it to become this : "10011001 00001111 ...
totoaussi's user avatar
  • 735
-1 votes
1 answer
14 views

CI4 - Returning extra data to my request in Filter after upgrading to PHP 8.1

In php 7 I was able to send extra data from my filter to the Controller: My app uses bearer token authentication via this Filter. If the token is valid I return the original request and include the ...
Dusan's user avatar
  • 3,428
-2 votes
0 answers
14 views

I am unable get label tag value which created in php using javascript click event listener [duplicate]

I am making CMS core php project. Having javascript issue, unable to access lable tag(id - date) value using click event listener and add to input tag with id post-id. How to add date to my input text?...
rnbhangare555's user avatar
0 votes
1 answer
23 views

Property [nama_guru] does not exist on this collection instance

I’m working on a feature to display teacher data grouped by category (guru_category). Below is the code I’m using: public function showGuru(Request $request) { $search = $request->input('search'...
Moses Farrel Risgian's user avatar
-1 votes
0 answers
39 views

How to differentiate between files and directories in URL patterns?

I'm trying to configure Nginx to rewrite URLs differently based on whether the first segment of the path corresponds to a file or a directory on the filesystem. This is an example of what I did: ...
Amir's user avatar
  • 11
0 votes
0 answers
18 views

How to not allow unauthorized access to json data for leaflet map

I have a map application using leaflet.js that pulls the map markers from a php page. I want to not allow people to be able to see those coordinates, to prevent them from copying them and sharing with ...
norin_stiff's user avatar
0 votes
0 answers
27 views

After installing php-fpm and modifying server block, why does nginx fail to restart?

Installed nginx Ok and started it Ok. Installed php-fpm Ok and started it Ok. Amended server blcok with cgi stuff: # pass PHP scripts to FastCGI server # location ~ \.php$ { include ...
Manager Rose's user avatar
-1 votes
0 answers
32 views

How to remove garbled characters in strings caused by byte loss in PHP?

The above picture is from Bing。 When translating '微博' into Korean using Microsoft, the interface returns a garbled character '웨이보(微��' because it is unknown if there are other translation results that ...
Bod22's user avatar
  • 1
-4 votes
0 answers
25 views

pdf417 barcode generator using php code any free or paid library please suggest me? [closed]

pdf417 barcode generator using php code any free or paid library using png or jpeg image generate and stored in folder. Need free library in PHP language. Currently I am using third party library but ...
Kanti Chaudhary's user avatar
0 votes
0 answers
30 views

I have this problem, it says Fatal error: Cannot use $this as parameter in [duplicate]

function before ($this, $inthat) { return substr($inthat, 0, strpos($inthat, $this)); } function between($this, $that, $inthat) { return before ($that, after($this, $inthat)); } function after ...
pharma inquiry's user avatar
1 vote
0 answers
32 views

I can't install the GRPC extension for PHP [closed]

I tried installing GRPC on Laradock in various ways. First in laradock/php-fpm/Dockerfile: RUN apt-get update && apt-get install -y -q git rake ruby-ronn zlib1g-dev && apt-get clean ...
Ivan Kachula's user avatar
-1 votes
0 answers
17 views

Issue with Elementor Custom Query Using an ACF Relationship Field

I'm working on a WordPress site where I use ACF to create relationships between "training programs" and "jobs". Here's the setup: I have a custom field group named "Training ...
Slaega's user avatar
  • 1
-3 votes
0 answers
58 views

I can't properly fetch the firstname and lastname from users table and title from the books table [closed]

The borrower's name and title aren't displaying as expected in my CodeIgniter 4 app. Despite trying various solutions, the issue persists. Could someone help troubleshoot and resolve it? Your ...
Ramburatskie's user avatar
-3 votes
0 answers
47 views

Inserting a blob in mysql with bind variables in PHP doesn't work [closed]

I have this table in mysql : CREATE TABLE files ( file_id INT NOT NULL AUTO_INCREMENT, file_name VARCHAR(255) NOT NULL, file_type VARCHAR(30) NOT NULL, file_size INT NOT NULL, file_content MEDIUMBLOB ...
William Arcq's user avatar
-4 votes
0 answers
50 views

Use mysqli with PHP version 8 [closed]

I am new to php and sql and I am trying to connect my php file with MySQL database, but when I try to do so, the following error occurs (I am using VSC): Stack trace: #0 {main} thrown in C:\Users\...
Ace is here's user avatar
-1 votes
1 answer
30 views

Consistent Access Denied error when trying to connect to MySQL DB with PDO [duplicate]

I'm newbie to PHP and I'm trying to get started with it. I have been following this guide to create a PHP boilerplate for future projects using Docker (I didn't want to use XAMPP cause I like to make ...
TripleA's user avatar
1 vote
2 answers
633 views

Notice: Function _load_textdomain_just_in_time was called incorrectly

After updating to WordPress 6.7, I’m receiving the following PHP notice on my website. How can I resolve this issue? Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation ...
Hossein's user avatar
  • 2,838
0 votes
0 answers
39 views

How to automate daily or monthly POST API requests in Laravel? [closed]

I am working on a Laravel application where I need to implement an automated feature to send POST requests to another application at a scheduled time (e.g., daily or monthly). Here is the workflow I ...
j3romeproj's user avatar
0 votes
1 answer
44 views

I got this error Call to undefined method App\\Models\\User::assignRole()

I have a small app & I'm using Laravel 11 and I try to expose only the UILD and not IDs and I got "Call to undefined method App\Models\User::assignRole()" User.php <?php ...
Ali's user avatar
  • 359
0 votes
0 answers
8 views

Display multiple data on multiple Larapex Charts

I'm working on a laravel dashboard that needs to display several charts at once. I'm using Larapex Charts to display those charts. Everything was going well until I had to display more than one data ...
user28349087's user avatar
-1 votes
0 answers
16 views

Smart Slider disponivel via REST API do Wordpress [closed]

Estou com um projeto de usar o Wordpress Headless com NextJS 14. Tentei implementar o Smart Slider como gestor de banner na home, mas estou com dificuldade de disponibilizar ele na REST API do ...
Teilor's user avatar
  • 1
0 votes
0 answers
23 views

Why PHPMailer is not sending an email on InfinityFree?

I'm having trouble sending emails using PHPMailer on my website hosted on InfinityFree. When I try to send an email, I encounter an HTTP Error 500 without any other useful error message. I've reviewed ...
krxshia's user avatar
0 votes
0 answers
49 views

PHP within HTML <SERVER SIDE - NOT BROWSER SIDE>

Info: Raspberry pi 4 - apache running, php installed. All works well. The index html file shows the images etc. and auto refreshes based on some parameters i.e. if it sees a file called file_change....
Rich Unsworth's user avatar
0 votes
0 answers
9 views

akeneo/pim-community-dev dev-master requires php 8.1.* -> your php version (8.0.25) does not satisfy that requirement

Im trying to set up akeneo pim using docker on my local "mac" and getting below error, appreciate any inputs Im running below command in terminal: docker run -u www-data -v $(pwd):/srv/pim -...
Kiran's user avatar
  • 1
0 votes
2 answers
37 views

Login Route and Controller

My Blade file code is like below. <form action="{{ route('login') }}" method="post" class="row mt-4 align-items-center"> <input type="hidden" name=&...
abu abu's user avatar
  • 6,968
2 votes
2 answers
82 views

How can I check when there are only opening or closing quotes in PHP to make replacements?

In a text that comes with a separator, I need to create several paragraphs for a document written in LaTeX. The purpose of this code is to replace any content within quotes with \textquote{the text} ...
A. Cedano's user avatar
  • 869
0 votes
1 answer
22 views

Wordpress - Checkbox required doesn't validate

I am trying to make a checkbox required in order to proceed to the next page. I am develping inside of functions.php. Does functions.php not allow the required inside of regular HTML tags? Here is ...
JohnLyons's user avatar
0 votes
0 answers
20 views

Cannot set Times New Roman font with mpdf 8.2.4 and greek chars

I am new with mpdf. I installed mpdf 8.2.4. No matter what I do, I can't get Times New Roman correctly with greek chars. I have the following code: <?php $html = file_get_contents('pdf.html'); ...
Aris C's user avatar
  • 3
0 votes
2 answers
18 views

Get taxonomy description as "rich text" or formatted text

Sorry I'm quite new at coding, and also working with WordPress and ACF, and I'm trying my best but I can't figure this out: I'm trying to load my taxonomy description in rich text. Currently I'm using ...
Casper Boon's user avatar
0 votes
0 answers
18 views

How to redirect to moodle page (Moodle 4.5) from external site without showing login page

I have an external site developed in .net having OpenID SSO enabled and a moodle site using the same SSO. The user want to click a link in external site to a specific page in moodle. But the login ...
Sarat's user avatar
  • 271
0 votes
0 answers
30 views

Symfony 7 Post login event listener not triggering

I have an event listener that I would like to run after Symfony's authentication flow completes that adds the current user's session ID to a Redis set. I previously had this logic inside ...
Donal.Lynch.Msc's user avatar
-1 votes
1 answer
34 views

PHP - Validate checkbox while canceling link redirect

I have 2 seperate parts on my webpage: a checkbox and an < a > tag that links to another page. Both of them cannot be in a single < form > tag. If a user clicks on the link, I don't want ...
JohnLyons's user avatar
0 votes
1 answer
24 views

Show custom taxomony on custom single post type

Would love some help on a website I'm currently building because I seem to not get something to work. The website has a custom post type 'evenement'. I have created a custom taxonomy 'locatie' and ...
Casper Boon's user avatar
1 vote
1 answer
29 views

Sending data from local XAMPP php server to ESP32-S3-VROOM, returning => unable to connect [10061]

Apologies for the length of this thread. Essentially, I've managed to set up an active connection between my ESP32 and a local XAMPP server. This server stores a captured image from the ESP32, which ...
Kingwebbie001's user avatar
-1 votes
1 answer
21 views

403 Forbidden in Laravel

Description: Whenever I visit the URI '/storage/decode/hello' the 403 error is shown, but when I go to '/storage/decode' URI, then the code works perfectly fine. Route::prefix('storage')->match(['...
Diwash Mainali's user avatar
0 votes
2 answers
39 views

PDO pgsql: fetch bytea column

In PostgreSql there is a table with a column of type 'bytea' with jpeg. In pgAdmin this column is displayed as [binary data]. In php script I need to get binary data from this column and translate it ...
proa's user avatar
  • 13
0 votes
1 answer
29 views

how to write HTACCESS rule for parsing all files of a folder to php page along with query parameters?

I have a web app in which there is a folder named "customers" and inside this folder there are subfolder with random strings for each customer and it contains various data like PDFs , text ...
Devanshu Goyal's user avatar
-4 votes
0 answers
52 views

Will PHP type hinting decrease or increase the number of CPU instructions generated?

From one side, type hinting assures that some variables of a certain type, so type checks can be eliminated at run time. This should produce less CPU instructions. From the other side, type hinting ...
Meglio's user avatar
  • 1,727
0 votes
0 answers
40 views

How to read a txt file from a remote zip file in PHP

I tried it but won't work. <?php $handle = fopen('htps://downloads.wordpress.org/plugin/#readme.txt', 'r'); $zip = new ZipArchive; $zip->open('test.zip'); echo $zip->getFromName('readme.txt');...
horje com's user avatar
0 votes
0 answers
36 views

Symfony with Webpack and Stimulus loading all controllers on every page

I have an issue with the setup mentioned in the title. Project is using Symfony 7.1 with Webpack encore and stimulus. I have a combination of custom.js files for individual pages and stimulus ...
Mecanik's user avatar
  • 1,509
0 votes
0 answers
27 views

DataTables 2.0 in Wordpress Plugin Admin Area

I would like to implement DataTables2 in my WordPress plugin. I started from test table to check if it works: <?php /* Plugin Name: WooSKU Updater Description: A plugin to manage SKUs, quantities, ...
awariat's user avatar
  • 382
-1 votes
0 answers
31 views

How to Reverse the Billing and Shipping Functionality in "Ship to a different address?" in WooCommerce Checkout? [closed]

I want to modify the WooCommerce checkout process and reverse the behavior of the "Ship to a different address?" checkbox. Here's how it currently works in the classic checkout: When the ...
Poyraz Uluhan's user avatar
0 votes
0 answers
12 views

How can I create Task and Event for a lead using Vtiger API

I use Vtiger API to create a new lead. Now I need to create new Task or new Event for my lead. Who can help me, and has an example? This is my code: { "operation":"create", ...
hamidsolat's user avatar

1
2 3 4 5
29356