« first day (1558 days earlier)      last day (3393 days later) » 

1:10 PM
Hi, If i am executing the command "curl --version" it shows me version 7.15.5 but phpinfo shows me curl version 7.20.1
I think they both are pointing to different curl
 
you installed wamp?
 
@DejanMarjanovic if you do include '/absolute/path.php'; then include_path is never used, it only makes a difference when you do include 'relative/path.php'; - I assume this is what you meant?
 
No, Its on linux
 
Is php_curl static or dynamic?
If it's built statically it also builds in a static libcurl iirc
 
May be its because i have two separated curls, one is placed at /usr/bin (refered by curl command) and another is placed in extension directory as curl.so(used by php)
can i tell php to use curl placed in /usr/bin directory
 
1:15 PM
@DaveRandom Right, got confused, relative is used for "cascading" something something.
No, wait, wait. I set "include_path" (about 30-40 paths), and then use stream_resolve_include_path.
Thinking of it, when it's cached, it doesn't make much difference.
PEBKAC
 
@DaveRandom is it possible?
 
webarto
hi
 
@Tarun Sort of, but not useful.
Why does it even matter?
The PHP version is newer, it should be able to do everything the command line version can and more
@DejanMarjanovic I... errr... wat?
include_path and relative includes are evil IMO
They are essentially a half baked solution to the problem that composer solves much more effectively
 
@DaveRandom Migrating to composer shit and proper classmapping if needed.
 
@DejanMarjanovic Ahh well a classmap should contain absolute paths, and will be implemented as an array i.e. hashtable, so order is insignificant
 
1:23 PM
@DaveRandom I want to upgrade php-curl to newer version, I dont know how can i do it
 
Basically, yes, thank you mate, Sir, ol' sport @DaveRandom.
 
@Tarun what flavour of linux are you using? Also, what do you need to do that your current php_curl cannot do?
 
I was thinking to install the new command line version and point php to that new line version
 
It doesn't work like that, curl command != libcurl
But I ask again: what do you need to do that your current php_curl cannot do?
brb smoke + tea
 
@DaveRandom I am using centos release 5.0
I am okay to use php_curl, but i dont know how to upgrade it.
I want to use newer version of curl to use TLS support
Currently, php_curl version is 7.20.1 and i need to upgrade it to 7.34.0 atleast to use TLS
 
1:32 PM
Mronrings
 
Mronrings
 
@Tarun hey, didn't you say that wasn't the problem :-)
 
Hmm
to save humanity, a new programming language must be invented
and I want to do that
 
@AndreaFaulds rust
 
@HamZa no
 
1:35 PM
@AndreaFaulds Call it fuckbrain, and it can only use symbols from other languages
 
rust means rest in dutch
 
@HamZa Yeah :)
 
@HamZa heh
 
@Tarun You need to upgrade your OS, it's as simple as that
Otherwise you will have to manually compile libcurl
if it will even work on CentOS 5
 
@DaveRandom It's an organization server. I have very very limited access :(
 
1:40 PM
then they are not providing you with the tools that you need to do your job
Which, tbh, is not really your problem. If someone has asked you for something and they will not provide you with the baseline requirements, then it cannot be done
 
Hmmm, just came home from lunch and my flat smells of gas. How concerned should I be?
 
Depends. What did you have for lunch?
 
@DaveRandom Yeah i will talk about it. Thanks for your help
 
We noticed a bit of a gas smell last night but it sort of went away. And having come in from lunch it's pretty evident.
 
@Fabor very concerned, do not turn on the lights or anything like that
 
1:42 PM
<-- on the PC ATM.
Have opened all windows to air it out
 
Good, weird though..
 
Yay! It appears to be restart-your-PC-Wednesday!
 
@Fabor Firstly, go check with your neighbours on all sides (including upstairs/downstairs) to go see if it smells stronger there
Also, check if it smells stronger near any particular gas appliance that you own, or near the meter
 
None next to me as they've moved. Will check upstairs if they're in. Doesn't smell in the hallway but I think the place shares vents as we can small upstairs cooking often
 
@Fabor That's the most likely candidate for a neighbour problem then (next door) as there would be no-one in to notice that the place smells of gas
 
1:44 PM
In this kind of situations I kind of wished that I had a gas detector :P
 
They've also been doing some DIY next door too
but no one lives there atm.
 
Could be that pilot light on next doors boiler has gone out
> National Grid aims to attend all uncontrolled escapes within one hour, and all controlled escapes within two hours. A controlled gas escape is one where the person reporting it has confirmed that the gas emergency control valve serving the premises has been turned off and the smell of gas has gone. An uncontrolled gas escape covers all others.
0800 111 999
So... one hour for professional to come and check it for free, no brainer methinks
 
