Оптимизайка

Оптимизайка
Рейтинг
396
Регистрация
11.03.2012
Интересы
Программирование, информационные технологии, наука

Replace your homegrown data layer to any SQL or even NoSQL database.

As a first step, you can move your file (base.txt) to the RAM drive (tmpfs, for example) and refactor it structure to avoid of parsing on each request. For example, by adding flag FILE_IGNORE_NEW_LINES to the file() function, you can avoid str_replace's of EOL and so on.

SeVlad, why do you care about this? Is it violate any forum rules?

try add this before getOrderList:

$condition['payment_code'] = array('!=', 'offline');

or:

$condition['payment_code'] = array('ne', 'offline');

or:

$condition['payment_code'] = array('<>', 'offline');

or tell what ORM are you using :)

If the PHP geoip module is available, you can point it to the same database that mod_geoip uses:

geoip_setup_custom_directory('/usr/local/share/GeoIP');

then, query database:

echo geoip_country_name_by_name('127.0.0.1');

If the php geoip extension isn't available, you can change mod_geoip configuration:

GeoIPUseLastXForwardedForIP On

then, query your URL with X-Forwarded-For header:

curl -H 'X-Forwarded-For: 127.0.0.1' http://your.url/script.php

relap.io is engaged in native ads, afair

Pentium Prescott:
Залили доры и шелл на сервер с Ispmanager. Как могли сделать?

/ru/forum/802085 ?

https://forum.antichat.ru/threads/442020/

Всего: 4372