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

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

Saving Values in the Session in PHP
How To Save Values to the Current Session in PHP? When session is turned on, a session will be automatically created for you by the PHP engine. If you want to save any values to the session, you can use the pre-defined associative array called $_SESSION. The following PHP script shows you how to sav...
2016-10-26, 286👍, 0💬

Returning an Array from a Function in PHP
How To Return an Array from a Function? in PHP? You can return an array variable like a normal variable using the return statement. No special syntax needed. Here is a PHP script on how to return an array from a function: <?php function powerBall() { $array = array(rand(1,55), rand(1,55), rand(1,...
2016-12-18, 285👍, 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, 285👍, 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, 285👍, 0💬

HTML 'form' Tag/Element
What Is a "form" Tag/Element? A "form" element is a block element that you can use to define an input form with input fields. Here are basic rules about a "form" element: "form" elements are block elements. A "form" element can have empty content. A "form" element can have block elements as sub-elem...
2017-04-19, 284👍, 0💬

Using HTML 'div' Elements with CSS Properties
How To Use "div" Elements to Change CSS Properties? As elements containers, "div" elements are perfect places to set CSS properties which will be applied to all elements in the container. Here is a tutorial example of how to set CSS properties on "div" elements: <?xml version="1.0" ?> <!DOC...
2017-03-11, 284👍, 0💬

Global Variables in Main Script in PHP
What Is the Scope of a Variable Defined outside a Function? in PHP? A variable defined outside any functions in main script body is called global variable. However, a global variable is not really accessible globally any in the script. The scope of global variable is limited to all statements outsid...
2016-12-08, 284👍, 0💬

Opening a file for Reading in PHP
How To Open a File for Reading in PHP? If you want to open a file and read its contents piece by piece, you can use the fopen($fileName, "r") function. It opens the specified file, and returns a file handle. The second argument "r" tells PHP to open the file for reading. Once the file is open, you c...
2016-12-02, 284👍, 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, 284👍, 0💬

Expected Input Field Not Submitted in PHP
What Happens If an Expected Input Field Was Not Submitted in PHP? Obviously, if an expected input field was not submitted, there will be no entry in the $_REQUEST array for that field. You may get an execution error, if you are not checking the existence of the expected entries in $_REQUEST. For exa...
2016-11-15, 284👍, 0💬

Retrieving Submitted Form Data in PHP
How To Retrieve the Submitted Form Data in PHP? The best way to retrieve the form data submitted by your visitor is to use the $_REQUEST array. The keys in this array will be the field names defined in form. The values in this array will be the values entered by your visitor in the input fields. The...
2016-11-15, 283👍, 0💬

PHP Configuration Setting File
Where Are PHP Configuration Settings Stored? PHP stores configuration settings in a file called php.ini in PHP home directory. You can open it with any text editor to your settings.   ⇒Downloading and Installing PHP ⇒⇒PHP Tutorials
2016-10-13, 283👍, 0💬

Installing PHP for Windows
How To Download and Install PHP for Windows? The best way to download and install PHP on Windows systems is to: Go to http://www.php.net, which is the official Web site for PHP. Download PHP binary version for Windows in ZIP format. Unzip the downloaded file into a directory. You are done. No need t...
2016-10-13, 283👍, 0💬

Copying a File in PHP
How To Copy a File in PHP? If you have a file and want to make a copy to create a new file, you can use the copy() function. Here is a PHP script example on how to use copy(): <?php unlink("/temp/myPing.exe"); copy("/windows/system32/ping.e xe","/temp/myPing.exe"); if (file_exists("/temp/myPing.e.. .
2016-11-20, 282👍, 0💬

Creating Nested HTML Tables
How To Create Nested Tables? You can create nested tables by including a child table inside a cell of the parent table. Below is a tutorial example of nested tables: <?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/D TD/xhtml1-stric...
2017-04-22, 281👍, 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, 281👍, 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, 281👍, 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, 281👍, 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, 281👍, 0💬

Understanding and Using Sessions in PHP
Where to find tutorials on how to use Sessions in PHP? A collection of tutorials to answer many frequently asked questions on how to use Sessions in PHP. Clear explanations and tutorial exercises are provided on starting and closing sessions, saving and retrieving values in sessions, deciding how se...
2016-10-29, 281👍, 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, 281👍, 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, 280👍, 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, 280👍, 0💬

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