Handle real-time reference of thread scripts for your PHP. This article is written by DustinSchneider in response to how stefanoloati cited your php category. I have created a fast and simple php processing thread that will conform to the syntax of other php3 archives and build this article: dustin Schneider proposed
In response to Stefano Locati's "how to quote your php Category", I created a fast and simple php processing thread that will conform to the syntax of other php3 files and create some basic files.
This advantage is that it can be replaced by any annotation-plus it is very extensible.
Currently, the processing thread recognizes the following commands:
= Header (title)
% = Description)
!! = Horizontal Line (Horizontal Line)
; = End of decleration. (End declaration)
For example:
/* @ This_function ($ var1, $ var2 );
% This function takes 2 variables and does absolutely nothing with them .;
!! */
Something like this will be generated:
This_function ($ var1, $ var2)
Note: This function has variables $ var1 and $ var2. this function has two variables and has no effect on them (here it is a horizontal line)
$ Filename = "FILENAME_HERE ";
$ Fp = fopen ($ filename, "r ");
$ Buffer = fread ($ fp, filesize ($ filename ));
Fclose ($ fp );
For ($ I = 0; $ I {
// Header
If ($ buffer [$ I] ==& $ buffer [$ I + 1] == @)
{
Echo "";
$ I ++;
While ($ buffer [$ I ++]! = ;)
{
If ($ buffer [$ I] = ;)
Break;
Echo $ buffer [$ I];
}
Echo "";
}
// Description
If ($ buffer [$ I] ==%&$ buffer [$ I + 1] ==%)
{
Echo "Description :";
$ I ++;
While ($ buffer [$ I ++]! = ;)
{
If ($ buffer [$ I] = ;)
Break;
Echo $ buffer [$ I];
}
Echo "";
}
If ($ buffer [$ I] =! & $ Buffer [$ I + 1] = !)
{
Echo"";
}
}
Parse Schneider responded to Stefano Locati's "how to quote your php category" and I created a fast and simple php processing thread that would conform to the syntax and build of other php3 archives...