1. if you have index.php, then just get rid of index.html and print your
content via print or echo statements. 

2. 

$ip = getenv("REMOTE_ADDR"); 
print "<td>IP Address: " . $ip . "</td>";

(there's a few ways you can do that - this is just the standard I use)

Regards

-M

-----Original Message-----
From: Labunski [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 27, 2003 9:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Printing out html

Hello, I have just entered PHP "world" and I have many questions. I have
already made PHP script that send's htm form values via e-mail.
Now I want to build PHP based web page..

>> 1.question>>
For example I have index.php file, but I want HTML (index.html) file to be
"printed out". How php code should look like?

>> 2.question >>
I know that code for IP address ($ip) is:
  $ip = getenv ("REMOTE_ADDR");

For example I have Index.php file, and I want an IP adders to be viewed in
the TD:

<td> IP address </td>

How should I write it?


Sorry for my dumb questions and bad english, Regards, Lab.

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to