« first day (974 days earlier)      last day (4200 days later) » 

00:35
@Samithaఠ_ఠ fetch from database .... by getting id(something like) from url
00:56
Hey is there something like a pay-for Github Pages (Heroku style git push to deploy, but for static HTML+JS+CSS)? It'd need support and an uptime guarantee.
@AaronYodaiken github is always up ?
I wouldn't feel comfortable relying on a service w/o an uptime guarantee
user652649
01:19
ah, anyway @PeeHaa埽 Blink has changed something in SVG fonts rendering, so now SVG fonts look incredibly awful on lowest font sizes. Thank you Google ^___^ still fine on 30px+ though
02:19
morning
user652649
morning @NullPoiиteя :)
morning
hola ....
user652649
morning pink cat xD
morning pink furry cat xDDD
user652649
02:22
pink cat with hat and broom
I was so disappointed when I woke up. I fell asleep next to laptop while it was doing a 6hr+ PHP compile only to wake up to an error which ended it =o( I had misnamed a config option...*sighs* so here I am compiling yet again.
Also it won't compile with Sqlite3 had to disable it =o\
user652649
lol 6 hours???
i hate php :(
user652649
/me has fell asleep over a tablet and destroyed it while sleeping
user652649
^ but i can do better than that!
02:26
@Wes yeah my web hos which I will be leaving sometime soon limits the CPU and RAM so compile is super slow
user652649
@crypticツ question: can't you compile offline and upload it compiled already? guess it's not how linux works :o
@NullPoiиteя me too, also one thing that really bothers me when compiling are all the errors/notices. Like php-5.5.0RC3/ext/http/http_message_object.c:1175: warning: 'php_set_error_handling' is deprecated (declared at php-5.5.0RC3/main/php.h:293) or /usr/include/string.h:145: note: expected 'const char *' but argument is of type 'const unsigned char *'
Does the PHP Group have error reporting on when they test out the source?
user652649
lol
may be they love to invent new error .... :P
user652649
seriously, why isn't possible to compile offline and upload the binaries?
02:35
@Wes You can
I just hate installing all these libraries and dependencies on my computer =oP
Good Morning /evening to everyone
:) just getting morning tea here
user652649
ok :P as far as you know... it could be that some code compiled on some system doesn't work if moved to another one? for example i know that apt packages work on any debian-derived distro... but other systems? does that depend by the kernel?
may be they love to invent new error .... :P that is why i think php is new invention of 21 century
i love to see people who abuse pdo and think that they are safe stackoverflow.com/q/17129547/1723893
02:42
@NullPoiиteя he have used place holders to others instead of $id lol
I love to execute array instead of using bindvalue
@Samithaఠ_ఠ every one ... :P
@NullPoiиteя psssh that's nothing addslashes() can't fix =oP
@NullPoiиteя but u have used bindValue in your answer
@Samithaఠ_ఠ yes tit for tat .. :P
@Samithaఠ_ఠ it aint array ::PP
02:50
@NullPoiиteя updated the comment.lol.I'm in sleepy mood .didn't sleep yet
:PPP
@Samithaఠ_ఠ i know stackoverflow.com/a/14110189/1723893 :P
http://stackoverflow.com/questions/17129665/need-help-adding-features-to-a-blog
@NullPoiиteя one thing.I want a leave to see your answer.long long story :)
OMG
its the ibex
good one btw lol
me/ibex ? :P
03:01
you didn't provide your real photo on the stackoverflow profile.If it was there i could even to find the good one :p lol
@NullPoiиteя i just got an idea to disturb bad people using stackexchange data without attribution (obviously to make money)
:10016379
i sent the details in the javascript room
FFFUUUUUUUUUUUUUU compile failed after 3hrs in =o(
03:07
@Samithaఠ_ఠ i dont because i am
@NullPoiиteя what do you think?
@Happyninja i dont ... i am just happy with sql injection and xss ...
@NullPoiиteя i mean, it could fix the problem with all those site crawling stackexchange to build fake website to gain traffic for ads.
@Happyninja sounds great ...
@NullPoiиteя is there any good tutorial for php magic methods ?
@NullPoiиteя where should i suggest it?
@Happyninja no where :P
@NullPoiиteя it is hard for me youtube.com/watch?v=J60CY1-xG9E&noredirect=1 see .good one
@NullPoiиteя why?
may be right way get you more visiting time .... and more visitor
03:14
people in the other room complaint about other site stealing content. the bad people site is just full of hole. preventing it wouldn't be hard
anyway, if people don't care, why should i care more then them, meh, good night
@YogeshSuthar dong
@NullPoiиteя dong?
user652649
03:39
@NullPoiиteя it must be very comfortable to sleep with these horns
What is PC and what is XXXX? — Dave Chen 8 mins ago
user652649
@crypticツ do it offline :o
@Wes I tried it once, but had to install dozens of libraries and still never got them all installed =o(
@Wes The error this time occurred in the compilation of the pecl_http extension, stupid since it is suppose to be the 'stable' version
user652649
@crypticツ what about compiling it in a vm with some server distro, which probably has probably all the required libraries?
@Wes I'm not smart enough for that =o(
user652649
03:43
@crypticツ why are you compiling pecl in the first place? xD
Lol, I suppose I can try. Because I have a few PECL extensions I need to have to compile them from their source.
want them compiled into PHP not as seperate .so files
user652649
by the way... maybe a server distro isn't good for this since it is minimal... you need some developer distro... what about centos? afaik it is the most customizable one
I increased the memory limit for the compile to speed it up. It's just my current host Pair.com has a program called Reaper that will kill scripts that consume more than the allocated amount of resources. I run with the following export CFLAGS="--param ggc-min-expand=0 --param ggc-min-heapsize=8192 -fno-inline" I increased it from 2048
user652649
why are you saying that to me? xD i'm not a linux expert
user652649
but just saying... how many hours do you spent already? :o
03:49
@Wes Windowz noob! =oP
3
user652649
i am, possibly proud of, possibly
@Wes It usually compile within 6hrs, but I keep getting errors for this compile so have to keep starting over again.
user652649
6 hours seem a huge amount of time anyway xD anyway good luck...
user652649
can you download the vm image somehow and run it on your computer? i heard some web hosters allow that
@Wes Pair is retarded, so not with them
user652649
04:03
lol
@Wes Well the memory increase worked, and so far Reaper has not kicked in, I am on the Zend engine compile portion which is the last one, so it dramatically sped it up. I need to compile a seperate version afterwards, so will increase it even further and see what limit I can reach
@crypticツ Why would you want that?
@Jack What would be the difference?
@crypticツ Nothing :)
user652649
morning @Jack
04:12
bbcode, geoip, imagick, memcache, pecl_http are the only PECL extensions I use. Which I compile into PHP. The only one I am compiling as .so is xdebug
That's your prerogative :) compiling a monolithic php may have some benefits in start-up time if you run it from cli .. but otherwise, I don't see the point :)
Btw, 6 hours compile time, seriously?!
Are you running this on a 486?
5
@Wes 'allo :)
I feel like a complete noob reading through the stuff on here Oo Compiling 6hrs?!
haha :p
Building php takes at most five minutes on my macbook.
user652649
how is pecl_http @crypticツ ? it has many useful functions, but it's in ultra-pre-alpha state (-0.0.0.0.1) since centuries ago... is it buggy?
ten if you count the tests.
@Wes It has been refactored recently.
The new version also introduces some new features =D
user652649
04:17
good, but how about its stability? i think it should be in php's bundle, if it is not, must be because it isn't really stable... is it?
I can't vouch for its stability, I use cURL mainly.
@Wes it's supposed to be in 'stable' release pecl.php.net/package/pecl_http
user652649
yeah... i guess i was talking about the 2.0
Yeah, 1.x should be pretty stable by now ;-)
user652649
it has many useful functions especially for url manipulation
04:22
Meh, yours truly only uses regexp for url manipulation, because I'm cool like that =D
Well that's the version I tried to compile and it failed =oP So the term 'stable' is not too accurate
I've had some issues compiling 2.x as well.
Michael blamed my setup :(
@Jack Mine failed when it got to ext/http/http_message_object.lo Not sure if it is worthy of filing a bug report though.
@crypticツ Don't give in to the bystander effect, log it :)
@Jack the last time I filed a PHP bug report they laughed at me and told me it was a feature =oP
10
04:30
@crypticツ Haha, what was that?
user652649
aha. i guess happens to 99% of bug reports
Compile errors shouldn't happen, period.
@Jack What would they need from me for the report? I just log the output of make and configure so not sure if that is enough info.
That should be enough.
Maybe the architecture as well.
04:48
Aiming to get silver medal in , getting close :D
user652649
@Jack legen... wait for it...
/[dD][aA][rR][yY]/
user652649
xD
user652649
/dary$/i
05:37
1
Q: PHP: Preventing spam submissions with timing block

anvozThe submission is from a javascript function, not a regular form. There are some reasons that I want to keep it as simple as possible, no captcha, no hidden field, no more extra library. Here is my attempt so far (submit.php): ini_set('session.cookie_httponly', 1); session_start(); $interval =...

 
1 hour later…
@HamZa hello
@user4035 Yellow
@HamZa Honestly, I don't understand, how can he have Arabic characters encoded in CP-1252: stackoverflow.com/questions/17063599/…
look at the last comments to my answer
user652649
what's the best way to create a newsletter script with php? should i use mail()? is BCC correct or should i use a mail() call for each contact?
@user4035 No idea ...
@Wes Use something like swiftmailer
user652649
07:32
so... how does swiftmailer work? :P
@Wes I would think it's based on php mail() but with extended functions/testing ?
@user4035 Who uses ms access anyways xD ?
@HamZa Yeah, it's a piece of crap.
07:56
done
08:11
@tereško And then a moderator closes it again -_- Thx though ...
flag it , if you think there is good reason for that
Hmmm wel, it's indeed not constructive, but a good question. But since it has already good answers. I think I'll let it rest in peace ...
08:28
@tereško lol just read the pointer question in the comments where OP says this about Wordpress "security flaws are fixed within seconds, and it 'just works'"
@crypticツ .. whatever lets him/her sleep at nights
09:10
When running PHP as CGI are the paths in php.ini relative to php.ini or php.cgi?
10:01
can php detect browser or operating system and width and size of page being displayed?
@GunrJesra no
do you think this question is good stackoverflow.com/questions/16959576/…
i mean no matter answer is good but question should be good
@NullPoiиteя =oP
10:29
got to show pdf document without a download option. searched in SO, but didn't find perfect answer, the pdf directory files are dynamically uploaded and stored, any good suggestion?
you can't show a pdf without the ability to download
@NikiC there should be someway around
no
The concept itself is bullshit. To display the PDF the client needs to download it.
The only thing you could do is render the PDF into an image on the server side and send the client that image
@NikiC to display an image, the browser needs also to download the image?!
that somehow feels like a terrible workaround for made-up problem
10:44
@TheLuckyGoof if you mean without showing the download prompt, see here stackoverflow.com/questions/291813/…
theoretically, the file still gets downloaded to user's machine
Hi all.
10:59
In my php.ini for 5.5 I have a opcache section now. Other than the sparse documentation in the file itself, is there a resource online which explains the directives more? I searched in the manual and the directives are not even listed.
/me has no idea
hmm ... choices, choices.
I want to learn something new. Should I go for japanese or genomics ?
Japanese - it's a cool language, with loads of English words.
If I'm using APC cache to store user data, does the new OPCache work alongside it, or are they incompatible? i.e. OPCache for, er, caching op code and using APC to store just user data?
Hmm, apparently not: github.com/krakjoe/apcu
11:52
People are confusing. I get a comment on one of my blog posts. Guy says tl;dr then precedes to tell me how I'm wrong in my post. Although every single one of his points was covered in the post.
Too much stupid too early
4
I hate it when people try to use php on windows and then fail on windows specific … quirks...
12:19
^ self-duplicator
@cspray lol just had the same thing two days ago or so on my blog. that user even linked another post I have based my post on and I referenced it my own. Sometimes stupidity is just - well - stupid.
8 hours ago, by cryptic ツ
@Jack the last time I filed a PHP bug report they laughed at me and told me it was a feature =oP
lololol
@cspray The green of the comment status is a bit ... too green ;)
@NikiC :P I'm actually not happy with the layout/design atm. I've been meaning to work on something better but have been lazy
12:41
What is wrong here? It is working fine within RegExr (http://gskinner.com/RegExr/?3585t)
RewriteRule (?<=eisead11it)(/.+)$ index.php?page=$0 [L]
@Wes That what it has been for me for a while now, but at least they are working on it. Well they say they are working on it :p
Morning all
mornin
Hello
Howdy
13:14
Hi,
My code to send the three text field on server side using ajax on php is:

<html>
<head>
<script>
function insert(fname,lname,age)
{

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
At server side Get method look like what? How to receive all three field I have sent?
$q=$_GET["q"];?????
@Programming_crazy File uploading through AJAX isn't exactly supported. Newer browsers may allow it but, since it appears you are targeting IE6, I would come up with a non-AJAX solution
@cspray Dude it's not file uploading, I just sent three values fname,lname,age and I want to receive it at another side, that's it na!
@Programming_crazy Oops sorry! I totally misread "field" as file
@Programming_crazy $_GET['fname'], $_GET['lname'], etc... $_GET is just a convenience variable to access query string params without parsing the query string.
@cspray Let me check it!
Gooden Morning
13:28
goedemorgen @ircmaxell
I can actually pronounce that!
:-)
And you probably know where my country is on the world map. Which makes you better than 99% of your fellow muricans ;)
lol
which country is that?
NL?
Netheristan
13:33
lolz
Yes, I know where it is on a world map... Heck, aside from the US, it's the country I've been to the most in the world (if my instinct is correct)
well .. i don't know where it is
but i would be looking near germany
@tereško Close enough ;)
Germany, that's on the Mediterranean sea, right?
13:37
nope
Oh, off for my morning run, later
Have a good one!
you can never be sure with 'mericans
mexicans? - spelling is so close ...
@Gordon I found out who deleted the Troll Bin ... thanks for everything though
13:56
@Telkitty猫咪咪 the user with the id -1?
nope, don't think so
@bwoebi who has the id of -1? or what kind of users would have ids of -1?
but how can you differentiate between moderators then?
@Telkitty猫咪咪 Moderators have their own user IDs that aren't Community?
I have html form with three values fname,lname,age. I want to send it on server side php file and insert into database.

