Skip to main content

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.

php
0 votes
0 answers
7 views

How to create multiple services in Symfony simultaneously, each with its own custom tag?

I can create multiple services with the load method. ... but I want each service to have the same tag, with some attributes that can be inferred from the service class itself: // config/services.php ...
gremo's user avatar
  • 48.3k
0 votes
0 answers
10 views

Trying to integrate Tinymce to Symfony 6 project

So I'm trying to integrate tinymce for my textareas but I keep getting JS errors, asked chatgpt and all but no solution. I did as the tinymce doc said (https://www.tiny.cloud/docs/tinymce/latest/php-...
FutRR's user avatar
  • 21
-3 votes
0 answers
14 views

How to send a mail through PHP mailer?

In my project, I use PHP mailer to deliver mails. But there is an error found that resource not found. I tried echo print and try to get what is the error. but it also didn't gave a proper solution. ...
Thenuka Liyanage's user avatar
0 votes
0 answers
18 views

How to run multiple commands in loaded docker image?

I have Bitbucket pipeline with 3 steps. In the 1st step the pipeline build dockerimage with php 8.2 on Alpine 3.20 and save it. In the 2nd step docker load the custom image, volume and then I need to ...
Ivo's user avatar
  • 1
-2 votes
1 answer
31 views

How to merge cells in this table [duplicate]

this is my codes, very basics, sorry I'm not expert just interested. $query = "SELECT \*, GROUP_CONCAT(`Kode Unit`) AS Kodeunit, COUNT(`Kode Unit`) AS Jumlah FROM `STOCKS` GROUP BY `Nama Produk`, ...
Ricky Suwandi's user avatar
0 votes
0 answers
11 views

Custom Field data entry not saved to Woocommerce database

I have the following code provided to me from a plugin developer, but they are not very responsive and don't seem to test properly using latest 8.x PHP I've been able to get things to work except when ...
StevieK's user avatar
0 votes
0 answers
13 views

Nginx redirect all urls to route.php

I use php8.2 + nginx 1.26 in macbook M3 chip. I have encountered an error that "[error] 82337#0: *31 kevent() reported about an closed connection (54: connection reset by peer) while reading ...
ACS's user avatar
  • 21
-2 votes
0 answers
10 views

Unable to parse all kind of subtype while fetching emails with imap from WorkMail

I have done some coding with PHP to fetch emails from WorkMail for each user. Where I am getting each user email and password from another file. This file is only for debugging purposes. This is the ...
Muhammad Aleem's user avatar
0 votes
0 answers
13 views

unable to curl / copy /File_get_contents in php https://www.nation.com.pk/latest [closed]

I am using php , and trying to download https://www.nation.com.pk/latest to parse I have tried curl, copy() and file_get_contents(), nothing seems to work from hosting, but i can download it on my ...
Hardcode's user avatar
-2 votes
0 answers
27 views

When I enter the command php artisan install:api, in the terminal I get this error

I'm watching a tutorial to learn laravel, but I ran into this error ERROR There are no commands defined in the "install" namespace. I would appreciate if you could help me I tried to update ...
Anghelo Torres's user avatar
0 votes
0 answers
16 views

Trouble about upload APK file in Codeigniter 3

I have trouble when i'm upload apk file on codeigniter 3, My Controller: public function save_data_apk(){ $config['upload_path'] = './upload_apk_file/'; $config['allowed_types'] = 'apk';...
Bogerboger's user avatar
0 votes
0 answers
6 views

Pass data from Elementor Section/Container to child widgets

I'm injecting a custom control section to the container widget including a Custom field. Now, I want to get the value from this field, modify it, and then output it along with the child heading widget....
Tarikul Islam's user avatar
0 votes
1 answer
13 views

Upload file to server. Ubuntu, Apache2, PHP

This code should upload files, but it doesn't. <form name="submit" action="#" method="post" enctype="multipart/form-data"> <input type="file&...
Mary N's user avatar
  • 85
-2 votes
0 answers
14 views

Sponzy larvarel 10 script addition fix

my_trialsubscription.blade.php is giving an error Attempt to read property "id" on null after a trial link is created. after the link is created and someone try's to use the link the error ...
lenard blanks's user avatar
-1 votes
0 answers
21 views

Is there php redirect function that will be redirect if match referer only? [closed]

I try like following but it doesn’t work in sometimes. <?php $refer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : null; if( preg_match("/anysite1/i", $refer) or ...
user2971638's user avatar

15 30 50 per page
1
2 3 4 5
22