PHP




CS267

Chris Pollett

Feb 10, 2021

Outline

Introduction

Configuring Your Crawl

Crawl Options

Page Options

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