<< < 29 30 31 32 33 34 35 36 37 38 39 > >>   ∑:1482  Sort:Date

Closing a Session Properly in PHP
How To Close a Session Properly in PHP? Let's say you site requires users to login. When a logged in user clicks the logout button, you need to close the session associated with this user properly in 3 steps: Remove all session values with $_SESSION = array(). Remove the session ID cookie with the s...
2016-10-22, ∼2610🔥, 0💬

Removing Values Saved in the Session in PHP
How To Remove Values Saved in the Current Session in PHP? If you want to remove values saved in the current session, you should use the unset() function on those saved values in $_SESSION, or use array() to empty $_SESSION: unset($_SESSION['MyColor']) - Removes one value named MyColor in the current...
2016-10-24, ∼2609🔥, 0💬

Defining Functions in Python
Where to find tutorials in Defining Functions in Python? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team on Defining Functions in Python: What Is Function 'def' - Function Definition Statements 'return' Statement in Function Statement Block Functi...
2017-09-12, ∼2607🔥, 0💬

Passing an Argument to a Function in PHP
How To Pass an Argument to a Function? in PHP? To pass an argument to a function, you need to: Add an argument definition in the function definition. Add a value as an argument when invoking the function. Here is a PHP script on how to use arguments in a function(): &lt;?php function f2c($f) { r...
2016-12-24, ∼2605🔥, 0💬

JSON Validation at fyicenter.com
How to use the JSON Validation Tool at fyicenter.com? If you want to try the JSON Validation Tool at fyicenter.com, you can follow this tutorial: 1. Go to the FYIcenter JSON Validator and Formatter page at fyicenter.com. 2. Enter the following JSON text string in the text area: { "firstName": "John"...
2023-08-17, ∼2604🔥, 0💬

What Is Smart Contract
What Is Smart Contract? Smart Contract was originally introduced by Nick Szabo to digitally facilitate, verify, or enforce the negotiation or performance of a contract between parties. Today, smart contract is used to represent any executable code deployed in a distributed ledger application. The di...
2022-02-19, ∼2601🔥, 0💬

HTML 'hr' Tags/Elements
What Are "hr" Tags/Elements? A "hr" element is a block level element that can be used directly as a sub-element in the body element. You can use "hr" elements to specify horizontal rulers. Here are basic rules about "hr" elements: "hr" elements can only have empty contents. "hr" elements are block e...
2017-08-03, ∼2601🔥, 0💬

Expected Input Field Not Submitted in PHP
What Happens If an Expected Input Field Was Not Submitted in PHP? Obviously, if an expected input field was not submitted, there will be no entry in the $_REQUEST array for that field. You may get an execution error, if you are not checking the existence of the expected entries in $_REQUEST. For exa...
2016-11-15, ∼2601🔥, 0💬

FORM Tag for Uploading Files in PHP
How To Write the FORM Tag Correctly for Uploading Files in PHP? When users clicks the submit button, files specified in the &lt;INPUT TYPE=FILE...&gt; will be transferred from the browser to the Web server. This transferring (uploading) process is controlled by a properly written &lt;FOR...
2016-10-17, ∼2600🔥, 0💬

"docker container attach" - Attach Console
How to attach the hosting console to the TTY terminal of the default running command on a container using the "docker container attach" command? If the default running command has a TTY terminal for STDIN and STDOUT, you can attach the hosting console to interact with the running command using the "...
2021-10-10, ∼2599🔥, 0💬

What Is Class
What Is Class in Python? A class in Python is a statement block that defines a new data type. A class can have the following elements: Class name - A symbolic name that uniquely identifies this class within the context. The class name is also the new data type name. Base class - An existing class fr...
2018-05-08, ∼2598🔥, 0💬

'pass' - Do Nothing Statements
How to use the "pass" statement in Python code? The "pass" statement can be used as a place holder statement any where in Python code. When a "pass" statement is interpreted, Python will do nothing and continue with next statement. For example, the following Python code shows an empty function with ...
2017-09-12, ∼2597🔥, 0💬

"docker container list --all" - List All Containers
How to list all containers on the Docker Engine with "docker container list --all" command? The default "docker container list" or "docker ps" command lists only running containers. If you want to see all containers including those that were stopped, you need to use the "--all" option. Here is a lis...
2019-04-16, ∼2596🔥, 0💬

JSON Type Unique Identifications
How to assign a unique identification to a JSON type in JSON Schema? Using "definitions" and "$ref" properties allows to define JSON types and reference them internally in the same JSON schema or externally in another JSON schema. You can also assign a unique identification to a JSON type with the "...
2017-08-20, ∼2596🔥, 0💬

Retrieving Input Values from Checkboxes in PHP
How To Retrieve Input Values for Checkboxes Properly in PHP? If multiple input values are submitted with the same field name, like the case of a group of checkboxes, you should add ([]) to the end of the field name. This tells the PHP engine that multiple values are expected for this field. The engi...
2016-11-13, ∼2595🔥, 0💬

Manage and Use Class Properties
How to manage and use class properties? Class properties, also called class attributes, are name value pairs associated with class "type" object, and shared among all instances (objects) created from this class. You can manage and use class properties in various places: 1. In the class definition st...
2018-01-27, ∼2594🔥, 0💬

JSON Type Metadata
How to add documentation information to a JSON type with metadata? You can add documentation information to a JSON type with there metadata properties: "title" - Takes a JSON string as a short description for this JSON type. "description" - Takes a JSON string as a long description for this JSON typ...
2023-07-08, ∼2592🔥, 0💬

What Is Python Module 're'
What Is Python module "re"? "re" is a Python internal module that provides regular expression matching and replacement operations similar to those found in Perl. Here are some important properties and functions provided by the "re" module: &gt;&gt;&gt; import re &gt;&gt;&gt; ...
2018-10-19, ∼2592🔥, 0💬

'frame' - Controlling HTML Table Borders
How To Turn On Some Parts of Table Outer Borders? If you don't want to turn all 4 edges of outer borders in a table, you need to use the "frame" attribute, which offer the following options: &lt;table border="1" frame="border"&gt; - Turns on all 4 edges. &lt;table border="1" frame="box"&...
2017-05-13, ∼2590🔥, 0💬

Determining If a Session Is New in PHP
How To Determine If a Session Is New in PHP? There is not direct way to tell if a session is new or old. But you can design your site to have a required session value in all sessions. Then you can check the existence of this value in a session to determine if it is a new session by isset($_SESSION['...
2016-10-24, ∼2586🔥, 0💬

What Is Distributed Ledger
What Is distributed ledger? A distributed ledger, also called Distributed Ledger Technology (DLT), is a consensus of replicated, shared, and synchronized data storage based the blockchain technology. The Distributed Ledger Technology can be used to change the way we do business today in many areas. ...
2023-03-28, ∼2584🔥, 0💬

What Is basic-network Sample Network
What is basic-network Sample Network? basic-network is a Hyperledger Fabric network example included in the "Samples, Binaries and Docker Images" package. The basic-network Sample Network provides scripts and configuration files to create a simple Hyperledger Fabric network with a single organizatio...
2020-04-25, ∼2584🔥, 0💬

Retrieving the Original Query String in PHP
How To Retrieve the Original Query String in PHP? If you have coded some values in the URL without using the standard form GET format, you need to retrieve those values in the original query string in $_SERVER['QUERY_STRING']. The script below is an enhanced version of processing_forms.php which pri...
2016-11-05, ∼2584🔥, 0💬

Atom Feed Files Are XML Documents
Are Atom Feed Files XML Documents? Yes. Atom feed files are XML (eXtensible Markup Language) documents. Atom feed files must be well-formed XML documents, respecting the following XML rules. The first line must be the "xml" processing instruction with "version" and "encoding" attributes. There must ...
2017-12-09, ∼2576🔥, 0💬

<< < 29 30 31 32 33 34 35 36 37 38 39 > >>   ∑:1482  Sort:Date