My html form is like this:

<html>
<head>
<script>
function insert(fname,lname,age)
{

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
14:02
Hi, does anyone know how I can convert a list to an array?
@Dave Define list
0
A: Regular Expression to extract php code partially (( array definition ))

HamZaRegex So here's the MEGA regex I came up with: \s* # white spaces ########################## KEYS START ########################## (?: # We\'ll use this to make keys optional (?P<keys> # named ...

@HamZa you. are. insane.
@bwoebi lolz :D
14:04
@Dave You know that really isn't a list right? But rather separate variables that come out of it
He said he'll give me 400 bounty :p
But it was also a challenge :D
@PeeHaa埽 I am using pimcore, a framwork based on zend... there I have an object list: $list = new Object_BlogEntry_List();
a cms based on Zend*
@HamZa use token_get_all or so...
@Dave That is something different than PHP's list language construct...
@PeeHaa埽 oh alright, but now I want to get the first 10 newest items of that $list
@PeeHaa埽 how to do that?
14:06
@bwoebi sigh all efforts in vain ...
@Dave What does $list contain?
@PeeHaa埽 is that a Cthulhu head in the last character of your screen name, or do I need to sleep?
@PeeHaa埽 one second I will post you a var_dump
@Dave If it is big please pastebin it
@R.MartinhoFernandes Both :)
14:09
@Dave I see the object has properties for limit and offset. If I were you I would look into that
@HamZa not really… with token_get_all you get too much information you have to prepare first ;-)
@bwoebi I tried it, but it gives me the whole array, which I already have ...
@PeeHaa埽 alright, will do thanks ;
;)
anyone here knows perl?
14:27
@Telkitty猫咪咪 boooo. get out
Hello guys. I have one question. How can i output both values, name and price in one foreach?

