Optimize the PHP script
15 USDOn the entrance the URL link to the image is submitted and the script the image is slightly unified, puts a watermark.
When you open a page with a lot of such images, the page opens very long (sometimes the image server is unavailable, brakes, SSL is not set, the image is missing, etc.).
Plus, I would like to optimize cache, but so that the disk is not stuck.
And the problems:
1 . Long opened images
2nd A huge number of outgoing connections (the load on the network card increases)
The script is on the link:
HTTPS://pastebin.com/ZpjrXQQ4
It needs to be optimized.
Имеется PHP скрипт проксирования изображений.
На вход подается URL ссылка на изображение и скрипт изображение немного уникализирует, ставит водяной знак.
Когда открываешь страницу с множеством таких изображений, страница открывается крайне долго (иногда сервер с картинкой не доступен, тормозит, SSL не настроен, изображение отсутствует и тд).
Плюс, хотелось бы оптимизировать кеширование, но так, чтобы не забивался диск.
Итого, проблемы:
1. Долго открываются изображения
2. Огромное количество исходящих соединений (увеличивается нагрузка на сетевую карту)
Скрипт находится по ссылке:
Нужно оптимизировать.
Client's feedback on cooperation with freelancer
Optimize the PHP scriptGreat work, thank you! The problem is white.
Profile deleted | Safe
-
Hello to
I will be glad to take your task and discuss the details of the work. I have experience in scripts optimization. I can replace the code.
Здравствуйте
Буду рада взяться за ваше задание и обсудить детали работы. У меня есть опыт оптимизации скриптов. Могу заодно прорефакторить код
-
159 1 0 Good day, you’ve been interested in your project, write to me at the ls, the details of the project and the price will be discussed there.
Доброго времени суток, заинтересовал ваш проект, пишите мне в лс, детали проекта и цену обсудим там.
-
301 1 0 Good time of the day, I will do everything quickly, quality, cheap. I understand this topic well and will be happy to cooperate.
Доброго времени суток, сделаю все быстро, качественно, недорого. Хорошо разбираюсь в этой теме, буду рад сотрудничеству.
-
3029 379 7 1 You need to rewrite all of this under JavaScript, the image by the browser to download and you can put a watermark. The resource will only be used by the browser, well or
even partly the server, you need to get the links from wherever. Вам все это надо переписать под Javascript, картинку браузером загрузить и можно наложить водяной знак. Ресурс будет использоваться только браузера, ну или возможно еще частично сервера, нужно же откудато брать ссылки эти
=- =- =- = - = - = = = = = = = = = = = = = = = = = = = = = = =
=- =- =- = -= -= -= -- =- = -= -= -= -= -= - =- =- =- = -= -= -= -= -= - = -= -= -
-
3872 270 2 5 I have great experience in solving these problems.
Please call me, I will do it ;)
Привет, имею огромный опыт в решении подобных задач...
Обращайтесь, сделаю)))
-
переход на http 2 рассматривали ? можно сколь угодно долго пытаться оптимизировать скрипт, но все равно упретесь в пропускную способность http
-
Вам банально нужно построить пулл задач и ajax.
-
Current freelance projects in the category PHP
Laravel developer with skills working with SphinxHello, I am looking for a Laravel developer who can help improve the current functionality of one of the projects. Skills in working with Sphinx are important, as well as the ability to work with JS at a more or less basic level. Please specify the cost of 1 hour of your work in… PHP, Web programming |
Develop a responsive website and integrate it into the Wordpress engineAdaptively layout a multi-page website and integrate it into the Wordpress engine. Budget and deadlines are specified in the project. It is mandatory to report on the progress of the work. Edit all website content. After development, it will need to be transferred to our hosting… HTML and CSS, PHP ∙ 10 proposals |
Change the appearance of Woocommerce CheckoutNeed to create an order checkout page (standard Woocommerce page) like on avtozvuk.ua store. Also, add delivery methods "Nova Poshta" and "Ukrposhta". Additionally: Integrate SMS notifications for order status and SMS verification. In the application, write two amounts. PHP, Web programming ∙ 4 proposals |
Set up a Wordpress/WooCommerce storeInstall and configure Wordpress (Phlox Pro theme) + WooCommerce Set up Ukrainian translation, main page appearance, product page, and product catalog. Configure the order placement process. Add delivery modules Nova Poshta, Ukrposhta, payment (Monobank acquiring), Keu crm We… PHP, Web programming ∙ 10 proposals |
"Magento 2.4.6 adding a product through attributes"Problem: The website has many products that can be sold together with other products. Products need to be added through an attribute in the configuration product. For example: A computer mouse is available in different colors, and a mouse pad can be purchased with it (although… PHP, Web programming ∙ 3 proposals |