Jump to content

DarkWater

Members
  • Posts

    6,173
  • Joined

  • Last visited

    Never

Posts posted by DarkWater

  1. Are you kidding me, I noticed a massive delay when I logged on for the first time with the ads there! I typed in www.phpfreaks.com/forums, and a half of a second later I started wondering what was taking so long. About a second after that when the page was fully loaded, I started looking around for ads! I just new they where there! Why else would the page take so long long to load!? Then when I finally found the small ad at the bottom of the page, where it was out of the way.... Man was I fuming!

     

    lol... Do you people read what you post???

     

    On the flip side of things, how much could this site possible cost to run!?

     

    I personally don't care about the little ad way at the bottom of the page. I scroll right past it and think nothing of it. However, if the ads become flashy and annoying, you can bet that I will block them! There are inly two types of ads that I don't like, flashy irritating ones, and ones that are in the middle of what your doing.

     

     

    Still, I am curious, if anyone know how much this site cost to run, please let me know. I can't image it being over $30 a month, which shouldn't be to hard to get on an active forum such as this.

     

    If I had to guess, I'd say way more than $30 a month.  Wayyyy more.

  2. Somehow, you have a hidden 0x31 in between mysqli and _query.  PHP is reading it as:

    mysqli0x31_query
    

     

    I noticed it because when I pasted it into bash, I got:

    nick@i.cant.find.waldo:~$ php -l
    <?php
    if ( $row2['cc'] == '' )
       {
          $cc = iptoc($row3['ipaddy']);
          $cc2 = ucwords(strtolower($cc[2]));
          $cc3 = strtolower($cc[0]);
          $q_x = "UPDATE visitorlog SET cc='" . $cc3 . "', ccn='" . $cc2 . "' WHERE ipaddy='" . $row3['ipaddy'] . "'";
          $r_x = mysqli^__query($cxn, $q_x);
       }
    
    Warning: Unexpected character in input:  '' (ASCII=31) state=0 in - on line 8
    
    Parse error: syntax error, unexpected T_STRING in - on line 8
    

     

    Check out the $r_x line.

  3. Oh, I wasn't aware that we didn't need to put ourselves into an equation environment.  I used:

    \begin{equation}

    2Al(s) + 6HCl(aq) \rightarrow 2AlCl_{3}(aq) + 3H_{2}(g)

    \end{equation}

     

    To write the thing in the original post.  If run directly, however, it gives:

    [tex]

    \begin{equation}

    2Al(s) + 6HCl(aq) \rightarrow 2AlCl_{3}(aq) + 3H_{2}(g)

    \end{equation}

    [/tex]

     

    Because nl2br() passes through and adds <br /> in.  It's not a problem for one-liners I guess.

  4. I just noticed a LaTeX icon.  When did you guys add this? :o  Does it support basically any LaTeX features?  I'm guessing it just passes the stuff in the tags off to LaTeX and then runs some stuff to output it as a PNG.  Wikipedia does the same thing.

     

    Testing:

    [tex]\begin{equation}2Al(s) + 6HCl(aq) \rightarrow 2AlCl_{3}(aq) + 3H_{2}(g)\end{equation}[/tex]

     

    EDIT: You guys need to stop nl2br() from killing it. D:  I put it all one line to fix it for my little test, but otherwise it has <br /> in there.

  5. No, lazy connections are connections that are initialized on-demand.  Like, if you just instantiated a DB class, it wouldn't connect until you actually did your first operation, which could save some memory and resources.  Depends on what you're actually trying to do.

  6. It's all well and good that you're passing things into the constructor, but you're not actually connecting.  Try changing __construct() to:

      public function __construct($host, $user, $password)
      {
        $this->host = $host;
        $this->user = $user;
        $this->password = $password;
        $this->connect();
      }
    

     

    Also, I'd suggest making the variables private, not public.

  7. Well, digging around php.net I THINK that file_get_contents puts its contents into a string where as readfile sends it to the buffer.

     

    Not entirely sure though.

     

    That's exactly what it does.  But I don't quite understand why he would say to make sure there was no output, as that would completely defeat the purpose of grabbing the file at all.

  8. if you got rid of all the output on the remote file and then went

    $numberofrows = file_get_contents("http://remote/file/php");

     

    Scott.

     

    What does output have to do with anything?  All that file_get_contents() grabs IS output, so what do you mean?

  9. Oh, okay.  Corbin, every topic is potentially for newbies.  You have to start somewhere, lol.

     

    Yeah, you start by learning the basics.  Then you learn how to read the manual, you gain experience, and then you can theoretically use any function you want without someone teaching you.  PHP is EXTREMELY well-documented.

  10. Okay, I added 10px of padding around the google ads, if I add color, it might be too distracting and people who don't like the color won't like my site.

     

    I don't like your current color though.  You could argue that about any color scheme.  Your page just seems so...misplaced?  It's all blocky and gray.  Not very interesting. =/

×
×
  • 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.