Im executing an interactive linux console application using php proc_open(). The application is yewtube (forked from mps-youtube). It allows you to search youtube and play youtube audio from the command line. Here is my code to launch the app:...
I'm new to VScode coming from PHPStorm only cause Github Copilot chat is better than PHPStorm. I'm having trouble setting up PHPUnit Test Explorer for VSCode. I always get this annoying error:
Error: MySQL shutdown unexpectedly. This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method. Press the Logs button to view error logs and check the Windows Event Viewer for more clues If...
I uploaded my laravel application on server . when I run the server I got an error like this . my php version -PHP 8.2.15 (cli) (built: Jan 20 2024 14:16:39) (NTS) . How to solve this
Symfony\Component\Process\Exception\LogicException The Process...
Im developing a rest API using PHP and I needed to use a file in two differents endPoints. In the case I have a Login/Register endpoint and a Orders endpoint that are using my tokenService that I'm showing bellow.
I have a LAMP server configured in docker for local development. It was an Ubuntu 16, Apache, PHP 7.2, MySQL 5.6 setup, so I can run something like this:
docker run -d -p 80:80 -v ${PWD}:/app --name website_test lamp-server:latest
I just encountered an error while programming PHP. The thing is that I used spl_autoload_register inside the init.php file but could not load the classes inside the classes folder. I make sure that the classes inside the files in the classes folder...
When i host i want to access both frontend and backed works. Please I need someone to help how to arrange this folders in public/build/asset so that it may work on my server. I use WordPress server
public function up() { Schema::create('produits', function (Blueprint $table) { $table->id(); $table->string('reference')->nullable(); $table->string('libelle')->nullable(); $table->string('entrepot_id')->nullable();...
I want to create a wordpress website where users can register and upload data and admin can check user profile and data and users can login and check their profile and any data updated by admin, basically users like patients will create profile and...
I am currently using a table that uses a show columns query to echo all the columns into checkboxes. The below code works for that. I tried to create another query right under the query to search a different table that has the same columns and if...
I've built a pretty extensive application on my local machine. One of the most important features of it is importing data into some of the provided PDF's form fields using pdftk.
I'm attempting to put the app in more of a production environment...
I've taken over my companies WordPress site after the web company we used went bust. I'm not a strong programmer, so bare with me. I'm trying to edit the metadata fields on our WooCommerce admin order page. For example, where it says...
I Got a WooCommerce store with the Shipstation for WooCommerce plugin installed. They provide a simple PHP function to send custom field data associated with an order to ShipStation. Here's the snippet:
I have A-Z rows. I need to fetch & display data based on the Alphabets (only if data is present in DB for the particular alphabet). Or else the particular Alphabet row needs to be empty. See Image below.
I have a Wordpress plugin. There is a form in the plugin's index.php file. I want to send this form data to my article.py file in pythonanywhere, save it here and then send a response to index.php. But I think I'm doing something wrong somewhere....
I want to enable sqlite for a website running with php 8.3. This website should use sqlite, but when I try to install it (like in php 8.2) sudo apt install php8.3-sqlite3 it doesn't work. How to install sqlite in php 8.3 ?
I'm strugling with a nested SELECT query that I want to prepare.
$sql = $wpdb->prepare( SELECT (SELECT Level FROM $bodyReaction WHERE UserID = %d ORDER BY Date DESC LIMIT 1, $currentUserId) AS BodyReaction, (SELECT Level FROM $eyeToHand WHERE...
Can you explain me the reason why SimpleXMLElement returns an empty object for non-existent XML-elements on the first level, but not for any layer below?
See this code:
$xml = simplexml_load_string(''); echo Type of A: . gettype($xml->Foo->A) ....
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете добавлять вложения