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, 7194👍, 0💬
Popular Posts:
What is PPTX? PPTX, short name for PowerPoint XML, is used as the file extension for presentation fi...
What is PPS? PPS, short name for PowerPoint Slide, is used as the file extension for Microsoft Power...
What is TIF or TIFF? TIFF, short name for Tagged Image File Format, is used as the file extension fo...
What is EML? EML, short name for Email, is used as the file extension for Email Message files. .EML ...
What is XPS or OXPS? XPS stands for for XML Paper Specification. OXPS stands for for Open XML Paper ...