Algorithms Arrays Passwords Uncategorized
Commerce Uncategorized
Databases Abstraction Layers Informix LDAP MS SQL MySQL ODBC PostgreSQL Uncategorized
Date & Time Calculators Conversion Translation Uncategorized
Discussion Chat Forums Guestbooks Polls Uncategorized
Email Validation Uncategorized
External Uncategorized
Files and Directories Uncategorized
Games Uncategorized
Graphics 3-D Graphs Resizing Thumbnails Uncategorized
HTML Forms Menus & Navigation Source Viewers Tables Templates Uncategorized
HTTP Authentication Cookies File Uploading Uncategorized
I18N Uncategorized
Math Uncategorized
Miscellaneous Uncategorized
Searching and Trees Uncategorized
Security Uncategorized
Text Uncategorized
Utilities Calendars Counters Link Checkers Weather Uncategorized
XML Uncategorized
| php sample source codes |
|---|
|
This class is a tool that can be used to extract and build documentation from PHP source files.
|
|
show source code with standard color highlight,
and make link to open source code of the file that include or requere in those file.
Security feature :
only open files that in base directory(set in config ).
can not open forbidden file in base directory (set in config).
chek input file with beginning with ../../../../../
.
|
|
Source code view with syntac higlight using <b>highlight_string()</b> PHP4 function.
|
|
Source code viewer with separate highlight function for easily debugging HTML code
|
|
<B>View the source of a program<BR>
<UL><LI>Change the html () to html :-)</UL>
|
|
Let me read your mind:
- You want to add line numbers to highlighted source code.
- You hate Output Buffering; you love speed.
- You want to serve a valid XHTML code.
- You want a function to return the highlighted code, instead of printing it out.
Let me present my solution:
|
|
This script copy a php source file to a *.phps file and redirect the browser there. phps files are (at least with apache) displayed as code with syntax highlightning.
|
|
This is a little fragment that will return the currently viewed page as raw text for easy debugging of HTML glitches.
|