PTM Inline Perl/HTML Hybrid Parser 0.5.0b PHP script

SPONSORED LINKS

    Specification

  • Version: 0.5.0b
  • File size: 0 KB
  • File name: ptm-ppa-0.5.0_beta-win32.zip?modtime=1134941050&big_mirror=0
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: PHP
  • Price:GPL
  • Company: xmxspencer (View more)

PTM Inline Perl/HTML Hybrid Parser 0.5.0b script description:




Publisher review:
PTM Inline Perl/HTML Hybrid Parser allows for the ease of PHP-style inline code in your dynamic HTML documents. PTM is a Perl/HTML hybrid, similar to PHP in tag syntax. It allows for the ease of PHP-style inline code in your dynamic HTML documents while supplying the power of Perl that many find to be sorely lacking in PHP.

But more than that, it allows developers to harness Perl's ability to manipulate strings of text and iterate loops many times faster than other languages on the market without the need to sacrifice development time to complex print, split, and join statements. Additionally, PTM wraps many variables common to PHP to ease the transition between PTM and PHP when switching back and forth. PTM was not created to replace PHP or ASP. It was designed to be a complement to them. Where one fails nother picks up the slack.

The PPA (Perl Parser Application) is installed to run as either an Apache plugin, a standalone parser for a specific user or directory, or is called via command line.

When the PPA runs it expects to be given a *.ptm file to parse. This file is retreived via the PATH_TRANSLATED environment variable if in Apache-installed mode, a GET method field called "PTM_SCRIPT" or a mod_rewrite environment variable called "REDIRECT_PTM_SCRIPT" in standalone mode, both passed via the included ".htaccess" file, or via the command line (@ARGV). Once a file has been specified to be parsed, that file's contents are read in and parsed in a linear fashion.

During parsing, a Perl command set is created which is to be evaluated when parsing is complete. DO tag contents are passed directly into this command set.

DISPLAY tag contents are wrapped in a print call and passed in. TEMPLATE, FILE, and NOHTML tag contents are evaluated to get a file name/path which is then read in and then either processed (in the case of TEMPLATE tags) or stored in the next free element of a print array named @_PTM.

A call to print from this array is then added, using the current array position counter value named $_PTM_POS, to the command set. Any text that is not within a PTM tag is simply added to the @_PTM array and a request to print from @_PTM at the specified $_PTM_POS counter position is added to the command set. When all parsing has been completed the command set is run using the eval statement. Because none of the statements in the requested *.ptm documents are run until the command set has been completed, there is no risk of interfering with the command set's creation by changing global variables within the PTM code.

However, during evaluation of the command set, all variables are still accessable and can be changed, at which point code flow could be interrupted by changing these global variables. This is rarely a desired effect, but has been left open so that it may be used at the discretion of the developer.
PTM Inline Perl/HTML Hybrid Parser 0.5.0b is a PHP script for Development Tools scripts design by xmxspencer. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
PTM Inline Perl/HTML Hybrid Parser allows for the ease of PHP-style inline code in your dynamic HTML documents.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5