Questions tagged [php]

PHP is a widely used, open source, general-purpose, multi-paradigm, dynamically typed and interpreted scripting language originally designed for server-side web development. Use this tag for questions about programming in the PHP language.

0
votes
0answers
5 views

Check author info to not be same as search- Laravel 7

I am building a database for a company to search for potential employees, however, when they are searching, they don't want to see applicants within their own company group, How do I make it so that ...
0
votes
0answers
7 views

Wordpress: problem to insert a script in a post content

I intend to insert the simple script below in a Wordpress post content through Classic Editor; but whenever I switch to visual mode or publish the post, Wordpress automatically removes the whole code (...
0
votes
0answers
6 views

Simple backend validation error | !preg_match

I am trying to create add a very simple name regex test to my backend validation but I keep receiving an error. From my understanding there should be no issue with this and maybe I'm just tired but I ...
0
votes
0answers
4 views

Count how many times a value occurs with another value in a multidimensional array | PHP

So i have this multi-dimensional array , what i want to do is get how many times a value occurs with another. For example: Ball , Jungle and Car appears together 2 times , Ball and Car appears ...
0
votes
0answers
4 views

PHP target a certain word for function

Hello I want to to target any metafield that contains the expression '(Stückzahl)' for my invoice PlugIn. Currently below is the code that is working for me, but I have to create a new code for every ...
-1
votes
0answers
14 views

Wondering my script work fine on firefox but it does not work on other browsers [closed]

I have script that works fine on firefox but does not work on chrome. I have login page, ajax page that pass parameters to Php file. Although on chrome when I enter wrong details on inputs it give ...
0
votes
0answers
7 views

date_default_timezone_get is sometimes slow to load

I am not sure why we added in the below to set the timezone but maybe 1 out of every 100 calls to date_default_timezone_get can take 5+ milliseconds to load. Does anyone have any information on why ...
0
votes
0answers
4 views

.htaccess not directing to correct file

I have a website which opens to /resources/Installer/index.php but the path I need it to open to is /Installer/index.php. I have asked my webhost to help but they have said they cannot help. I have ...
0
votes
0answers
11 views

State of PHP WebSockets

So I found conflicting answers about how well PHP can handle WebSockets. Some recommend staying away from using PHP for sockets altogether in favor of Node.js, others say that PHP has unfairly ...
1
vote
1answer
17 views

How to loop through JSON object with an array with backslashes inside in Jquery/Javascript from AJAX call

I have an array where I want to loop through the array inside the JSON and show the data in the table based on the nationalities in the array. The problem is that the array data contains backslashes ...
-1
votes
0answers
10 views

Bref Http 500 in Lumen

First deploy apps to Lamda using Bref, I found the bug. I don't understand about these error, but Trying to find solution but I found the bug is in register middleware and service providers. At the ...
-1
votes
1answer
19 views

Where can i find the (Index) folder

need help finding this (index) folder that Google Chrome is showing me. I can't find the elements I highlighted in red. I want to change the text via Sublime but can't find the exact folder the text ...
0
votes
0answers
9 views

Automatically display different HTML code in different directories

I need to find a rule that automatically detects current page's URL and allows to display different links on each directory of the website. For example: on main directory example.com/ it would display ...
-2
votes
0answers
16 views

PHP - MySQL arsort

Please help me with the following problem. I got an sales table on the database , that contain name , date , price_out for the sale. I want to show in a table TOP10 price_out's But if i order DESC , ...
0
votes
0answers
10 views

How to use PHP Laravel Binance web sockets?

In Laravel I made a test command and following this example implemented websocket client. It runs fine, but I am clueless how to launch it on server. Controller? Does it keep running after page is ...

15 30 50 per page
1
2 3 4 5
95109