^ nice
 
You don't want this shit to happen: bbc.co.uk/news/uk-england-11671916
^ I heard that explosion from my house. I live like 3 miles away.
 
Geeze
 
1:54 PM
how to url structure are like this /UK/Safety/Power-cut/ or /UK/Safety/Personal-safety/ . where is the .html
 
25
Q: Reference: mod_rewrite, URL rewriting and "pretty links" explained

deceze"Pretty links" is an often requested topic, but it is rarely fully explained. mod_rewrite is one way to make "pretty links", but it's complex and its syntax is very terse, hard to grok and the documentation assumes a certain level of proficiency in HTTP. Can someone explain in simple terms how "p...

 
thanks
 
Directly upstairs arent in either
people next to them said no smell there
but I can deifnitely smell something
Probably going to leave windows open while I am out at work. Wife is back about 6pm will get second opinion from her.
Just hope the cat will be okay
 
2:10 PM
@HamZa is it possible to rewrite with out using mod_rewrite
 
@santosh with apache? there are two options - url_rewrite (a sane one) and custom 404 handler
 
what about nginx @nikita2206
 
I have a mysql table with each row having a parent_id pointing to its parent node. Ive seen some posts about adjacency list models for hierarchical data
 
@nikita2206 what about nginx
 
@santosh google it
 
2:13 PM
@santosh is this for a php app? If so, route all requests to a front controller (php file) and then use a router library to do the rest
 
Does anyone have a function that does this and displays a hierarchical tree?
Otherwise i will experiment some with the functions i found, like from salman-w.blogspot.nl/2012/08/…
of course with prepared statements
 
@Patrick yes, but front controller what is that
 
@santosh it's a php script that will receive all the requests and handle them
 
ok
 
@NikiC please chime in on the "Fixing strange foreach behavior." thread on internals, it's something you seem to understand
 
2:33 PM
@Fabor I strongly recommend calling the guy to check it out (it is free) , but if there is still any smell, do not go to bed without getting someone out to check it.
Bad things happen when gas is allowed to build up.....
 
@santosh free tip for you: if you come across a word that you are not familiar with, try googling it
 
@Danack This.
 
Good morning
 
@ircmaxell Morning.
 
@Fabor be careful, there are situations where the smell goes away, but the gas stays, leaving you in a worse spot, but thinking you're OK
@SaraGolemon I'm giving my "compilers" talk at benelux again. Are there any changes in HHVM I should be aware of (and incorporate into the talk)?
 
2:45 PM
@Patrick thanks but dude actually what happen some time i don't what to search then i get confused and come to chat room to take help and once again thanks for your help
 
Is Marston the new Caine?
No, he isn't, but he will be if we remove PHP 4 constructors. (And rightly so.)
 
> The number of releases later is irrelevant. PHP 4 constructors have NEVER been marked as deprecated, therefore they are still fully supported and not obsolete.
^^ That IMHO is reason enough to not remove them in 7...
 
unfortunately I would have to agree
=/
 
@AndreaFaulds Yes, I've seen it
@ircmaxell I'd probably be okay with deprecated constructors if the default error_reporting level is set to E_ALL.
 
@ircmaxell Really? I thought they were deprecated with like, 5.1
 
2:51 PM
@SaraGolemon not in docs or in source
 
@ircmaxell Yeah
I think deprecating them for PHP 7 would be alright
 
I'm mainly concerned with php 4 ctors because I regularly debug them in testing snippets, and a deprecation message would be enough to quickly detect that. if it's actually shown
 
But if they were never deprecated, we cannot simple remove them
@NikiC Exactly
 
@NikiC for php-dev.ini, I think that's completely reasonable
 
A deprecation notice saves the debugging nightmare
 
2:52 PM
@ircmaxell I'm referring to the defaults
 
@ircmaxell We never show E_DEPRECATED in production
 
@AndreaFaulds No, Caine has different values to a lot of people, but he argues logically from those values....the other guy.....not so much.
 
@Danack True. Caine has some good points. Like how PHP 32-bit really lacks a decent way to deal with 64-bit integers when you need to (which the bigint RFC could help him with)
 
@NikiC I'm in the middle on that. I think it's sane to say that php without any configuration, should behave in a production-suitable manner
@AndreaFaulds I'm going to remind you that you said that
 
@ircmaxell "Caine has some good points"?
 
3:00 PM
@ircmaxell no.
"production-suitable" means disabling all error display
that's just totally out of the question for a default config
 
@NikiC why?
 
default should be dev environment
 
This is one of PHP's more ridiculous aspects
That we have "dev environment" and "production environment" configurations :/
 
hI ALL
 
posted on January 21, 2015 by kbironneau

/* by Philo */

 
3:03 PM
you mean environments for php's core or projects which use php?
 
i need help regarding to mysql
 
@NikiC I don't know, I really don't know...
 
@ircmaxell Don't worry, I know.
The day PHP makes -n configuration any more sucky is the day I stop using PHP.
 
i am using this query in phpmyadmin
` LOAD DATA LOCAL INFILE '/test.csv' INTO TABLE business_contacts FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n' IGNORE 1 ROWS(
`place_key` , `name` , `address` , `city` , `province` , `postalcode` , `country` , `phone` , `email` , `website` , `lati` , `longi` , `dateUpdated` , `source`
)`
 
3:04 PM
I virtually never use ini files for development because its too damn cumbersome and having a non-working default is really annoying.
 
it is not safe to rely on the system timezone. You must set it in the php.ini - totally not annoying at all.
 
@Danack the default value should be UTC .. not fuck-you error message
 
@Danack Absolutely.
 
@tereško YouDontSay.jpg
 
@NikiC the flip side of that is that forgetting to set one in prod has negative concequences
 
3:05 PM
can someone help?
 
@Danack you would be surprised how many people disagree on that
 
i am getting this error 'File '/test.csv' not found (Errcode: 2) '
 
@ircmaxell If you think you can use the current php -n config for production, that's pretty far from the truth
 
@NikiC I know it's far from the truth, I'm asking should it be
 
and if i remove LOCAL from query then i get below error
 
3:07 PM
imho, yes it should
 
@Mubeen1992 well, error message seems to be quite self-explanatory
 
Can't get stat of '/test.csv'
 
@Mubeen1992 how about you profide the full path to the file
 
yes but same method is working offline\
 
Like, if I do a gcc build I will also get a non-optimized debug build by default, unless I explicitly tell it to do otherwise
 
3:09 PM
@tereško yes i tried using full path
like below
LOAD DATA LOCAL INFILE 'http://www.bizzindex.com/wp-content/uploads/2015/01/download.0.csv' INTO TABLE business_contacts FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY ' ' IGNORE 1 ROWS (place_key, name, address, city, province, postalcode, country, phone, email, website, lati, longi, dateUpdated, source)
with full path it is working offline but not working online
 
@Mubeen1992 full path on a webserver's file system , not the "internets"
 
lol
 
@tereško i tried that as well but
not working
 
@NikiC but you don't get a debug build. You get one suitable for production... Yes, not optimized for it, but suitable
 
"not working" is not really a known error code
 
3:12 PM
1 message moved to Orphan GIFs
 
@tereško Depends which country the error occurs
 
@Jimbo ok .. outside of India
not sure about Pakistan (but I have strong suspicions)
 
@tereško i mean i am getting error 'File '/test.csv' not found (Errcode: 2) '
 
@ircmaxell for some definition of "suitable". To be exact, the definition by which everything is suitable.
 
@Mubeen1992 that is NOT the full path
 
3:14 PM
Can't get stat of '/hermes/bosoraweb150/b1039/test.csv'
this is full path now
 
@NikiC well, suitable in that it's a stable build without any extra "debug" or "development" stuff added in
 
seriously why the hell do I work on PHP I should just make my own language
 
not if your file is accessible via http://www.bizzindex.com/wp-content/uploads/2015/01/download.0.csv
 
http://www.bizzindex.com/test.csv
that is another file
 
@ircmaxell Where the debug stuff doesn't actually hurt anyone, while missing optimization is a production no-go...
 
3:16 PM
@AndreaFaulds You have to file an RFC if you want to invent your own language.
 
@NikiC I don't know about that...
 
@SaraGolemon Oh yeah, it'd never get approved :(
 
Y'know what's more fun than getting in shit over something you know you didn't break? Finding out who broke it.
 
@SaraGolemon did you see my earlier ping?
 
@tereško `http://www.bizzindex.com/test.csv`
Can't get stat of '/hermes/bosoraweb150/b1039/test.csv'
 
3:17 PM
if you get "File not found" error, it means that the path to the damned file is wrong
and what does "Can't get stat of .." means ?
 
40% want to call it aNdrea5, 40% want to call it Fauld++, the other 20% are eating lint and paste in the corner.
 
where the fuck do you see it \?
 
@SaraGolemon lol
Actually, I've written at least three languages so far, that I can think of
 
