This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Start the session | |
session_start(); | |
?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<link rel="stylesheet" type="text/css" href="lab7.css"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
font-family: 'ubuntu'; | |
} | |
fieldset { | |
margin-left: 10%; | |
margin-right: 10%; | |
width: 80%; | |
font-size: 0.8em; | |
} | |
@media screen and (max-width: 699px) and (min-width: 520px) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Start the session | |
session_start(); | |
?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<link href='http://fonts.googleapis.com/css?family=Ubuntu:400,400italic,700,700italic' rel='stylesheet' type='text/css'> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//magic method | |
class Foo | |
{ | |
public function __call($method, $arguments) | |
{ | |
echo "Called $method","\n"; | |
} | |
static public function __callStatic($method, $arguments) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo '<pre>'; | |
$msg = ''; | |
for ($i = 1; $i < 10; $i++) { | |
$msg = ''; | |
for ($j = 1; $j < 10; $j++) { | |
$msg .= $i * $j . (($i * $j < 10) ? ' -- ' : ' - '); | |
} | |
echo $msg . '<br>'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$TPLL = 0; | |
$T = 0; | |
//$TPSC = HV; | |
//$TPSV = [HV,HV...HV] | |
$STOC = 0; | |
//$STOV=[0,0...0] | |
//$ITO=[0,0...0] | |
$NSTVN = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* ImageCube by Lars Vandenbergh | |
* 3rd septmber 2004 | |
* | |
* A PHP script for generating static 3D views of the 3x3x3 Rubik's Cube | |
*/ | |
// initialize paramaters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$i5=0; | |
foreach ($items5 as $item5) { | |
if ($i5 <= 0) { | |
printf('<div class="sports-flex-parent boxx-shadow" style="margin-top: 50px">'); | |
printf('<div class="sports-item " >'); | |
printf('<img src="%s" style="max-height: 300px">', $item5['image5']); | |
printf('</div>'); | |
printf('<div class="sports-imgtext">'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$url3 = "http://rss.nytimes.com/services/xml/rss/nyt/US.xml"; // xmld.xml contains above data | |
$feeds3 = file_get_contents($url3); | |
$rss3 = simplexml_load_string($feeds3); | |
$items3 = []; | |
foreach($rss3->channel->item as $entry3) { | |
$image3 = ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$url3 = "http://rss.nytimes.com/services/xml/rss/nyt/US.xml"; // xmld.xml contains above data | |
$feeds3 = file_get_contents($url3); | |
$rss3 = simplexml_load_string($feeds3); | |
$items3 = []; | |
foreach($rss3->channel->item as $entry3) { | |
$image3 = ''; |