I try to make a verification process for my PHP preloading script. In order to ensure that I don’t have un-managed classes I’m running a script in CLI like: I’m getting a warning because one of the class cannot be complied du to missing dependencies. E.g.: That’s great but the issue I …
Tag: php
Is it possible to use placeholders on ?
I’m currently working on at the displaying of information from a database. I was making a summary site where you can only see the important things of a table. After that i made the first element as an <input type=”submit”> in a <form>, so u can click it and come to the detail sit…
PHP fpm – value is NULL for a ZEND_INI_PARSER_ENTRY
I have a server running LEMP stack that hosts a wide range websites. During the night, all the sites got shutdown and the message “502 bad gateway” Is displayed. I followed the stream of errors and concluded that php7.4-fpm was the issue. I need help to figure out how to solve the error below. NOT…
Laravel Sail is not running on my macbook m1
I tried using Laravel 8 Sail on my Mac M1 Computer. I have successfully installed docker , php 7.4 & used composer to install Laravel. I am trying to use sail but I am stuck at the part which says Could not open input file: /var/www/html/artisan Below are the details: Here is the docker file: After runnin…
Laravel database, what data type should I use to store a passport number?
I’m in the process of developing a Client Registration page for a travel agent. The client needs to save the passport number as a record in the MySQL database. I would like to know the data type ideal for mentioning in the migrations page for storing a Passport number. Usually, a passport number contain…
Azure Web App, PHP 7.4, OCI8 (Oracle Instant Client 12.2.0.1.0)
We’re trying to lift an existing PHP 7.4 app from an internal server running on Windows Server 2012 to an Azure Web App. The PHP app uses OCI8 to connect to an Oracle database. Everything (except the database connection) works fine without the OCI8 extension enabled. We’ve followed the guide at ht…
Submit a Form to Custom Route in osclass
I am making an osclass plugin. I have added a page for my plugin in the admin section of the site. I have also created a route for my plugin. What I would like to do is create a form on my plugin’s page in the admin. The action attribute of this form will be the base url of my
How can i replace all specific strings in a long text which have dynamic number in between?
I am trying to replace strings contains specific string including a dynamic number in between. I tried preg_match_all but it give me NULL value Here is what i am actually looking for with all details: In my long text there are values which contains this [_wc_acof_(some dynamic number)] , i.e: [_wc_acof_6] i w…
How to display data inside a single form from database
I am trying to display data from database inside single input form. Let’s say I have 3 rows with column called name. This is how I am getting the rows: So how do i display the data in one input form instead of three? like in the picture attached. Answer When you are doing this: You are essentially creat…
How to send the PHP value back to the HTML form?
I’ve been trying to build a program using PHP cookies. The user interface basically looks like this. My basic program The logic is this. When the user enters the product name, price and quantity and clicks on the “Add” button, the total value which is price*quantity will fall on the “T…