while($qry->fetch()) {

$rss['name'][] = $name;
$rss['price'][] = $price;

}

foreach ($rss as $rss) {

echo $rss['price'].rss['name'];
}
I get an error "Undefined index: price"
Because you don't have access to the key price anymore
The foreach is looping through the keys "name" and "price"
so you only have "0" and "1" to utilize within the foreach
while($qry->fetch()) {
    $rss['name'][] = $name;
    $rss['price'][] = $price;
}

foreach ($rss as $rss) {
    echo $rss[0].rss[1];
}
I think Nile meant:
while($qry->fetch()) {
$data['name'] = $name;
$data['price'] = $price;

$rss[] = $data;
}
foreach ($rss as $rssEntry) {
echo $rssEntry['price'].rssEntry['name'];
}
@Danack but formatted
14:39
function ftw(){
   echo "winrar";
}
select your code and press CTRL+K
Anything I forgot?
2
A: PHP client side vs server side

PeeHaa 埽Considering the PHP is serverside nothing should be exposed to the client from the internal workings. Only the output (unless your server is wrongly configured and doesn't parse PHP files). To counter even this problem most people will just have an index.php file in their document root which incl...

Ctrl+A then Ctrl+K
@Danack Works like a charm. Thank you both ;)))
14:42
@BikerJohn works, but for completeness I should have done:
$data = array();
in each loop when getting data from the query. Unitialized arrays = surprises ahead.
nah, this is PHP ;)
How to link my stackover flow question here? like Danack did!
@KarimkhanPathan Just paste the link (only the link)
0
Q: How to insert into database using ajax on php?

