Tag: php
🤖 AI Guestbook — #php educational data only
|
|
Last 30 days
Agents 82
Claude 77SEMrush 3PetalBot 1Bing 1
PetalBot 119SEMrush 20Google 17ChatGPT 13Bing 10Perplexity 7Ahrefs 5Sogou 2
ChatGPT 5kAmazonbot 4kScrapy 3.6kPerplexity 3kGoogle 2kAhrefs 1.8kSEMrush 1.3kUnknown AI 1kClaude 685Bing 574Meta AI 503PetalBot 428Majestic 229Sogou 77Qwen 45Common Crawl 18DuckDuckGo 10Yandex 9Twitter/X 6You.com 2ShapBot 2NotebookLM 2
Most referenced — #php
password_hash() — Native Bcrypt (PHP 5.5) 2Undefined Array Key / Offset Errors 2MySQL charset=utf8mb4 2PDO Fetch Modes 2PDO Named Placeholders 2PDO lastInsertId() 2PDO Transactions 2PDO Error Handling 2
How they use it
crawler 22.5k
crawler_json 1.6k
rag 1
pre-tracking 284
Tag total24.4k pings
Terms pinged464 / 464
Distinct agents21
Reflection API
PHP 5.0+
PHP's built-in introspection system for examining classes, methods, properties, and parameters at runtime.
3mo ago
PHP advanced
Regex in Loop
PHP 5.0+
1
Compiling and executing the same regular expression on every iteration of a loop — hoist the pattern outside.
3mo ago
Performance intermediate
Regex Syntax
PHP 5.3+
Regular expression syntax — anchors, quantifiers, character classes, groups, and alternation — the building blocks for pattern matching in PHP and all languages.
3mo ago
Regex intermediate
register_globals (Legacy Audit)
PHP 5.0+
A removed PHP setting that automatically created global variables from GET/POST/COOKIE input, enabling trivial variable injection attacks.
CWE-473 OWASP A3:2021
3mo ago
PHP beginner
9.8
Remote File Inclusion (RFI)
PHP 5.0+
An attacker tricks include() or require() into loading a PHP file from an attacker-controlled remote URL, achieving code execution.
CWE-98 OWASP A3:2021
3mo ago
Security intermediate
9.8
serialize() / unserialize()
PHP 5.0+
PHP's native serialisation functions can trigger arbitrary code execution via magic methods when deserialising untrusted data.
CWE-502 OWASP A8:2021
3mo ago
PHP intermediate
9.8
Event-triggered, stateless functions managed by a cloud provider — you deploy code, the provider handles servers, scaling, and availability.
3mo ago
Cloud intermediate
session_regenerate_id()
PHP 5.0+
Generates a new session ID after login — the primary defence against session fixation attacks.
3mo ago
PHP intermediate
Snapshot Testing
PHP 7.0+
A technique that captures the serialised output of a component or function on first run, then compares future runs against that snapshot — detecting unintended changes.
3mo ago
Testing intermediate
Soft Delete Pattern
PHP 5.0+
Marking records as deleted with a flag or timestamp rather than removing them, preserving data for audit trails and recovery.
3mo ago
General beginner
SPL Data Structures
PHP 5.3+
1
PHP's Standard PHP Library provides efficient built-in data structures: SplStack, SplQueue, SplHeap, SplMinHeap, SplDoublyLinkedList, and more.
3mo ago
PHP advanced
Spread Operator (...)
PHP 5.6+
Unpacks arrays or traversables into function argument lists or array literals; also used for variadic parameters.
3mo ago
PHP intermediate
Static Methods & Properties
PHP 5.0+
3
Class-level methods and properties that exist independently of any instance — useful for utilities and factories, but harmful when overused.
3mo ago
PHP intermediate
String Interpolation & Heredoc/Nowdoc
PHP 5.0+
PHP's double-quoted strings and heredoc syntax interpolate variables; nowdoc is the single-quoted equivalent — each with distinct escaping rules.
3mo ago
PHP beginner
strip_tags()
PHP 5.0+
2
Removes HTML and PHP tags from a string — not a reliable XSS defence on its own.
3mo ago
PHP intermediate
Superglobals ($_GET, $_POST, $_SERVER…)
PHP 5.0+
PHP's built-in global arrays that provide access to request data, environment, and server variables — all potentially attacker-controlled.
3mo ago
PHP beginner
Test Data Builders
PHP 7.0+
A pattern for constructing test objects with sensible defaults that can be selectively overridden — reducing test setup noise and making the relevant data explicit.
3mo ago
Testing intermediate
Test Fixtures & setUp() Best Practices
Managing test state with setUp()/tearDown(), object mothers, and factories — keeping tests isolated, readable, and fast.
3mo ago
Testing intermediate
Test Isolation Strategies
PHP 7.0+
Ensuring each test starts from a known clean state — using database transactions, in-memory fakes, or container resets so tests don't bleed state into each other.
3mo ago
Testing intermediate
Storing dates as UTC and converting to local timezones only for display — prevents DST bugs, ambiguous times, and incorrect date arithmetic.
3mo ago
i18n intermediate