Skip to main content

PHP Collective

A collective where developers working with PHP can learn and connect about the open source scripting language.
1.5m Questions
+45
14.9k Members
+71
Contact

Pinned content

View all 3 collections

PHP admins have deemed these posts noteworthy.

Pinned
61 votes
5k views
2 minute read
How-to guide

Start learning PHP — Useful resources for beginners and advanced

Start learning PHP — Useful resources for beginners and advanced! If you're wondering where to start from learning the PHP language or needing some more knowledge to deep dive into the language, you ...
RB Projects's user avatar
Pinned
34 votes
8k views
Collection

Common Mistakes to Avoid in PHP

A list of real issues most beginners encounter when using PHP.
Sasha's user avatar
  • 101

Can you answer these questions?

View all unanswered questions

These questions still don't have an answer

0 votes
0 answers
14 views

Progress bar display issue with setinterval

I have a jQuery script that makes an Ajax call to a PHP file (process.php) to retrieve the status of a database (The upload.php and import.php parts are working fine and not relevant here I would say),...
0 votes
0 answers
26 views

(2025) Fatal error: Uncaught Error: Call to undefined function pg_connect() with Apache Lounge, PHP and PostgreSQL

I'm trying to setup up a web application environment on Windows 11, using Apache Lounge, PHP and PostgreSQL. I am an absolute beginner. I've worked through older posts of the same issue and have had ...
0 votes
0 answers
39 views

chmod() and utime error keep occurring in the site even after the permissions and ownerships are set

I am working on a client site, In the wordpress theme file I have added a cron.php file to perform some cron job functions. It was executing fine without any issues till last few days. When I checked ...
0 votes
0 answers
35 views

Hotmart - issues to send order via API from my website to hotmart

I am using Laravel 12 with mysql and deploying my solution using docker to coolify. The payment process I want to setup using Hotmart. I have finished a product configuration and I want to use hotmart ...
2 votes
0 answers
61 views

Laravel PATCH requests hanging when running on Sail

I'm using the Laravel 12 + React + Inertia starter kit. When I run the application using Sail, my PATCH requests never complete. The PATCH endpoint is being hit properly, executes the logic/DB updates,...

Learn something new
These are the most recent articles in PHP Collective
1 vote
187 views
9 minute read
How-to guide

Quick guide to Laravel package development

Contents Introduction Types of packages Characteristics of a package The Laravel package! Components of a Laravel package Example of a Laravel package Creating your Laravel package 1- Package ...
Yousha Aleayoub's user avatar
2 votes
747 views
2 minute read
How-to guide

Properly removing API from Laravel project

Sometimes a development team may decide to remove all API functionality from a Laravel project for various reasons, such as: No longer needing any API, and shifting focus to web application with ...
Yousha Aleayoub's user avatar
9 votes
2k views
1 minute read
How-to guide

How to trim   (or non-breaking space) in PHP?

The main problem is the way trim() function works. One cannot reliably trim a substring using this function, because it takes its second argument as a collection of characters, each of which would be ...
Your Common Sense's user avatar
25 votes
57k views
3 minute read
Knowledge article

Evolution of Type Declarations in PHP

Introduction: PHP, being a dynamically typed language, traditionally allowed flexibility in variable types, providing both advantages and challenges in code maintenance and robustness. However, with ...
alkhatibdev's user avatar
61 votes
5k views
2 minute read
How-to guide

Start learning PHP — Useful resources for beginners and advanced

Start learning PHP — Useful resources for beginners and advanced! If you're wondering where to start from learning the PHP language or needing some more knowledge to deep dive into the language, you ...
RB Projects's user avatar