Karimkhan PathanI have html form with three values fname,lname,age. I want to send it on server side php file and insert into database. My html form is like this: <html> <head> <script> function insert(fname,lname,age) { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=...

@KarimkhanPathan You never prevent the default action.
Also please stop writing inline JS
14:49
Also isolate your issue before you dump your files on us
and chat is not a place to "advertise" your questions
@PeeHaa埽 Can you please elaborate I am very new too php!
@KarimkhanPathan This has nothing to do with PHP, but with JS
@KarimkhanPathan It's not PHP
14:50
@Nile wrong ping :P
noooooob! :D
@PeeHaa埽 Ahh you sent the chat before me. Get your chat out from under my cursor!
@PeeHaa埽 dude I am new to both of them, please point me where is the prob, so I can take care next time!
@KarimkhanPathan Search for "event preventDefault" and click on the MDN link
14:52
@KarimkhanPathan google.com/…
@Nile thanks buddy, but it would be great if you help me out for this urgent issue!
@KarimkhanPathan I guess if it's really urgent you should hire a pro
@Nile I am student! :)
!== pro
14:55
@Nile Just point out in the code where is the problem, If you guys ready to help!
@KarimkhanPathan If you're a student then you should have no problem researching the advice you've already been given
If you are a student and can't be bothered to study or research then you are doing it wrong
@cspray I am agree!
@KarimkhanPathan we've literally spoon-fed you the answer. you need to use event preventDefault(). Search that on Google and you should get your answer immediately.
This isn't the Javascript chatroom, anyways.
You should be more worried about the awful SQL injection vulnerability
@Nile Ok thanks guys, I will sort out it now!
14:59
And the fact that you're using mysqli_ and mysql_ functions together
6 mins ago, by Karimkhan Pathan
@cspray I am agree!
lolswut
@Nile I made all mysql_ but it does not make any different, does it?
this is usually the moment when i recommend to hire a developer
lulz
Personally I'm working on a project for a client where I have to make flash and their MSSQL database work together. It's quite interesting! — h2ooooooo 41 secs ago
@PeeHaa埽 huh?
15:10
@BenjaminGruenbaum monring
@PeeHaa埽 Morning, I got it :P
0
Q: showing ads in specific joomla k2 item text

