Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
0 answers
16 views

there is a issue occurs while creating segment

$response = $client->lists->createSegment("46ec78750d", [ 'name' => $request->name, 'options' => [ 'match' => 'any', 'conditions' => [ ...
Vishal Rajput's user avatar
-1 votes
0 answers
21 views

Multiple conditions in array for comparison?

I am trying to check conditions inside foreach for a dynamic array. My Array: Array ( [0] => Array ( [type] => target_id [operator] => Equals [...
Yunus Aslam's user avatar
  • 2,464
0 votes
0 answers
7 views

Is it possible to filter woocommerce product tags programmatically?

I am using tags for some product display filtering, grouping them into specific groups. At the same time I am displaying product tags on product pages for SEO purposes so I end up with a bunch of tags ...
funguy's user avatar
  • 2,162
0 votes
1 answer
31 views

Why text is not moving to the top-right of the image?

My understanding is that both img and span are inline elements and should be moved next to each other. However, I don't see that happening in below example. My HTML Body looks as below: <body> ...
meallhour's user avatar
  • 15.5k
0 votes
2 answers
17 views

Route 404 in laravel11. Is there any rule to prioritize route in web.php

My issue is, even if I added route in web.php then also it gives me 404 not found. My route file as below. <?php use Illuminate\Support\Facades\Route; use App\Http\Controllers\StudentController; ...
Piyush Sapariya's user avatar
0 votes
0 answers
9 views

Clearing cache on submit of a Wordpress CF7 form

I have a Wordpress site using CF7, Dynamic text plugin and ACF. I send a user an email containing a URL that when clicked opens up a custom post type specific to that user. The post has a CF7 form on ...
Stu's user avatar
  • 1
0 votes
0 answers
28 views

How do I format the string to POST data through XMLHttpRequest in Laravel?

I'm trying to send my data through XMLHttpRequest but don't know how to format the string with all the data My JS Code: function savePhotos() { var csrf = document.querySelector('meta[name="...
GStraats's user avatar
-3 votes
0 answers
26 views

Why does php built-in server works, but Apache doesn't [closed]

As a question says, when I run command php -S localhost:8000 in terminal(after positioning in project root), and after that, I try testing out the URL http://localhost:8000/app.php, (app.php is my ...
ruzic's user avatar
  • 1
0 votes
0 answers
12 views

How to Retrieve Session ID After Successful Authentication in Odoo JSON-RPC for Invoice Creation?

I am developing a PHP script to integrate with Odoo using JSON-RPC. The goal is to authenticate a user and then create a custom invoice in the Odoo database. The authentication process successfully ...
Tech's user avatar
  • 1
-1 votes
0 answers
31 views

PWA Payload and JSON

First time here, I have a problem with PWA push notifications. It's a chatting page made with PHP. My push notifications are sent OK (on the phone and on the web). I have a push notification. But ...
Floceti73's user avatar
0 votes
0 answers
23 views

calling json 2nd dimension array in php [duplicate]

I had trouble to call the 2nd dimension data of the array, I have an array like this (13) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}] 0: {azimuth: 1.9834929332749562, altitude: -...
astaga's user avatar
  • 99
-4 votes
0 answers
47 views

Error in SQL syntax with MySQLi PHP, but is valid and runs successfully [duplicate]

This is the PHP code in question:- $getPts = $mysqli->query("SELECT pts_to_add FROM user_db WHERE user='".$_SESSION['username']."'"); $row = mysqli_fetch_array($getPts); $...
Noob YT's user avatar
  • 47
0 votes
0 answers
9 views

Share Authentication session between subdomains on localhost

Sharing a session between subdomains in laravel is a common usecase and there are many questions with accepted answers here on stackoverflow. But all the solutions provided don't work for me. I have a ...
noah1400's user avatar
  • 1,509
0 votes
1 answer
31 views

Why can't I access my backend file that is used for routing(app.php)? [duplicate]

I am making a chat application using PHP on backend and React.js on frontend. However, I am encountering a problem with fetch API. My fetch that calls an endpoint fetch('http://localhost/...
ruzic's user avatar
  • 1
-1 votes
0 answers
15 views

Copy to clipboard from PHP CLI (xclip on linux command line not working for me)

I am trying to write a script that uses regex filters to clean up the lyrics of a song (meaning, remove chord markers and the like) and then copy the result to the system clipboard so that a Paste ...
Dennis 's user avatar
  • 1,146
0 votes
0 answers
17 views

PHP terminal scripts' execution time differs between first and subsequent invokations

I have a PHP test script that makes several calls to a string parsing and evaluation function to be tested over several cases. Execution time of every string evaluation (of every single test) is ...
Paolo's user avatar
  • 15.8k
-7 votes
0 answers
24 views

Getting this error in the below code >> Fatal error: Uncaught ArgumentCountError: [duplicate]

Getting this error in the below code Warning: Cannot modify header information - headers already sent by (output started at /home/kvkprose/public_html/index.php:48) in /home/kvkprose/public_html/...
SANJOG's user avatar
  • 17
0 votes
1 answer
47 views

how a class call with this format? [duplicate]

hi I clone a php library from github but xampp get this error: Fatal error: Uncaught Error: Class "PHPUnit\Framework\TestCase" not found in C:\xampp\htdocs\browser\tests\BrowserTest.php:12 ...
Mansour's user avatar
-4 votes
0 answers
42 views

loading content thru PHP to simplify or is there a way to load it in a div? [closed]

I have my header/css and part of the body including the <div tag for the cell the content is in as one file and then the footer with the and and segment as another file and then have the ...
Brian Stahl's user avatar
1 vote
0 answers
31 views

How do I use php to add custom properties to docx

I am trying to prepare a docx template file with pre-inserted custom properties (Quick Part -> Fields) from a database. The file starts as an empty docx file created in MS Word. I reviewed this ...
Matthew Inboden's user avatar
1 vote
0 answers
22 views

Redirecting (wp safe redirect) with delay for clientdata to be collected

I’ve written a custom script that generates a fingerprint based on both server-side and client-side data to block users who keep coming back with different IP addresses. I know it's not 100% foolproof,...
Flower88's user avatar
-1 votes
2 answers
37 views

docker mysql connection refused

Can't connect to database server docker-compose: version: '3.7' services: nginx: container_name: app_nginx image: nginx:latest volumes: - ./:/var/www - ./docker/nginx/conf.d:/...
Алексей's user avatar
1 vote
1 answer
28 views

.htaccess If directive not working when accessing php files directly (only when accessing directories)

I have some code to do persistent authentication with .htaccess, which works, but only when accessing directories or sub-directories, e.g. / works but /index.php doesn't. Here is some simplified code ...
mikey_john's user avatar
0 votes
0 answers
70 views

string length issue when sent to server due to extra \r added to \n

When a string is appended to a FormData object and sent to Laravel server, who decides the encoding that will be used? How can we make sure that the string length reported on the client-side matches ...
dotNET's user avatar
  • 35.3k
0 votes
1 answer
54 views

In Laravel, how can I display a custom error message if any of the password complexity criteria is not met?

I am working on a blogging application in Laravel 8. I have used the standard procedure Laravel 8 provides to ensure the password meets the complexity criteria: protected function validator(array $...
Razvan Zamfir's user avatar
0 votes
0 answers
30 views

Basic template engine cannot find a CSS file [duplicate]

I’ve been learning PHP for the past few weeks, but I’ve run into an issue that I can’t seem to solve. It’s related to properly rendering templates in my simple MVC procedural project structure. I’m ...
Angel's user avatar
  • 23
1 vote
0 answers
17 views

Importing product from XML into Woocommerce no variations or attributes are assigning

I'm trying to import products from XML feed using the below code. The products are being created (simple & variable), the attributes are being created, however, they are not assigned to the ...
Jubran's user avatar
  • 11
0 votes
0 answers
19 views

Laravel Set-Cookie Response Header Problem With Cloudflare Cache Mechanism

We have a website built with Laravel 10 (upgraded from Laravel 5.6 to 9, and then to version 10). For this website, we use a load balancer on Cloudflare. However, since we are using the StartSession (\...
Bunyamin Kurt's user avatar
-4 votes
0 answers
40 views

how can I Deploying multiple projects to the same repository [closed]

How can I trigger the deployment of a vercel project only when code changes are made in a subdirectory? I have a repository with three subdirectories of that corresponds to vercel's three projects, ...
JIeJaitt's user avatar
0 votes
0 answers
21 views

Stop WordPress from stripping out custom <dotlottie-player> element

I am using the Tatsu page builder and using their Code module to insert dotlottie code, such as: <dotlottie-player src="https://lottie.host/******************.lottie" background="...
Brett's user avatar
  • 20.2k
0 votes
0 answers
39 views

PHP multiple Object creation from DB [closed]

Hi I am very new to PHP and Objects and have become very confused on the best way to create a collection of objects created from a database. Below is an example of what is working for me but its a ...
Pablo's user avatar
  • 1
0 votes
0 answers
5 views

Wordpress Polylang: Pages in other languages ​disappear periodically 404

Good evening. I have a site using the Polylang plugin. The main language is English, but there are also translations into Turkish and Ukrainian. The English version of the site is displayed correctly. ...
windeAlps's user avatar
1 vote
0 answers
19 views

Validating parameters - param type and name (getParameters() function; framework)

I am taking a PHP course and I have a question about conditions when checking the correctness of type parameters in Container class. Here I have a code fragment from the Container class: public ...
Natalia Kaczyńska's user avatar
0 votes
0 answers
15 views

Database object not created. how create it better way [duplicate]

class Database { private $dbHost = 'localhost'; private $dbUser = 'root'; private $dbPass = 'usbw'; private $dbName = 'track_serial'; private $db; public function __construct(...
Mahinda Jayathilaka's user avatar
-4 votes
0 answers
63 views

Read or count pages of a digital signed pdf document using php or javascript [closed]

I am trying to read a pdf which is digitally signed. I tried using different php libraries and also js libraries, each of them works well with a normal pdf document but if the document is digitally ...
user3099225's user avatar
0 votes
1 answer
28 views

Dependency Injection and Sub-Dependencies

I have a basic scenario where class A has dependency class B which has dependency class C. Class A needs to use methods of both class B and class C. Is it a best practice to inject both class B and ...
Robert Chapin's user avatar
0 votes
0 answers
19 views

Expression Engine Entries Loop Index

Does Expression Engine entries loop have a variable to show which index you're on for each iteration? I found the {count} and {total_results} in the docs, but cant seem to find the variable that spits ...
Sergio's user avatar
  • 822
1 vote
0 answers
13 views

Set a Default Term is not Allowing for New Terms to be Added

I'm trying to set a default taxonomy term for a post-type. It's working currently. Problem is if I try to add another term and hit save, it does not save. Here is the code I created that is adding the ...
Felicia Santos's user avatar
1 vote
0 answers
40 views

Loading XML with undefined entity references

This is somewhat of a niche problem, but one I cannot find an answer to. I have some splited XML files with undefined entities that I cannot find a way to access via PHP DOM interface. An example may ...
André LFS Bacci's user avatar
0 votes
1 answer
19 views

How add a request rule to Backpack-Laravel?

I need to dynamically assemble request rules depending on the value of a model field. I have a model author with a field string $rule. This field can store string values ​​for the request - integer, ...
KordDEM's user avatar
  • 213
0 votes
0 answers
63 views

How to Ignore SSL Certificate Error in cURL for Microsoft Graph API during Development Phase?

I’m working on a PHP script to interact with the Microsoft Graph API. Here’s my code: function SendGraphEmail() { $tokenRequestContext = new ClientCredentialContext( 'tenantId', '...
efficaciousEmu 's user avatar
-2 votes
2 answers
38 views

Doctrine: How should I update my entity-saving function?

In my Symfony app, I have a function that saves a record using Doctrine: public function save(Car $car): void { $this->getEntityManager()->persist($car); $this->getEntityManager()->...
Duke of the Trash Heap's user avatar
1 vote
0 answers
36 views

Laravel Links and route not work on server

I'm using laravel 11, everything working ok on localhost, but after upload on server all navbar links not work all pages not found , only home page working. <ul class="navbar-nav ms-auto"&...
iMahmoud's user avatar
1 vote
1 answer
29 views

Nginx: redirect and php-fpm

I want to rewrite requests for the url http(s)://mydomain.com/_matrix/push/v1/notify to http(s)://mydomain.com/nextcloud/index.php/apps/uppush/gateway/matrix. I use nginx with php-fpm. I have set-up ...
Alexander's user avatar
1 vote
1 answer
42 views

Can Twig PHP be extended to support multiple-line code blocks? ( Or a better way to embed custom logic in a PHP app? )

We're looking at allowing a way to embed custom code into a PHP application, and exploring secure/sandboxed ways to do that (e.g. if you've used Apex in Salesforce, or are familiar with ...
Keith Palmer Jr.'s user avatar
-1 votes
1 answer
48 views

PHP API - bad connect localhost on docker

I'm having trouble with a PHP project where I'm setting up an API by cloning it from GitLab using git clone, and running it via Docker on localhost. 'Localhost' i mean that I have a recommendation: &...
shiru's user avatar
  • 9
0 votes
0 answers
33 views

How to submit a form and display the content from database to the Placeholder component in filament

I have a form, when i submit the form, it dispatches an event, which sends an external api request and then stores the response in the database. I have created an endpoint that can be used to check if ...
emekamba's user avatar
  • 188
0 votes
1 answer
33 views

Doctrine Migrations: Repeatedly Generating the Same ALTER TABLE Statement

I recently upgraded my Symfony project from 5.4 to 6.4.13. Now, I am encountering an issue with Doctrine Migrations in my Symfony project. When I run the doctrine:migrations:diff command, it generates ...
Jeroen's user avatar
  • 133
1 vote
0 answers
32 views

The problem with getting metadata using the yt-dlp library from YouTube

I have a problem using the yt-dlp library to download videos from YouTube When getting the name of a video, sometimes the program gives out the wrong name, which does not exist at all I use php for ...
Dmitriy Berillo's user avatar
1 vote
0 answers
56 views

How to make a custom function called whenever a method of the PDO class is invoked

I am attempting to hook into the functions within the PDO class. I declared the zend_execute_internal function and hooked it by setting the address of my custom function, but in the code of New Relic ...
김성훈's user avatar

1
2 3 4 5
29361