|
||||||||||||
|
If you have any doubts with your PHP code please discuss it in the PHP Forum <?php ---- ?> Including an html or php file in another php file <?php include("header.html"); ?> <?php include("header.html"); ?> Code To determine the number of hits in your website : 1.Create a .txt file, say hit.txt. 2. Enter the value 0 in hit.txt and save. 3. Create a php file, say counter.php with the following code...
4. Include the counter.php file wherever you want to display the number of hits. <? print(Date("l F d, Y")); ?> contactus.html <html> <body> <form method="post" action="thankyou.php"> Your Name: </body> </html> thankyou.php <?php $name = $_POST['name']; $todayis = date("l, F j, Y, g:i a") ; $subject = "Message From my site"; $comments = stripcslashes($comments); $message = " $todayis [EST] \n Message: $comments \n $from = "From: $email\r\n"; mail("reachme@worth2read.org", $subject, $message, $from); ?> ------------------- Replace reachme@worth2read.org with the mail id you want to receive the email. It is worth noting that the mail() function is not suitable for larger volumes of email in a loop(ie sending newsletters by accessing mail id from database). This function opens and closes an SMTP socket for each email, which is not very efficient. $ipaddress = getenv("REMOTE_ADDR"); ?> <?php echo $ipi; ?>
Copyright © 2008 www.worth2read.org. All rights Reserved.
Use of this Site is subject to our Privacy Statement |
| ||||||||||
| PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide |
||||||||||||
| Programming PHP |
||||||||||||
| Beginning PHP and MySQL: From Novice to Professional, Third Edition (Beginning from Novice to Professional) |
||||||||||||
| Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems |
||||||||||||
| PHP and MySQL Web Development (3rd Edition) (Developer's Library) |
||||||||||||
| PHP & MySQL For Dummies 3rd edition (For Dummies (Computer/Tech)) |
||||||||||||
| PHP Solutions: Dynamic Web Design Made Easy (Solutions) |
||||||||||||
| Build Your Own Website The Right Way Using HTML & CSS |
||||||||||||
| Learning Web Design: A Beginner's Guide to (X)HTML, StyleSheets, and Web Graphics |
||||||||||||
| Sams Teach Yourself HTML and CSS in 24 Hours (7th Edition) (Sams Teach Yourself) |
||||||||||||