Jacob Kid Mania Creator
New Member
- Messages
- 341
- Reaction score
- 0
- Points
- 0
Here Is My PHP Totoural
This needs to be in a .htaccess file.
Here is PHP sendmail code
I created a script that sends a email to the emails I secify when I go to that page. Very handy for notifycation of member signups.
Here is some PHP code that works well together. This code will modify a TXT file and show it on a PHP page
This Modifys a TXT file. Change filename.txt in 3 places
This reads a file
This PHP code will get a users IP and turn it into a varible called $REMOTE_ADDR
If This Toutorial Helped You Please Donate A Few Credits, Click The
Or Rate It
Code:
<Limit GET>
order deny,allow
deny from 0.0.0.0
</Limit>
This needs to be in a .htaccess file.
Here is PHP sendmail code
PHP:
<?php
$from='you@yourdomain.com';
$to='you@yourdomain.com';
$headers="From: $from\n";
$headers.="Reply-to: $from\n";
mail($to,'Subject','Body',$headers);
?>
I created a script that sends a email to the emails I secify when I go to that page. Very handy for notifycation of member signups.
Here is some PHP code that works well together. This code will modify a TXT file and show it on a PHP page
This Modifys a TXT file. Change filename.txt in 3 places
PHP:
<?
if($_POST['Submit']){
$open = fopen("filename.txt","w+");
$text = $_POST['update'];
fwrite($open, $text);
fclose($open);
echo "Update Sucessful. Use The Back Button To Go Back. Updated Text: ";
echo "";
$file = file("filename.txt");
foreach($file as $text) {
echo $text."<br />";
}
}else{
$file = file("filename.txt");
echo "<form action=\"".$PHP_SELF."\" method=\"post\">";
echo "<textarea Name=\"update\" cols=\"50\" rows=\"10\">";
foreach($file as $text) {
echo $text;
}
echo "</textarea>";
echo "<input name=\"Submit\" type=\"submit\" value=\"Update\" />\n
</form>";
}
?>
This reads a file
PHP:
<?
readfile("filename.txt");
?>
This PHP code will get a users IP and turn it into a varible called $REMOTE_ADDR
PHP:
<?
$domain = GetHostByName($REMOTE_ADDR);
?>
If This Toutorial Helped You Please Donate A Few Credits, Click The
Last edited: