« first day (2871 days earlier)      last day (2303 days later) » 

01:23
@bwoebi isn't there an easy solution to that though? put out a package that wires it all together and presents your convention layer
 
1 hour later…
02:42
@bwoebi is there any way to define a fallback route like how nginx does in http-server-router?
03:15
Night all
 
1 hour later…
04:27
Is it good to use a PHP frameworks , instead of custom coded site ... What about site speed and load ... Which will perform better ?
04:48
If a closure doesn't capture anything, do we cache its creation and reuse it?
05:42
morns
 
2 hours later…
08:00
dreamboat Slang. a highly attractive or desirable person.
@Ikari In aerys you could chain handlers, don't know about server-router
08:54
is php dead today?
09:14
@bwoebi lol
I could probably use a 404 handler in the router as well
if I could find how to define one that is
gonna need it for when I use this to serve a React SPA
10:15
that was unexpected https://t.co/rptKVNbiAQ
10:57
php is still not dead :/
11:35
@MisterGeeky Really without doubt
Does anyone have a link to Rasmus shutting down a patent troll going after phpdbg? cc @JoeWatkins
@Webdev what's the recent development in the language?
@MisterGeeky Now some developers going to use front end javascript frameworks like angular, vue.js,or reactjs ...etc
@MadaraUchiha pretty sure it was NuSphere - but can't find a relevant link easily.
and not patent troll - they have a product that they were selling as 'PHP debugger' - which is a real product, but naming it "php" is a license violation.
@Danack Bless be upon you
11:45
And also upon you.
@Webdev ..yeah, since 2015..that's not new
@Danack upon you all, phpers
@MisterGeeky Is there new development language new now?
12:21
Help me with the htaccess
RewriteRule ^stores/(.+)?c=([0-9]+)$ stores/$1?c=$2
I want to allow only numbers in the query string
@Srinivas08 are you @rahuldottech or his brother, perhaps?
A .htaccess (hypertext access) file is a directory-level configuration file supported by several web servers, used for configuration of site-access issues, such as URL redirection, URL shortening, access control (for different webpages and files), and more. A site could have more than one .htaccess file, and the files are placed inside the web tree (i.e. inside directories and their sub-directories), and hence their other name distributed configuration files..htaccess files act as a subset of the server's global configuration file (like httpd.conf) for the directory that they are in, or all sub...
1
Q: RewriteRule: Allow only numbers and a specific string comma separated

TheralosI'm trying to rewrite urls to allow only numbers and (optionally) the word "all" comma separated. For example, something like this: mypage/23,15,all,2,all I tried something, but there is a problem. First, this is my rule (probably syntatically wrong): mypage/([\d,?(all)]+) The problem here i...

stackoverflow.com/q/52019268 you shouldn't create new accounts. I thought that code looked familiar earlier. Edit: Which has been deleted and only viewable by 10k+ members and moderators. — Funk Forty Niner 16 mins ago
please help :(
-1
Q: Inserting the data in one table with 2 different tables

jericoGood day! I'm making an Evaluation Questionnaire and trying to insert the Question_ID and the Rating_ID on the question_rating table but the Question_ID and Rating_ID are from different tables which are as follows: Here's my question table: Here's my rating table: Here's the table where I in...

please help..... :(
i'm taking too long
13:01
json_encode option that outputs associative arrays as arrays instad of objects – #76795
13:13
@Tiffany you have skype?
Morngins all
@Ikari Yes
It's kinda shitty an convoluted though last time I needed it
mornings
anybody want to answer a question how to parse time ?
@Code4R7 don't ask to ask, and don't ask people to commit to helping you before asking your question.
Ok then, I'm using IntlDateFormatter::parse(), with locale "nl" and timezone "Europe/Amsterdam". Despite that we have summertime (CEST) now, parse() returns the time as if the timezone was CET.
IntlDateFormatter seems to use the timezone rather than the current offset of the timezone. It is said that IntlDateFormatter takes 'GMT+02:00' as the timezone argument, but it looks like parse() ignores that '+02:00' too
I know you all hate timezones as much as I do, that's why I was wondering if anybody was willing to help out ;)
Btw, I'm using PHP 7.0 here
@ircmaxell One of the people on my team wants to open a ticket: "as a devops enginer, I want to have some plugins enabled on the kibana reporting system, so I can use those plugins".
@Code4R7 if you know the format - you can specify the timezone with php.net/manual/en/datetime.createfromformat.php
-1
Q: Inserting the data in one table with 2 different tables

jericoGood day! I'm making an Evaluation Questionnaire and trying to insert the Question_ID and the Rating_ID on the question_rating table but the Question_ID and Rating_ID are from different tables which are as follows: Here's my question table: Here's my rating table: Here's the table where I in...

please help... pleaseeee
13:28
I know I could use DateTime, but I'm avoiding DateTime and want to use Intl
Intl should work too.. ?
3v4l.org does not support Intl, which online PHP tester does?
13:46
@Code4R7 maybe post an example, as what you're describing sounds kind of like a bug.
trying to...
$fmt = new IntlDateFormatter(
'nl',
IntlDateFormatter::SHORT,
IntlDateFormatter::MEDIUM,
'Europe/Amsterdam',
IntlDateFormatter::GREGORIAN
);
$fmt->setPattern('HH:mm');
$timestamp = $fmt->parse('06:00');
looks like a bug on my side... this code works
$fmt = new \IntlDateFormatter(
'nl',
\IntlDateFormatter::SHORT,
\IntlDateFormatter::MEDIUM,
'Europe/Amsterdam',
\IntlDateFormatter::GREGORIAN
);
$fmt->setPattern('HH:mm');
$timestamp = $fmt->parse('06:00');
print date('H:i', $timestamp);
Okay, in python I can use "\N{WHITE HEAVY CHECK MARK}" in a string, which represents a unicode char
What's the equiv in PHP? I can't seem to find anything
14:08
we only have the codepoints syntax secure.php.net/manual/en/…
 
1 hour later…
15:10
@PeeHaa yes
15:21
daaaammit, I broke my consecutive day streak
I was around 30-40
 
1 hour later…
16:51
Opcache causes a Segfault when php_uname has a parameter.(DISABLED FUNCTION) – #76796
17:17
Good day
@Tiffany oh no! You should put it on your phone or either login to chat on your phone and just check every day.
How do I stop a blank value from saving into database ?
17:45
Check your input for blank values before querying the database with your insert statement.
18:11
posted on August 21, 2018

No news today. Life is in the way. Expect the same next week.

 
1 hour later…
19:20
Weird, i var dump my last array element (the array was created by exploding the following text with "," delimiter: "Full Name,Country,Email,Phone,Campaign,"

When I var dump the last element i get string(1) " "
but if I check for that string like this:
return var_dump($columns[5] == " ");
It returns false?
Wes
Wes
another mass shooting in usa thedailybeast.com/…
19:49
@Jony var_dump the output of bin2hex($columns[5]) - that will tell you the byte value of the character in the string.
It says 0d
its not a string " " ?
0d is a carriage return (\r)
20:30
Hello, i got a question about adding data to array in a foreach loop.
My goal is to make duplicate entries add up on count field for the first entry.

So if there are 2 items the same i need 1 entry and count up price of both.

Can anybody help me ?
21:01
Ability to access php compiler (deprecated create_function) – #76797
21:15
alo
21:41
Can't configure PHP-FPM via environment variables – #76798
22:22
posted on August 26, 2018

New Cyanide and Happiness Comic


« first day (2871 days earlier)      last day (2303 days later) »