Questions tagged [php]
PHP is an open source, multi-paradigm, dynamically-typed and interpreted scripting language designed initially for server-side web development. Use this tag for questions about programming in the PHP language.
1,462,330
questions
-2
votes
0
answers
11
views
anybody know to create a vacation rental script [closed]
I worked with a person and i bought from him a vacation rental script....my website was also hosted on his hosting service plan. All good till my website not working anymore and this person not ...
0
votes
0
answers
4
views
How to use @testdox with PhpStorm
Consider the example code from phpunit testdox friendly output with data providers.
Running it in PhpStorm, it doesn't actually show me the custom messages as you would expect.
See the image below:
I ...
0
votes
0
answers
8
views
Combining two or more arrays into one array according to numeric keys without duplicates
I have the following scenario made of arrays with numeric keys.
I need to have an array which stores all the values in the arrays grouped by numeric key and without duplicates.
I cannot make them ...
0
votes
0
answers
7
views
Facebook API give Events, but not later then 2019
I've used an API call since 2018 to load Events from the Facebook Graph API. Very straight forward script with a Query. In the Facebook page there are lots of events, and the query shows events. Only ...
0
votes
1
answer
13
views
SQLQuery: Limits of adding a Candidates in certain Position from a Partylist
I am creating a web app using PHP. (Voting Election)how to limit or prevent from adding a candidate if the position is no slot or available? for example when I choose a Partylist in the dropdown, then ...
0
votes
0
answers
10
views
An exception occurred in the driver: could not find driver - Symfony [closed]
Hola una pregunta estoy tratando de enviar emails con symfony 6.3 pero me aparece el siguiente error, el problema es que me parece muy raro porque con symfony 6.2 me funcionada y tengo el mismo código ...
0
votes
0
answers
5
views
How to allow Filters on Protected sheets on PhpSpreadSheets
I'm trying to make a table that allows filters on phpspreadsheet.
I can already make the table, and if I remove the protection it will allow me to filter, but as soon as I put the protection, with or ...
0
votes
0
answers
5
views
Cakephp2 https redirects on AWS ECS
I have this old cakephp2 application that I'm deploying it to AWS ECS.
However, it needs to redirect all the requests to https.
I have updated the .htaccess as follows:
<IfModule mod_rewrite.c>
...
-1
votes
0
answers
11
views
What could be causing the 'sp_cursor 180150007, 40, 1' to take long of time to execute, slow loading and 500 errors in a CakePHP using a SQL Server
Cakephp2 application is running on apache2 with php7.2. Sql server 2019 database is running on another instance. Both instances are windows server 2019, changed php execution time but same issue. Are ...
0
votes
0
answers
8
views
Is there a way for .php URL to invoke NEXTJS web app - preferably on AWS Amplify?
I have currently a WORDPRESS site which handles the following type of URL:
"https://example.com/login.php?XXX=xxx&Lan=en&App=yyyOnelogin&API=13.0&Token=z4z5z6z7z8&OneLogin=zzz&...
0
votes
1
answer
26
views
PHP email sending Issue in phpmailer
my problem is when i click the submit button it does submit the form and i don't receive any problems on the website or inside of the console.Only changes i made to my code was editing the php part ...
0
votes
0
answers
8
views
Wordpress Jet Appointment custom schedule but global work time
I'm a beginner with Wordpress, PHP and all this stuff
I want to make a appointment service with different product and different duration, I would like that people can choose the start time ( on ...
0
votes
0
answers
7
views
PhpMyAdmin often (but not always) fails with "Error (rejected): It seems that the connection to server has been lost"
I have a fresh install of a Debian 11 server with the full LAMP set:
Server: Localhost via UNIX socket (no SSL)
Server type: MariaDB 10.5.19-MariaDB-0+deb11u2
Apache/2.4.56 (Debian)
Database client ...
0
votes
0
answers
17
views
Creating a email marketing followup sequence with PHPMailer and a Cron Job Advice
For my own development, as well as a intention to save some personal expenses - instead of using software like Aweber for example where I don't intend to have a large email list, I want to code a PHP ...
0
votes
1
answer
28
views
call_user_func_array(): Argument #1 ($callback) must be a valid callback [duplicate]
I'm currently developing a WordPress plugin.
The main class I have created activates and deactivates all necessary functions, settings and files for the plugin and I use composer to manage the ...
0
votes
0
answers
14
views
Skipping all WordPress functions if there is a cached version
I started making the following caching codes in order to create an experimental plugin that provides a solution to my own needs.
add_action('wp_loaded', 'buffer_start');
add_action('shutdown', '...
0
votes
0
answers
12
views
.TPL files VS code extension to be able to read and format [closed]
i have an openCart project and it has .tpl files in it and its looking white text all the way
but it looks like its php and html so i need an extension to be able to read them like a normal .php file ...
1
vote
1
answer
23
views
Need Help Resolving POST Bad Request Error 400 in WooCommerce Order Expense Update Form
I'm currently working on developing a custom form within WooCommerce that enables our delivery personnel to update expenses related to specific orders. The idea is to allow them to input additional ...
0
votes
1
answer
17
views
Interface Alias acting like Singleton when it shouldn't in TYPO3 12.4.6?
I have a service MyService that extends MyServiceInterface.
In the Services.yaml I configure:
My\Extension\Domain\Interface\MyServiceInterface:
alias: My\Extension\Service\MyService
public: true
...
-3
votes
0
answers
20
views
I want to add feature to an indicator [closed]
I want to add time duration to auto Fibo retracement indicator on tradingview, that when I use this indicator, it suppose to shows me the excpected time to reach these levels.
this is the code I ...
0
votes
1
answer
63
views
Select dropdown can only submit once
I've created a webpage with two select dropdowns: one for selecting an aircraft type and another for selecting a pilot seat. The problem I'm encountering is that when I select an option in one ...
-1
votes
0
answers
30
views
Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` jscomposer [duplicate]
I installed prestashop theme and it occurs. How to fix it?
Fatal error: Unparenthesized a ? b : c ? d : e is not supported. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in /share/...
0
votes
0
answers
8
views
nginx and php-fpm: misconfigured PHP error log destination
We use a typical nginx and php-fpm setup for a WordPress site running on Amazon Linux 2.
We recently noticed that:
PHP error log output was being sent to /var/log/nginx/error_log
even though /etc/php-...
-1
votes
2
answers
26
views
id looping with where condition in Laravel 9
I send an array with ajax included category_id as shown in image. And catch these categories in controller to execute product row equal with category_id field in products table. In this case, i cannot ...
0
votes
0
answers
9
views
Using a DTO and retrieving an ORM subresource using a uriVariable in API Platform/Symfony
I'm using API Platform 3 with Symfony 6 to build an API. I have an ORM entity Subscriber. To change certain fields of the Subscriber, I want to use PUT with a Data Transfer Object (DTO). Since I need ...
0
votes
0
answers
11
views
How can I uniquely identify a device with unchanging identity?
I am developing a PHP web application. I want users to sign in with the same device that they used for registration and restrict the users coming with a different device. So, I need a device ...
0
votes
1
answer
12
views
Akeno permission management
I am currently working on the implementation of Akeneo CE to improve product management and I would like to manage permission so that people are able to act on specific attributes/fields, this will ...
-2
votes
0
answers
19
views
How to insert multiple cart products in to the orders table onto the database?
I have been trying to insert cart products into the "orders" table into the phpmyadmin database..
but each time I try to add itis only addind th elast product into the table?
Can anyone help ...
0
votes
1
answer
9
views
How to remove anchor string after adding the initial field in docusign?
I am using this code for adding Initial field in docusign document. Field is populating perfectly but the anchor string is there behind the initial field.
I want to remove the anchor string after ...
-2
votes
0
answers
19
views
Timesheet System [duplicate]
I am trying to develop a timesheet system with PHP. When I create a table as in the example and save it, I will print it to the mysql database.
In the first stage, I am trying to pull the data I ...
0
votes
0
answers
24
views
SQL Array and session variable [duplicate]
I have an array in a PostGreSQL query and I can't turn it into a session variable.
The table resulting from the query sends this: {1,2,3}
if I transform this into a session variable I have the same ...
0
votes
0
answers
13
views
Ms graph API, Querying Bookings APIs using isnt working
Im facing some challenges while working with MS Graph APIs , especially with Booking One.
Error is like below
GET https://graph.microsoft.com/v1.0/solutions/bookingBusinesses
resulted in a 401 ...
0
votes
0
answers
7
views
Yii2 cross origin error on file upload api and other request working fine
I've created yii2 api. I've cross origin origin error on file upload all other request working fine like get, post, put, delete,
issue
has been blocked by CORS policy: Response to preflight request ...
0
votes
0
answers
22
views
Significant Performance Loss with Swoole, Laravel 9, and Docker on Rocky Linux 9 Using Custom Networks
I've been running a Laravel 9 application with Swoole for my microservices. Everything works great until I containerize the application with Docker on Rocky Linux 9. I've noticed a drastic performance ...
0
votes
0
answers
20
views
Adding text to a PDF which is signed/certified using PHP
I tried adding text to this PDF https://www.canada.ca/content/dam/ircc/migration/ircc/english/pdf/kits/forms/imm5476e.pdf using FPDF & FPDI, but unfortunately i received an error:
...
0
votes
0
answers
35
views
PHP Directives in .htaccess file
I have a sample web site with both .htaccess and .user.ini files. That’s to allow me to try it on servers where PHP is implemented as a module or as CGI.
In the .htaccess file, the following has ...
0
votes
0
answers
7
views
Wordpress caching error, "Cache key cannot be empty"
Windows Server 2016, IIS 10, PHP 8.0
When I try to access the admin section of my website - I inherited this site and restored it from a backup, so I don't know what the state was prior to me getting ...
0
votes
0
answers
13
views
Quickbook is fetching extra invoices data
I have approx 2600 invoice data on my Quickbook account and I am successfully able to fetch invoice data from Quickbook. I am fetching 1000 data at once, but the problem is that, its fetching more ...
-1
votes
1
answer
10
views
A livewire component was not found
I try to run a web app in my localhost and end up encounter this problem. Previously the debugging is done using sftp and I'd never once run it on my localhost. Im new at this. Need guidance, thanks.
(...
-4
votes
0
answers
21
views
half day calculation js(java script) code [closed]
(my problem) ...how to include a half day in leave system application using java script. if i select (Am ) radio button for from date that day calculate 0.5 day else one day. any one give me ...
0
votes
0
answers
10
views
AutomateWoo plugin for WooCommerce: Creating a custom template issue
I have enabled AutomateWoo plugin for WooCommerce… To create a custom template, I followed the instructions on AutomateWoo plugin Documentation > Email > Customizing your email design > ...
-4
votes
0
answers
25
views
fixed a problem that occurred in my coding [duplicate]
Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= 'aditya', email = '...
-2
votes
1
answer
21
views
Selection of record from table1 whose id is a record in table2 [duplicate]
I have two tables, shown below:
Teachers table:
ID
Name
Class
1
John
1,3,4
2
Fred
1,2
3
Grace
4
4
Jack
2,3
Class table:
ID
Name
Class Code
1
KINDERGARTEN1
KG1
2
KINDERGARTEN2
KG2
3
NURSARY1
...
0
votes
0
answers
7
views
Netbeans PHP Go To Declaration fails for single word functions
Netbeans "Go To Declaration" (Ctrl+B) works fine for functions like "actionEntity" but not for functions like "action". As an example, if I am calling a function as below....
0
votes
0
answers
9
views
Is this a caching issue? Drupal noob asking
I've got minimal Drupal experience and I've inherited a Drupal project.
Recently, after auto-deploying a change in a custom module, the site started showing intermittent error messages in some blocks.
...
0
votes
0
answers
9
views
Sync WordPress and Firebase password
I want to sync WordPress and Firebase password but it does not work:
<?php
require 'vendor/autoload.php';
use Kreait\Firebase\Factory;
$factory = (new Factory)->withServiceAccount(__DIR__ . '/...
-1
votes
0
answers
19
views
Request an audio file via curl in PHP and download it
I have 2 Linux servers, server1 and server2, basically I need that in PHP via curl server1 requests an audio file "file.mp3" from server2 and that it receives the request and in response ...
1
vote
1
answer
27
views
Issue with the producing wrong output value in PHP
I wrote the PHP code that calculates the school grade (including weight and targeting grade), however, it produces the wrong output value.
Here's my PHP code so far..
<?php
$numassignments = isset(...
0
votes
0
answers
30
views
Need to find an element in an associative dynamic two dimensional array in PHP [duplicate]
In an associative two dimensional array, I need to retrieve the value of an element (ID) in the second array inside the first array. The first array only has one element, a number that is dynamic and ...
-1
votes
0
answers
10
views
Drag and Drop Interface with Web interface
I am looking to find some software that will allow a client to drag an image, change font color and lock text so they are uneditable.
Need to pass a weblink to my client so they can build a social ...