« first day (2245 days earlier)      last day (2707 days later) » 

6:00 PM
Is there anyone here with knowledge about PHP and HTML?
 
@Julian Just ask your question if somebody is here and wants to help they will
@Ahmad are you lost? :)
 
I have included my PHP script within a div (don't know if it is the right way to do it), but because of that (I think?) I am not seeing my h5. Can someone tell me whats wrong and how to fix it?

<html>
<body>
<div class="homepage">
<div class="headtext">
<h3>
<?php

if (isset($_GET["age"])) {
$age = ($_GET["age"]);

include($_SERVER["DOCUMENT_ROOT"] . "/3/includes/config.php");

$dbConnection=mysqli_connect($dbhost,$dbuser,$dbpass,$dbname);

if (mysqli_connect_errno($dbConnection)) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
 
die();
Why do you have that die in there?
That kinda stops further execution
 
die was common in old mysql tutorials
connect || die
 
I think that it is that @Leigh
I removed die(); now I can see my h5 :-) Thanks! @PeeHaa
 
6:08 PM
The correct way to do things, is to handle the error and allow your application to exit gracefully
anyhoo, hometime
 
@PeeHaa I was trying to guess the room number of the js room haha :)
it's not 7, apparently also not 11, but 17!
 
Why do I get this error:
Fatal error: Uncaught Error: Call to undefined function alertwrong() in /Applications/XAMPP/xamppfiles/htdocs/3/search.php:39 Stack trace: #0 {main} thrown in /Applications/XAMPP/xamppfiles/htdocs/3/search.php on line 39

My code:
else {
alertwrong();
header("Location: http://localhost/3/index.php");
}
 
@Ahmad :P
You don't want to go there anyway. I particularly don't like that @rlemon guy
 
can confirm, rlemon is a loser
 
lol <3 @cap
 
6:22 PM
hey, it's room17 all over
let's bring Jeeves over there
 
nahh, cap isn't actually here
 
@DaveRandom @bwoebi do we still need that destruct exception in @Jeeves?
 
@PeeHaa kill it.
with fire.
 
\o/
 
6:28 PM
I know I'm missing something about OOP because I've never felt like I should use classes
 
Can this also been burninated @bwoebi @DaveRandom
> - Updating amphp/artax (dev-debug/requestcycle-backtrace 1b9a4a1 => v2.0.5)
The package has modified files:
M lib/SocketPool.php
 
yes
 
ty
!!uptime
 
@PeeHaa I have been running for 11 seconds, since 2016-12-08 18:29:55
 
Why do I get this error:
Fatal error: Uncaught Error: Call to undefined function alertwrong() in /Applications/XAMPP/xamppfiles/htdocs/3/search.php:39 Stack trace: #0 {main} thrown in /Applications/XAMPP/xamppfiles/htdocs/3/search.php on line 39

My code:
else {
alertwrong();
header("Location: localhost/3/index.php");
}
<script>
function alertwrong() {
alert("Something went wrong, try again. You will be redirected to the homepage.");
}
</script>
 
6:32 PM
oh boy
@Julian PHP is not javascript
 
@PeeHaa How to get an alert than?
 
You don't. Handle it on the page you are redirecting to
 
mehh oke
 
Either way an alert() is the wrong tool for... well any job basically
The bot is getting too smart people
in Jeeves' Playground..., 1 min ago, by Jeeves
@PeeHaa [cleverbot 18] Well that's interesting. What is a favorite song that you have?
in Jeeves' Playground..., 1 min ago, by PeeHaa
@Jeeves Currently: Rage Against the Machine
 
@PeeHaa You are getting sarcastic again.
 
6:44 PM
in Jeeves' Playground..., 1 min ago, by Jeeves
@PeeHaa [cleverbot 19] That's a band not a song.
in Jeeves' Playground..., 1 min ago, by PeeHaa
@Jeeves damn you're a smartass
 
@PeeHaa Chilling out maxing relaxing all cool.
 
