Latest comments:

•
2023-12-02 10:09
Thanks! checking for is_numeric and floor is simple and effective

•
2023-11-18 17:49
@Anonymous I can confirm that it works. I use it on my own Postfix server, and have successfully blocked numerous of spammers by using this method. However, you may need to enable the pcre extension and use regular expressions to block certain things. The article is now updated to better reflect this.

Anonymous: Blocking sender email addresses with Postfix
•
2023-11-17 13:49
Unfortunately, this won't work. Did you even try it? This filters MAIL FROM sender command, not the From: header. If sender from differs, abd this pretty usual, e.g. Foo <[email protected]> it simply won't work if you try to block [email protected]
Regards.

•
2023-11-08 23:33
Yurii, you run the build scripts in the bin/ folder. E.g. sudo -u www-data bin/build-storefront.sh
This should build not only the JavaScript for the storefront, but also the .SCSS. Hope it helps.

•
2023-10-27 08:47
Hi is there any new solutions of this problem?

•
2023-10-19 13:35
Thanks, Man. I encountered the same problem with v102.15.1, and your information works. (Oct. 19, 2023)

•
2023-09-20 08:09
I have this in my .htaccess to block countries
MaxMindDBEnable On
MaxMindDBFile DB /usr/local/share/GeoIP/GeoIP2-Country.mmdb
MaxMindDBEnv MM_COUNTRY_CODE DB/country/iso_code
SetEnvIf MM_COUNTRY_CODE ^(RU|DE|FR) BlockCountry
Deny from env=BlockCountry
That works well......
But how to allow only one country ?
Tried
Allow from eny=BlockCountry
but nogo yet....
Chrs..

Michael Petrovich: Nested Functions in PHP
•
2023-06-02 02:57
Within a function, you can define a variable to be a function. Variables are local.
function MyFunction($y)
{
$mysubfunction = function($x)
{
return $x + 10;
};
$y = $mysubfunction($y);
echo $y;
}
MyFunction(12);

anonymous: Nested Functions in PHP
•
2023-05-31 15:11
I think this is the way with no side effect, am I right?
function main(){
$a = function(){
echo 'a';
};
}
main();
$a(); // throws error

Gobinda Nandi: PHP: Direct Access to Superglobals
•
2023-05-08 11:05
How we can use this class to update key-value.
e.g.
1. $_SESSION = array();
2. $_SESSION['key'] = array();

•
2023-05-03 14:10
My page just got to be restricted
How long does the restriction last

•
2023-05-03 03:35
Thank you for the "If it still does not work, make sure that your browser is not caching the HTTP responses. I had an issue with that."
This works for me!
You are the genius!

•
2023-04-27 00:26
I was trying to only get the headers and found get_headers( $url, 1 ) to work fantastically. Adding the second option to the function gives you an associative array.
https://www.php.net/manual/en/function.get-headers.php

•
2023-04-15 17:23
I have a GUI application that needs to handle more advanced events from the keyboard, so using <linux/input.h> is best, but this requires root access, on cases like this what is the recommended approach? the GUI app is continuously listening to the keyboard events, so it's not a one-time operation like a file edit, how can this be approached?

Michele Clark: Module php7 does not exist (a2enmod php7)
•
2023-04-14 17:59
I had the same issue, ended up purging libapache2-mod-php7.4 then reinstalling it - it let me run the a2enmod then

•
2023-04-01 23:04
Yeh......April 1 2023 TB 102.9.1 and this is still happening in only one inbox. Repair inbox fixed it. thanks jacob

•
2023-03-23 06:20
Works perfectly. Thank you so much!

•
2023-03-03 17:58
Thanks a lot! But one question - how to compile administration-js on production? When I make changes on production in this file - this error message appears again.
For developer-version it works after ./psh.phar administration:build but production-version doesn't have psh.phar.

•
2023-02-20 13:50
I tried ccd2iso on a bin/cue set and it created a 49MB iso file and 22 .cdr files which I am assuming are supposed to be tracks?
I must be missing data somewhere...

Lou: URL Router in PHP
•
2023-01-29 12:53
How do I do the same URl Rewrite Server configuration on IIS?

David Stellar: Apache: Changing the Default Character Set
•
2023-01-06 18:49
Your "IndexOptions +Charset=UTF-8" solution only works for directory indexes, not for the files contained within. That requires AddCharset or ForceType

ambrozie: How to Fix Mouse Jumping When Scrolling
•
2022-12-27 12:32
Thanks Jacob. I bought a Rapoo mouse MT750s and noticed the scroll is unreliable. First I messed a lot with the mouse settings. No change.
I noticed it does the same on an Android tablet (I bought this model because it offers USB + BT connectivity) so clearly not software related.
I wanted to return it as it's in warranty but 1. somehow I managed to lose the box and the warranty papers 2. knowing the store policies, their answer after 2 weeks would have been "look, it works, what do you want" in a polite matter.
I used your method. It worked! trial and error though and it's not 100% perfect but I don't want to try today anymore. For the moment sometimes the middle click is not registered and the wheel gets stuck. Need to find the correct size for the paper. It has 6 screws, 4 of them under the mouse feet - that do not glue back properly after removing/reattaching.
Bad product for it's price (45 dollars). I wanted another mouse with an internal battery and the BT + USB connection plus the horizontal wheel were tempting. I will avoid this manufacturer for the future.

