for a project I need to make a PHP file that gives back a reservation response and in the Heading of the response I need to have a Bold heading in big letters that says “Thank you John Smith for your …
Regex discard catch between strings
I wrote this regex: (?<![.#])bMY_STRINGb(?![#])(?!.*(;video)) With the intention to search for a string not containing . or # preceding it, and no # succeeding, it also checks if at the ending does not contain the word ;video. I’m trying now in how I could also check for if between the found string e…
How to get rid of intl deprecation message with symfony 5
Since I updated my project from symfony 4.4 to 5.0, I have on all my pages the following deprecation warning (only warning I’m having) : Please install the “intl” PHP extension for best …
How do you access the public Spamhaus DBL service?
The Spamhaus DBL is intended to be used to find domains that have poor reputations of sending spam. According to their documentation you should be able to test that it is working by looking up the host or dig response for ‘dbltest.com.dbl.spamhaus.org’ and it should respond with ‘dbltest.com…
IlluminateDatabaseQueryException: SQLSTATE[42S02]: Base table or view not found: 1146 Table  (truncated
I’ve created an API using Laravel v5.8. This API has one endpoint that recieve some parameters and create 1 row on a database table. When I call to this endpoint using Postman, it works. But… I’ve …
UPDATE MySQL record of selected value from dropdown list
I’m just learning MySQL/PHP and I’m trying to update a mysql record of a selected value from the dropdown list. I have read through several tutorials, and tried to apply them, but I cannot get this working… What I want : I got a dropdown list with two options (Approved, Disapproved). I want …
PHP query response to populate HTML dropdown (loop thru 2D array)
I am getting exactly what I need from my PHP code and query; except I am having a really difficult time brining that data up to the front-end in order to populate an HTML dropdown. Here is what I have on the PHP side; all working fine Here is the jQuery; the response console log is only the flag (which)
Does PHP only work with Apache, or can I make it work with my own c ++ server?
Does PHP only work with Apache, or can I make it work with my own c ++ server? For example, can I send a request from my c ++ program to php, so that php runs “file.php” and then returns the result to my c ++ program? Answer PHP is an interpreted language. Besides using it through Apache mod_php, …
How to extract sub data out of arrays
I am using SIMPLE HTML DOM Scraper in PHP trying to get some statistics for various sports teams index.php $html = file_get_html(“https://www.teamrankings.com/nfl/trends/ats_trends/”); …
Rename “Select options” button on products archive for sold out products
I have a shop and each product that’s sold out is still referring to the product page despite it’s unavailability. The button “product options” still exists. So I found this code that’s …