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

Processing Uploaded Files in PHP
How To Process Uploaded Files in PHP? How to process the uploaded files? The answer is really depending on your application. For example: You can attached the outgoing emails, if the uploaded files are email attachments. You can move them to user's Web page directory, if the uploaded files are user'...
2016-10-17, 266👍, 0💬

What Is an Array in PHP
What Is an Array in PHP? An array in PHP is really an ordered map of pairs of keys and values. Comparing with Perl, an array in PHP is not like a normal array in Perl. An array in PHP is like an associate array in Perl. But an array in PHP can work like a normal array in Perl. Comparing with Java, a...
2016-10-15, 266👍, 0💬

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, 266👍, 0💬

Animated Images in HTML
What Is an Animated Image? An animated image is a special image file saved in animated GIF format. When an animated image is displayed in a browser window, multiple image frames will be displayed in sequence to form a simple animation. Here is a tutorial example with a server-side image map: &lt...
2017-03-22, 265👍, 0💬

Cookie Management on Firefox in PHP
How Does Firefox Manage Cookies in PHP? Firefox browser allows you to delete old cookies, and gives you options to keep persistent cookies in cookie files until they reach their expiration time. The following tutorial shows you how to manage cookies in Firefox: Run Firefox Go to Tools/Options Click ...
2016-10-30, 265👍, 0💬

Testing If a Variable Is an Array in PHP
How To Test If a Variable Is an Array in PHP? Testing if a variable is an array is easy. Just use the is_array() function. Here is a PHP script on how to use is_array(): &lt;?php $var = array(0,0,7); print("Test 1: ". is_array($var)."\n"); $var = array(); print("Test 2: ". is_array($var)."\n"); ...
2016-10-15, 265👍, 0💬

Replacing Characters in a String in PHP
How To Replace a Group of Characters by Another Group? While processing a string, you may want to replace a group of special characters with some other characters. For example, if you don't want to show user's email addresses in the original format to stop email spammer collecting real email address...
2016-10-13, 265👍, 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, 265👍, 0💬

Server-Side Image Maps in HTML
What Is a Server-Side Image Map? A server-side image map is an image inside a hyper link. The image must be defined with the "ismap" attribute in the "img" element. When a server-side image map is clicked in a browser window, the mouse coordinates will be delivered to the server by them to the end o...
2017-03-22, 264👍, 0💬

Viewing Cookie Header Lines in PHP
How To View Cookie Header Lines in PHP? If you are interested to see the cookie header lines, or you are having trouble with your cookies and need to see the cookies to help debugging, you can run your script with PHP CGI interface in a command line window. The following tutorial exercise shows you ...
2016-11-02, 264👍, 0💬

Number of Cookies Supported in PHP
How Many Cookies Can You Set in PHP? How many cookies can you set in your PHP page? The answer is depending what is the Web browser your visitor is using. Each browser has its own limit: Internet Explorere (IE): 20 Mozilla Firefox: 50 If you want to test this limit, copy this sample script, how_many...
2016-10-30, 264👍, 0💬

Performing Key Word Search in PHP
How To Perform Key Word Search in Tables in PHP? The simplest way to perform key word search is to use the SELECT statement with a LIKE operator in the WHERE clause. The LIKE operator allows you to match a text field with a keyword pattern specified as '%keyword%', where (%) represents any number of...
2016-10-17, 264👍, 0💬

Changing Fonts a Paragraph with HTML 'span'
How To Change Text Fonts for Some Parts of a Paragraph? If you want to change text fonts or colors for some parts of a paragraph, you can use "span" element with "style" attributes to specify font and color information as CSS properties. Here is a tutorial example of using "span" elements to change ...
2017-03-07, 263👍, 0💬

What Is File Upload in PHP
What Is File Upload in PHP? File upload is Web page function which allows visitor to specify a file on the browser's system and submit it to the Web server. This is a very useful function for many interactive Web sites. Some examples are: Web base email systems for users to send attachments. Forums ...
2016-10-17, 263👍, 0💬

Concatenating Two Strings in PHP
How To Concatenate Two Strings Together? You can use the string concatenation operator (.) to join two strings into one. Here is a PHP script example of string concatenation: &lt;?php echo 'Hello ' . "world!\n"; ?&gt; This script will print: Hello world!   ⇒Understanding PHP String Literals ...
2016-10-13, 262👍, 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, 262👍, 0💬

Comparing Two Strings in PHP
How To Compare Two Strings with Comparison Operators? PHP supports 3 string comparison operators, &lt;, ==, and &gt;, that generates Boolean values. Those operators use ASCII values of characters from both strings to determine the comparison results. Here is a PHP script on how to use compar...
2016-10-13, 262👍, 0💬

HTML In-line Elements and Tags
Where to find tutorials of introduction to XHTML 1.0 In-line Elements and Tags? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team in introduction to HTML In-line Elements and Tags. Clear answers are provided with tutorial exercises on inline element...
2017-08-03, 261👍, 0💬

HTML 'sub' and 'sup' Tag/Element
What Are HTML "sub" and "sup" Tags/Elements? "sub" and "sup" elements are inline elements that you can use to specify text to be treated as subscript and superscript respectively. Here are basic rules about "sub" and "sup" elements: "sub" and "sup" elements are inline elements. "sub" and "sup" eleme...
2017-04-28, 261👍, 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: &lt;?php $handle = fopen("/tmp/inputfile.txt"...
2016-10-13, 261👍, 0💬

Other HTML Inline Elements
What Are Other HTML Inline Elements? Other inline elements that are not covered in this collection: a - Defining an anchor. img - Defining an image. map - Defining a clickable image map. input - Defining an input field in a form. select - Defining a selection field in a form. textarea - Defining an ...
2017-07-21, 260👍, 0💬

Values Submitted in HTML Image Button Fields
What Are the Values Submitted on Image Button Fields? An "image" button input field does not allow viewers to enter any input values directly. But if an "image" button is clicked, the mouse position on the image button will be submitted with other input values to the processing program based on the ...
2017-04-04, 260👍, 0💬

Deleting Existing Rows in PHP
How To Delete Existing Rows in a Table in PHP? If you want to remove a row from a table, you can use the DELETE statement with a WHERE clause to identify the row. The following sample script deletes one row: &lt;?php include "mysql_connection.php"; $sql = "DELETE FROM fyi_links WHERE id = 1102";...
2016-10-19, 260👍, 0💬

Other HTML Block Elements
What Are Other HTML Block Elements? Other block elements that are not covered in this collection: ul, ol, dl - Specifying lists of items. table - Specifying tables of columns and rows. form - Specifying forms with input fields. script - Specifying client-side script codes. div - Specifying structura...
2017-08-03, 259👍, 0💬

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