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

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(): <?php print("<html>"); print("<p&...
2016-11-05, 272👍, 0💬

Understanding and Managing Cookies in PHP
Where to find tutorials on how to manage Cookies in PHP? A collection of tutorials to answer many frequently asked questions how to manage Cookies in PHP. Clear explanations and tutorial exercises are provided on setting and receiving cookies, creating and removing persistent cookies, specifying dom...
2016-11-05, 272👍, 0💬

Interview Questions - HTML Block Elements
Where to find Interview Questions on HTML Block Elements? Here are some interview questions on HTML Block Elements: What is a block element? Is "h1" a block element? Is "br" a block element? Is "pre" a block element? Can you use a block element inside a "p" element? Can you use a block element insid...
2017-03-07, 271👍, 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: <?php if (isset($_REQUEST['name'...
2016-11-15, 271👍, 0💬

What Is a Persistent Cookie in PHP
What Is a Persistent Cookie in PHP? A persistent cookie is a cookie which is stored in a cookie file permanently on the browser's computer. By default, cookies are created as temporary cookies which stored only in the browser's memory. When the browser is closed, temporary cookies will be erased. Yo...
2016-11-04, 271👍, 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, 270👍, 0💬

Reading One Character from a File in PHP
How To Read One Character from a File in PHP? If you have a text file, and you want to read the file one character at a time, you can use the fgetc() function. It reads the current character, moves the file pointer to the next character, and returns the character as a string. If end of the file is r...
2016-12-02, 270👍, 0💬

Form Input HTML Tags in PHP
What Are Form Input HTML Tags in PHP? HTML tags that can be used in a form to collect input data are: <SUBMIT ...> - Displayed as a button allow users to submit the form. <INPUT TYPE=TEXT ...> - Displayed as an input field to take an input string. <INPUT TYPE=RADIO ...> - Displayed...
2016-11-17, 270👍, 0💬

Creating a Table in PHP
How To Create a Table in PHP? If you want to create a table, you can run the CREATE TABLE statement as shown in the following sample script: <?php include "mysql_connection.php"; $sql = "CREATE TABLE fyi_links (" . " id INTEGER NOT NULL" . ", url VARCHAR(80) NOT NULL" . ", notes VARCHAR(1024)" . ...
2016-10-20, 270👍, 0💬

HTML 'em' Tag/Element
What Is an HTML "em" Tag/Element? An "em" element is an inline element that you can use to specify text with a normal emphasis. Here are basic rules about "em" elements: "em" elements are inline elements. "em" elements can not be used at block level. Contents of "em" elements will be displayed in it...
2017-04-28, 269👍, 0💬

Interview Questions - HTML General
Where to find Interview Questions on HTML General? Here are some interview questions on HTML General: Do you use any tools when authoring new HTML documents? Do you use any tools when converting HTML documents to XHTML? How to validate your XHTML documents? How comfortable are you with writing XHTML...
2017-02-28, 269👍, 0💬

Reading a File in Binary Mode in PHP
How To Read a File in Binary Mode in PHP? If you have a file that stores binary data, like an executable program or picture file, you need to read the file in binary mode to ensure that none of the data gets modified during the reading process. You need to: Open the file with fopen($fileName, "rb")....
2016-11-27, 269👍, 0💬

Removing a File in PHP
How To Remove a File in PHP? If you want to remove an existing file, you can use the unlink() function. Here is a PHP script example on how to use unlink(): <?php if (file_exists("/temp/todo.txt") ){ unlink("/temp/todo.txt"); print("File removed.\n"); } else { print("File does not exist.\n"); } ?...
2016-11-20, 269👍, 0💬

Generating a Form in PHP
How To Generate a Form in PHP? Generating a form seems to be easy. You can use PHP output statements to generate the required <FORM> tag and other input tags. But you should consider to organized your input fields in a table to make your form looks good on the screen. The PHP script below show...
2016-11-17, 269👍, 0💬

Uploading Files to Web Servers in PHP
Where to find tutorials on how to upload files to Web servers in PHP? A collection of tutorials to answer many frequently asked questions on how to upload files to Web servers in PHP. Clear explanations and tutorial exercises are provided on creating file upload HTML tags, setting encoding type on H...
2016-10-17, 269👍, 0💬

Reading One Line of Text from a File in PHP
How To Read One Line of Text from a File in PHP? If you have a text file with multiple lines, and you want to read those lines one line at a time, you can use the fgets() function. It reads the current line up to the "\n" character, moves the file pointer to the next line, and returns the text line ...
2016-12-02, 268👍, 0💬

Specifying Input Values for Radio Buttons in PHP
How To Specify Input Values for Radio Buttons in PHP? Radio buttons can be used in a form for two situations: As a single switch - One <INPUT TYPE=RADIO ...> tag, with no input value specified. When submitted with button pushed down, you will receive a value of "on". When submitted with button...
2016-11-13, 268👍, 0💬

Introduction of HTML
Where to find tutorials in understanding what is HTML? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team in understanding what is HTML. Clear answers are provided for frequently asked questions on what is HTML, HTML5, XHTML, Web, HTTP, XML, URL, URI...
2017-02-20, 267👍, 0💬

Function with Undefined Number of Arguments in PHP
How To Define a Function with Any Number of Arguments? in PHP? If you want to define a function with any number of arguments, you need to: Declare the function with no argument. Call func_num_args() in the function to get the number of the arguments. Call func_get_args() in the function to get all t...
2016-12-04, 267👍, 0💬

Downloading and Installing PHP
Where to find tutorials in downloading and installing PHP binary version for Windows system. Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team in downloading and installing PHP binary version for Windows system. Installing PHP for Windows Verifying ...
2016-10-13, 267👍, 0💬

Interview Questions - Basic Concepts
Where to find Interview Questions on XHTML Basic Concepts? Here are some interview questions on HTML basic concepts: What is HTML? How is HTML related to XHTML? How is HTML related to XML? What are the main advantages of XHTML over HTML? Is an XHTML document an XML document? Is an XML document an XH...
2017-03-07, 266👍, 0💬

Variables Are Passed by Values in PHP
How Variables Are Passed Through Arguments? in PHP? Like more of other programming languages, variables are passed through arguments by values, not by references. That means when a variable is passed as an argument, a copy of the value will be passed into the function. Modifying that copy inside the...
2016-12-24, 266👍, 0💬

Using MySQL Command Line Interface in PHP
How To Use MySQL Command Line Interface in PHP? MySQL server comes with a command line interface, which will allow you to operate with the server with SQL statements and other commands. To start the command line interface, you can run the \mysql\bin\mysql program. The tutorial exercise below shows y...
2016-10-22, 266👍, 0💬

Values Submitted in HTML Submit Button Fields
What Are the Values Submitted on Submit Button Fields? A "submit" button input field does not allow viewers to enter any input values directly. But if a form is submitted, "submit" button input fields will be submitted with values based on the following rules: If a "submit" button is not clicked, no...
2017-04-08, 265👍, 0💬

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