Overview 
Download 
Installation 
Docs 
Tutorial 
Credits 
 Page Source 
 Hosted by: Convolution 
 | 
Source of template.plp 
Back
- <(template.plp)>
  
- <:
  
-     BEGIN { $title = 'Overview'; }
  
-     title "PLP"
  
- :>
  
  
- PLP is yet another Perl embedder, primarily for HTML documents. Unlike with
  
- other Perl embedders, there is no need to learn a meta-syntax or object model:
  
- one can just use the normal Perl constructs. PLP runs under mod_perl for speeds
  
- comparable to those of PHP, but can also be run as a CGI script.<br>
  
- <br>
  
  
- <: item "NEW VERSION!" :>
  
  
- The current version of PLP is <:= $PLP::VERSION :>: <a href="/files.plp">download</a> it now!<br>
  
- (PLP 2 users: read <a href="2to3.plp">PLP 2 to 3</a> to learn more about converting old PLP 2 scripts to PLP 3.)<br>
  
- <br>
  
  
- <: item "Fast and mod_perl!" :>
  
- (April 9, 2002) I'm glad to announce that PLP finally works with mod_perl, and with it, speed is great!
  
- It is two to five (!!) times as fast as PHP with 500 iterations of the following simple script:
  
  
- <:
  
- code Entity <<'END';
  
- $a = 1;
  
- while ($a < 400000) {
  
-     $a++;
  
- }
  
- END
  
- :>
  
  
- Now this is of course not a real-life situation, but a 250% speed gain is nice :)<Br>
  
- (Yeah, I know, this site isn't fast, but that's because this server is very loaded)<Br>
  
  
- <:
  
-     item "Counters and stuff";
  
-     $tel = Counter('count.dat');
  
-     $prev = ReadFile('prev.dat');
  
-     $host = $ENV{REMOTE_HOST} || $ENV{REMOTE_ADDR};
  
-     WriteFile('prev.dat', $host) if $host ne $prev;
  
- :>
  
  
- This page has had <:= $tel :> hits since the counter was reset.<br>
  
- The visitor before you was <:= $prev :>, and you are <:= $host :>.<br>
  
- (To view the sourcecode, choose (Source) from the navigation bar)
  
  
- 
  
 |  |