Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Christopher Jones:
Installing XAMPP for PHP and Oracle Database
Feb 23, 2018 @ 15:47:03

On the Oracle and PHP blog today Christopher Jones has posted a tutorial showing you how to install Oracle support in PHP on a XAMPP setup. Oracle support requires the installation of the OCI8 PHP extension.

This post shows how to install XAMPP on Windows to run PHP applications that connect to a remote Oracle Database.

XAMPP is an open source package that contains Apache, PHP and many PHP 'extensions'. One of these extension is PHP OCI8 which connects to Oracle Database.

The post walks you through each of the steps required to get the combination up and running:

  • Downloading and installing XAMPP
  • Ensuring thread safety is enabled
  • Editing the php.ini to enable the OCI8 module
  • Installing the Oracle Instant Client

The post also includes some example code you can use to ensure the connection is up and working, selecting information from the default database.

tagged: oracle xampp tutorial install configure database

Link: https://blogs.oracle.com/opal/installing-xampp-for-php-and-oracle-database

CloudWays Blog:
“The Main Thing I Stress Is That You Determine Your Real Needs” Reveals MySQL Expert
Apr 05, 2016 @ 15:16:58

The Cloudways blog has posted an interview today with Dave Stokes, the MySQL Community Manager at Oracle and frequent speaker at PHP conferences and user groups.

Dave Stokes is MySQL Community Manager at Oracle and a certified MySQL 5.6 database administrator. He has vast experience of DB administration and has been MySQL Certification Manager at SUN. In his interview with Cloudways, he talks about the start of his career, compares MySQL with MariaDB and other MySQL forks in some detail, also talks about NoSQL in detail and, in the end, he gives wonderful advice to students. Enjoy the wide-ranging interview.

Dave answers questions about:

  • How he got started as the MySQL Community Manager
  • His suggestions for choosing one fork of MySQL for you needs
  • How MySQL competes with other database types (like MongoDB)
  • Where people can follow the MySQL community
  • His advice to beginners and students looking to build a career in database development

You can read Dave's answers to these and more questions in the full interview.

tagged: cloudways interview davestokes mysql community oracle

Link: http://www.cloudways.com/blog/interview-dave-stokes/

CloudWays Blog:
Co-Founder Of PHPwomen, Ligaya Turmelle Talks About PHP, MySQL And PHPTek
Jan 26, 2016 @ 17:02:09

The CloudWays blog has posted their latest in their series of interview with members of the PHP community. In their latest they talk with Ligaya Turmelle about PHP Women, Oracle, MySQL and php[tek].

Ligaya Turmelle is a MySQL support engineer at Oracle and a co-founder of PHPwomen. She has also attended Oracle conferences as a speaker. In this interview, she shares her experience as a speaker and has also offered her advice on creating a schema of a database and deploying it.

In the rest of the interview Ligaya answers questions about:

  • When and why she made the switch from PHP to database developer
  • Some of her advice as a speaker to those wanting to speak
  • What some of her key roles are at Oracle working with MySQL
  • Suggestions for optimizing databases and preventing them from becoming "resource hogs"

Be sure to check out the full interview for her answers to these and other questions.

tagged: cloudways interview ligayaturmelle mysql oracle phpwomen cofounder

Link: http://www.cloudways.com/blog/interview-ligaya-turmelle/

Oracle Coherence Blog:
Getting Started With The Coherence Memcached Adaptor (and PHP)
Aug 20, 2014 @ 15:55:45

As Chris Jones mentions in his latest post to his OTN blog, there's a tutorial that's been posted by David Felcey showing how to get started with Oracle Coherence via the memcached adapter in PHP. Coherence is Oracle's own version of a key/value storage that focuses on performance and scalability.

Coherence 12c (12.1.3) adds support for Memcached clients to directly store data a in Coherence cluster using the Binary Memcached protocol. This post outlines how to configure the Coherence Memcached Adaptor and includes a simple PHP example to show how Memecached clients can connect to a Coherence cluster.

He includes the XML configuration you'll need to create/modify on the Oracle side to make the memcached connections work and explains the different parts. With that in place, he moves on to the PHP example, showing a simple memcached request to store and retrieve a string. It's almost transparent to the PHP user save some of the configuration options required to make it work.

tagged: oracle coherence introduction memcached adapter tutorial

Link: https://blogs.oracle.com/OracleCoherence/entry/getting_started_with_the_coherence

Oracle Technology Network:
Installing PHP on Oracle HTTP Server 12c
Apr 25, 2014 @ 14:41:26

On the Oracle Technology Network site today they've posted an updated version of their guide to getting PHP installed on Oracle HTTP Server 12c, complete with all the commands you'll need to get the job done.

This article shows how to install PHP on Oracle HTTP Server 12c (OHS). PHP is a hugely popular, interpreted scripting language commonly used for web applications. OHS is the web server component for Oracle Fusion Middleware. It is based on the Apache HTTP Server. OHS includes a FastCGI module which can easily be configured to use PHP's bundled FastCGI Process Manager ("PHP-FPM"). PHP-FPM has become a standard way of installing PHP. I

The remainder of the post is broken down into the steps you'll need to get it all installed and working:

  • Install Oracle Linux
  • Install Oracle HTTP Server
  • Install Oracle Instant Client 12c
  • Install PHP
  • Configure PHP-FPM
  • Configure OHS
  • Start PHP-FPM & OHS

A simple test script (a phpinfo) is also included to help you ensure everything is running as it should be.

tagged: oracle install http server 12c tutorial guide

Link: http://www.oracle.com/technetwork/articles/dsl/jones-php-ohs-2194096.html

Chris Jones:
Tracing Silex from PHP to the OS with DTrace
Nov 06, 2013 @ 18:31:23

