Skip to content Skip to footer
Phil's Blog Logo Phil's Blog Logo
Menu
  • Blog Home

Day: 21 December 2024

PHP

How to get country codes using the ODOO xmlrpc API and PHP.

December 21, 2024 / December 21, 2024 by Philip Newman | Leave a Comment

To fetch country codes from an Odoo instance using PHP 8.2, you’ll need to use the Odoo XML-RPC API. Below is an example of how to achieve this: Step 1: Set Up PHP Environment Ensure you have PHP 8.2 installed with the necessary extensions, including the cURL extension, which is used for making HTTP requests. […]

Read more »

PHP PHP 8.2

PHP

Using PHP to turn an HTML table into an Array()

December 21, 2024 / December 21, 2024 by Philip Newman | Leave a Comment

To convert an HTML table into a PHP array in PHP 8.2, you can use the DOMDocument class, which provides a structured way to parse and extract data from HTML. Here’s an example of how to achieve this: Example Code: Output: Explanation: This approach is flexible and can handle more complex HTML tables with nested […]

Read more »

PHP 8.2
Sidebar

Recent Posts

  • How to Integrate XMPP Chat into a Social Network Web Frontend
  • SEO vs GEO: What is the Difference in 2026?
  • From a Single PHP Bug to Autonomous Codebases: My AI Journey
  • Beyond dns_get_record: Building a Lightweight DNS Health Checker in PHP 8.3
  • Managing User Profiles in Sitemaps and Controlling Search Engine Indexing

Categories

  • AI Prompts
  • Dovecot
  • Dribble
  • JavaScript
  • Linux
  • PHP
  • Postfix
  • Website SEO
  • WooCommerce
  • Wordpress
  • XMPP
© 2026 Phil's Blog