I have two tables: destinations and entry:
In the destinations table: dest_id (AI) and destination;
In the entry table: id (id), target_id (relative to destination id of the destinations table)
I created a query to insert the first...
Until recently, I had never heard of phtml , however recently I see that it is being used a lot, mainly by some frameworks (such as Zend2).
Since I can usually put html content inside a .php file, I ask myself what is the use of...
According to the PHP Manual , from the PHP 7 version you can define anonymous classes.
Example:
class SomeClass {}
interface SomeInterface {}
trait SomeTrait {}
// Instanciamos a classe anonima aqui:
var_dump(new class(10) extends SomeC...
I was left with this question after reading a HTML question . I have mined only with PHP, only with HTML, with PHP and HTML ... and I did not notice any problems ...
Can it become a problem on the server, or in some other way? Will rendering...
I have a system where the files the client is going to send me are all in file DOC or DOCX . However, you may want to download this document in TXT format.
Is there any simple way to convert DOC or DOCX to...
In the PHP documentation, there is a class called EmptyIterator
When I look at the documentation for the EmptyIterator::rewind() method, it says:
No operation, nothing to do. (No operation, nothing to do)
And the...
I was asked to develop an application with multi tenancy architecture in the PHP language using MySQL as a database.
After reading various materials and posts online, I had a question. How to model the application itself?
I have two option...
I'm trying to redeem the last id on the bank with lastInsertId() of the PDO, but nothing appears.
OBS: I'm using Postgre.
<?php
try {
$dbh = new PDO('pgsql:host=localhost;port=5432;dbname=bancocjweb1', 'postgres', '1...
I have an Apache / 2.4.10 (Ubuntu) server running a website in php 5.5. But I'm creating a new site and it needs php 5.6. Is it possible to have two versions of php installed on my server and use each one in different folders?
How to make a redirect 503 (maintenance code) on every site, but leave only one URL that can be accessed?
Server: Linux (Apache) with PHP 5.5 and MySQL.