I have a .htaccess file for route deviation on the server (production) and a router.php file for route deviation using the PHP 7 Built-in server.
php -S 0.0.0.0:8000 router.php
However, I would like to use router.php also in production, w...
I have difficulty getting values inside an array variable in codeigniter Help me understand how this works once and for all
I made a search in the database that is sent to the view by an array:
Controller
$dados= array(
'perfil' => $this-&g...
I'm developing a PHP post system with MySQL.
I need the line breaks that the user enter in textarea to be converted to <br /> .
The variable $texto (contains the contents of the post) goes to the database in the colu...
I need the post summary size on my frontpage to be different from the summary size of the page where all the posts are displayed ( home.php ).
In my file functions.php I put the following code:
//adiciona um novo tamanho de res...
Good afternoon everyone.
I have a form that shows the fields in the form of a table:
echo "<table style='text-align: center; widtd: 280pt;' border='1'>";
// Cabeçalho da tabela:
echo '<tr><td>AAA</td><td>B...
If you cut a page by separating head , nav , etc ... And pull everything with include on index.php , will Google index those cut pages?
I want to separate some parts by creating head.php and nav.php , the...
I'm studying the micro-framework Inphinit . And in the index.php file are declared some constants that left me confused as to its purposes.
Index.php code:
define('INPHINIT_START', microtime(true));
define('INPHINIT_ROOT', rtrim(strtr(dirn...
I have read the following sentence:
AbstractFactory defines an interface for creating a family of related or dependent products without having to explicitly specify classes.
Consider the following adapter:
Adapter.php
names...
Hello, I'm working on an alert system, when a larger than normal data is registered in the database an alert has to appear on the page where the user is browsing. The problem is that I do not know how to check if an element has been added to the...
I created a site for a joinery where the user uploads photos of the work done by the joinery, but when the user uploads photos taken from a certain cell phone, the photos are displayed horizontally on the site, I was able to solve the problem (X...