Jump to content

Gayner

Members
  • Posts

    549
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Gayner's Achievements

Advanced Member

Advanced Member (4/5)

0

Reputation

  1. Rofl u guys give me warning for just saying the s word but ur so retarded that u think that u think that i am the same person.
  2. no he's not.. u *I'm having trouble behaving properly* i am Gayner i am a different person this guy lives in freakin indian, lol (TO PHP SENISIE}
  3. a Alias just for my account ?
  4. $host = $_SERVER['HTTP_HOST']; $host_upper = strtoupper($host); $login_path = @ereg_replace('admin','',dirname($_SERVER['PHP_SELF'])); $path = rtrim($login_path, '/\\'); $message = "Thank you for registering with us. Your account has been activated... *****LOGIN LINK*****\n http://$host$path/login.php Thank You Administrator $host_upper ______________________________________________________ THIS IS AN AUTOMATED RESPONSE. ***DO NOT RESPOND TO THIS EMAIL**** "; @mail($to_email, "User Activation", $message, "From: \"Member Registration\" <auto-reply@$host>\r\n" . "X-Mailer: PHP/" . phpversion()); ok so it works but when i get my message its like this: It says MAILED BY-CP02.Stablehost.com I don't want to show MY SHARED HOSTING PROVIDEr.. LOL How do i FIX?
  5. HE personally helps me on msn.. that's whyi made this topic lol
  6. rand - And yes, It's more a convenience for the people helping you, when you help yourself. i did look on google what am i supposed to search? random generator php well go try it. it's all random thanks tho. The VERY first result I get when I search up "random generator php" gives me: http://php.net/manual/en/function.rand.php silly i get this: http://www.webtoolkit.info/php-random-password-generator.html lol
  7. rand - And yes, It's more a convenience for the people helping you, when you help yourself. i did look on google what am i supposed to search? random generator php well go try it. it's all random thx tho.
  8. so like a php function that each time it's refreshed it generates a number 1 through 10 and i can echo it out?
  9. Based on what I've just told you, what do you think? a) user have to refresh page b) does php automatically run query after 5seconds I guess ur right, sorry about this... Just php so confusing for me..i try my hard tho and i learn alot from you guys.. just sometimes it get's really complicated.. i try my best i will learn it eventually, lol thanks... i found a online script online and just reverse engineering it now... thx
  10. has nothing in it just a variable i can use so my query doesn't run each time a refresh happens only when a user logs out or after 5 seconds..? So if i use that, will the user have to refresh page for it to work or does php automatically run query after 5seconds ?
  11. Ok i got a session $_SESSION['rofl']; but i need a IF FUNCTION SO: if $_SESSION['rofl'] < 5seconds run mysql_query("DELETE FROM uonline WHERE time<$timech"); How will i do this ? thanks
  12. $result = mysql_query("SELECT * FROM uonline WHERE session='$ses'"); $num = mysql_num_rows($result); if($num == "0"){ $result1 = mysql_query("INSERT INTO uonline (session, time)VALUES('$ses', '$time')"); }else{ $result2 = mysql_query("UPDATE uonline SET time='$time' WHERE session = '$ses'"); } $result3 = mysql_query("SELECT * FROM uonline"); $usersonline = mysql_num_rows($result3); echo "There are: <b>".$usersonline."</b> users online"; mysql_query("DELETE FROM uonline WHERE time<$timech"); ?> I got this but.... why does it use DELETE FROM ? EDIT: Now i got this it works but how do i still don't know why it uses DELETE FROM UAONLINE EACH REFRESH?? $ses = session_id(); $time = time(); $timech=$time-5; $result = mysql_query("SELECT * FROM uonline WHERE session='$ses'"); $num = mysql_num_rows($result); if($num == "0"){ $result1 = mysql_query("INSERT INTO uonline (session, time)VALUES('$ses', '$time')"); }else{ $result2 = mysql_query("UPDATE uonline SET time='$time' WHERE session = '$ses'"); } $result3 = mysql_query("SELECT * FROM uonline"); $usersonline = mysql_num_rows($result3); echo "There are: <b>".$usersonline."</b> users online"; mysql_query("DELETE FROM uonline WHERE time<$timech"); this works but why does it use DELETE query at the end? EDIT::: OK so that query deletes all the sessions after 5seconds.. but that is dumb runnning a query every refresh is there anyway i can make it so it only runs after 20seconds? or 10seconds?
  13. How the hell do i go about doing this? lol my users table, like on some sites like this 1 at bottom u can see everyone that is online, i want to only show people that last clicked in 3minutes or less or don't show them online? But all i got is my user's table and no brain i even searched googled and tried to find a script to fetch online users but am lost,.. thx?
  14. if(isset($_POST['cancel'])) { // cancel } elseif(isset($_POST['confirm'])) { // confirm } edit: oops cagey posted
×
×
  • Create New...

Important Information

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.