Category "php"

How to enable curl on Wordpress

How to enable cURL on Wordpress. I have install cURL on my server and I have also enabled in PHP.ini file(removed ; before extension) but still I'm getting err

Using PHP Sessions for High Traffic with AJAX and CodeIgniter

I was reading the CodeIgniter 3 documentation on using sessions and high traffic with AJAX, and it recommends using session_write_close(). My application has fu

Encrypt in php and decrypt in Dart(flutter)

Does anyone have an idea about encrypting response from my php api and decrypting data in local using dart. I'm using flutter for my mobile application. Thank

Laravel PackageManifest.php: Undefined index: name

I'm just trying to deploy my application and I just ran composer update on my server and I got the following error: In PackageManifest.php line 122: Undefined

SilverStripe unable to populate multiple member Childs

I have 3 type of users salesman => has many buyers buyer => has many agents agent has none child so I want to list all the buyers associate with that sale

Refresh specific HTML content that retrieves data from MySQL

So i have a form that that does a simple calculation, depending on the users input. If the results is a certain value then it stores that value in a database, t

Error with creating a laravel foreign key

I'm trying to create a relational database and this is the error i get SQLSTATE[HY000]: General error: 1005 Can't create table somedumbtable.meals (errno: 150

wordpress : How to specify the cause "This site can’t be reached"

I have used Let's Encrypt for WordPress on AWS Lightsail. I found that it was expired because I didn't renew it. So I tried the Let's encrypt to renew, the bi

Python: For loops print only last element of a list

I am using a shared webspace and I can't install the dotenv libiary for php, but I can use the dotenv libiary for python to call enviorment variables from outsi

Can't find vendor/autoload.php for Ratchet

I SSH'd to my server and installed Composer and Ratchet. http://socketo.me/docs/install claims all I need to do now is include "require DIR . '/vendor/autoload.

Undefined Auth0 dependencies

I have a Lumen application by following this tutorial ( Tutoorial Lumen ) I ran this command : composer require auth0/auth0-php , it works without failure And a

Remove country code from phone number?

Below is the code I am currently using to format phone numbers for databasing. However iOS is putting a +1 or 1 (country code) before it in autofills. How can I

How to hide products with stock less than 2 on WooCommerce shop page

I own an e-Commerce business and i want to hide the products that have a stock of less than 3. This is what i came up to: add_action( 'woocommerce_product_que

Laravel Delete and Update

I created a Post and a Get Request, Looks like this: public function getAllCustomer() { $customer = \App\model\Customer::get(); return $view = View::m

How to show selected value using javascript in laravel

i want to show the selected value to the select option, the value actually selected but cannot show that value on select option form. for example i have a 3 val

live goelocalization of objects within a limited area with an existing data

I want to present and visualize multiple objects (with their height represented in cylinders, their directions, and other characteristics ) in a limited area o

How to create custom authentication in laravel 8?

How to create custom authentication in laravel 8 with a preexisting table (but with table name Users_system not Users) and this table (Users_system) is full of

Changing font color in javascript

Here's my javascript code: if (password != confirmPassword) $("#divCheckPasswordMatch").html("Passwords do not match!"); else $("#div

Cannot connect to own websocket server when on secured domain

I deployed a standalone WebSocket server in google cloud. Following the laravel-websockets configuration, I can connect to my server when I go to <ip addres

How to install PHP composer inside a docker container

I try to work out a way to create a dev environment using docker and laravel. I have the following dockerfile: FROM php:7.1.3-fpm RUN apt-get update &&am