php

PHP here document (heredoc) examples

PHP here doc FAQ: Can you share some examples of the PHP "here" doc (heredoc) syntax?

"Here" documents in many languages are provided as a way to address the following problems:

OpenSSO and PHP - PHP login scripts to manually authenticate OpenSSO users

PHP OpenSSO FAQ: Can you share a PHP script to manually authenticate OpenSSO users during a login process?

The link popularity of OpenSSO, WebSeal, and web tools

I've been working on a single sign-on project lately, evaluating both OpenSSO and IBM's trio of TIM, TAM, and WebSeal, and I noticed that Google has only 32,000 links to real WebSeal resources. By contrast, even as a young open source project, OpenSSO already has over 100,000 links.

Out of curiosity, I decided to google a variety of web languages and tools, and here are my search results:

OpenSSO and PHP - A custom PHP script to manually log out of an OpenSSO single sign-on session

This blog post is part of a series of planned articles regarding OpenSSO and PHP, specifically how to use the OpenSSO Identity Services from within a PHP application.

OpenSSO and PHP - A simple PHP script to retrieve OpenSSO identity information

Here's a simple PHP program I wrote to test how PHP works with OpenSSO, specifically how it works with OpenSSO identity information.

I saved this file with the name info.php, then put it in a directory on my Apache web server that is protected by an OpenSSO login policy. To access this page, I enter the URL for the page in my browser and try to access it, with the URL being something like this:

Is there a package manager for PHP?

PHP FAQ: Is there a package manager for PHP?

Answer: Yes, PEAR (the PHP Extension and Application Repository) is what you need. As the website describes it, "PEAR is a framework and distribution system for reusable PHP components."

Here's an example of how I used PEAR to install the HTTP_Request library, showing both what I typed, and the output from PEAR as it performed the installation.

Where are PHP libraries installed?

In my inaugural PHP entry, an answer to a simple question: Where are PHP libraries installed?

Answer: I just installed a PHP library named HTTP_Request using PEAR (the PHP Extension and Application Repository), and it was installed into the following directory:

PHP check your libxml2 installation error

I was installing PHP on a CentOS (Linux) server yesterday (using the configure script), and ran into an error related to my libxml2 installation. Here's the complete error message that shows up at the end of the configure script output:

Getting PHP, MySQL, and Mac OS X to work together

Update: If you're interested in using PHP and MySQL on Mac OS X, these days I recommend skipping this article and using MAMP, which I describe in my Mac OS X MAMP tutorial.

On switching back from Rails to PHP

In the latest release of Dr. Dobbs, Michael Swaine reports that "after two years trying to make Ruby on Rails do what he wanted, Derek Sivers went back to PHP and finished the job in two months." Actually, here's a direct link to Derek Sivers' post, including his seven reasons he switched back from Rails to PHP, and what he learned from Rails.

 

Syndicate content