search
Article Tags
PHP Tutorial
Stress-test your PHP App with ApacheBench

Stress-test your PHP App with ApacheBench

Stress Test Your PHP Apps: A Beginner's Guide to Apache Bench Sponsored by New Relic. Thank you for supporting the sponsors that make SitePoint possible! Unexpected traffic surges can cripple your application. Whether it's a viral Reddit post or a su

Feb 21, 2025 am 10:02 AM
Using Solarium with SOLR for Search - Solarium and GUI

Using Solarium with SOLR for Search - Solarium and GUI

This article, the second in a four-part series, details using Solarium with Apache SOLR for search functionality. The first part covered core concepts, installation, and setup. This part focuses on Solarium installation, building a sample applicatio

Feb 21, 2025 am 09:49 AM
Build a Drupal 8 Module: Routing, Controllers and Menu Links

Build a Drupal 8 Module: Routing, Controllers and Menu Links

Core points Drupal 8 moves from procedural programming to object-oriented architecture and integrates code from other sources through the Proudly Found Elsewhere program, including important additions such as Symfony components. Creating a Drupal 8 module requires defining the necessary folder structure and files, such as the .info.yml file. The custom and contribution module folders are now directly under the root directory modules/, while the core code is moved to a separate core/ folder. "Routing" in Drupal 8 replaces the hook_menu() function in Drupal 7, using Symfon

Feb 21, 2025 am 09:45 AM
Building and Processing Forms in Symfony 2

Building and Processing Forms in Symfony 2

This tutorial explores two approaches to form handling in Symfony 2. The first demonstrates embedding form elements directly within the view and manually processing them in the controller. The second utilizes Symfony's form system for object-oriente

Feb 21, 2025 am 09:33 AM
Building a Multi-Page Wizard-like Form in Drupal

Building a Multi-Page Wizard-like Form in Drupal

Drupal simplifies form creation by handling the underlying HTML. You define the fields, and Drupal generates the form. While simple forms are straightforward, complex forms with numerous fields can overwhelm users. This article details building mu

Feb 21, 2025 am 09:25 AM
PHP Extension Development with PHP-CPP: Object Oriented Code

PHP Extension Development with PHP-CPP: Object Oriented Code

This article continues the exploration of building PHP extensions using PHP-CPP, focusing on object-oriented features. We'll create a Complex number class to illustrate the library's capabilities. To begin, we'll adapt the PHP-CPP project template.

Feb 21, 2025 am 09:17 AM
Getting Started with PHP Extension Development via PHP-CPP

Getting Started with PHP Extension Development via PHP-CPP

In your dealings with PHP, you may come to consider writing a PHP extension yourself. There are several reasons I can think of that motivate me to do so: to extend PHP functionality for some very particular usage (mathematics, statistics, geometric

Feb 21, 2025 am 09:06 AM
Time Complexity of Algorithms

Time Complexity of Algorithms

As a programmer or web developer, you've likely crafted algorithms for diverse tasks – searching data, sorting arrays, pathfinding, etc. But what defines a good algorithm? Correctness is paramount – ensuring it functions as expected for all inputs

Feb 21, 2025 am 09:01 AM
Using Solarium with SOLR for Search - Setup

Using Solarium with SOLR for Search - Setup

Core points Apache SOLR is a powerful search platform that provides full-text search, faceted search, result highlighting and geospatial search. It can be integrated with any programming language via HTTP, and for PHP users, the Solarium project simplifies this integration. SOLR runs as a web service, creating search indexes for documents. It allows full text searches and adds additional information to the indexed search document. One of its most useful features is facet search, allowing users to filter search results. Installing SOLR involves setting it on your operating system, starting the server and verifying the installation through the administrative interface. The pattern defines the fields of the indexed document, which can be customized by copying the default directory.

Feb 21, 2025 am 09:00 AM
Repository Design Pattern Demystified

Repository Design Pattern Demystified

Core points The warehouse pattern acts as an intermediary between the application and the data source, allowing the construction of a decoupled architecture to achieve scalability without the need for hard-coded dependencies. This mode allows the application to focus on receiving and sending data for saving without paying attention to the details of the data source. It does this through a public API (interface) through which all users communicate with the data source. While the warehouse pattern offers benefits such as separation of concerns and ease of unit testing, it also adds a layer of abstraction that can complicate small applications. Implementing the warehouse pattern requires dependency injection, which allows the data warehouse to be bound to the warehouse interface. This avoids hard-coded coupling and facilitates interface-oriented programming. What is the warehouse model?

Feb 21, 2025 am 08:54 AM
Image Scraping with Symfony's DomCrawler

Image Scraping with Symfony's DomCrawler

A photographer friend of mine implored me to find and download images of picture frames from the internet. I eventually landed on a web page that had a number of them available for free but there was a problem: a link to download all the images toget

Feb 21, 2025 am 08:47 AM
Building a Drupal 8 Module: Blocks and Forms

Building a Drupal 8 Module: Blocks and Forms

Core points Drupal 8 introduces a new concept of blocks as a plugin, allowing them to be reused throughout the site. Blocks can be created in the UI and used multiple times. In Drupal 8, you can create a custom block that returns configurable text. This can be done by creating a new block type in the UI and reusing it throughout the site. Drupal 8 allows adding configuration forms to blocks. This enables the user to edit the block, specify a name in the text field, and the block will then display a greeting to that name. Drupal 8 module development involves creating a simple form. Form definition functions are grouped together in a class. The submitted form value is simply printed in

Feb 21, 2025 am 08:45 AM
IronMQ and Laravel: Setup

IronMQ and Laravel: Setup

This two-part tutorial guides beginners on using push queues with Laravel for background tasks, illustrated by a photo upload and resizing example. Resizing images is time-consuming; this approach prevents user delays by offloading the task. We'll a

Feb 21, 2025 am 08:43 AM
Dynamic Menu Builder for Bootstrap 3: Item and Link

Dynamic Menu Builder for Bootstrap 3: Item and Link

In part 1, we prototyped the end product and wrote the main Menu class, which serves as the menu manager – a container to hold all sub-units (items and links). In this part, we’ll build the remainder of the classes and demonstrate the menu builder’s

Feb 21, 2025 am 08:42 AM

Hot tools Tags

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

vc9-vc14 (32+64 bit) runtime library collection (link below)

vc9-vc14 (32+64 bit) runtime library collection (link below)

Download the collection of runtime libraries required for phpStudy installation

VC9 32-bit

VC9 32-bit

VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version

PHP programmer toolbox full version

Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit

VC11 32-bit

VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use