<< < 7 8 9 10 11 12 13 14 > >>   Sort: Rank

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, 238👍, 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, 237👍, 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, 269👍, 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, 247👍, 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(): <?php $var = array(0,0,7); print("Test 1: ". is_array($var)."\n"); $var = array(); print("Test 2: ". is_array($var)."\n"); $var...
2016-10-15, 243👍, 0💬

Creating an Array in PHP
How To Create an Array in PHP? You can create an array using the array() constructor. When calling array(), you can also initialize the array with pairs of keys and values. Here is a PHP script on how to use array(): <?php print("Empty array:\n"); $emptyArray = array(); print_r($emptyArray); prin...
2016-10-15, 243👍, 0💬

Retrieving Values out of an Array in PHP
How To Retrieve Values out of an Array in PHP? You can retrieve values out of arrays using the array element expression $array[$key]. Here is a PHP example script: <?php $languages = array(); $languages["Zero"] = "PHP"; $languages["One"] = "Perl"; $languages["Two"] = "Java"; print("Array with ins...
2016-10-15, 236👍, 0💬

Filtering Out Empty Files in PHP
Why Do You Need to Filter Out Empty Files in PHP? When you are processing uploaded files, you need to check for empty files, because they could be resulted from a bad upload process but the PHP engine could still give no error. For example, if a user typed a bad file name in the upload field and sub...
2016-10-14, 443👍, 0💬

Moving Uploaded Files to Permanent Directory in PHP
How To Move Uploaded Files To Permanent Directory in PHP? PHP stores uploaded files in a temporary directory with temporary file names. You must move uploaded files to a permanent directory, if you want to keep them permanently. PHP offers the move_uploaded_file() to help you moving uploaded files. ...
2016-10-14, 247👍, 0💬

Detecting File Uploading Errors in PHP
How To Detect File Uploading Errors in PHP? If there was a problem for a file upload request specified by the <INPUT TYPE=FILE NAME=fieldName...> tag, an error code will be available in $_FILES[$fieldName]['error']. Possible error code values are: UPLOAD_ERR_OK (0) - There is no error, the fil...
2016-10-14, 245👍, 0💬

Creating a Database Table to Store Files in PHP
How To Create a Table To Store Files in PHP? If you using MySQL database and want to store files in database, you need to create BLOB columns, which can holds up to 65,535 characters. Here is a sample script that creates a table with a BLOB column to be used to store uploaded files: <?php $con = ...
2016-10-14, 465👍, 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, 239👍, 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, 233👍, 0💬

"new line" Character in Single-Quoted Strings in PHP
Can You Specify the "new line" Character in Single-Quoted Strings? You can not specify the "new line" character in a single-quoted string. If you don't believe, try this script: <?php echo '\n will not work in single quoted strings.'; ?> This script will print: \n will not work in single quote...
2016-10-13, 514👍, 0💬

Running a PHP Script
How To Run a PHP Script? A standard alone PHP script can be executed directly with the PHP Command Line Interface (CLI). Write the following script in a file called hello.php: <?php echo "Hello world!"; ?> This script can be executed by CLI interface like this: \php\php hello.php You should se...
2016-10-13, 419👍, 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, 276👍, 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, 275👍, 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, 274👍, 0💬

Verifying PHP Installation
How To Verify Your PHP Installation? PHP provides two execution interfaces: Command Line Interface (CLI) and Common Gateway Interface (CGI). If PHP is installed in the \php directory on your system, you can try this to check your installation: Run "\php\php -v" command to check the Command Line Inte...
2016-10-13, 264👍, 0💬

Understanding PHP String Literals and Operations
Where to find tutorials for PHP String Literals and Operations? A collection of tutorials on PHP string literals, operations and conversion. Clear explanations and tutorial exercises are provided on single-quoted strings, double-quoted strings, string elements, concatenation, converting values to st...
2016-10-13, 255👍, 0💬

Escape Sequences in Single-Quoted Strings in PHP
How Many Escape Sequences Are Recognized in Single-Quoted Strings? There are two special characters you need to escape in a single-quote string: the single quote (') and the back slash (\). Here is a PHP script example of single-quoted strings: <?php echo 'Hello world!'; echo 'It\'s Friday!'; ech...
2016-10-13, 254👍, 0💬

Special Characters in Double-Quoted Strings in PHP
What Are the Special Characters You Need to Escape in Double-Quoted Stings? There are two special characters you need to escape in a double-quote string: the double quote (") and the back slash (\). Here is a PHP script example of double-quoted strings: <?php echo "Hello world!"; echo "Tom said: ...
2016-10-13, 249👍, 0💬

Ways to Remove Leading and Trailing White Spaces in PHP
How Many ways to Remove Leading and Trailing White Spaces? There are 4 PHP functions you can use remove white space characters from the beginning and/or the end of a string: trim() - Remove white space characters from the beginning and the end of a string. ltrim() - Remove white space characters fro...
2016-10-13, 254👍, 0💬

Escape Sequences in Double-Quoted Strings in PHP
How Many Escape Sequences Are Recognized in Double-Quoted Strings? There are 12 escape sequences you can use in double-quoted strings: \\ - Represents the back slash character. \" - Represents the double quote character. \$ - Represents the dollar sign. \n - Represents the new line character (ASCII ...
2016-10-13, 252👍, 0💬

<< < 7 8 9 10 11 12 13 14 > >>   Sort: Rank