<< < 1 2 3 4 5 6 7 8 9 10 > >>   Sort: Date

Create New Instances of a Class
How to Create a New Instance of a Class? There are two ways to create a new instance (object) of a class (or type): 1. The short way: Call the class name as the class constructor function with the following syntax. It will return an instance of the given class. &gt;&gt;&gt; x = class_nam...
2018-01-27, 662👍, 0💬

Sorting an Array by Keys in PHP
How To Sort an Array by Keys in PHP? Sorting an array by keys can be done by using the ksort() function. It will re-order all pairs of keys and values based on the alphanumeric order of the keys. Here is a PHP script on how to use ksort(): &lt;?php $mixed = array(); $mixed["Zero"] = "PHP"; $mixe...
2017-01-21, 662👍, 0💬

"link" - Link Object Files (*.obj)
How to use "link" command tool to link objet files? If you have object files previously compiled by your or others, you can follow this tutorial to link them into executable files: 1. Create a simple C++ program, Hello.cpp, with a text editor: #include &lt;iostream&gt; using namespace std; v...
2017-08-21, 653👍, 0💬

Add Request Query String Parameters - 2017 Version
How to add request query string Parameters to my Azure API operation 2017 version to make it more user friendly? If your API operation uses URL template parameters, the client system must call it with parameter values specified in the correct position, like: https://.../exchange-rate/USD/ EUR/2020-10...
2018-06-12, 646👍, 0💬

json_last_error_msg() - PHP JSON Error Message
How to detect errors occurred in the json_decode() call? You can use the following two functions to detect error and display error message occurred during the last call of json_decode() or json_encode(). json_last_error() - Returns the error code occurred in the last json_decode() or json_encode() c...
2018-03-04, 644👍, 0💬

'send-request' Policy Statement
How to use the "send-request" Policy statement to call an extra web service for an Azure API service operation? The "send-request" Policy Statement allows you to call an extra web service and store the response in a given variable. The "send-request" statement has the following syntax: &lt;send-...
2018-01-13, 640👍, 0💬

HTML Tables and Table Cells
Where to find tutorials of introduction to HTML Tables and Table Cells? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team in introduction to HTML Tables and Table Cells. Clear answers are provided with tutorial exercises on table elements like: tabl...
2017-05-20, 640👍, 0💬

JSON-parse-Transformed.html - JSON.parse() Value Transformed
How to write a reviver function to transform values while the JSON.parse() function is parsing the JSON text string? Below is a good example on using a reviver function with the JSON.parse() call to transform parsed JSON element values: &lt;!-- JSON-parse-Transformed.html Copyright (c) FYIcenter...
2017-09-08, 639👍, 0💬

Add Request URL Template Parameters
How to add request URL Template Parameters to my Azure API operation to make it more user friendly? If your API Operation requires some key parameters, you put them as template parameters in the URL template of the operation. Using template parameters reduces the need for providing parameters in the...
2018-03-24, 638👍, 0💬

Test API as a Publisher Administrator
How to Test API as a Publisher Administrator? You can follow this tutorial to test an API operation as a publisher administrator. 1. Go to https://portal.azure.com with a Web browser. And log in with your company email address. 2. Find the API Management Service resource to open it. 3. Click on the ...
2018-03-28, 637👍, 0💬

HTML 'table' Element Attributes
What Are the Attributes of a "table" Element? A "table" element may have the following commonly used attributes: "summary" - Specifies a text string as the summary of the table. "width" - Specifies the width of the table. "border" - Specifies the border width. "frame" - Specifies how the outer borde...
2017-05-13, 637👍, 0💬

Add Request Query String Parameters
How to add request query string Parameters to my Azure API operation to make it more user friendly? If your API operation uses URL template parameters, the client system must call it with parameter values specified in the correct position, like: https://.../exchange-rate/USD/ EUR/2020-10-10The above...
2018-03-24, 633👍, 0💬

