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
Iterating Objects with foreach (Iterator & IteratorAggregate)
PHP 5.5+
3
foreach can traverse any object implementing Iterator or IteratorAggregate, not just arrays — control iteration without exposing internal state.
1w ago
PHP intermediate
Symbol Table Resolution
PHP 5.3+
The compiler phase that maps identifiers (variables, functions, classes) to their declarations, scopes, and types during semantic analysis.
3w ago
Compiler advanced
Regex Escape Sequences
PHP 4.1+
Backslash sequences in regex that either match special characters literally or represent character classes, anchors, and control characters.
3w ago
Regex intermediate
Regex Conditional Patterns
PHP 4.0+
1
Conditional regex constructs like (?(1)yes|no) match different subpatterns depending on whether an earlier group captured.
3w ago
Regex advanced
Loop Style Preferences
PHP 7.4+
Choose the clearest loop construct for the job: foreach for collections, for with index when position matters, while for condition-driven iteration.
1mo ago
Style beginner
Regex Branch Reset Groups
1
A PCRE-specific construct (?|...) that resets capture group numbers across each alternative, so all branches share the same group indices.
2mo ago
Regex advanced
Memory Pressure Detection
PHP 7.0+
Proactively identifying when a PHP process approaches its memory limit so corrective action can be taken before a fatal error.
2mo ago
Performance intermediate
HTTP Cookies in PHP
PHP 7.3+
3
Cookies are small key-value pairs sent by the server via Set-Cookie and echoed back by the browser on every request — PHP sets them with setcookie() before any output, with Secure, HttpOnly, and SameSite flags controlling safety.
3mo ago
PHP beginner
Insecure Deserialization
Deserializing attacker-controlled data can trigger arbitrary object construction and method calls — PHP's unserialize() with untrusted input enables remote code execution via gadget chains in the loaded class graph.
CWE-502 OWASP A8:2021
3mo ago
Security advanced
INSERT ... ON DUPLICATE KEY UPDATE
PHP 5.1+
An atomic MySQL upsert — inserts a new row or updates the existing one if a unique key constraint would be violated.
3mo ago
Database intermediate
Mutex vs Semaphore
PHP 7.0+
1
A mutex allows only one thread to access a resource at a time — a semaphore controls access to a pool of N identical resources.
CWE-362
3mo ago
Concurrency advanced
MySQL charset=utf8mb4
PHP 5.1+
The correct MySQL character set for full Unicode support — including emoji and supplementary characters that the older utf8 charset cannot store.
3mo ago
PHP beginner
MySQL Connection Pooling
PHP 5.1+
1
Reusing database connections across requests instead of opening and closing a new connection on every request.
3mo ago
PHP intermediate
MySQL DSN (Data Source Name)
PHP 5.1+
The connection string passed to PDO specifying the database driver, host, port, database name, and charset.
3mo ago
PHP beginner
A performance anti-pattern where fetching N records triggers N additional queries — one per record — instead of a single JOIN.
3mo ago
Database intermediate
PDO Error Handling
PHP 5.1+
PDO has three error modes — silent, warning, and exception — controlling how database errors surface.
3mo ago
PHP beginner
PDO Fetch Modes
PHP 5.1+
Constants controlling how PDO returns rows — as arrays, objects, or custom classes.
3mo ago
PHP beginner
PDO lastInsertId()
PHP 5.1+
Returns the auto-increment ID generated by the most recent INSERT statement.
3mo ago
PHP beginner
PDO Named Placeholders
PHP 5.1+
Named parameters (:name) in prepared statements — more readable than positional ? placeholders for queries with multiple parameters.
3mo ago
PHP beginner
PDO query() vs prepare()
PHP 5.1+
PDO query() executes raw SQL immediately — prepare() parameterises it. query() must never include user-controlled values.
CWE-89 OWASP A3:2021
3mo ago
PHP beginner
9.8