<< < 6 7 8 9 10 11 12 >   Sort: Rank

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, 222👍, 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, 218👍, 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, 454👍, 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, 372👍, 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, 251👍, 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, 249👍, 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, 246👍, 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, 243👍, 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, 231👍, 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, 227👍, 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, 227👍, 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, 232👍, 0💬

Ways to Include Variables in Double-Quoted Strings in PHP
How Many Ways to Include Variables in Double-Quoted Strings? There are 3 formats to include variables in double-quoted strings: "part 1 $variable part 2" - This is the simplest format to include a variable in a string. The variable name starts with the dollar sign and ends at the first character tha...
2016-10-13, 226👍, 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, 225👍, 0💬

Assigning a New Character in a String in PHP
How To Assigning a New Character in a String? The string element expression, $string{index}, can also be used at the left side of an assignment statement. This allows you to assign a new character to any position in a string. Here is a PHP script example: <?php $string = 'It\'s Friday?'; echo "$s...
2016-10-13, 223👍, 0💬

Comparing Two Strings in PHP
How To Compare Two Strings with Comparison Operators? PHP supports 3 string comparison operators, <, ==, and >, 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 comparison ope...
2016-10-13, 221👍, 0💬

Including Array Elements in Double-Quoted Strings in PHP
How Many Ways to Include Array Elements in Double-Quoted Strings? There are 2 formats to include array elements in double-quoted strings: "part 1 $array[key] part 2" - This is called simple format. In this format, you can not specify the element key in quotes. "part 1 {$array['key']} part 2" - This ...
2016-10-13, 221👍, 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: <?php echo 'Hello ' . "world!\n"; ?> This script will print: Hello world!   ⇒Understanding PHP String Literals and Oper...
2016-10-13, 220👍, 0💬

Including Variables in Double-Quoted Strings in PHP
How To Include Variables in Double-Quoted Strings? Variables included in double-quoted strings will be interpolated. Their values will be concatenated into the enclosing strings. For example, two statements in the following PHP script will print out the same string: <?php $variable = "and"; echo ...
2016-10-13, 220👍, 0💬

Accessing a Specific Character in String in PHP
How To Access a Specific Character in a String? Any character in a string can be accessed by a special string element expression: $string{index} - The index is the position of the character counted from left and starting from 0. Here is a PHP script example: <?php $string = 'It\'s Friday!'; echo ...
2016-10-13, 219👍, 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, 218👍, 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, 215👍, 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, 214👍, 0💬

PHP Built-in Functions for Strings
Where to find tutorials and answers to frequently asked questions for PHP Built-in Functions for Strings? A collection of frequently asked questions on manipulating strings in PHP. Clear answers are provided with tutorial exercises on string functions including strlen, trim, substr, chop, strpos, st...
2016-10-13, 214👍, 0💬

<< < 6 7 8 9 10 11 12 >   Sort: Rank