mirror of
https://github.com/php/web-php.git
synced 2026-03-31 03:32:23 +02:00
30 lines
594 B
PHP
30 lines
594 B
PHP
<?php require("header.inc"); ?>
|
|
|
|
<h1>HTML Embedding</h1>
|
|
<ul>
|
|
<li>SGML style: <? code ?>
|
|
<li>XML style: <?php code ?>
|
|
<li>ASP style: <% code %>
|
|
<li>Javascript style: <script language="php"><br><tt>code</tt></script>
|
|
</ul>
|
|
<?php example('
|
|
<HTML><HEAD>
|
|
<TITLE>Search results for "<?php print $query; ?>"</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
|
|
'); ?>
|
|
|
|
<h1>Traditional CGI Programming</h1>
|
|
<?php example('
|
|
#!/usr/bin/perl
|
|
|
|
print "<HTML><HEAD>\n";
|
|
print " <TITLE>Search results for \"$query\"</TITLE>\n";
|
|
print "</HEAD>\n";
|
|
print "<BODY>\n";
|
|
|
|
'); ?>
|
|
|
|
<?php require("footer.inc"); ?>
|