Category "php"

Combine array with same value and add other [duplicate]

I'm trying to find a way to combine array with the same value, and add other values of associative array. I have an array of something like th

Use Ajax in Fat free framework to render route every 5 seconds

I need for help in fat free I want to use ajax to render to a specific route every 5 seconds But I can't console any data the ajax page and this is my php code

Retrieiving YouTube chat data from archived (completed) livestream

I am trying to figure out how to obtain the chat messages along with their details using the YouTube data API v3. I am able to obtain chat data while the strea

Artisan, creating tables in database

I am trying to create mysql tables in Laravel 5. I created a file in /project/database/migrations called users.php: [...] public function up() { Schema::cr

How to get result of the formula on import xlsx with maatwebsite using Laravel? I get formula and not value of the formula

Please advise! During import of xlsx file I get formula and not result of the Formula. Changed config file excel.php to set 'calculate'=> true, on imports a

Get lat/lon from google maps url ftid (hex)

When using android google maps app share button for a location, it just return a url as intent to other applications like this one: https: // goo. gl / maps/tk

Creating Combinations of Elements

I want to create product option system. I have a form look like this: [![Sample image][2]][2](source: resmim.net) Form's inputs are tag inputs. First input is o

how to identify the web server name of remote host

According to this solution link it shows how to get the web server name for a local web server but how to do the same for a remote server by URL ? i.e. $_SERVE

how to see if database exists with PDO [duplicate]

So I recently decided to switch to PDO due to the mysqli prepared statement complexity and irregularities. This was my mysqli function to test

WooCommerce: Add/display Product or Variation custom field everywhere

Currently using WordPress 5.1.1 and WooCommerce 3.5.7. My WooCommerce store has around 500 products, made up of simple and variable products. Each product natu

How to run or debug php on Visual Studio Code (VSCode)

I can't find a way to run or debug php on Visual studio code, Does anyone know how?

Image Video Thumbnail creating using PHP-FFmpeg

I am using PHP-FFmpeg for video thumbnail genaration. My code is below <?php $video = "a.mp4"; $image = "thumb.jpg"; $frame = $video->frame(FFMpeg\Coordi

how to save and update menu in php laravel

I want to create an admin panel where I can change almost everything of the pages. Should we save every menu-item and its children in a different table in the d

SMTP "Error: DATA not accepted from server!" Opencart 2.3 on InMotionHosting

I've installed a brand new Opencart 2.3.0.2 on Inmotionhosting with all default settings except MAIL settings which I've tried many different combinations. Alth

SMTP "Error: DATA not accepted from server!" Opencart 2.3 on InMotionHosting

I've installed a brand new Opencart 2.3.0.2 on Inmotionhosting with all default settings except MAIL settings which I've tried many different combinations. Alth

Unsure why I am getting: Number of variables doesn't match number of parameters in prepared statement

I am trying to do a simple test but am experiencing errors. I am trying to add the parameters and I have done some research, none of which has helped me underst

WooCommerce Additional Information - if empty, hide

I'm working on an eCommerce project at the moment. I'm using WooCommerce in WordPress. I've got ridden of the product data tabs and displayed product descripti

Access denied for user 'homestead'@'localhost' (using password: YES)

I'm on a Mac OS Yosemite using Laravel 5.0. While in my local environment, I run php artisan migrate I keep getting : Access denied for user 'homestead'@'local

how to search for a file with php

First thing is first. I am not a php developer this is something that is needed for my job so I took it on and I am learning as i go Right now we have an excel

Redis Command To Sort Keys

The Redis command keys * will return a list of all keys and scan 0 is a more recent way to do something similar, but with less blocking. Do any commands exist t