Categories:
Android (1)
Audio (7)
C/C++ (2)
Compression (7)
Database (6)
Document (14)
Email (3)
General (50)
Graphics (17)
Image (8)
Java (1)
Picture (1)
Presentation (7)
Programming (17)
Spreadsheet (11)
Video (8)
Web (13)
Windows (63)
XML (4)
Other Resources:
.PHP - File Extension for PHP: Hypertext Preprocessor Files
What is PHP? PHP, short name for PHP: Hypertext Preprocessor, is used as the file extension for PHP script code files. .PHP files are text files that can be opened by any text editors. See the sample .PHP file included below.
✍: FYIcenter.com
File Extension: .PHP
MIME Type: text/plain
File Content: PHP: Hypertext Preprocessor
.PHP files are PHP: Hypertext Preprocessor files, which contains PHP script codes. Here is a sample .PHP file with a simple script code:
<?PHP if (isset($_POST ["file"])) { $FileName = $File = $_POST ["file"]; } else { $FileName = ""; } ?> <HTML> <BODY BGCOLOR=#FFFFFF> <FORM ACTION=/cgi-bin/cgiwrap/username/Example.php METHOD=POST> <P>Enter FileName: <?PHP echo " <INPUT TYPE=TEXT NAME=file VALUE=\"$FileName\" SIZE=75>\n"; ?> <P><BR><P> <INPUT TYPE=SUBMIT VALUE="Show Me!"> </FORM> <P><BR><P> <P><BR><P> <P><BR><P> <?PHP if (isset($File)) { $Handle = @fopen ($File, "r"); // '@' suppresses external errors if ($Handle) { $FileText = fread ($Handle, 10000); // Read up to 10,000 Bytes fclose ($Handle); // Fix HTML tags that may be there $SafeText1 = str_replace ("&", "&", $FileText); $SafeText2 = str_replace ("<", "<", $SafeText1); $SafeText = str_replace (">", ">", $SafeText2); // Now it is safe to display it echo " <H2 ALIGN=CENTER>File: $File</H2>\n"; echo "<PRE>\n"; echo $SafeText; echo "</PRE>\n"; } else { echo " <H3>Error: File '$File' is not accessible.</H3>\n"; } } ?> </BODY> </HTML>
.PHP PHP: Hypertext Preprocessor file sample: Click sample.php to download.
Since .PHP text files are in text format, you can use Notepad or any text editor to create or modify them. No special software is needed.
For for information on how to use .PHP PHP: Hypertext Preprocessor files, see links below:
2012-07-08, 9437👍, 0💬
Popular Posts:
What is CRT or CER? CRT or CER, short name for Certificate, is used as the file extension for PKI (P...
What is VSD? VSD, short name for Visio Drawing, is used as the file extension for Visio Drawing file...
What is VSD? VSD, short name for Visio Drawing, is used as the file extension for Visio Drawing file...
File extension EXE is used for executable files ready to be executed on computer systems. An EXE sam...
What is MHT or MHTML? MHT or MHTML, short name for MIME HTML, is used as the file extension for MIME...