Found 27104 Articles for Server Side Programming

Remove Substring list from String using Python

Aayush Shukla
Updated on 01-Aug-2023 13:34:05

125 Views

Python is a very useful software used commonly by people spread all over the world to perform many different functions as per their personal need. It is used for many different purposes such as Data Science, Machine Learning, Web Development and to perform different processes with automation. It has many different features which help us to perform the above mentioned tasks but with so many features present within python, users have to face issues also. One such common issue faced by the user is to remove substring from a string. Many−a−times multiple substrings are also to be removed from one ... Read More

How to Recursively Delete a Directory and its Entire Contents (files + sub dirs) in PHP

Pradeep Kumar
Updated on 01-Aug-2023 13:31:08

2K+ Views

PHP: PHP (Hypertext Preprocessor) is a widely-used open-source server-side scripting language that is specifically designed for web development. It was originally created by Rasmus Lerdorf in 1994 and has since evolved into a powerful language used by millions of developers worldwide. PHP is primarily used to develop dynamic web pages and web applications. It allows developers to embed PHP code within HTML, making it easy to mix server-side logic with the presentation layer. PHP scripts are executed on the server, and the resulting HTML is sent to the client's browser. There are multiple ways to recursively delete a ... Read More

Remove Spaces from Dictionary Keys using Python

Aayush Shukla
Updated on 01-Aug-2023 18:23:51

613 Views

Python is widely used platform for the purpose of Data Analysis, Web Development, AI and perform many different types of tasks with the help of automation. It is important for us to have knowledge about the different features of python. In this article, we are going to learn about the dictionary feature and how to remove space between keys using python. This feature is mainly used for the storage and retrieval of data as per need but sometimes there are chances of space in between the key values of the dictionary. This leads to errors while the user wants to ... Read More

How to Receive JSON POST with PHP

Pradeep Kumar
Updated on 01-Aug-2023 13:20:58

11K+ Views

To receive a JSON POST request in PHP, you can follow these steps: Ensure that the request being sent to your PHP script is formatted as a JSON object. In your PHP script, retrieve the raw POST data using the file_get_contents('php://input') function. This function reads the raw input stream of the HTTP request. Use the json_decode() function to decode the received JSON data into a PHP associative array or object. You can then access ... Read More

How to Read if a Checkbox is Checked in PHP

Pradeep Kumar
Updated on 01-Aug-2023 13:13:30

6K+ Views

PHP: PHP (Hypertext Preprocessor) is a popular server-side scripting language primarily used for web development. It was created by Rasmus Lerdorf in the mid-1990s and has since become one of the most widely used programming languages for building dynamic websites and web applications. PHP is embedded within HTML code and executed on the server, generating dynamic web content that is then sent to the user's web browser. It can interact with databases, handle form data, generate dynamic page content, perform calculations, manipulate files, and much more. How to Read if a Checkbox is Checked in PHP In PHP, ... Read More

Python - Values till False Element

Aayush Shukla
Updated on 01-Aug-2023 13:05:44

62 Views

Python is a commonly used programming language used for different purposed such as Web Development, Data Science, Machine learning and to perform various different tasks with automation. It is frequently essential to loop through the items of collections like lists, tuples, or iterators until a specific condition is satisfied. Using relevant code snippets and examples, we will examine several methods for traversing data until a False element is found in this article. You'll have a firm grasp on how to incorporate this into your Python programmes by the end. Understanding the Issue: Let's take into consideration a situation where we ... Read More

Python - Unpacking Dictionary Keys into Tuple

Aayush Shukla
Updated on 01-Aug-2023 13:02:55

211 Views

Python is a very commonly used programming language used by programmers spread all over the world. Python has many distinct applications, including web development, data science, machine learning, and the automation of various tasks. It offers a wide range of functions that may be utilised as needed. The ability of Python to unpack dictionary keys into tuples is one such capability. Multiple sets of data are stored using tuples in the form of a single variable. This article teaches us how to decompress a dictionary key into a tuple. Unpacking When you unpack, you remove various entries from a dictionary ... Read More

Python - Unique Values in Matrix

Aayush Shukla
Updated on 01-Aug-2023 12:58:33

144 Views

Python is used for different purpose by different programmers spread all over the world. The different field of application of python are Web Development, data science, machine learning and also to perform various processes with automation. To continue working with various matrices it is very important to have knowledge about different value present in matrix. The traditional way to express a matrix in Python is as a list of lists, where each inner list corresponds to a row of the matrix. The matrix's components can be of any data type, including texts, floats, and even integers. In this article we ... Read More

Python - Unique Pairs in List

Aayush Shukla
Updated on 01-Aug-2023 12:51:34

505 Views

Python is a very commonly used programming language used for many different purposes by programmer all over the world for different purposes. The various filed of application of python are web development, machine learning, data science and to perform many different processes with automation. Python stores its data in different data sets such as list, dictionary sets etc. A similar process that every programmer must go through while working on list is to find unique pair in the list. In this article we are going to learn about different methods that can be used to find unique pairs in a ... Read More

Python - Repeat String till K

Aayush Shukla
Updated on 01-Aug-2023 12:46:39

76 Views

Python is used all over the world by different people for different purposes such as web development, machine learning, data science and to perform different processes with automation. In this article we will learn how to increase the length of a string by repeating the same string again and again until we achieve our required length. Different Methods to Repeat Strings String Multiplication In this method we simply achieve the desired length by multiplication operation. We will provide a specific value and the string will be multiplied to reach the specific number of characters. The syntax of this method is ... Read More

Advertisements