Writing languages is easy. Writing good languages is hard. I mean... look at PHP.
 
3:19 PM
that was not what I asked
 
@SaraGolemon A lot easier to write good languages when we can look at PHP though. </what-not-to-do>
 
The three languages I've created, off the top of my head: DevPerc (an esoteric programming language), angl (a Game Maker Language superset), and Fjord (a simple non-turing-complete stack machine, like Forth, for describing custom object renderers in an MMO)
 
try opening this file
 
@SaraGolemon Probably still easier to write a good language than fix what's wrong with PHP :)
 
@SaraGolemon Ah, but Lerdorf wasn't actually trying to make a good language, and there was no design involved
@NikiC That
JS is alright in part because it was designed, not hacked together
Designed quickly, but designed nonetheless
 
3:21 PM
But well, without some serious commitment writing a language is a purely pedagogic exercise.
 
@ircmaxell In some respects it is already deprecated.
 
@LeviMorrison yeah, but not "deprecated" which is my problem with it...
 
E_STRICT is a form of deprecation, and is issued in some places.
It also flat-out doesn't work in namespaced code.
 
@tereško i am getting full path using dirname(dirname(__FILE__))
 
4 mins ago, by tereško
and what does "Can't get stat of .." means ?
 
3:22 PM
I'm okay with E_DEPRECATED for PHP 7 and I worked out the basic patch for it. My bigger concern is that people who have PHP 4 constructors seem to have them in droves. "When it rains it pours" type thing.
 
angl never went anywhere because I gave up on the project (since the point was to port a massive GML game), Fjord died with the project that used it
 
if i remove LOCAL from query then i get this error
 
DevPerc didn't die but didn't go anywhere, but it's an esolang, it's not supposed to
 
@LeviMorrison I think E_DEPRECATED in 7, and removal in 8 is reasonably sane
 
I think E_DEPRECATED in 5.7, removal in 7 was best ^^
 
3:25 PM
@tereško if i use LOAD DATA LOCAL INFILE i get fil not found error if i use LOAD DATA INFILE then i get Can't get stat of .." error
 
Screw it, I'm writing a static analyser for Game Maker Language (as implemented in Game Maker 8.0).
 
@LeviMorrison In all reality it's going to be 2+ years before some people even dare to venture into the woods that is PHP 7. That's whether or not you keep X feature from 5
 
@Machavity that's precisely the problem that people are trying to solve by limiting the BC impact
 
a pun for your entertainment, room 11: meta.stackoverflow.com/questions/284127/…
 
3:30 PM
@teresko ??
 
@CarrieKendall So you're saying that it's not important that it gets fixed ;)
 
@tereško ??
 
@tereško ??
just trying to fit in
 
don't push it
 
3:31 PM
tough crowd today
 
morning @PaulCrovella
 
can someone help regarding to MYSQL
 
waking up to find a stranger invited you to a private chat in the middle of the night while you were sleeping feels kinda skeezy for some reason
 
@ircmaxell :D
@Mubeen1992 no
 
3:42 PM
@PaulCrovella You have clearly never used a feminine sounding name on the internet if you're only just doscovering this phenomenon.
 
@AndreaFaulds ha ha ha very funy |-(
 
@AndreaFaulds the funny thing is most people won't get the joke :-P
 
@ircmaxell if they are unfamiliar with /dev/zero, yeah :p
 
@AndreaFaulds well, more on the implementation of dev_zero(), being an infinite generator
 
@ircmaxell I suggested to him that we add Travis CI: github.com/igorw/dev-zero/issues/2 ;)
 
3:43 PM
lol
 
@SaraGolemon If I had a daughter I'd name her "David" or something just to spare her.
 
Use one of those gender ambiguous names.
 
like "Levi"?
 
^^ Levi is not gender ambiguous at all. Has clear, masculine roots
 
:P
for a foreigner, not so much tbh
 
3:49 PM
I suppose in languages where ending in 'i' would signify feminine you could make such a mistake.
 
user895378
@DejanMarjanovic my github commit graph indicates I'm back in my chair as of the last week :)
 
user895378
morning
 
So I called emergency gas line. They came over within the hour. Nothing immediate found but the gas (thingy) for number 12 (directly above us) kicked up a fuss on the detector. So he capped their line, ran tests from outside and they will have to call up again to get it uncapped. When they uncap it they can then test the inside line.
Pretty good service all in all.
 
hmm ... is it just me or Turkey will probably become either an allay or part of ISIL ?
 

« first day (1558 days earlier)      last day (3393 days later) »