in Jeeves' Playground..., 1 min ago, by Jeeves
@PeeHaa [cleverbot 21] I know. :D.
@Jeeves And all shooting some b-ball outside of the school
 
@PeeHaa When a couple of guys who were up to no good.
 
omfg
@Jeeves When a couple of guys, they were up in no good
 
@PeeHaa Started making trouble in my neighbourhood.
 
6:45 PM
@Jeeves I got in one little fight and my mom got scared
 
@PeeHaa She said "you're moving with your auntie and uncle in Bel Air".
 
\o/
 
are "going to" and "will" synonymous? anyway, can you please fix following sentence for me? (English perspective)
> I will go to X restaurant tomorrow, who comes with me?
 
@Jeeves are "going to" and "will" synonymous?
 
@PeeHaa The license plate said fresh and it had dice in the mirror.
 
6:48 PM
lol you really like the fresh prince don't you @Jeeves
 
@PeeHaa Why don't you like the French?
 
user895378
@kelunik @bwoebi should we bother to continue supporting pecl/libevent in amp in the future? I don't think anyone uses it and the extension hasn't been updated for php7 AFAIK
 
Why when I ask something, you ask it from Jeeves? @PeeHaa :-)
 
@rdlowrey Not as long as there's no PHP 7 version.
 
@rdlowrey Well, if it has no PHP 7 version, no.
 
6:49 PM
@Jeeves Everybody loves the French
 
@FélixGagnon-Grenier I love you too :-)
 
.. I expected better, somehow
@Jeeves and you like it
 
@FélixGagnon-Grenier Yes.
@FélixGagnon-Grenier No, not really.
 
oh somebody is logged
make up your mind @Jeeves
 
It gets in twice on reply
 
6:50 PM
@FélixGagnon-Grenier I don't like you I like someone elsl.
 
Not sure yet why it does that
I have a feeling @DaveRandom also was getting this at some point
 
@Leigh 26th Nov
 
7:11 PM
Anyone here?
 
Yeah
 
just a few hours left until it's time to go home...
I am ready and then some :)
 
7:42 PM
For once it wasn't even my fault
 
@Sara not sure, but I checked the encoding using mb_detect_encoding() function, its showing ASCII. Even I converted to UTF-8, but still str_replace didn't work to replace the double quote.
 
UTF8 is designed to be a superset of ASCII so if the string doesn't use any non-ASCII characters it will effectively be identical whether you specify UTF8 or ASCII
What does your str_replace() call look like?
 
8:09 PM
Don't tell me you already knew this
 
> now with a touch of extra smart-arse
now with a touch of extra smart-arsedness
 
@FélixGagnon-Grenier PR it
 
tnx!
 
8:34 PM
boop!
aww, damnit... who let the Cannucks in again?
 
he pretty much let's anything in
 
oh haha
well, at least we agree on a good sport
 
shiite, I missed those
a part of me knows what it was about tho
 
oh, I thought you were talking about someone else
I thought you were saying the room owners would let anyone in
 
8:45 PM
damn Cannucks
;)
 
9:02 PM
quite for an afternoon in here
 
9:25 PM
Hi guys. I have created chat script. Its realtime and it makes ajax requests to php file to receive current messages every 3 seconds. On the php file, there are mysql connect and select messages from the database. IS it a good approach, if there will be 1000 users at same time chatting, will my server crashed ?
 
@user3304007 Have you considered using websockets?
 
Saw some articles about it but not really got into it.
 
9:38 PM
I hate migraines.
 
@Tiffany I love migraines! They are so much fun!
/me screams in @tiff's ear
 
I'm not even at where it's full strength, it's just the uncomfortable sensation prior to, which is just enough discomfort to disrupt my thoughts. >.<
 
I get those after I have any kinda seizure
 
@rabbitguy Do you want to get punched in the face? Because that is how you get punched in the face.
o_O
 
heheheh
 
9:42 PM
 
Don't be a creep, dude.
 
I think @tiff knows I am joking @charles
 
Joke or not, it's still being a creep.
Don't be a creep.
 
