PHP




CS267

Chris Pollett

Sep 6, 2023

Outline

Introduction

Getting Help Within The App

Media Updater

Controlling Jobs of the Media Updater

Search Sources

Other Things Yioop Can Do

Introduction to PHP

Getting and Running PHP

Example PHP file

Consider the file test.php:

hello world
<?php
echo "hello world";
?>
yeah!!
<?php
echo "okay";

If we ran this from the command line using:

php test.php

This would output:

hello world
hello worldyeah!!
okay

More On PHP

In-Class Exercise

Configuring PHP

PHP configuration

You can see what PHP's configuration settings are in use by the following small program

<?php
phpinfo();

Primitives and Variables