<< < 8 9 10 11 12 13 14 15 > >>   Sort: Date

Converting Strings to Numbers in PHP
How To Convert Strings to Numbers? In a numeric context, PHP will automatically convert any string to a numeric value. Strings will be converted into two types of numeric values, double floating number and integer, based on the following rules: The value is given by the initial portion of the string...
2016-10-13, 242👍, 0💬

HTML Robots 'meta' Tag/Element
What Is the HTML Robots "meta" Tag/Element? The robots "meta" element is a special "meta" element that provides directives to robots who is visiting the HTML document. The robots "meta" element must include the "name" attribute as, name="robots". The "content" attribute must use predefined values of...
2017-06-23, 241👍, 0💬

Turning on the Session Support in PHP
How To Turn on the Session Support in PHP? The session support can be turned on automatically at the site level, or manually in each PHP page script: Turning on session support automatically at the site level: Set session.auto_start = 1 in php.ini. Turning on session support manually in each page sc...
2016-10-29, 241👍, 0💬

Configuration Settings for File Upload in PHP
What Are the File Upload Settings in Configuration File in PHP? There are several settings in the PHP configuration file related to file uploading: file_uploads = On/Off - Whether or not to allow HTTP file uploads. upload_tmp_dir = directory - The temporary directory used for storing files when doin...
2016-10-14, 241👍, 0💬

Counting the Number of Characters in PHP
How To Count the Number of Characters in a String? You can use the "strlen()" function to count the number of characters in a string. Here is a PHP script example of strlen(): <?php print(strlen('It\'s Friday!')); ?> This script will print: 12   ⇒PHP Built-in Functions for Strings ⇒⇒PHP Tutor...
2016-10-13, 241👍, 0💬

HTML 'input' Tag/Element
What Is an "input" Tag/Element? An "input" element is an inline element that can used inside a "form" element to define an input field. Here are basic rules about an "input" elements: An "input" element is an inline element. It can not be used directly inside a "form" element. It can only be used in...
2017-04-19, 240👍, 0💬

Getting Uploaded File Information in PHP
How To Get the Uploaded File Information in the Receiving Script in PHP? Once the Web server received the uploaded file, it will call the PHP script specified in the form action attribute to process them. This receiving PHP script can get the uploaded file information through the predefined array ca...
2016-10-17, 240👍, 0💬

Remove Trailing New Line Character in PHP
How To Remove the New Line Character from the End of a Text Line? If you are using fgets() to read a line from a text file, you may want to use the chop() function to remove the new line character from the end of the line as shown in this PHP script: <?php $handle = fopen("/tmp/inputfile.txt", "r...
2016-10-13, 240👍, 0💬

Hyper Link Points to a Music File
What Happens If a Hyper Link Points to a Music File? If you want to build a hyper link to allow visitors to access a music/sound file by clicking a hyper link, you can put the URL of the music/sound file directly in the "href" attribute of the hyper link. If a visitor clicks the link, the browser wi...
2017-07-03, 239👍, 0💬

HTML Input Field 'label' Tag/Element
What Is a "label" Tag/Element? A "label" element is an inline element that you can use to define a label for a form input field. Here are basic rules about a "label" element: "label" elements are inline elements. "label" elements can only be used as sub-elements of "form" elements. A "label" element...
2017-04-01, 239👍, 0💬

Removing Leading and Trailing Spaces in PHP
How To Remove Leading and Trailing Spaces from User Input Values? If you are taking input values from users with a Web form, users may enter extra spaces at the beginning and/or the end of the input values. You should always use the trim() function to remove those extra spaces as shown in this PHP s...
2016-10-13, 238👍, 0💬

Relative Path Name of a URL
What Is a Relative Path Name? A relative path name is a path name that starts without the leading slash "/". If a relative path name is used in a URL, the relative path name will be replaced with the current document path name appended with the specified relative path name. If "." or ".." is used in...
2017-07-07, 237👍, 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, 237👍, 0💬

XHTML 'meta' Tag/Element
What Is an XHTML "meta" Tag/Element? A "meta" element is optional child element of the head element. A "meta" element provides one piece of extra information about the XHTML document. Here are some important rules about "meta" elements: Meta elements are optional. Meta elements can only be used as s...
2017-06-28, 236👍, 0💬

Values Submitted in HTML Radio Button Fields
What Are the Values Submitted on Radio Button Fields? A "radio" button input field does not allow viewers to enter any input values directly. If a form is submitted, "radio" button input fields will be submitted with values based on the following rules: If a "radio" button is not pushed, no value wi...
2017-04-15, 236👍, 0💬

Broswers Supporting Multiple HTML Forms
Do Broswers Support Multiple Forms? XHTML 1.0 does allow you to create multiple forms in a single XHTML document. Most browsers will display and handle multiple forms properly. If click a submit button in one form, browsers will submit input data only for that one form. Input data from other forms w...
2017-04-01, 236👍, 0💬

Technical Specifications for File Upload in PHP
How To Get the Technical Specifications for File Upload in PHP? File upload technical specifications is provided in "Form-based File Upload in HTML - RFC 1867". You can get a copy from http://www.ietf.org/rfc/rfc186 7.txt.  ⇒Uploading Files to Web Servers in PHP ⇒⇒PHP Tutorials
2016-10-14, 236👍, 0💬

Default File Name of a URL
What Happens If File Name is Missing in a URL? If the file name part is missing in a URL, the one of the following two rules will be used. 1. If a URL has no file name, but a path name is given, the browser will let the hosting computer to supply the default file name. On most hosting computers, the...
2017-07-07, 235👍, 0💬

Hyper Link Points to an Image
What Happens If a Hyper Link Points to an Image? If you want to build a hyper link to allow visitors to see an image by clicking a hyper link, you can put the URL of the image directly in the "href" attribute of the hyper link. If a visitor clicks the link, the browser will fetch and display the ima...
2017-07-03, 235👍, 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, 234👍, 0💬

HTML Drop Down List 'select' Tag/Element
What Is a "select" Tag/Element? A "select" element is an inline element that you can use to define a dropdown input field in a form. Here are basic rules about a "select" element: "select" elements are inline elements. "select" elements can only be used as sub-elements of "form" elements. A "select"...
2017-04-01, 233👍, 0💬

Hyper Link Points to a PDF File
What Happens If a Hyper Link Points to a PDF File? If you want to build a hyper link to allow visitors to access a PDF file by clicking a hyper link, you can put the URL of the PDF file directly in the "href" attribute of the hyper link. If a visitor clicks the link, the browser will fetch the PDF f...
2017-07-03, 232👍, 0💬

Floating an Image to the Right Side in HTML
How To Float an Image to the Right Side? If you want to float an image to the right side of the paragraph instead of inline within a text line, you have to use the CSS property "float" to do this. The "float" property takes two values: "float: left" - Specifies that the image to be floated to the le...
2017-03-27, 231👍, 0💬

HTML 'map' Tag/Element
What Is a "map" Tag/Element? A "map" element is special inline element that you to define map entries to be used by image maps. Here are some basic rules on "map" elements: "map" elements are inline elements. "map" elements can not have text contents. "map" elements should have "area" elements as su...
2017-03-22, 231👍, 0💬

<< < 8 9 10 11 12 13 14 15 > >>   Sort: Date