
DarkWater
Members-
Posts
6,173 -
Joined
-
Last visited
Never
Everything posted by DarkWater
-
If I had to guess, I'd say way more than $30 a month. Wayyyy more.
-
serialize() and unserialize()?
-
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.
-
Why would you start firefox instead of just directly calling the script from the command line?
-
Umm...what?
-
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.
-
I'd suggest something simple like Notepad++.
-
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: [email protected]:~$ 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.
-
Strip Everything Out Of A String Except a-z A-Z 0-9 And Spaces
DarkWater replied to JustinK101's topic in PHP Coding Help
Umm, it goes inside actually. =/ He wants a negative character class... -
[SOLVED] Hey Guys, Call to undefined function: array() Prob .....
DarkWater replied to pznmynd's topic in PHP Coding Help
// catch feild data varabiles $userid = $_POST('userid'); $password = $_POST('password'); $submitted = $_POST('submitted'); Those should be [ ], not ( ). -
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.
-
They're working on implementing it in the SPL. http://php.net/manual/en/splenum.construct.php
-
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.
-
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.
-
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.
-
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.
-
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.
-
What does output have to do with anything? All that file_get_contents() grabs IS output, so what do you mean?
-
Feature Request--imagemagick
DarkWater replied to phpknight's topic in PHPFreaks.com Website Feedback
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. -
[SOLVED] You have an error in your SQL syntax
DarkWater replied to jakebur01's topic in PHP Coding Help
Why are you creating a new table on each upload? -
CentOS or FreeBSD?
-
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. =/
-
It's so...boring. The design is just so...bare? I can't really describe it.
-
It's your code. We'd need to see it to help.