Jump to content

Twango

Members
  • Posts

    174
  • Joined

  • Last visited

Everything posted by Twango

  1. Twango

    PHP date() Midnight?

    Ugh... can't you just tell me, I dont really understand what you mean.
  2. Twango

    PHP date() Midnight?

    Ugh, I didn't think I needed to be this Specific, what exactly would date("g:i")Return at MIDNIGHT and NOON?
  3. Just wondering, what EXACTLY would the php function date() Return at midnight?Like would it say 12:00 PM, 12:00 AM? Or What?Like if I wanted to test if it was after between 9PM and 12PM (Midnight) What would I do? Thanks.Or should I just use 24 hr time?Thanks.P.S. what would 1AM and 12:01 PM be in PHP 24 hr time? the way w3schools formatted it was freaky.
  4. Twango

    Converting decimal?

    Hi, I'm trying to use this code I made and doesn't really work well.I want, so say a user has 9000 XP, it says "LEVEL 9" (Divided by 1000, obviously)But you get crazy results when you have say, 9812 XP, I want it to still say "LEVEL 9"So... is there any easy code I can use to remove decimals?
  5. Twango

    PHP Local Time

    ~Sigh~ Life is so impossible... grr...
  6. Twango

    PHP Local Time

    Now, before you go "This guy's an Idiot" and move on, just hear me out.I've been trying to get this to work for hours.I've tried getdate(), date(), localtime(), and everything else I can find.Any time I try to return the hour, I get 6 hrs ahead of what I want to recieve,For example if it's 12:30, I get 6:30 PM.I can't have this at all.I need EACH user to return the time in THEIR time zone.For example, if a user in the EST time zone logs on at 4:00 PM EST, it shows that it is 4:00 PM. If someone in say, California logs on at the same time, (At 4:00 PM EST, or 1:00 PM PST) it shows 1:00 PM PST)I have no clue how to do this, for testing i'm just subtracting 6 hrs from the time...Any help?
  7. Hey guys, I've got a fairly big task here.I own an EXTREMELY short URL, (http://www.xxD.in) which is already used for a URL shortener.SO, since it's the same length as some ccTLDs (*.com.uk, *.com.am etc) I'd really like to let my users sign up for custom domains!So, I'm not exactly sure how to do the nameserver part, or really even the redirecting (yeah...)What I do know how to do, is let the users sign up for the domains (yeah...)So, I've tried mod_rewrite, with nothing at all working.No clue how to do the nameservers.The first person who ACTUALLY is helpful, meaning gives me working code, gets a TWO character domain once I get it working.Sorry for the super-long post guys.Thanks.~Twango
  8. All right I don't know how to do this;I want code, that redirects ANY request for *.xxd.in to www.xxd.in/*.
  9. All right, basically.When someone goes toNonExistantSubDomain.appattacknetwork.comit goes to http://www.appattacknetwork.com/informatio...istantSubDomain,But it works with all domains, (the subdomain is the ID)But I want it to not actually redirect
  10. Then what would it look like fixed?
  11. Hey there, this code isn't working for me, help? RewriteBase /Options +FollowSymLinks -Indexes -MultiViewsRewriteEngine onRewriteRule %{HTTP_HOST} ^([^.]+)\.xxd.\in$ http://www.xxd.in [NC,L] It just redirects to an error page.Help!
  12. Hey, I have a big question.I have a URL shortenening service.Got a really short URL (www.xxd.in)And I thought it'd be a good idea to sell/give out domains (subdomains)I really have absoloutely no idea what kind of script I'd need.Basically I'd want an HTML form where you put in a Subdomain, and If it's not taken, it sends it to a PHP page (I could do that part my self).Basically the problem I'd have is creating the domain extention, and having a page where they can set the Nameservers or A-Records where it points too...Help?
  13. Twango

    FLV Player?

    I used CS5s integrated FLV player, compiled it, and uploaded it.It just showed a blank screen.Help!
  14. Twango

    Auto Update?

    I have a social network.I want to make it so every time someone logs in, it increments a value in a MySQL database by 1.Would I have to use MySQL update? Or is there some type that any time Select or Insert is used it auto updates?
  15. Hi, when I add a link, then debug it, and click on it. It says I have to grant access.I don't want my users to have to do this, so how can I fix this?
  16. Twango

    Simple TXT search

    Okay so how would i fix this? O_O
  17. Twango

    Simple TXT search

    It's saying "Resource id #6, Resource id #5, and Resource id #7"What does this mean?
  18. Twango

    Simple TXT search

    right but I'm saying, I put www.test.com in the bad category, then typed in www.test.com and it showed "no results"
  19. Twango

    Simple TXT search

    Pretty simple thing:here's my code; Enter website name in this format: www.site.tld (TLDs are .com, .net, .co etc):<br/><form method="post" action="index.php"><input type="text" name="ur"/><input type="submit" value="Check"/></form><?php$c = $_POST['ur'];$bado = fopen("bad.txt","r");$bad = $bado;fclose($bado);$goodo = fopen("good.txt","r");$good = $goodo;fclose($goodo);$neuo = fopen("neu.txt","r");$neu = $neuo;fclose($neuo);//Checksif ($c){if (substr_count($bad, $c) > 0){$stat = "Bad";}elseif (substr_count($good, $c) > 0){$stat = "Good";}elseif (substr_count($neu, $c) > 0){$stat = "Neutral";}else{$stat = "Not in our database";}if ($stat == "Bad"){echo "<h2><font color=red>The website $c has a bad record</font></h2>";}elseif ($stat == "Good"){echo "<h2><font color=lime>The website $c has a good record</font></h2>";}elseif ($stat == "Neutral"){echo "<h2><font color=yellow>The website $c has a neutral</font></h2>";}else{echo "<h2><font color=blue>The website $c has no records</font></h2>";}}?> So, why is it always giving the no record thing?
  20. Twango

    URL shortener?

    Yeah... uh, so how would I do that?
  21. Twango

    URL shortener?

    Yeah I know the code for redirecting.I just don't really know how to create the sub-directory and random filename.
  22. Twango

    URL shortener?

    I think I know Sorta how to do this.Wouldn't I just need to create a folder, then a file "index.html" with JavaScript using document.location or something?I don't know how to do this!
  23. Twango

    IP Service?

    Ah... I don't use many proxies, just wondering, how long would it take to set up a proxy?
  24. Twango

    IP Service?

    I was just wondering if by adding an iFrame or something I could make a service like NewIPNow.I mean isn't it just an iFrame?
  25. Also, how does "dot.tk" give free .tk domains?
×
×
  • Create New...