[WordPress] Use "file_get_contents()" To Load File
When we using PHP to develop a WordPress plugin, we always need to read/load some file. Simply put, we can use file_get_contents()
to do it.
When we using PHP to develop a WordPress plugin, we always need to read/load some file. Simply put, we can use file_get_contents()
to do it.
When we building a webpage, sometimes we need to allow users to key in some numbers. But at this time, maybe we need to use some rules to determine the string users key in is a valid number.
Read More »[JavaScript] How to Determine a String a a Valid NumberIn Linux system, every file has their owner, group and read/write permissions. And these permissions will affect whether other users can edit or read these files.
Read More »[Linux] Use “chmod” Command to Change the File PermissionsRecently, when I programming, I had such a strange requirement: the program will solve a problem in about a minute, but if it takes more than a minute, it needs to give up and move on the next task.
Read More »[Python] Use "eventlet" Library to Terminate the Program When It Executing the Certain TimeWe always have some needs to transfer data between different devices, for example, may be I need to transfer a file from server A to B.
Read More »[Linux] Resuming Interrupted File Transfer on Different Devices via RsyncIf we want to replace some content of a string (it is a common thing), we can use str_replace()
to do it.
We may be need to get the user data when we developing a WordPress plugin, for example, check the current user has registered; or list the writer of the site on a page... etc., The application scenarios are endless.
Read More »[WordPress] How to Use PHP Program to List the User DataI always use SizeUp tool to split my window to right side or left side. Because when I working I need to check some program info and programming together.
Read More »[AppleScript] Adjust Window Size on Mac OSWhen we comparing two time point or operating the time, using Date()
function as much as possible can make development much easier. The following I will follow:
If you are used to work with the terminal in Mac OS, you might want to disable the beeping sound that the terminal autocomplete (or other times) .
Read More »[MacOS] How to Disable Terminal Beep Sound