•
2022-12-01 17:18
Many thanks, I also encountered this problem today and was able to solve it within minutes with your guide/solution! \m/,

Denis Bazhenov: MacBook Pro automatically shifts volume balance, huh?
•
2022-11-24 01:50
Well, it's kinda make sense. As far as I know on a hardware level there is no balance, but separate volumes for left and right channels. So to change volume you need appropriately change volume of both channels.
This is speculation (I have no experience in sound drivers whatsoever), but maybe some interrupts are missed or intentionally skipped from one channel if CPU is under load or something like that.
Back in the day there were similar reports describing problem with Windows 7 (https://www.sevenforums.com/sound-audio/356773-windows-system-volume-only-controls-left-channel.html). Only left channel was changing when changing volume with volume up/down buttons.

•
2022-11-15 07:15
You are right. It's really confusing and I think there is no perfect solution for that. Especially, when you have "if" followed by "elseif" in the loop.

•
2022-11-08 11:11
Thanks, this is exactly I was looking for! Should have known this a month ago when our mailserver got blacklisted by Google due to a compromised mailbox.

•
2022-11-05 19:22
Thank you for writing this and thank you to Martin for commenting where the change needed to be if using Lets Encrypt (which I am). I have been working relentlessly on this for hours, and, once I came across this post, problem solved!
Thanks again!

•
2022-10-25 10:39
Thank you so much! Faced this error today and found your solution. Now it works perfectly fine.

•
2022-10-21 10:47
Microsoft has deprecated the older protocols for security reasons. 365 admins can enable Oauth2, if they want to. Instructions for this on Microsoft and third-party sites.

•
2022-10-13 01:57
And the below Redirect rule in your apache config file:
/etc/apache2/sites-available/xxxxx-ssl.conf
Redirect 301 /.well-known/carddav /remote.php/dav
Redirect 301 /.well-known/caldav /remote.php/dav
Redirect 301 /.well-known/webfinger /index.php/.well-known/webfinger
Redirect 301 /.well-known/nodeinfo /index.php/.well-known/nodeinfo
- How to access standard php $_GET parameters from the Shopware storefront .twig files. E.g. The URL query string parameters.Released: 2023-11-20 23:03
- The advance of AI is probably not going to end Blogging, but it will present challenges and force bloggers to rethink their online strategy, moving away from existing spammy SEO practices.Released: 2023-11-18 11:25
- Sometimes we may to manually clear cached Shopware files to fix namespace issues.Released: 2023-11-15 00:40
- The magnificent potato and formidable spud of unparalleled intellect. ROFLReleased: 2023-11-13 19:28
- You need quite a few files just to create a scheduled task in Shopware, and getting it right can be a challenging undertaking to new developers. In this tutorial, I tried to simplify the process.Released: 2023-11-11 22:17
- Here is the reason why the Shopware build script may not progress beyond: Dumped plugin configuration.Released: 2023-11-04 10:16
- Is it possible to jump from the Earth to the Moon with ones own two legs? Let us ask ChatGPT what it thinks about that (Super funny response).Released: 2023-11-02 19:37
- You need to route ocm-provider requests to index.php to have the error go away. The error started showing after I upgraded my Nextcloud server some time ago, and I have not had time to fix it until now.Released: 2023-10-29 09:44
- ChatGPT is sometimes referring to me as *dear interlocutor*, mostly when giving it personal instructions, but nevertheless super funny!Released: 2023-10-29 08:59
- The best way to deal with a trailing question mark is probably just to make it a bad request, because it is a very odd thing to find in a request URL.Released: 2023-10-28 12:06
- The Video outside the viewport is properly not worth spending time on solving; it is probably intended to solve a specific issue, and every single little video probably does not need to get indexed anyway.Released: 2023-10-28 00:00
- When I walk down the street, is it advisable to kick and scream at the same time?Released: 2023-10-27 00:00
Currently Popular
- Information about the WebP content type, and how we might handle webp images in PHP.Edited: 2021-03-18 07:21
- Tutorial on how to use proxy servers with cURL and PHPEdited: 2023-05-16 06:45
- Rate limiting your postfix server to limit the amount of e-mail a single user can send.Edited: 2022-11-09 08:56
- Cool tutorial on how to change the iframe src attribute value using JavaScript.Edited: 2021-02-09 21:27
- How to fix a problem causing chrome to complain about the crossorigin attribute on a preloaded resource.Edited: 2021-12-13 04:06
- Tutorial showing how to install a desktop like KDE or Cinnamon in Ubuntu.Edited: 2019-09-24 16:36