JIYIK CN >

Current Location:Home > Learning > PROGRAM >

All

How to Convert Hashmap to JSON Object in Java

Publish Date:2025/04/14 Author:JIYIK Category:Java

This article explains how to convert a Hashmap to a JSON object in Java. We will see a detailed example of creating a hashmap and then converting it to a JSON object. Hashmap and JSON are both very commonly used by developers as they help u...

Full

How to delay for a few seconds in Java

Publish Date:2025/04/14 Author:JIYIK Category:Java

This tutorial explains how to create program delays in Java and gives some sample code to understand it. There are several ways to create a time delay, such as TimeUnit.sleep() ,, ScheduleAtFixedRate() etc. Thread.sleep() Let's look at an e...

Full

Switching on enumeration types in Java

Publish Date:2025/04/14 Author:JIYIK Category:Java

This article explains how to use enum in Java . We will use statement switch with enum in two ways . switch In Java, we use traditional switch and case to perform enumeration operations. switch In this example, we SwitchEnum create an enume...

Full

Filtering Pandas DataFrame with multiple conditions

Publish Date:2025/04/13 Author:JIYIK Category:Python

This tutorial explains how to filter elements from a DataFrame based on multiple conditions. We will use the following DataFrame in this article. import pandas as pd stocks_df = pd . DataFrame( { "Stock" : [ "Tesla" , "Moderna Inc" , "Faceb...

Full

Getting headers in PHP

Publish Date:2025/04/13 Author:JIYIK Category:PHP

HTTP headers carry data between web servers and browsers for communication. Whenever we enter a URL in the address bar of our browser, it sends an HTTP request to the server; it contains a header. In PHP use get_headers() get the headers fo...

Full

Checking for numeric characters in PHP

Publish Date:2025/04/13 Author:JIYIK Category:PHP

This tutorial will discuss different ways to check for numeric characters in PHP. We will use regular expressions and built-in functions in PHP. The functions we will use are ctype_digit , preg_match , , strpos , is_numeric and filter_var ....

Full

Formatting a number as a dollar amount in PHP

Publish Date:2025/04/13 Author:JIYIK Category:PHP

This article will cover different ways to format numbers as dollar amounts in PHP with examples. These include: number_format NumberFormatter::formatCurrency Regular expressions Manual format We'll also look at why money_format the function...

Full

Encoding an image as Base64 in PHP

Publish Date:2025/04/13 Author:JIYIK Category:PHP

There are many ways to encode images into base64 format using several built-in functions in PHP. These functions include: pathinfo file_get_contents base64_encode mime_content_type Encode images to Base64 in PHP using file_get_contents , pa...

Full

Determining the referer in PHP

Publish Date:2025/04/13 Author:JIYIK Category:PHP

Determining the referer in PHP

$_SERVER['HTTP_REFERER'] Provides us with a referrer URL to determine the user request on the server. However, this is not a best practice because the referrer can be HTTP compromised through . $_SESSION[] Determine the referrer in PHP usin...

Full

Setting PHP_AUTH_USER and PHP_AUTH_PW in PHP

Publish Date:2025/04/13 Author:JIYIK Category:PHP

curl This article will show you how to use Requests in PHP to set PHP_AUTH_USER and PHP_AUTH_PW and use Requests through the command line curl . It will also show you how to confirm that the values ​​of PHP_AUTH_USER and PHP_AUTH_PW hav...

Full

Implementing multithreading in PHP

Publish Date:2025/04/13 Author:JIYIK Category:PHP

Multithreading is a form of program execution in which a single process creates multiple threads and they execute simultaneously. This tutorial will discuss multithreading in PHP and show you how to implement it. Parallel Implementing multi...

Full

Displays PHP configuration information on localhost

Publish Date:2025/04/13 Author:JIYIK Category:PHP

phpinfo() is a built-in function in PHP which outputs all the information of PHP configuration on the local host. We have to phpinfo() create a PHP file with a simple function call. Sometimes, the file may not work properly and output a 404...

Full

Updating PHP 7.x to 7.4 on CentOS

Publish Date:2025/04/13 Author:JIYIK Category:PHP

This article shows the steps to update the PHP version from 7.x version to 7.4 in CentOS. How to Update PHP from 7.X to 7.4 in CentOS Update operating system packages. yum update -y Check your PHP version in CentOS. php -v Prints a list of...

Full

Creating a signature from Hash_hmac() and Sha256 in PHP

Publish Date:2025/04/13 Author:JIYIK Category:PHP

Creating a signature from Hash_hmac() and Sha256 in PHP

PHP has one of the best encryption functions for data security. Hash_hmac() The encrypt function is one of the most famous encryptors. We'll show you how to use hash_hmac and sha256 encryptors to create 安全签名 one that you can store i...

Full

PHP upload image

Publish Date:2025/04/13 Author:JIYIK Category:PHP

PHP upload image

We can upload images in PHP using simple file upload operation, but first, php.ini file upload should be enabled from Files. This tutorial demonstrates how to upload images in PHP. php.ini Enable file upload from file in PHP to upload image...

Full

Scan to Read All Tech Tutorials

Social Media
  • https://www.github.com/onmpw
  • qq:1244347461

Hottest

Tags

Scan the Code
Easier Access Tutorial