Category "php"

How to display table header in every page using FPDF library?

just need your help with my code. My question is how can I get the table header from the previous page and access it on the remaining pages? If I have a large d

PhpSpreadSheet Class ZipArchive not found Error

I've just downloaded PhpSpreadsheet package via composer and I tried to generate an Excel spreadsheet. But all I get is an error "Class ZipArchive not found ".

Fetch files from next cloud storage and display in Laravel website

I have a website built with Laravel. I need to fetch files from my nextcloud storage and display in the website. I have successfully installed sabre/dav to crea

Laravel 5.2: Unable to locate factory with name [default]

I want to seed database when I use this public function run() { $users = factory(app\User::class, 3)->create(); } Add three user in database but wh

PHP Startup: Unable to load dynamic library 'openssl' in Ubuntu

I get the error message in the question's title, or to be exact I get this message PHP Startup: Unable to load dynamic library 'openssl' (tried: /usr/lib/ph

CodeIgniter 3 is generating a session file on each request, why?

I use CodeIgniter (v3.1.11) for my webapp and files as session_driver. The session library is autoloaded and configured like this $config['sess_driver']

Correctly determine if date string is a valid date in that format

I'm receiving a date string from an API, and it is formatted as yyyy-mm-dd. I am currently using a regex to validate the string format, which works ok, but I c

Difference between PHP 5.3 to PHP 7.x

My project is running on PHP 5.3. Now I want to upgrade PHP to a higher version as 7.x. Before the update I tried to search difference and complexity but could

Loading data from MySQL and populating dropdown select with jQuery Mobile, PHP

I am developing a PhoneGap application that gets some information from MySQL Database. I am struggling when I try to open a HTML page that contains two select i

How to set time with DateTime modify?

Ok, we have 2018-04-09T10:00:00 How to set time in: DateTime::createFromFormat('Y-m-d\TH:i:s', $periodauction)->modify('-1 day, +4 hour')->format('Y-m-d

Android Volley getParams() method not getting called for JsonObjectRequest

I have overrided getParams(), and mEmail, mUsername etc. are globally declared. @Override public Map<String, String> getParams() throws AuthFailureError

Stop caching for PHP 5.5.3 in MAMP

Installed MAMP on a new Macbook with PHP 5.5.3. Reload and refresh do nothing. Still nothing. Google around for a few minutes trying to find out what is wrong,

Why isn't my PHP exception working?

I am new to exceptions in PHP or any language really. I am trying to catch an exception if a user enters an invalid textual timezone ("xxxxxxxxxx" in this case)

Select option menu read from database and use it's values

<?php mysql_connect("localhost", "root","") or die(mysql_error()); mysql_select_db("tnews2") or die(mysql_error()); $query = "SELECT name,id FROM categories

Dynamic table in HTML using MySQL and php

I've seen many posts about how to build a table in HTML with PHP and Mysql, but my problem is, that I often change the headers of MySQL columns. Is there any wa

PHP, Static Analysis, and Recursive Type Checking

I'm looking at a Database ORM that uses an array to define the WHERE clause, e.g. $articles->find('all', [ 'OR' => [ 'category_id IS NULL',

Unable to guess the mime type as no guessers are available Laravel 5.2

So I'm getting this when I want to submit my form: Unable to guess the mime type as no guessers are available (Did you enable the php_fileinfo extension?) I h

protect images from being copied

Im looking for reliable solutions to protect images from being copied.. My customer (photographer) would like to avoid customers copying her pictures without bu

Laravel query builder binding parameters more than once

I'm trying to bind the same value to some parameter in a raw query (Laravel 5.2) //this is a non practical example ,only for clarify the question DB::table('us

How to add a heading in between checkout fields of WooCommerce

I am customizing the WooCommerce checkout page fields. I want to add a heading (text) in between the fields. I have reordered the fields like this add_filter('w