RE: [PHP] Printing out html
| From: | Mike Brum | Date: | Sun, 28 Dec 2003 05:32:05 +0000 |
| Subject: | RE: [PHP] Printing out html | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-173391@lists.php.net to get a copy of this message | ||
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:romans@skulme.lv]
Sent: Saturday, December 27, 2003 9:47 PM
To: php-general@lists.php.net
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