Бортовой журнал Ктулху

Posts Tagged 'php' [страница 1.5]

php

PHP - язык - рок'н'ролльщик - рожден жить быстро и умирать молодым.

Bitrix: отправка пароля в письме при регистрации

Столкнулся с ситуацией когда пользователю необходимо отправить пароль при регистрации, а сейчас в Битриксе это штатными средствами реализовать нельзя.

Read more...

Bubble Sort in PHP — How the “Bubble” Really Works

Most developers use sort() and never think about what’s inside. But classic algorithms like Bubble Sort are perfect for understanding how sorting logic works step by step. Let’s look at a clean PHP implementation.

Articles tagged

Read more...

Ckeditor, DLE, подсветка кода и орфография

Ckeditor считается самым лучшим (или одним из самых лучших) визуальным редактором для сайтов. Но всегда чего-то не хватает. Например, в нем по умолчанию нет загрузки изображений. В интернете масса разрозненной информации по этому вопросу. Попытаюсь объединить ее в  рамках этой статьи.

Articles tagged

Read more...

Created PHP processor for JQuery DateRangePicker

I've got a string with dates from date picker and diveded it on two parts: `from` and `to`.

Both parts has been converted into time.

Articles tagged

Read more...

Curl без прокси

Бывают ситуации когда Curl автоматически подхватывает системный прокси. Не знаю как так получается, но если нужно сделать запрос к некоторому адресу и нужно полностью исключить использование прокси, делать следующим образом.

Articles tagged

Read more...

Gmail API message.send using PHP and curl

This code example shows how to send email using Gmail API method 'message.send' and PHP.

Articles tagged

Read more...

Graphs in PHP in 5 Minutes (BFS)

A graph is a set of connected points — just like people in a social network, cities on a map, or links between web pages.

Sometimes we need to find the shortest connection — for example, the fewest hops between two people. That’s where Breadth-First Search (BFS) helps.

It explores all neighbors first, then moves level by level — guaranteeing the shortest path in an unweighted network.

Articles tagged

Read more...

Hash Maps vs Loops — Fatality in PHP Performance

Many PHP developers use nested loops for data lookups or joins. But in some cases, a simple hash map (associative array) can make your code several times faster.

Let’s compare them with two short benchmarks (10 000 records each).

Articles tagged

Read more...

include или require на примерах

Так чтобы окончательно закрыть все вопросы касательно функция include и require на примерах покажу разницу в поведении этих функций.

Articles tagged

Read more...

ModX: имя чанка недопустимо

При сохранении чанка возникает ошибка "Такое имя чанка недопустимо!"

Articles tagged

Read more...