<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Robert,<br>
Here are a couple of links that I found helpful<br>
<a href="http://www.w3schools.com/php/default.asp">W3schools</a><br>
<a href="http://www.php.net/manual/en/">PHP manual</a><br>
<br>
Like Rob said, make sure that u save the file with the extension of
.php instead of .htm/html.<br>
The PHP code is enclosed in special <span class="link">start and end
processing instructions <code class="code"><?php</code> and <code
class="code">?></code></span> that allow you to jump into and out
of "PHP mode."<br>
<br>
Whenever the browser parses or sees the <?php tag it parses what
follows as php and not html<br>
Make sure that u close the php statement when it ends ?><br>
<br>
<? is shorthand for <?php <br>
Shorthand declarations only work when the php.ini file (located on the
server)<br>
is set to accept shorthand<br>
<br>
How to see what the php.ini file is set to.<br>
<br>
Write a new file like this(don't include anything else) and save it as
phpInfo.php<br>
<div class="example-contents"><small></small>
<div class="phpcode"><small><code><span style="color: rgb(0, 0, 0);"><span
style="color: rgb(0, 0, 187);"><?php<br>
<br>
</span><span style="color: rgb(255, 128, 0);">// Show all information, defaults to INFO_ALL<br>
</span><span style="color: rgb(0, 0, 187);">phpinfo</span><span
style="color: rgb(0, 119, 0);">();<br>
<br>
</span><span style="color: rgb(255, 128, 0);">// Show just the module information.<br>
// phpinfo(8) yields identical results.<br>
</span><span style="color: rgb(0, 0, 187);">phpinfo</span><span
style="color: rgb(0, 119, 0);">(</span><span
style="color: rgb(0, 0, 187);">INFO_MODULES</span><span
style="color: rgb(0, 119, 0);">);<br>
<br>
</span><span style="color: rgb(0, 0, 187);">?></span>
</span></code></small></div>
<small> </small></div>
<br>
Upload this php file to your server and then point your browser to to it<br>
So if you have a domain like yourname.com, <br>
point your browser to yourname.com/phpInfo.php<br>
and it will list disclose all the information about your php.ini
configuration settings<br>
<br>
hope this helped<br>
<br>
<br>
Rob Dege wrote:
<blockquote
cite="mid:b8691b130811192210k5d78f526le373a9afd931bc1@mail.gmail.com"
type="cite">I started to write a really long detailed explanation
about how php works and intertwines with HTML. But then I realized
that I was making the question much more difficult than what it had to
be. So yes, php code can be embeddedinto an HTML document, and here's
a simple example. But as Tony said, you have to rename the document
with a .php extension so that your web server knows to expect php code
within the document. Otherwise, your code will appear as regular text.<br>
<br>
<br>
------ snip ------<br>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<a
moz-do-not-send="true" href="http://www.w3.org/TR/html4/loose.dtd">http://www.w3.org/TR/html4/loose.dtd</a>"><br>
<HTML><br>
<HEAD><br>
<TITLE><? echo "test page"; ?></TITLE><br>
<Body><br>
<br>
<p align=center><br>
Post 10 URL links using PHP<br>
<?<br>
// Something a lil more complex<br>
$loop=1;<br>
<br>
while ($loop <=10) {<br>
echo " <a href=\"test-$loop.html\"> $loop </a>";<br>
<br>
if ($loop < 10) { echo " | \n"; }<br>
$loop++;<br>
}<br>
?><br>
</p><br>
<br>
</Body><br>
</HTML><br>
------ snip ------<br>
<br>
<br>
Hope this helps<br>
<br>
-Rob<br>
<br>
<div class="gmail_quote">On Thu, Nov 20, 2008 at 12:17 AM, Robert
Wolfe <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:nflug@muzzlethem.com">nflug@muzzlethem.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi
all!<br>
<br>
I was wondering, can a PHP script be embedded anywhere inside an HTML
file<br>
and if so, how?<br>
_______________________________________________<br>
nflug mailing list<br>
<a moz-do-not-send="true" href="mailto:nflug@nflug.org">nflug@nflug.org</a><br>
<a moz-do-not-send="true"
href="http://www.nflug.org/mailman/listinfo/nflug" target="_blank">http://www.nflug.org/mailman/listinfo/nflug</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
-Rob<br>
<br>
Ben Franklin Quote: "They that can give up essential liberty to obtain
a little temporary safety deserve neither liberty nor safety."<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
nflug mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nflug@nflug.org">nflug@nflug.org</a>
<a class="moz-txt-link-freetext" href="http://www.nflug.org/mailman/listinfo/nflug">http://www.nflug.org/mailman/listinfo/nflug</a>
</pre>
</blockquote>
</body>
</html>