mam tutaj taki skrypcik ksiege gosci tylko nie wiem jak zrobic tak zeby mozna bylo wpisywac polskie znaki jak ¶æñ±ê¼¿³ó oraz znaki specjalne prosze o modyfikacje tego pliku z gory dziekuje
<?
############### .::Comments are indicated by the # symbol - you can erase all of these if needed.
############### .::Author: Jeffrey F. Hill
############### .::Website: www.Flash-dB.com
############### Begin GuestBook Script #####################################
##The first 3 lines use a regular expression to match a pattern then replace it
with nothing. The only reason for this is so we only allow necessary characters to be entered
into the guestbook. This also takes out slashes which are sometimes added in the
post headers to make the string friendly. You can erase or take these lines out if you want.
$Email = ereg_replace("[^A-Za-z0-9 \@\.\-\/']", "", $Email); $Comments = ereg_replace("[^A-Za-z0-9 \@\.\-\/']", "", $Comments);
$Website = ereg_replace("[^A-Za-z0-9 \@\.\-\/'\~\:]", "", $Website);
################################################################################
####
########### Reading and Writing the new data to the GuestBook Database #########
####
if ($Submit == "Yes") {
#Next line tells the script which Text file to open.
$filename = "GuestBook.txt";
#Opens up the file declared above for reading
$fp = fopen( $filename,"r"); $OldData = fread($fp, 80000
);
#Gets the current Date of when the entry was submitted
$Today = (date ("l dS of F Y ( h:i:s A )",time()));
#Puts the recently added data into html format that can be read into the Flash M
ovie.
$Input = "Imie: $Name<br>Email: <u><a href=\"mailto:$Email\">$Email</a></u><br>Strona: <u><a href=\"http://$Website\" target=\"_blank\">$Website</a></u><br>Komentarz: $Comments<br><i><font size=\"-1\">Data wpisu: $Today</font><br><br>.:::.";
#This Line adds the 'GuestBook=' part to the front of the data that is stored in the text file. This is important because without this the Flash movie would not be able to assi
gn the variable 'GuestBook' to the value that is located in this text file
$New = "$Input$OldData";
#Opens and writes the file.
$fp = fopen( $filename,"w+"); }
################################################################################
####
########## Formatting and Printing the Data from the Guestbook to the Flash Movi
e ##
#Next line tells the script which Text file to open.
$filename = "GuestBook.txt";
#Opens up the file declared above for reading
$fp = fopen( $filename,"r"); $Data = fread($fp, 80000
);
#Splits the Old data into an array anytime it finds the pattern .:::.
$DataArray = split (".:::.", $Data);
#Counts the Number of entries in the GuestBook
$NumEntries = count($DataArray) - 1;
print "&TotalEntries=$NumEntries&NumLow=$NumLow&NumHigh=$NumHigh&GuestBook="; for ($n = $NumLow; $n < $NumHigh; $n++) {
if (!$DataArray[$n]) {
Print "<br><br>No More entries"; }
}
################################################################################
####
############### End GuestBook Script
?>