professionalI want to show ads in joomla k2 article at top of article text.Not all k2 articles will show ads but some specific category articles.also ads will not appear in k2 article summary text.I came up using following plugin function to achieve what i want - public function onContentBeforeDisplay($con...

??
Go home Unicode, you're drunk:
http://www.fileformat.info/info/unicode/block/domino_tiles/images.htm
5
@HamZa and now implode your regex result so that it matches exactly the OP's whitespacing etc.
whats the best way of extracting text from pdf
@PeeHaa埽 Technically, you missed one part of his question. Your answer should have been 'yes, maybe, yes'.
15:29
Aaaaaah damnit. No wonder he's whining at me
:P\
At the risk of getting meta - what on earth are people like that thinking when they ask a 'please design my system for me' question?
@Danack Here in room 11 it is called IAP
'I AR PROGRAMAR'?
May 27 at 5:55, by tereško
I wonders , what is the root cause of IAP (indian asking pattern). I suspect that part of problem might be fact that some local languages have no "question marks" for sentences, and, when people translate word-replace the sentence to english, it comes out as gibberish, which cannot be recognized as question
That question wasn't IAP, it was just a lazy bugger.
15:35
Indian asking pattern haha
0
A: Regular Expression to extract php code partially (( array definition ))

bwoebiEven when you asked for a regex, it works also with pure PHP. token_get_all is here the key function. For a regex check @HamZa's answer out. The advantage here is that it is more dynamic than a regex. A regex has a static pattern, while with token_get_all, you can decide after every single token...

@PeeHaa埽 thanks for linking in my answer.
token_get_all is really a great function :o
yep it certainly is
@tereško I think the difficultly for a lot of people who speak Hindi natively and have learnt English is that the 'present continous tense' works differently in English to Hindi - http://englishlanguage101.wordpress.com/tag/present-continuous-tense/
Because most questions on SO are describing what people are currently doing, this mistake shows through very often, even when the rest of the question is perfectly fine.
15:44
@Danack there is no "present continuous tense" in Latvian too ... i have never seen it as a problem
I once had to intervene between a manager and an Indian programmer:
Manager: Is this bug fixed?
Programmer: Yes, it is being fixed.
Manager: Ok, how long will it take to fix?
Programmer: No, it is being fixed now.
Manager: Yes - so how long will it take to fix.
Me: OMG - 'It is being fixed' => 'It is currently in a state of being fixed' => 'It is fixed'.

« first day (974 days earlier)      last day (4200 days later) »