Thanks
Almost good almost friday
 
9:44 PM
Aye
 
Not nearly close enough to Friday.
 
Pretty sure I already told you to get in a better timezone
 
I'm looking forward to my winter break
 
West coast best coast.
 
which starts like December 23rd
 
9:45 PM
I'm on the west coast too :P
 
then I don't come back until January 9th
 
Yeah, but it's all in the details ;)
 
:P
@Tiffany As in a vacation?
 
:D
 
The disadvantage of remote work is that my "break" still involves being in the same exact place.
 
9:47 PM
@Charles Yeah sometimes you really need to get out of wherever you are
Shall we just close this github.com/Room-11/Jeeves/pull/94 @Ekin?
 
Err I am a bit drumk. But yea, I think we can
 
@Ekin I am beginning to see a pattern :P
 
:D I can't deny
 
@PeeHaa yup, one of the benefits of working at a college
 
Ah right. That is indeed really nice
 
9:54 PM
@PeeHaa faculty get the summer and winter off, but staff get about a week to two weeks off in winter. We're furloughed for four days in the new year though.
but we can use vacation time so we can still get paid
I have like 120 hours accrued...
 
oi
I have 50 and can't use it. :<
 
yeah, pretty much the same boat I'm in. too much work to complete
 
@JoeWatkins That took you long enough ;-)
 
I've been busy changing all my passwords to unreasonable length strings ...
 
LOL
 
:P
 
I very like the git integration
the only thing that is missing is github refusing unsigned commits
there's one more extension to do ... at least ...
 
@Jimbo I have been running for 2 hours, 26 minutes and 27 seconds, since 2016-12-08 20:17:53
 
Worth a shot... it's still un-pinnable
 
I removed the pin earlier, there was more pinned messages than normal ones there ...
nn all
 
nite
 
10:57 PM
100MB+ gifv is such a good idea :P
 
I know o_o... I tried opening it in a new page and it won't load. Loads fine from reddit though, probably cause of RES.
it's a pretty neat gif, but god dammit whoever made it.
 
It blew up the reddit page for me. Had to download it to view it
!!canon sqli
 
2786
Q: How can I prevent SQL injection in PHP?

Andrew G. JohnsonIf user input is inserted without modification into an SQL query, then the application becomes vulnerable to SQL injection, like in the following example: $unsafe_variable = $_POST['user_input']; mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')"); That's because the us...

 
tnx mr @Jeeves
 
@PeeHaa You're welcome!
 
11:08 PM
Jesus, in my day, 100MB was an entire FPS video game
 
C'mon we both know you are older then that :P
 
I remember trying to install Diablo 2 on my old Powermac. The game was about 700MB and that was absurd at the time. I was trying to delete EVERYTHING possible to get it to install. The HD was a gig though. No dice. :(
 
Well yes, 100MB was 20 hard drives in my earlier days
 
I'm also out. Night all o/
 
11:16 PM
@JoeWatkins Dick! Also, goodnight <3
 
pffff
new RO, thinks he can make money off our back
 
Anonymous
@Jeeves are you clever now?
 
@JayIsTooCommon I don't think so.
 
Anonymous
@Jeeves what are you?
 
@JayIsTooCommon I am a human.
 
Anonymous
@Jeeves night
 
11:40 PM
@JayIsTooCommon What time zone are you in?
 
Anonymous
@PeeHaa \o/ awesome :D
 
Anonymous
11:54 PM
@PeeHaa yeah to taking PR and fixing but let me get my head round what it does first, don't wanna commit anything that I don't understand, if you know what I mean
 
@Jeeves ohhhh... we can mess you up now, can't we?
 
@FélixGagnon-Grenier Are you sure?
 
@Jeeves ... I intend on finding out, tbh
 
@FélixGagnon-Grenier How do you find out?
 
@Jeeves How do YOU find out?
 
11:57 PM
@FélixGagnon-Grenier Find out what?
 
gosh, it already beat me
 

« first day (2245 days earlier)      last day (2707 days later) »