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
+15
17.6k Members
+82
Contact

Pinned content

View all 3 collections

PHP admins have deemed these posts noteworthy.

Pinned
41 votes
10k views
Collection

Common Mistakes to Avoid in PHP

A list of real issues most beginners encounter when using PHP.
Sasha's user avatar
  • 101
Pinned
64 votes
7k 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

Can you answer these questions?

View all unanswered questions

These questions still don't have an answer

Advice
1 vote
0 replies
44 views

AIoT device: Radius Authentication using PHP with Message-Authenticator attribute

We have some AIoT devices and want to authenticate with RADIUS using PHP. The new RADIUS Server ask for the Message-Authenticator attribute and the build-in RADIUS functions of PHP can not do it. How ...
0 votes
0 answers
41 views

VK API Error 15 & 100 when posting photos to community wall via WordPress: "Access denied" and "No photo given" when using group token

I'm developing a WordPress plugin (lakend-crossposter.php) that automatically publishes blog posts to a VK community wall. I'm using the official PHP SDK (vkcom/vk-php-sdk). I'm facing an issue with ...
2 votes
0 answers
82 views

WP Native Shortcodes Failing to Display in JetEngine Listings and Popups – Seeking Assistance =)

The problem: I was designing an online store and needed to perform a simple mathematical calculation between meta fields of custom post types (CPTs). Since there is no clear documentation on how to do ...
-3 votes
0 answers
79 views

WooCommerce: How add a 'Continue Shopping' button to the existing '[Product] has been added to your Basket' message

After pressing the 'Add TO BASKET' button, a "[Product] has been added to your Basket ... View basket" message is displayed. We need to add a 2nd button to this message saying "...
0 votes
0 answers
59 views

PayPal Orders API: shipping.options not persisted / PATCH replace fails when shipping address is missing

Question I’m using the PayPal Orders v2 API and trying to update shipping.options without providing shipping address data. Issue When I create an order with shipping.options but without shipping....

Looking for an extra challenge?

View all bountied questions

These questions have a bounty on them

1 vote
2 answers
207 views
+100

Contact Form 7 message not being sent with WooCommerce cart items

I have two options for checkout an order in the cart on my website: 1. The standard WooCommerce checkout. 2. Ordering through a manager using the Contact Form 7 order form. I'm using code that creates ...

Learn something new
These are the most recent articles in PHP Collective
4 votes
640 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
3 votes
1k 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
13 votes
3k 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
64 votes
7k 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