JSON-stringify.html - JSON.stringify() Example Code
Where to get a JSON.stringify() Example Code in JavaScript? Here is a good JSON.stringify() example code in JavaScript. &lt;!-- JSON-stringify.html Copyright (c) FYIcenter.com --&gt; &lt;html&gt; &lt;body&gt; &lt;script type="text/javascript"&gt; var str1 = JSON.strin...
2017-09-08, 628👍, 0💬

Supporting Hidden Form Fields in PHP
How To Support Hidden Form Fields in PHP? Hidden fields are special fields in a form that are not shown on the Web page. But when the form is submitted, values specified in the hidden fields are also submitted to the Web server. A hidden field can be specified with the &lt;INPUT TYPE=HIDDEN ...&...
2016-11-08, 625👍, 0💬

'send-one-way-request' Policy Statement
How to use the "send-one-way-request" Policy statement to call an extra web service for an Azure API service operation? The "send-one-way-request" Policy Statement allows you to call an extra web service. The "send-request" statement has the following syntax: &lt;send-request mode="new|copy"&...
2018-01-13, 621👍, 0💬

Merging Two Arrays into a Single Array in PHP
How To Merge Values of Two Arrays into a Single Array in PHP? You can use the array_merge() function to merge two arrays into a single array. array_merge() appends all pairs of keys and values of the second array to the end of the first array. Here is a PHP script on how to use array_merge(): &l...
2017-01-11, 621👍, 0💬

Setting session.gc_maxlifetime Properly in PHP
How To Set session.gc_maxlifetime Properly in PHP? As you know that session.gc_maxlifetime is the session value timeout period. You should set this value based on the usage pattern of your visitors. Here are some suggestions: # Set it to 20 minutes for a normal Web site: session.gc_maxlifetime = 120...
2016-10-24, 620👍, 0💬

"Hello.c" - Compile and Run C Program
How to use Visual Studio command tools to compile and run a C program? If you want to compile and run a standard C program with Visual Studio command tools, you can follow this tutorial: 1. Create a simple C program, Hello.c, with a text editor: #include &lt;stdio.h&gt; void main() { printf(...
2017-08-21, 619👍, 0💬

Using isset($_REQUEST('name')) in PHP
How To Avoid the Undefined Index Error in PHP? If you don't want your PHP page to give out errors as shown in the previous exercise, you should consider checking all expected input fields in $_REQUEST with the isset() function as shown in the example script below: &lt;?php if (isset($_REQUEST['n...
2016-11-15, 619👍, 0💬

'context.Request.MatchedParameters' URL Template Parameters
How to access URL template parameters from "context.Request.MatchedParame ters"object in Azure API Policy? URL template parameters are parameters used in the URL defined in the URL template: For example, the following URL template contains two template parameters, "cid", "oid" and "date": /customers...
2018-02-14, 618👍, 0💬

Visual Studio 2017 .NET Program Folders
In which folders Visual Studio 2017 .NET programs are located on my Windows computer? When Visual Studio 2017 .NET is installed on your Windows computer, its programs are located the following folders: .NET Framework location: C:\Program Files (x86)\Microsoft.NET .NET Framework support for Visual St...
2017-09-19, 616👍, 0💬

'rewrite-uri' Policy Statement
How to use the "rewrite-uri" Policy Statement for an Azure API service operation? The "rewrite-uri" Policy Statement is actually doing the same work as the operation setting "Rewrite URL template". For example, if you create an API operation with the following settings: HTTP verb: POST URL template:...
2018-01-16, 615👍, 0💬

Azure API Management - Developer Portal
What is Azure API Management Developer Portal? Azure API Management Developer Portal is an Azure Web portal that allows your developers of client applications to learn and run tests on your API services. Once you have signed up for an Azure API Management Service, you will be given an API Management...
2018-10-30, 612👍, 0💬

Counting the Number of Values in an Array in PHP
How To Get the Total Number of Values in an Array in PHP? You can get the total number of values in an array by using the count() function. Here is a PHP example script: &lt;?php $array = array("PHP", "Perl", "Java"); print_r("Size 1: ".count($array)."\n"); $array = array(); print_r("Size 2: ".c...
2017-01-29, 606👍, 0💬

<< < 1 2 3 4 5 6 7 8 9 10 > >>   Sort: Date