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

Default Protocol and Port Number of a URL
What Happens If Protocol or Port Number Is Missing in a URL? From a syntax point of view, all URL parts are optional. If some parts are not included in a URL, the browser and the hosting computer will provide default values. Here are some rules about the protocol name, host name, and port number: 1....
2017-07-07, 440👍, 0💬

Using HTML 'submit' Action Fields
How To Use "submit" Input/Action Fields? A "submit" input field is defined as &lt;input type="submit" .../&gt;. "submit" input fields can be used to create submit buttons in a form. When a submit button is clicked, the form will be closed and input data will be submitted to the processing pr...
2017-04-08, 440👍, 0💬

Using HTML 'submit' Action Fields
How To Use "submit" Input/Action Fields? A "submit" input field is defined as &lt;input type="submit" .../&gt;. "submit" input fields can be used to create submit buttons in a form. When a submit button is clicked, the form will be closed and input data will be submitted to the processing pr...
2017-04-08, 440👍, 0💬

Splitting a String into an Array in PHP
How To Split a String into an Array of Substring in PHP? There are two functions you can use to split a string into an Array of Substring: explode(substring, string) - Splitting a string based on a substring. Faster than split(). split(pattern, string) - Splitting a string based on a regular express...
2016-12-28, 440👍, 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, 439👍, 0💬

What Is a URL
What Is a URL? A URL (Uniform Resource Locator) is a reference name representing a location of a Web document or other resource that is available on the Internet. Here are some examples of URLs: "http://www.w3.org/" "http://dev.fyicenter.com/faq/ xhtml/""http://www.google.com/search? hl=en&amp;q=...
2017-07-15, 439👍, 0💬

Passing Arrays to Function in PHP
Can You Pass an Array into a Function? in PHP? You can pass an array into a function in the same as a normal variable. No special syntax needed. Here is a PHP script on how to pass an array to a function: &lt;?php function average($array) { $sum = array_sum($array); $count = count($array); retur...
2016-12-18, 439👍, 0💬

Defining an Array Argument as Reference in PHP
Can You Define an Array Argument as a Reference Type? in PHP? You can define an array argument as a reference type in the function definition. This will automatically convert the calling arguments into references. Here is a PHP script on how to define an array argument as a reference type: &lt;?...
2016-12-18, 439👍, 0💬

Setting session.gc_divisor Properly in PHP
How To Set session.gc_divisor Properly in PHP? As you know that session.gc_divisor is the frequency of when the session garbage collection process will be executed. You should set this value based on the income request traffic. Here are some suggestions: # Set it to 10, if traffic is less than 10,00...
2016-10-24, 439👍, 0💬

Incorrect HTML 'head' Element
What Is Wrong with This XHTML "head" Element? If you have trouble passing the XHTML 1.0 validation on your head element, check the following common mistakes: Missing the title element. Not closing the meta element as &lt;meta ... &gt;. You must close all elements in XHTML documents. Not clos...
2017-06-28, 437👍, 0💬

HTML 'form' Element Attributes
What Are the Attributes of a "form" Element? There are 3 commonly used attributes for a "form" element: "action" - Required attribute. Used to specify the URL of the form processing program. "method" - Optional attribute. Used to specify the form submission method: "get" or "post". method="get" is t...
2017-04-19, 435👍, 0💬

Understanding PHP Arrays and Their Basic Operations
Where to find tutorials in Understanding PHP Arrays and Their Basic Operations? A collection of tutorials to answer many frequently asked questions on basic understanding of PHP arrays. Clear answers are provided with tutorial exercises on declaring and creating arrays, assigning and retrieving arra...
2016-10-15, 435👍, 0💬

Splitting a String in PHP
How To Split a String into Pieces? There are two functions you can use to split a string into pieces: explode(substring, string) - Splitting a string based on a substring. Faster than split(). split(pattern, string) - Splitting a string based on a regular expression pattern. Better than explode() in...
2016-10-13, 435👍, 0💬

Testing the strpos() Return Value in PHP
What Is the Best Way to Test the strpos() Return Value? Because strpos() could two types of values, Integer and Boolean, you need to be careful about testing the return value. The best way is to use the "Identical(===)" operator. Do not use the "Equal(==)" operator, because it does not differentiate...
2016-10-13, 433👍, 0💬

HTML Anchor 'a' Tag/Element
What Is an Anchor "a" Tag/Element? An "a" element is an inline element that you can use to specify a hyper link in your HTML document. An "a" element can also be used to define a bookmark in your HTML document. Here are basic rules about "a" elements: "a" elements are inline elements. "a" elements c...
2017-07-15, 431👍, 0💬

Interview Questions - HTML Forms and Input Fields
Where to find Interview Questions on HTML Forms and Input Fields? Here are some interview questions on HTML Forms and Input Fields: What is a form? What elements can you use to submit a form? When a form is submitted, where the data is delivered to? What is a hidden input field? How to create a grou...
2017-02-28, 431👍, 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, 431👍, 0💬

HTML Keywords 'meta' Tag/Element
What Is the HTML Keywords "meta" Tag/Element? The keywords "meta" element is a special meta element that provides a list of keywords about the HTML document. The keywords "meta" element must include the "name" attribute as, name="keywords". Here is an example: &lt;meta name="keywords" content="X...
2017-06-23, 430👍, 0💬

Joining Array Values into a Single String in PHP
How To Join Multiple Strings Stored in an Array into a Single String in PHP? If you multiple strings stored in an array, you can join them together into a single string with a given delimiter by using the implode() function. Here is a PHP script on how to use implode(): &lt;?php $date = array('0...
2017-01-05, 430👍, 0💬

HTML Lists and List Items
Where to find tutorials of introduction to HTML Lists and List Items? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team in introduction to HTML Lists and List Items. Clear answers are provided with tutorial examples on list elements for ordered list...
2017-06-16, 429👍, 0💬

Attributes of an HTML 'img' Element
What Are the Attributes of an "img" Element? There are 4 commonly used attributes for an "img" element: "src" - Required attribute. Used to specify the URL of the image file. "alt" - Required attribute. Used to specify the name of the image. "width" - Optional attribute. Used to specify the width of...
2017-03-27, 429👍, 0💬

Protecting Special Characters in Query String in PHP
How To Protect Special Characters in Query String in PHP? If you want to include special characters like spaces in the query string, you need to protect them by applying the urlencode() translation function. The script below shows how to use urlencode(): &lt;?php print("&lt;html&gt;"); p...
2016-11-05, 429👍, 0💬

Reading the Entire File to a String in PHP
How To Read the Entire File into a Single String in PHP? If you have a file, and you want to read the entire file into a single string, you can use the file_get_contents() function. It opens the specified file, reads all characters in the file, and returns them in a single string. Here is a PHP scri...
2016-12-04, 428👍, 0💬

Function Returns Data by Value in PHP
How Values Are Returned from Functions? in PHP? If a value is returned from a function, it is returned by value, not by reference. That means that a copy of the value is return. Here is a PHP script on how values are returned from a function: &lt;?php $favor = "vbulletin"; function getFavor() { ...
2016-12-08, 427👍, 0💬

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