Php

Create and download CSV in PHP

Consider the possibility of quickly creating a CSV file with automatic file download. Consider the formation, separators and header for the ability to download the file.

305 0

Long-term storage of the basket in the online store

Consider options for popular options for storing goods in a shopping cart in an online store. Let's outline the pros and cons of such storage. Consider options for long-term storage of the basket.

1991 0

$_SERVER[DOCUMENT_ROOT] in CLI or Cron

When running the script from the console, there is no DOCUMENT_ROOT in $_SERVER. Let's try to get around this in our own ways, catch the file directory.

2271 0

Analysis of loaded parts of Php code with xhprof

After developing any tool in PHP, the question becomes how resourceful the created code is and what elements it still affects. Let's take a look at xhprof installation, configuration, and how to work with xhprof.

1664 0

Authorization 1C on the site PHP_AUTH_USER on CentOS apache

Faced the problem of authorization 1s on the site. For some reason, the server did not accept the PHP_AUTH_USER and PHP_AUTH_PW parameters from it. Let's take a closer look at the solution and bypassing these parameters in $_SERVER .

1052 0

Worker Gearman from Cli Console to Php

The Gearman worker needs to be constantly running in a loop in order to function properly. From the server side, this can be done with a single request through the Cli console. Consider the robot on a simple example.

981 0

What is MVC or how to start writing a website?

Let's consider creating a simple MVC project that will respond to a static link in the browser, without managing the $_GET parameters. The link will break into the path to the files and use the desired controller, model and view file.

1778 2