Jump to content

DarkWater

Members
  • Posts

    6,173
  • Joined

  • Last visited

    Never

Everything posted by DarkWater

  1. If I had to guess, I'd say way more than $30 a month. Wayyyy more.
  2. serialize() and unserialize()?
  3. You completely misunderstood how to use the function. You don't escape the whole query string. You need to escape all of the individual variables you're using in the query.
  4. Why would you start firefox instead of just directly calling the script from the command line?
  5. I don't think he means instead of printing pages 1, 2, 3, print 3, 2, 1. I think he means that instead of slide 1, 2, 3, 4 being on the first page, it's 12, 11, 10, 9 in that order.
  6. I'd suggest something simple like Notepad++.
  7. 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.
  8. Umm, it goes inside actually. =/ He wants a negative character class...
  9. // catch feild data varabiles $userid = $_POST('userid'); $password = $_POST('password'); $submitted = $_POST('submitted'); Those should be [ ], not ( ).
  10. It still won't work 100% of the time. If they just kill the process or their computer shuts off, there's nothing you can do.
  11. They're working on implementing it in the SPL. http://php.net/manual/en/splenum.construct.php
  12. 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.
  13. I just noticed a LaTeX icon. When did you guys add this? 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.
  14. 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.
  15. 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.
  16. 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.
  17. What does output have to do with anything? All that file_get_contents() grabs IS output, so what do you mean?
  18. 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.
  19. Why are you creating a new table on each upload?
  20. 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. =/
  21. It's so...boring. The design is just so...bare? I can't really describe it.
  22. It's your code. We'd need to see it to help.
×
×
  • 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.