Continuing on with his look at using DTrace in with PHP, Chris Jones has a new post in the series showing how to add traces to Silex-based applications, including sample output.

In this blog post I show the full stack tracing of Brendan Gregg's php_syscolors.d script in the DTrace Toolkit. The Toolkit contains a dozen very useful PHP DTrace scripts and many more scripts for other languages and the OS. For this example, I'll trace the PHP micro framework Silex, which was the topic of the second of two talks by Dustin Whittle at a recent SF PHP Meetup. His slides are at Silex: From Micro to Full Stack.

He includes a brief guide to getting the DTrace support up and running based on instructions in a previous post based on some pre-build Oracle linux packages. He links to the latest DTrace Toolkit and the downloads page to get the latest version of Silex. He sets up a super-basic Silex application (one route, "hello") and shows how to run the DTrace against it. His sample output shows both the PHP files being called and the functions/methods called inside them resulting in an output over a thousand lines long.

tagged: silex dtrace trace execution oracle package toolkit tutorial

Link: https://blogs.oracle.com/opal/entry/tracing_silex_from_php_to

Chris Jones:
DTrace PHP Using Oracle Linux 'playground' Pre-Built Packages
Oct 03, 2013 @ 14:12:07

Related to some of his other posts about using DTrace with PHP, Chris Jones has a new post about using pre-built packages to make using it even easier.

We've released DTrace-enabled PHP 5.5.4 RPMs to make testing DTrace on Oracle Linux easier. As a result, the manual PHP install steps listed in Using PHP DTrace on Oracle Linux can be skipped. There are updated Betas of the "UEK3" Linux Kernel 3.8.13-16 and the dtrace-utils tools available too. With these, you now can DTrace PHP applications under Apache or with php-fpm, as well as command line PHP scripts.

He includes the full instructions on how to install the Oracle Linux distribution and grab the Oracle Instant Client libraries used for the "playground" packages. Next up is the PHP install - a quick call to yum - and a simple script showing how to set DTrace probe. Some sample output of the trace is shown and an slight modification to the probe showing how to find only calls from a certain source.

tagged: dtrace oracle linux package playground prebuilt tutorial install

Link: https://blogs.oracle.com/opal/entry/dtrace_php_using_oracle_linux

Chris Jones:
DTrace with PHP Update
Sep 05, 2013 @ 14:06:16

Chris Jones has posted an update to his previous article about DTrace and PHP (found here) and some of the updates Oracle has made to introduce things like "user-level statistically defined tracing" (USDT).

At the end of last year, I blogged about Adding DTrace Probes to PHP Extensions and how Linux's SystemTap could be used to trace the DTrace probe points. Since then, Oracle's Linux's DTrace project has been making great strides. The latest Oracle Linux UEK3 Beta kernel was just released. It comes with DTrace 0.4 and also supports "User-Level Statically Defined Tracing" (USDT) for the first time. This motivated me to make sure PHP DTrace worked well with "real" DTrace, not just with SystemTap's wrappers.

He also includes a list of the other updates in this version like:

  • DTrace build script changes from PHP 5.5 were merged back to PHP 5.4
  • A 'make install' recursive dependency issue that caused Zend/zend_dtrace.d to be deleted was fixed.
  • PHP DTrace configuration now uses the correct PIC or non-PIC objects. This also fixed building PHP when any extensions were built 'shared'.
  • PHP's OCI8 2.0 extension now builds correctly with "real" DTrace.

He finishes off the post with the list of steps you'll need to follow to get this latest version up and running.

tagged: dtrace oracle update systemtap linux

Link: https://blogs.oracle.com/opal/entry/dtrace_with_php_update

Chris Jones:
Using PHP and Oracle Database 12c Implicit Result Sets
Jul 26, 2013 @ 14:12:40

Chris Jones has a new post to his site showing you how to use Oracle 12c's implicit result sets in your code. Note: this functionality is still in development, so the naming/exact functionality might change.

The new Oracle Database 12c "Implicit Result Sets" (IRS) feature allows query results to be returned from a stored PL/SQL procedure (or a PL/SQL anonymous block) without requiring special PHP code. Support for IRS is available in PHP OCI8 2.0.0-devel extension when it is compiled and used with Oracle Database 12c. (OCI8 2.0 can be compiled and used with other versions of Oracle Database but the available feature set is reduced).

He shows a normal fetch loop that calls the oci_* functions and grabs each row with a oci_fetch_row call. He updates this to use an anonymous PL/SQL block (a string) instead that allows for more flexibility. He includes examples that fetch from one table, multiple tables and returns multiple result sets (that can be fetched one at a time) from the same single call.

tagged: implicit result set oracle 12c tutorial multiple single sql plsql

Link: https://blogs.oracle.com/opal/entry/using_php_oci8_2_0

Chris Jones:
Offline Processing in PHP with Advanced Queuing
May 17, 2013 @ 14:49:26

Chris Jones has a new post today showing you how to use Oracle and PHP together to process data offline via the Oracle Streams Advanced Queuing feature.

Offloading slow batch tasks to an external process is a common method of improving website responsiveness. One great way to initiate such background tasks in PHP is to use Oracle Streams Advanced Queuing in a producer-consumer message passing fashion. [...] The following example simulates an application user registration system where the PHP application queues each new user's street address. An external system monitoring the queue can then fetch and process that address. In real life the external system might initiate a snail-mail welcome letter, or do further, slower automated validation on the address.

He includes the SQL needed to create the database and configure the queue system as well as start it up and get it ready for requests. He shows how to push an address into the queue for processing and how to get the results once it has completed in both the SQL and from the oci_* functions in PHP.

tagged: oracle tutorial advanced queue offline processing

Link: https://blogs.oracle.com/opal/entry/offline_processing_in_php_with


Trending Topics: