Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
1
10php
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yu Kimiduka
10php
Commits
874c4b47
Commit
874c4b47
authored
Jul 07, 2016
by
君塚 悠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
プログラム作成(list_header.php:ヘッダ情報の取得)
parent
06566f4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
list_header.php
php/php10/day02-2/list_header.php
+27
-0
No files found.
php/php10/day02-2/list_header.php
0 → 100644
View file @
874c4b47
<html>
<head>
<title>
ヘッダ情報の取得
</title>
</head>
</html>
<body>
<h1
style=
"background: #CCCCCC"
>
ヘッダ情報の取得
</h1>
<table
border=
"0"
>
<?php
$aryHeader
=
array
(
"HTTP_USER_AGENT"
,
"HTTP_ACEPT_LANGUAGE"
,
"HTTP_PEFERER"
);
foreach
(
$aryHeader
as
$name
)
{
?>
<rt>
<th
style=
"color:#FFffFF;background:#0086b2;
width:80pt;"
>
<?php
print
(
$name
)
?>
</th>
<td>
<?php
print
(
$_SERVER
[
$name
]);
?>
</td>
</rt>
<?php
}
?>
</table>
</form>
</body>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment