18.07.2009
Channel php ausgewählt, Log vom 18.07.2009
Chatlog
Beelzebub: Any idea why I would suddenly get errors when I try to use mysql_real_escape_string()? I already use it at one place in the script but when I try to add it to another place I get this error:
Beelzebub: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ODBC'@'localhost' (using password: NO)
Beelzebub: ah, nvm found the problem
Beelzebub: I tried using it before I was connected to the mysql database
Nycris: xD i'm coding like mad atm
WannaKnow: Hi
WannaKnow: How can i make a loop trough an array with names
WannaKnow: and check if the value of the array is good
WannaKnow: like
WannaKnow: $arr = array('d' => array('a','z'),'e' => array('e','f'));
WannaKnow: And that he checks for the 'z' in this array
Nick\: 3 minutes :)
Mirel-: Hello, i have some problem in .htaccess, here is my code "RewriteRule ^([^/\.]+.*)-([0-9])/?$ index.php?page=test&name=$1&id=$2 [L]" the link what i want to be is: localhost/Name-3
Mirel-: Where im wrong ?
+SlashLife: Yay! An update for the php5 port
+SlashLife: Might this be 5.3
+SlashLife: Nope, it's not. :|
vybz: http://www.facebook.com/pages/EasyPHP/100608599258?ref=search
vybz: o//
boxc: if i don't do $mysqli->close(), will it close when the php-script is done executing?
boxc: what is the purpose of doing $mysqli->close() ?
@Progman: to close the mysqli connection
@Progman: http://www.php.net/mysqli_close
Xertoz: boxc: yes, it terminates any connection that isn't persistent upon script exiting.. well, at least mysql does, so I think mysqli does :p
Beelzebub: Is there any way to check if there are no $_GETs at all?
Novarg: if(!count($_GET))
Beelzebub: thanks
_gf_: hi all :-)
@Lumpio-: Well hello there :--)
_gf_: I wrote FastCGI server for PHP, who is interested?
_gf_: http://code.google.com/p/phpfastcgi/
_gf_: http://code.google.com/p/phpfastcgi/source/browse/trunk/main.php
_gf_: nobody?
_gf_: SlashLife: =))
+SlashLife: BOINK!
+SlashLife: Sure is worth its money.
_gf_: SlashLife: lol
[Freeze]: Hey
[Freeze]: I need some help! :D
[Freeze]: At my site, when it's getting the news from database.. there's weird things going on
[Freeze]: SMSHotell bjuder alla kunder p? 1 Gratis m?nad! <--- My title...
[Freeze]: Why the "?"?
FairFight: thats #html stuff :) but something with the charset.
[Freeze]: Okay, but i only have .php-files..?
[Freeze]: $res = mysql_query("SELECT * FROM news ORDER BY id") or print(mysql_error()); while($newsrow = mysql_fetch_array($res)) { print("<h2 style=\"margin-top: 2px;\">".$newsrow['title']."</h2>\n"); print("<div style=\"width: 440px; float: left;\">\n".nl2br($newsrow['newstext'])."\n"); print("<hr>\n"); print("</div>\n"); }
sakk: how is it displayed in your database?
[Freeze]: What do you mean?
FairFight: How does it look in phpmyadmin?
[Freeze]: latin1_swedish_ci
sakk: that is your matching
sakk: hardly relevant
[Freeze]: ?
sakk: is the fields correctly formated?
sakk: do they include swedish characters?
[Freeze]: id = int15
[Freeze]: title = varchar255
[Freeze]: newstext = text
sakk: ?
[Freeze]: added = datetime
[Freeze]: But i've got this:
[Freeze]: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Beelzebub: what are the most common ways of preventing someone from for instance spamming the shoutbox on a website? I'm looking for a way to stop a user from using the shoutbox for 1min after sending a message
Cheez: once they post on your shoutbox once make their computer burst into flames
Beelzebub: I like your thinking but I find somewhat difficult to implement
maru: Beelzebub > for example make a checking up against bots. The usual 'create picture and copy text' or 'create answer to picture and let user answer'
maru: Beelzebub > or you can think of something more complex... like... no often messages from same IP, so you won't let user to post another message for 30 minutes since last one for example...
maru: Beelzebub > then you can limit it on user, not IP :P
Beelzebub: yup
Cheez: the best thing about steam is the sales
Cheez: ooh, wrong chan
Webseiten Tipps
Hier gehts zum jquery Tutorial.
Meine schwarze Webseite: iPhone4Spiel
